[03:03:46]OFD Sender: No OFD packet to send [03:03:50]accept exits with 10 [03:03:50]New connection [03:03:50]New thread 3066936676 created [03:03:50]Thread 3067080036 joined [03:03:50]Waiting for new connection... [03:03:50] Sock 10.Parse request [03:03:50]Sock 10.Check first char [03:03:50]Sock 10.First char is OK [03:03:50]request: POST /json_proto HTTP/1.0 [03:03:50]Method: POST [03:03:50]URL: /json_proto [03:03:50]Method is POST - this is cgi request [03:03:50]url: /json_proto [03:03:50]query_string will be loaded in cgi processing [03:03:50]execute_cgi json_proto POST (null) [03:03:50]execute_cgi path=json_proto method=POST [03:03:50]POST find Content-Length [03:03:50]Host: 172.17.43.195:8080 [03:03:50]Content-Length: 663 [03:03:50]Content-Type: application/json [03:03:50] [03:03:50]POST finish read [03:03:50]Found Content-Length = 663 [03:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [03:03:50]execute_script... [03:03: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)951925", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 43.860, "sum" : 3000.02, "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" ] } } [03:03:50]POST & json_proto [03:03:50]process_json_proto [03:03:50]json parsed OK: [03:03:50]protocol is kg_v1.0 [03:03:50]action value=close_receipt [03:03:50]process_action close_receipt [03:03:50]cmd_close_receipt [03:03:50]MH_GetDate [03:03:50]Write to MH i2c: F0 00 00 93 01 83 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 09 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: F0 09 00 93 01 00 17 FF 1E 67 74 2C AD 66 DA [03:03:50]GetLastDocTimeStamp 1730083507 [03:03:50]current date 1730084631 [03:03:50]FM_GetShiftState [03:03:50]SAM_PROTO_GetShiftState [03:03:50]wFMCommunicate request_size=4 [03:03:50]MH_SAM_APDU [03:03:50]CAPDU: 80 13 01 00 [03:03:50]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [03:03:50]Write i2c OK [03:03:50]MH_I2C_Read... [03:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:50]Read from MH i2c: E2 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 0E 00 [03:03:50]MH_I2C_Read... [03:03:50]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7A [03:03:50]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [03:03:50]wFMCommunicate OK [03:03:50]SAM_PROTO_GetShiftState done [03:03:50]FM_GetShiftState done [03:03:50]opened in 1730074113 [03:03:50]opened+sec_in_day 1730160513 [03:03:50]quantity*price = 300002 [03:03:50]sum+1 = 300003 [03:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.59 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 6 28.10.2024 03:03 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72478 ФПД: 181728102538431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T030351&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72478&fm=181728102538431&tin=02508201610067®Number=0000000000091644&sum=300000 [03:03:51]StoreToDocumentArchive [03:03:51]shift 554 fd 72478 [03:03:51]save to /storage/0554/doc_00072478 [03:03:51]save last doc name /storage/0554/doc_00072478 to /storage/kkm_last_doc_name [03:03:51]save OK [03:03:51]Clear old archive folders... [03:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=244 [03:03:51]tlvbuf is 00B52930 [03:03:51]SAM_PROTO_ClearQueue [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 09 00 00 [03:03:51]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]SAM_PROTO_ClearQueue done [03:03:51]KKMCreateOFDPacket [03:03:51]OFDProtocolAddRootSTLVToBuf [03:03:51]FM_MakeSignedData [03:03:51]FM_MakeSignedData [03:03:51]SAM_PROTO_SignData [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 01 02 [03:03:51]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]wFMCommunicate request_size=253 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 FF 1E 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1B 01 00 35 04 06 00 A5 47 DE FF 5C BF [03:03:51]Write to MH i2c: E2 00 01 A3 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 FF 1E 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1B 01 00 35 04 06 00 A5 47 DE FF 5C BF 00 00 0A [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [03:03:51]RAPDU: 90 00 [03:03:51]wFMCommunicate OK [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 0D 03 02 [03:03:51]Write to MH i2c: E2 08 00 A4 01 80 0D 03 02 00 00 00 00 20 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:03:51]Read from MH i2c: E2 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 [03:03:51]MH_I2C_Read... [03:03:51]Read from MH i2c: E2 0B 00 A4 01 00 22 B5 94 C6 04 C4 39 E1 90 00 34 [03:03:51]RAPDU: 22 B5 94 C6 04 C4 39 E1 90 00 [03:03:51]wFMCommunicate OK [03:03:51]SAM_PROTO_SignData done [03:03:51]FM_MakeSignedData done [03:03:51]CreateOFDProtocolMessage [03:03:51]wFMCommunicate request_size=4 [03:03:51]MH_SAM_APDU [03:03:51]CAPDU: 80 11 00 00 [03:03:51]Write to MH i2c: E2 08 00 A5 01 80 11 00 00 00 00 00 00 20 [03:03:51]Write i2c OK [03:03:51]MH_I2C_Read... [03:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:52]Read from MH i2c: E2 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: E2 17 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: E2 17 00 A5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 74 [03:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:03:52]wFMCommunicate OK [03:03:52]CreateOFDProtocolMessage done [03:03:52]OFDSenderStorePacket 72478 [03:03:52]StoreOFDPacket docnum=72478 [03:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 2B 16 00 01 93 64 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 FF 1E 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1B 01 00 35 04 06 00 A5 47 DE FF 5C BF 22 B5 94 C6 04 C4 39 E1 [03:03:52]CheckFolder [03:03:52]dirname=/storage/ofd_packets [03:03:52]CheckFolder done [03:03:52]ProducePacketName [03:03:52]name=ofd_packets/00072478 [03:03:52]NVStorageSaveData ofd_packets/00072478 [03:03:52]File name is /storage/ofd_packets/00072478 [03:03:52]Write 294 bytes [03:03:52]NVStorageSaveData done [03:03:52]OFDSenderStorePacket done [03:03:52]KKMCreateOFDPacket done [03:03:52]NVStorageSaveData kkm_last_timestamp [03:03:52]File name is /storage/kkm_last_timestamp [03:03:52]Write 4 bytes [03:03:52]NVStorageSaveData done [03:03:52]ExternCall_PrintAddStr [03:03:52]wPrintStart [03:03:52]Write to MH i2c: 01 00 00 A6 01 A7 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 A6 01 00 00 00 00 00 FF 0F BC [03:03:52]RasterBufferAndPrint [03:03:52]line Счет N : (1)951925 [03:03:52]line ИНН: 02508201610067 [03:03:52]line Контрольно-Кассовый Чек [03:03:52]line ПРОДАЖА [03:03:52]line ТРК (МРК, ГНК) : 51 [03:03:52]line Товар: 50.50.0 [03:03:52]line Super 92 [03:03:52]line 43.860 * 68.40 [03:03:52]line = 3000.02 [03:03:52]line НДС 12% НСП 1% [03:03:52]line > о реализуемом товаре [03:03:52]line ОКРУГЛЕНИЕ: -0.02 [03:03:52]line ИТОГО: 3000.00 [03:03:52]line Внесено: 3000.00 [03:03:52]line СДАЧА: 0.00 [03:03:52]line НСП 1% : 26.55 [03:03:52]line НДС 12% : 318.59 [03:03:52]line Наличными: 3000.00 [03:03:52]line Безнал.: 0.00 [03:03:52]line Место: АЗС № 113 "Партнер Нефть" [03:03:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [03:03:52]line СНО: Общий режим [03:03:52]line Чек 6 28.10.2024 03:03 [03:03:52]line Смена: 554 ФФД: 1.0 [03:03:52]line ЗНМ: 0300000087 [03:03:52]line РНМ: 0000000000091644 [03:03:52]line Версия ККМ: 001 [03:03:52]line ФМ: 0000000000874662 [03:03:52]line ФД: 72478 [03:03:52]line ФПД: 181728102538431 [03:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T030351&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72478&fm=181728102538431&tin=02508201610067®Number=0000000000091644&sum=300000 [03:03:52]OFD Sender: Processing packet 72478 [packets to send 272, broken 271] [03:03:52]ProducePacketName [03:03:52]name=ofd_packets/00072478 [03:03:52]OFD Sender: To server: pG, [03:03:52]CommunicateWithHost lk.salyk.kg:30040 [03:03:52]ConnectInit lk.salyk.kg [03:03:52]written 0, free lines is 4095 [03:03:52]Write to MH i2c: 01 00 00 D1 01 D2 [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 D5 0C BA [03:03:52]RasterBufferAndPrint [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]line [03:03:52]written 0, free lines is 3292 [03:03:52]MH_Cut [03:03:52]Write to MH i2c: D1 01 00 D8 01 01 AB [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 [03:03:52]MH_I2C_Read... [03:03:52]Read from MH i2c: D1 01 00 D8 01 00 AA [03:03:52]Write to MH i2c: 01 00 00 D9 01 DA [03:03:52]Write i2c OK [03:03:52]MH_I2C_Read... [03:03:53]Connected sock=7 [03:03:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 2B 16 00 01 93 64 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 54 AB 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E2 93 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 73 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 17 FF 1E 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1E 1B 01 00 35 04 06 00 A5 47 DE FF 5C BF 22 B5 94 C6 04 C4 39 E1 [03:03:53]*** Cut start [03:03:53]*** Partial cut [03:03:53]*** CUTSNS_PIN = 1 [03:03:53]*** CUTSNS_PIN = 0 [03:03:53]*** Brake cut motor [03:03:54]Read from MH i2c: 01 [03:03:54]MH_I2C_Read... [03:03:54]*** Stop cut motor [03:03:54]*** Cut end [03:03:54]Read from MH i2c: 01 07 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [03:03:54]process_action close_receipt done [03:03:54]requested_data is exist [03:03:54]produce_requested_data [03:03:54]requested_item fm.sn is exist - process it [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 11 00 00 [03:03:54]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CC FA 47 00 45 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 34 36 36 32 10 04 04 00 1E 1B 01 00 F4 03 04 00 D7 A9 1E 67 B6 04 01 00 00 E4 97 1C 48 72 8B C0 9D [03:03:54]CommunicateWithHost err = 0 [03:03:54]CheckOFDResponse [03:03:54]1017 (14) - 77093643461234 [03:03:54]1041 (16) - 0000000000874662 [03:03:54]1040 (4) - 72478 [03:03:54]1012 (4) - 27.10.2024 21:00 [03:03:54]1206 (1) - 0 [03:03:54]OFD Sender: Remove packet 72478 [03:03:54]ProducePacketName [03:03:54]name=ofd_packets/00072478 [03:03:54]NVStorageDeleteData [03:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 17 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A9 [03:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [03:03:54]wFMCommunicate OK [03:03:54]requested_item fd.num is exist - process it [03:03:54]SAM_PROTO_GetFieldsCounters [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 13 00 00 [03:03:54]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 62 00 DB 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1E 1B 01 00 0E 04 04 00 2A 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 F1 [03:03: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1E 1B 01 00 0E 04 04 00 2A 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 [03:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetFieldsCounters done [03:03:54]requested_item shift.num is exist - process it [03:03:54]requested_item shift.opened is exist - process it [03:03:54]req_shift_opened [03:03:54]FM_GetShiftState [03:03:54]SAM_PROTO_GetShiftState [03:03:54]wFMCommunicate request_size=4 [03:03:54]MH_SAM_APDU [03:03:54]CAPDU: 80 13 01 00 [03:03:54]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [03:03:54]Write i2c OK [03:03:54]MH_I2C_Read... [03:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:03:54]Read from MH i2c: E2 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 [03:03:54]MH_I2C_Read... [03:03:54]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C2 [03:03:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [03:03:54]wFMCommunicate OK [03:03:54]SAM_PROTO_GetShiftState done [03:03:54]FM_GetShiftState done [03:03:54]req_shift_opened done [03:03:54]requested_item shift.open_date is exist - process it [03:03:54]req_shift_open_date [03:03:54]req_shift_open_date done [03:03:54]produce_requested_data done [03:03:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72478,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [03:03:54]process_action_free close_receipt [03:03:54]json_value_free [03:03:54]json_value_free done [03:03:54]process_json_proto returns [03:03:54]Send response to host [03:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72478,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [03:03:54]free response buf [03:03:54]execute_script done [03:03:54]execute_script returns [03:03:54]free content buf [03:03:54]Sock 10.Close socket [03:03:54]Sock 10.Thread stoped [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:32]recv_with_timeout no data received [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:47]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [03:06:30]OFD Sender: No OFD packet to send [03:06:35]OFD Sender: No OFD packet to send [03:06:40]OFD Sender: No OFD packet to send [03:06:45]OFD Sender: No OFD packet to send [03:06:50]OFD Sender: No OFD packet to send [03:06:55]OFD Sender: No OFD packet to send [03:07:00]OFD Sender: No OFD packet to send [03:07:05]OFD Sender: No OFD packet to send [03:07:10]OFD Sender: No OFD packet to send [03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:32]recv_with_timeout no data received [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:07:59]recv_with_timeout no data received [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:05]OFD Sender: No OFD packet to send [03:10:10]OFD Sender: No OFD packet to send [03:10:12]recv_with_timeout no data received [03:10:15]OFD Sender: No OFD packet to send [03:10:20]OFD Sender: No OFD packet to send [03:10:25]OFD Sender: No OFD packet to send [03:10:30]OFD Sender: No OFD packet to send [03:10:35]OFD Sender: No OFD packet to send [03:10:40]OFD Sender: No OFD packet to send [03:10:45]OFD Sender: No OFD packet to send [03:10:50]OFD Sender: No OFD packet to send [03:10:55]OFD Sender: No OFD packet to send [03:11:00]OFD Sender: No OFD packet to send [03:11:05]OFD Sender: No OFD packet to send [03:11:10]OFD Sender: No OFD packet to send [03:11:15]OFD Sender: No OFD packet to send [03:11:20]OFD Sender: No OFD packet to send [03:11:25]OFD Sender: No OFD packet to send [03:11:30]OFD Sender: No OFD packet to send [03:11:35]OFD Sender: No OFD packet to send [03:11:40]OFD Sender: No OFD packet to send [03:11:45]OFD Sender: No OFD packet to send [03:11:50]OFD Sender: No OFD packet to send [03:11:55]OFD Sender: No OFD packet to send [03:12:00]OFD Sender: No OFD packet to send [03:12:05]OFD Sender: No OFD packet to send [03:12:10]OFD Sender: No OFD packet to send [03:12:15]OFD Sender: No OFD packet to send [03:12:20]OFD Sender: No OFD packet to send [03:12:25]OFD Sender: No OFD packet to send [03:12:30]OFD Sender: No OFD packet to send [03:12:35]OFD Sender: No OFD packet to send [03:12:40]OFD Sender: No OFD packet to send [03:12:45]OFD Sender: No OFD packet to send [03:12:50]OFD Sender: No OFD packet to send [03:12:55]OFD Sender: No OFD packet to send [03:13:00]OFD Sender: No OFD packet to send [03:13:05]OFD Sender: No OFD packet to send [03:13:10]recv_with_timeout no data received [03:13:10]OFD Sender: No OFD packet to send [03:13:15]OFD Sender: No OFD packet to send [03:13:20]OFD Sender: No OFD packet to send [03:13:25]OFD Sender: No OFD packet to send [03:13:28]recv_with_timeout no data received [03:13:30]OFD Sender: No OFD packet to send [03:13:35]OFD Sender: No OFD packet to send [03:13:40]OFD Sender: No OFD packet to send [03:13:45]OFD Sender: No OFD packet to send [03:13:50]OFD Sender: No OFD packet to send [03:13:55]OFD Sender: No OFD packet to send [03:14:00]OFD Sender: No OFD packet to send [03:14:05]OFD Sender: No OFD packet to send [03:14:10]OFD Sender: No OFD packet to send [03:14:15]OFD Sender: No OFD packet to send [03:14:20]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:33]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:26]OFD Sender: No OFD packet to send [03:16:31]OFD Sender: No OFD packet to send [03:16:36]OFD Sender: No OFD packet to send [03:16:41]OFD Sender: No OFD packet to send [03:16:46]OFD Sender: No OFD packet to send [03:16:51]OFD Sender: No OFD packet to send [03:16:56]OFD Sender: No OFD packet to send [03:17:01]OFD Sender: No OFD packet to send [03:17:06]OFD Sender: No OFD packet to send [03:17:11]OFD Sender: No OFD packet to send [03:17:16]OFD Sender: No OFD packet to send [03:17:21]OFD Sender: No OFD packet to send [03:17:26]OFD Sender: No OFD packet to send [03:17:31]OFD Sender: No OFD packet to send [03:17:36]OFD Sender: No OFD packet to send [03:17:41]OFD Sender: No OFD packet to send [03:17:46]OFD Sender: No OFD packet to send [03:17:51]OFD Sender: No OFD packet to send [03:17:56]OFD Sender: No OFD packet to send [03:18:01]OFD Sender: No OFD packet to send [03:18:06]OFD Sender: No OFD packet to send [03:18:11]OFD Sender: No OFD packet to send [03:18:16]OFD Sender: No OFD packet to send [03:18:21]OFD Sender: No OFD packet to send [03:18:25]recv_with_timeout no data received [03:18:26]OFD Sender: No OFD packet to send [03:18:31]OFD Sender: No OFD packet to send [03:18:36]OFD Sender: No OFD packet to send [03:18:41]OFD Sender: No OFD packet to send [03:18:46]OFD Sender: No OFD packet to send [03:18:51]OFD Sender: No OFD packet to send [03:18:56]OFD Sender: No OFD packet to send [03:19:01]OFD Sender: No OFD packet to send [03:19:06]OFD Sender: No OFD packet to send [03:19:11]OFD Sender: No OFD packet to send [03:19:16]OFD Sender: No OFD packet to send [03:19:21]OFD Sender: No OFD packet to send [03:19:26]OFD Sender: No OFD packet to send [03:19:31]OFD Sender: No OFD packet to send [03:19:36]OFD Sender: No OFD packet to send [03:19:37]recv_with_timeout no data received [03:19:41]OFD Sender: No OFD packet to send [03:19:46]OFD Sender: No OFD packet to send [03:19:51]OFD Sender: No OFD packet to send [03:19:56]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:47]recv_with_timeout no data received [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]recv_with_timeout no data received [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:04]recv_with_timeout no data received [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:20]recv_with_timeout no data received [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:53]recv_with_timeout no data received [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:27]OFD Sender: No OFD packet to send [03:26:31]recv_with_timeout no data received [03:26:32]OFD Sender: No OFD packet to send [03:26:37]OFD Sender: No OFD packet to send [03:26:42]OFD Sender: No OFD packet to send [03:26:47]OFD Sender: No OFD packet to send [03:26:52]OFD Sender: No OFD packet to send [03:26:57]OFD Sender: No OFD packet to send [03:27:02]OFD Sender: No OFD packet to send [03:27:07]OFD Sender: No OFD packet to send [03:27:12]OFD Sender: No OFD packet to send [03:27:17]OFD Sender: No OFD packet to send [03:27:22]OFD Sender: No OFD packet to send [03:27:23]recv_with_timeout no data received [03:27:27]OFD Sender: No OFD packet to send [03:27:32]OFD Sender: No OFD packet to send [03:27:33]recv_with_timeout no data received [03:27:37]OFD Sender: No OFD packet to send [03:27:42]OFD Sender: No OFD packet to send [03:27:47]OFD Sender: No OFD packet to send [03:27:50]recv_with_timeout no data received [03:27:52]OFD Sender: No OFD packet to send [03:27:57]OFD Sender: No OFD packet to send [03:28:02]OFD Sender: No OFD packet to send [03:28:07]OFD Sender: No OFD packet to send [03:28:10]recv_with_timeout no data received [03:28:12]OFD Sender: No OFD packet to send [03:28:17]OFD Sender: No OFD packet to send [03:28:22]OFD Sender: No OFD packet to send [03:28:27]OFD Sender: No OFD packet to send [03:28:32]OFD Sender: No OFD packet to send [03:28:37]OFD Sender: No OFD packet to send [03:28:42]OFD Sender: No OFD packet to send [03:28:47]OFD Sender: No OFD packet to send [03:28:52]OFD Sender: No OFD packet to send [03:28:57]OFD Sender: No OFD packet to send [03:29:02]OFD Sender: No OFD packet to send [03:29:07]OFD Sender: No OFD packet to send [03:29:12]OFD Sender: No OFD packet to send [03:29:17]OFD Sender: No OFD packet to send [03:29:22]OFD Sender: No OFD packet to send [03:29:24]recv_with_timeout no data received [03:29:27]OFD Sender: No OFD packet to send [03:29:32]OFD Sender: No OFD packet to send [03:29:37]OFD Sender: No OFD packet to send [03:29:42]OFD Sender: No OFD packet to send [03:29:47]OFD Sender: No OFD packet to send [03:29:48]recv_with_timeout no data received [03:29:52]OFD Sender: No OFD packet to send [03:29:57]OFD Sender: No OFD packet to send [03:29:59]recv_with_timeout no data received [03:30:02]OFD Sender: No OFD packet to send [03:30:07]OFD Sender: No OFD packet to send [03:30:12]OFD Sender: No OFD packet to send [03:30:17]OFD Sender: No OFD packet to send [03:30:22]OFD Sender: No OFD packet to send [03:30:27]OFD Sender: No OFD packet to send [03:30:32]OFD Sender: No OFD packet to send [03:30:33]recv_with_timeout no data received [03:30:37]OFD Sender: No OFD packet to send [03:30:42]OFD Sender: No OFD packet to send [03:30:47]OFD Sender: No OFD packet to send [03:30:52]OFD Sender: No OFD packet to send [03:30:57]OFD Sender: No OFD packet to send [03:31:02]OFD Sender: No OFD packet to send [03:31:07]OFD Sender: No OFD packet to send [03:31:12]OFD Sender: No OFD packet to send [03:31:17]OFD Sender: No OFD packet to send [03:31:22]OFD Sender: No OFD packet to send [03:31:27]OFD Sender: No OFD packet to send [03:31:32]OFD Sender: No OFD packet to send [03:31:37]OFD Sender: No OFD packet to send [03:31:42]OFD Sender: No OFD packet to send [03:31:47]OFD Sender: No OFD packet to send [03:31:52]OFD Sender: No OFD packet to send [03:31:57]OFD Sender: No OFD packet to send [03:32:02]OFD Sender: No OFD packet to send [03:32:07]OFD Sender: No OFD packet to send [03:32:12]OFD Sender: No OFD packet to send [03:32:13]recv_with_timeout no data received [03:32:17]OFD Sender: No OFD packet to send [03:32:22]OFD Sender: No OFD packet to send [03:32:27]OFD Sender: No OFD packet to send [03:32:32]OFD Sender: No OFD packet to send [03:32:37]OFD Sender: No OFD packet to send [03:32:42]OFD Sender: No OFD packet to send [03:32:43]recv_with_timeout no data received [03:32:47]OFD Sender: No OFD packet to send [03:32:52]OFD Sender: No OFD packet to send [03:32:57]OFD Sender: No OFD packet to send [03:33:02]OFD Sender: No OFD packet to send [03:33:07]OFD Sender: No OFD packet to send [03:33:12]OFD Sender: No OFD packet to send [03:33:17]OFD Sender: No OFD packet to send [03:33:22]OFD Sender: No OFD packet to send [03:33:23]recv_with_timeout no data received [03:33:27]OFD Sender: No OFD packet to send [03:33:32]OFD Sender: No OFD packet to send [03:33:37]OFD Sender: No OFD packet to send [03:33:42]OFD Sender: No OFD packet to send [03:33:47]OFD Sender: No OFD packet to send [03:33:52]OFD Sender: No OFD packet to send [03:33:57]OFD Sender: No OFD packet to send [03:34:02]OFD Sender: No OFD packet to send [03:34:07]OFD Sender: No OFD packet to send [03:34:12]OFD Sender: No OFD packet to send [03:34:17]OFD Sender: No OFD packet to send [03:34:18]recv_with_timeout no data received [03:34:22]OFD Sender: No OFD packet to send [03:34:27]OFD Sender: No OFD packet to send [03:34:32]OFD Sender: No OFD packet to send [03:34:37]OFD Sender: No OFD packet to send [03:34:42]OFD Sender: No OFD packet to send [03:34:47]OFD Sender: No OFD packet to send [03:34:52]OFD Sender: No OFD packet to send [03:34:57]OFD Sender: No OFD packet to send [03:35:02]OFD Sender: No OFD packet to send [03:35:07]OFD Sender: No OFD packet to send [03:35:12]recv_with_timeout no data received [03:35:12]OFD Sender: No OFD packet to send [03:35:17]OFD Sender: No OFD packet to send [03:35:22]OFD Sender: No OFD packet to send [03:35:23]recv_with_timeout no data received [03:35:27]OFD Sender: No OFD packet to send [03:35:32]OFD Sender: No OFD packet to send [03:35:37]OFD Sender: No OFD packet to send [03:35:42]OFD Sender: No OFD packet to send [03:35:47]OFD Sender: No OFD packet to send [03:35:49]recv_with_timeout no data received [03:35:52]OFD Sender: No OFD packet to send [03:35:57]OFD Sender: No OFD packet to send [03:36:02]OFD Sender: No OFD packet to send [03:36:07]OFD Sender: No OFD packet to send [03:36:12]OFD Sender: No OFD packet to send [03:36:17]OFD Sender: No OFD packet to send [03:36:23]OFD Sender: No OFD packet to send [03:36:28]OFD Sender: No OFD packet to send [03:36:33]OFD Sender: No OFD packet to send [03:36:38]OFD Sender: No OFD packet to send [03:36:43]OFD Sender: No OFD packet to send [03:36:48]OFD Sender: No OFD packet to send [03:36:52]recv_with_timeout no data received [03:36:53]OFD Sender: No OFD packet to send [03:36:58]OFD Sender: No OFD packet to send [03:37:03]OFD Sender: No OFD packet to send [03:37:08]OFD Sender: No OFD packet to send [03:37:13]OFD Sender: No OFD packet to send [03:37:18]OFD Sender: No OFD packet to send [03:37:23]OFD Sender: No OFD packet to send [03:37:28]OFD Sender: No OFD packet to send [03:37:33]OFD Sender: No OFD packet to send [03:37:38]OFD Sender: No OFD packet to send [03:37:43]OFD Sender: No OFD packet to send [03:37:48]OFD Sender: No OFD packet to send [03:37:53]OFD Sender: No OFD packet to send [03:37:58]OFD Sender: No OFD packet to send [03:38:03]OFD Sender: No OFD packet to send [03:38:08]OFD Sender: No OFD packet to send [03:38:13]OFD Sender: No OFD packet to send [03:38:17]recv_with_timeout no data received [03:38:18]OFD Sender: No OFD packet to send [03:38:23]OFD Sender: No OFD packet to send [03:38:28]OFD Sender: No OFD packet to send [03:38:33]OFD Sender: No OFD packet to send [03:38:38]OFD Sender: No OFD packet to send [03:38:43]OFD Sender: No OFD packet to send [03:38:48]OFD Sender: No OFD packet to send [03:38:53]OFD Sender: No OFD packet to send [03:38:58]OFD Sender: No OFD packet to send [03:39:03]OFD Sender: No OFD packet to send [03:39:08]OFD Sender: No OFD packet to send [03:39:09]recv_with_timeout no data received [03:39:13]OFD Sender: No OFD packet to send [03:39:18]OFD Sender: No OFD packet to send [03:39:23]OFD Sender: No OFD packet to send [03:39:28]OFD Sender: No OFD packet to send [03:39:33]OFD Sender: No OFD packet to send [03:39:38]OFD Sender: No OFD packet to send [03:39:40]recv_with_timeout no data received [03:39:43]OFD Sender: No OFD packet to send [03:39:48]OFD Sender: No OFD packet to send [03:39:53]OFD Sender: No OFD packet to send [03:39:58]OFD Sender: No OFD packet to send [03:40:03]OFD Sender: No OFD packet to send [03:40:08]OFD Sender: No OFD packet to send [03:40:13]OFD Sender: No OFD packet to send [03:40:18]OFD Sender: No OFD packet to send [03:40:23]OFD Sender: No OFD packet to send [03:40:28]OFD Sender: No OFD packet to send [03:40:33]OFD Sender: No OFD packet to send [03:40:38]OFD Sender: No OFD packet to send [03:40:43]OFD Sender: No OFD packet to send [03:40:48]OFD Sender: No OFD packet to send [03:40:53]OFD Sender: No OFD packet to send [03:40:57]recv_with_timeout no data received [03:40:58]OFD Sender: No OFD packet to send [03:41:03]OFD Sender: No OFD packet to send [03:41:08]OFD Sender: No OFD packet to send [03:41:13]OFD Sender: No OFD packet to send [03:41:18]OFD Sender: No OFD packet to send [03:41:18]recv_with_timeout no data received [03:41:23]OFD Sender: No OFD packet to send [03:41:28]OFD Sender: No OFD packet to send [03:41:33]OFD Sender: No OFD packet to send [03:41:38]OFD Sender: No OFD packet to send [03:41:43]OFD Sender: No OFD packet to send [03:41:48]OFD Sender: No OFD packet to send [03:41:53]OFD Sender: No OFD packet to send [03:41:58]OFD Sender: No OFD packet to send [03:42:03]OFD Sender: No OFD packet to send [03:42:08]OFD Sender: No OFD packet to send [03:42:13]OFD Sender: No OFD packet to send [03:42:18]OFD Sender: No OFD packet to send [03:42:23]OFD Sender: No OFD packet to send [03:42:28]OFD Sender: No OFD packet to send [03:42:33]OFD Sender: No OFD packet to send [03:42:37]recv_with_timeout no data received [03:42:38]OFD Sender: No OFD packet to send [03:42:43]OFD Sender: No OFD packet to send [03:42:48]OFD Sender: No OFD packet to send [03:42:53]OFD Sender: No OFD packet to send [03:42:58]OFD Sender: No OFD packet to send [03:43:01]recv_with_timeout no data received [03:43:03]OFD Sender: No OFD packet to send [03:43:08]OFD Sender: No OFD packet to send [03:43:13]OFD Sender: No OFD packet to send [03:43:18]OFD Sender: No OFD packet to send [03:43:23]OFD Sender: No OFD packet to send [03:43:28]OFD Sender: No OFD packet to send [03:43:33]recv_with_timeout no data received [03:43:33]OFD Sender: No OFD packet to send [03:43:38]OFD Sender: No OFD packet to send [03:43:43]OFD Sender: No OFD packet to send [03:43:48]OFD Sender: No OFD packet to send [03:43:53]OFD Sender: No OFD packet to send [03:43:58]OFD Sender: No OFD packet to send [03:44:03]OFD Sender: No OFD packet to send [03:44:07]recv_with_timeout no data received [03:44:08]OFD Sender: No OFD packet to send [03:44:13]OFD Sender: No OFD packet to send [03:44:18]OFD Sender: No OFD packet to send [03:44:23]OFD Sender: No OFD packet to send [03:44:28]OFD Sender: No OFD packet to send [03:44:33]OFD Sender: No OFD packet to send [03:44:38]OFD Sender: No OFD packet to send [03:44:43]OFD Sender: No OFD packet to send [03:44:46]recv_with_timeout no data received [03:44:48]OFD Sender: No OFD packet to send [03:44:53]OFD Sender: No OFD packet to send [03:44:58]OFD Sender: No OFD packet to send [03:45:03]OFD Sender: No OFD packet to send [03:45:08]OFD Sender: No OFD packet to send [03:45:13]OFD Sender: No OFD packet to send [03:45:18]OFD Sender: No OFD packet to send [03:45:23]OFD Sender: No OFD packet to send [03:45:28]OFD Sender: No OFD packet to send [03:45:33]OFD Sender: No OFD packet to send [03:45:38]OFD Sender: No OFD packet to send [03:45:43]OFD Sender: No OFD packet to send [03:45:48]OFD Sender: No OFD packet to send [03:45:53]OFD Sender: No OFD packet to send [03:45:58]OFD Sender: No OFD packet to send [03:46:03]OFD Sender: No OFD packet to send [03:46:07]recv_with_timeout no data received [03:46:08]OFD Sender: No OFD packet to send [03:46:13]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:27]recv_with_timeout no data received [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:57]recv_with_timeout no data received [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:29]recv_with_timeout no data received [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:39]recv_with_timeout no data received [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:43]recv_with_timeout no data received [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:28]recv_with_timeout no data received [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:00]recv_with_timeout no data received [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:57]recv_with_timeout no data received [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]recv_with_timeout no data received [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:20]recv_with_timeout no data received [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:13]recv_with_timeout no data received [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:40]recv_with_timeout no data received [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:41]recv_with_timeout no data received [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:52]recv_with_timeout no data received [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:29]recv_with_timeout no data received [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]recv_with_timeout no data received [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [03:59:59]recv_with_timeout no data received [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:28]recv_with_timeout no data received [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:01:59]recv_with_timeout no data received [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:32]ConnectInit Can't connect to host [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]recv_with_timeout no data received [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:10]recv_with_timeout no data received [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:08:59]recv_with_timeout no data received [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:18]recv_with_timeout no data received [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:41]recv_with_timeout no data received [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:00]recv_with_timeout no data received [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:52]recv_with_timeout no data received [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:46]OFD Sender: No OFD packet to send [04:11:51]OFD Sender: No OFD packet to send [04:11:52]recv_with_timeout no data received [04:11:56]OFD Sender: No OFD packet to send [04:12:01]OFD Sender: No OFD packet to send [04:12:03]recv_with_timeout no data received [04:12:06]OFD Sender: No OFD packet to send [04:12:11]OFD Sender: No OFD packet to send [04:12:16]OFD Sender: No OFD packet to send [04:12:21]OFD Sender: No OFD packet to send [04:12:26]OFD Sender: No OFD packet to send [04:12:31]OFD Sender: No OFD packet to send [04:12:36]OFD Sender: No OFD packet to send [04:12:41]OFD Sender: No OFD packet to send [04:12:46]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:17]recv_with_timeout no data received [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:13:57]recv_with_timeout no data received [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:21]OFD Sender: No OFD packet to send [04:15:26]OFD Sender: No OFD packet to send [04:15:31]OFD Sender: No OFD packet to send [04:15:36]OFD Sender: No OFD packet to send [04:15:38]recv_with_timeout no data received [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:37]recv_with_timeout no data received [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:08]recv_with_timeout no data received [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:47]recv_with_timeout no data received [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]OFD Sender: No OFD packet to send [04:20:17]OFD Sender: No OFD packet to send [04:20:22]recv_with_timeout no data received [04:20:22]OFD Sender: No OFD packet to send [04:20:27]OFD Sender: No OFD packet to send [04:20:32]OFD Sender: No OFD packet to send [04:20:37]OFD Sender: No OFD packet to send [04:20:42]OFD Sender: No OFD packet to send [04:20:47]OFD Sender: No OFD packet to send [04:20:52]OFD Sender: No OFD packet to send [04:20:57]OFD Sender: No OFD packet to send [04:21:02]OFD Sender: No OFD packet to send [04:21:07]OFD Sender: No OFD packet to send [04:21:12]OFD Sender: No OFD packet to send [04:21:17]OFD Sender: No OFD packet to send [04:21:22]OFD Sender: No OFD packet to send [04:21:27]OFD Sender: No OFD packet to send [04:21:32]OFD Sender: No OFD packet to send [04:21:37]OFD Sender: No OFD packet to send [04:21:42]OFD Sender: No OFD packet to send [04:21:47]OFD Sender: No OFD packet to send [04:21:52]OFD Sender: No OFD packet to send [04:21:57]OFD Sender: No OFD packet to send [04:22:02]OFD Sender: No OFD packet to send [04:22:07]OFD Sender: No OFD packet to send [04:22:12]OFD Sender: No OFD packet to send [04:22:17]recv_with_timeout no data received [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:32]OFD Sender: No OFD packet to send [04:22:37]OFD Sender: No OFD packet to send [04:22:38]recv_with_timeout no data received [04:22:42]OFD Sender: No OFD packet to send [04:22:47]OFD Sender: No OFD packet to send [04:22:49]recv_with_timeout no data received [04:22:52]OFD Sender: No OFD packet to send [04:22:57]OFD Sender: No OFD packet to send [04:23:02]OFD Sender: No OFD packet to send [04:23:06]recv_with_timeout no data received [04:23:07]OFD Sender: No OFD packet to send [04:23:12]OFD Sender: No OFD packet to send [04:23:17]OFD Sender: No OFD packet to send [04:23:22]OFD Sender: No OFD packet to send [04:23:27]OFD Sender: No OFD packet to send [04:23:32]OFD Sender: No OFD packet to send [04:23:37]OFD Sender: No OFD packet to send [04:23:42]OFD Sender: No OFD packet to send [04:23:47]OFD Sender: No OFD packet to send [04:23:52]OFD Sender: No OFD packet to send [04:23:57]OFD Sender: No OFD packet to send [04:24:02]OFD Sender: No OFD packet to send [04:24:07]OFD Sender: No OFD packet to send [04:24:12]OFD Sender: No OFD packet to send [04:24:17]OFD Sender: No OFD packet to send [04:24:22]OFD Sender: No OFD packet to send [04:24:27]OFD Sender: No OFD packet to send [04:24:32]OFD Sender: No OFD packet to send [04:24:33]recv_with_timeout no data received [04:24:37]OFD Sender: No OFD packet to send [04:24:42]OFD Sender: No OFD packet to send [04:24:47]OFD Sender: No OFD packet to send [04:24:52]OFD Sender: No OFD packet to send [04:24:57]OFD Sender: No OFD packet to send [04:25:02]OFD Sender: No OFD packet to send [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:41]recv_with_timeout no data received [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:00]recv_with_timeout no data received [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:18]recv_with_timeout no data received [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:36]recv_with_timeout no data received [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:22]recv_with_timeout no data received [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:48]recv_with_timeout no data received [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:29:59]recv_with_timeout no data received [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:24]recv_with_timeout no data received [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:31:59]recv_with_timeout no data received [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:11]recv_with_timeout no data received [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:35]recv_with_timeout no data received [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:55]recv_with_timeout no data received [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:54]OFD Sender: No OFD packet to send [04:35:59]OFD Sender: No OFD packet to send [04:36:04]OFD Sender: No OFD packet to send [04:36:09]OFD Sender: No OFD packet to send [04:36:14]OFD Sender: No OFD packet to send [04:36:19]OFD Sender: No OFD packet to send [04:36:24]OFD Sender: No OFD packet to send [04:36:29]OFD Sender: No OFD packet to send [04:36:34]OFD Sender: No OFD packet to send [04:36:36]accept exits with 9 [04:36:36]New connection [04:36:36]New thread 3067080036 created [04:36:36]Thread 3066936676 joined [04:36:36]Waiting for new connection... [04:36:36] Sock 9.Parse request [04:36:36]Sock 9.Check first char [04:36:36]Sock 9.First char is OK [04:36:36]request: POST /json_proto HTTP/1.0 [04:36:36]Method: POST [04:36:36]URL: /json_proto [04:36:36]Method is POST - this is cgi request [04:36:36]url: /json_proto [04:36:36]query_string will be loaded in cgi processing [04:36:36]execute_cgi json_proto POST (null) [04:36:36]execute_cgi path=json_proto method=POST [04:36:36]POST find Content-Length [04:36:36]Host: 172.17.43.195:8080 [04:36:36]Content-Length: 659 [04:36:36]Content-Type: application/json [04:36:36] [04:36:36]POST finish read [04:36:36]Found Content-Length = 659 [04:36:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:36:36]execute_script... [04:36: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)951926", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:36:36]POST & json_proto [04:36:36]process_json_proto [04:36:36]json parsed OK: [04:36:36]protocol is kg_v1.0 [04:36:36]action value=close_receipt [04:36:36]process_action close_receipt [04:36:36]cmd_close_receipt [04:36:36]MH_GetDate [04:36:36]Write to MH i2c: F0 00 00 DD 01 CD [04:36:36]Write i2c OK [04:36:36]MH_I2C_Read... [04:36:36]Read from MH i2c: F0 [04:36:36]MH_I2C_Read... [04:36:36]Read from MH i2c: F0 09 00 [04:36:36]MH_I2C_Read... [04:36:36]Read from MH i2c: F0 09 00 DD 01 00 D5 14 1F 67 74 2C AD 66 F8 [04:36:36]GetLastDocTimeStamp 1730084631 [04:36:36]current date 1730090197 [04:36:36]FM_GetShiftState [04:36:36]SAM_PROTO_GetShiftState [04:36:36]wFMCommunicate request_size=4 [04:36:36]MH_SAM_APDU [04:36:36]CAPDU: 80 13 01 00 [04:36:36]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [04:36:36]Write i2c OK [04:36:36]MH_I2C_Read... [04:36:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:36]Read from MH i2c: E2 [04:36:36]MH_I2C_Read... [04:36:36]Read from MH i2c: E2 0E 00 [04:36:36]MH_I2C_Read... [04:36:36]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C4 [04:36:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [04:36:36]wFMCommunicate OK [04:36:36]SAM_PROTO_GetShiftState done [04:36:36]FM_GetShiftState done [04:36:36]opened in 1730074113 [04:36:36]opened+sec_in_day 1730160513 [04:36:36]quantity*price = 70041 [04:36:36]sum+1 = 70043 [04:36:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 7 28.10.2024 04:36 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72479 ФПД: 149226761765499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T043638&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72479&fm=149226761765499&tin=02508201610067®Number=0000000000091644&sum=70000 [04:36:38]StoreToDocumentArchive [04:36:38]shift 554 fd 72479 [04:36:38]save to /storage/0554/doc_00072479 [04:36:38]save last doc name /storage/0554/doc_00072479 to /storage/kkm_last_doc_name [04:36:38]save OK [04:36:38]Clear old archive folders... [04:36:38]ProcessDocumentItem done err = 0, tmpTLVsize=244 [04:36:38]tlvbuf is 00B51B70 [04:36:38]SAM_PROTO_ClearQueue [04:36:38]wFMCommunicate request_size=4 [04:36:38]MH_SAM_APDU [04:36:38]CAPDU: 80 09 00 00 [04:36:38]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:36:38]Read from MH i2c: E2 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [04:36:38]RAPDU: 90 00 [04:36:38]wFMCommunicate OK [04:36:38]SAM_PROTO_ClearQueue done [04:36:38]KKMCreateOFDPacket [04:36:38]OFDProtocolAddRootSTLVToBuf [04:36:38]FM_MakeSignedData [04:36:38]FM_MakeSignedData [04:36:38]SAM_PROTO_SignData [04:36:38]wFMCommunicate request_size=4 [04:36:38]MH_SAM_APDU [04:36:38]CAPDU: 80 0D 01 02 [04:36:38]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:36:38]Read from MH i2c: E2 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [04:36:38]RAPDU: 90 00 [04:36:38]wFMCommunicate OK [04:36:38]wFMCommunicate request_size=253 [04:36:38]MH_SAM_APDU [04:36:38]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D6 14 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1B 01 00 35 04 06 00 87 B8 90 20 42 7B [04:36:38]Write to MH i2c: E2 00 01 ED 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D6 14 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1B 01 00 35 04 06 00 87 B8 90 20 42 7B 00 00 A6 [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:36:38]Read from MH i2c: E2 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [04:36:38]RAPDU: 90 00 [04:36:38]wFMCommunicate OK [04:36:38]wFMCommunicate request_size=4 [04:36:38]MH_SAM_APDU [04:36:38]CAPDU: 80 0D 03 02 [04:36:38]Write to MH i2c: E2 08 00 EE 01 80 0D 03 02 00 00 00 00 6A [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:36:38]Read from MH i2c: E2 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 0B 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 0B 00 EE 01 00 55 1F D9 B7 89 81 3A D8 90 00 8B [04:36:38]RAPDU: 55 1F D9 B7 89 81 3A D8 90 00 [04:36:38]wFMCommunicate OK [04:36:38]SAM_PROTO_SignData done [04:36:38]FM_MakeSignedData done [04:36:38]CreateOFDProtocolMessage [04:36:38]wFMCommunicate request_size=4 [04:36:38]MH_SAM_APDU [04:36:38]CAPDU: 80 11 00 00 [04:36:38]Write to MH i2c: E2 08 00 EF 01 80 11 00 00 00 00 00 00 6A [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:38]Read from MH i2c: E2 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 17 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: E2 17 00 EF 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BE [04:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:36:38]wFMCommunicate OK [04:36:38]CreateOFDProtocolMessage done [04:36:38]OFDSenderStorePacket 72479 [04:36:38]StoreOFDPacket docnum=72479 [04:36:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 50 70 00 01 1E C6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D6 14 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1B 01 00 35 04 06 00 87 B8 90 20 42 7B 55 1F D9 B7 89 81 3A D8 [04:36:38]CheckFolder [04:36:38]dirname=/storage/ofd_packets [04:36:38]CheckFolder done [04:36:38]ProducePacketName [04:36:38]name=ofd_packets/00072479 [04:36:38]NVStorageSaveData ofd_packets/00072479 [04:36:38]File name is /storage/ofd_packets/00072479 [04:36:38]Write 294 bytes [04:36:38]NVStorageSaveData done [04:36:38]OFDSenderStorePacket done [04:36:38]KKMCreateOFDPacket done [04:36:38]NVStorageSaveData kkm_last_timestamp [04:36:38]File name is /storage/kkm_last_timestamp [04:36:38]Write 4 bytes [04:36:38]NVStorageSaveData done [04:36:38]ExternCall_PrintAddStr [04:36:38]wPrintStart [04:36:38]Write to MH i2c: 01 00 00 F0 01 F1 [04:36:38]Write i2c OK [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: 01 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: 01 07 00 [04:36:38]MH_I2C_Read... [04:36:38]Read from MH i2c: 01 07 00 F0 01 00 00 00 00 00 FF 0F 06 [04:36:38]RasterBufferAndPrint [04:36:38]line Счет N : (1)951926 [04:36:38]line ИНН: 02508201610067 [04:36:38]line Контрольно-Кассовый Чек [04:36:38]line ПРОДАЖА [04:36:38]line ТРК (МРК, ГНК) : 51 [04:36:38]line Товар: 50.50.0 [04:36:38]line Super 92 [04:36:38]line 10.240 * 68.40 [04:36:38]line = 700.42 [04:36:38]line НДС 12% НСП 1% [04:36:38]line > о реализуемом товаре [04:36:38]line ОКРУГЛЕНИЕ: -0.42 [04:36:38]line ИТОГО: 700.00 [04:36:38]line Внесено: 700.00 [04:36:38]line СДАЧА: 0.00 [04:36:38]line НСП 1% : 6.20 [04:36:38]line НДС 12% : 74.38 [04:36:38]line Наличными: 700.00 [04:36:38]line Безнал.: 0.00 [04:36:38]line Место: АЗС № 113 "Партнер Нефть" [04:36:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:36:38]line СНО: Общий режим [04:36:38]line Чек 7 28.10.2024 04:36 [04:36:38]line Смена: 554 ФФД: 1.0 [04:36:38]line ЗНМ: 0300000087 [04:36:38]line РНМ: 0000000000091644 [04:36:38]line Версия ККМ: 001 [04:36:38]line ФМ: 0000000000874662 [04:36:38]line ФД: 72479 [04:36:38]line ФПД: 149226761765499 [04:36:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T043638&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72479&fm=149226761765499&tin=02508201610067®Number=0000000000091644&sum=70000 [04:36:38]OFD Sender: Processing packet 72479 [packets to send 272, broken 271] [04:36:38]ProducePacketName [04:36:38]name=ofd_packets/00072479 [04:36:38]OFD Sender: To server: pG, [04:36:38]CommunicateWithHost lk.salyk.kg:30040 [04:36:38]ConnectInit lk.salyk.kg [04:36:38]written 0, free lines is 4095 [04:36:39]Write to MH i2c: 01 00 00 1B 02 1D [04:36:39]Write i2c OK [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: 01 [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: 01 07 00 [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: 01 07 00 1B 02 00 00 00 00 00 DA 0C 0A [04:36:39]RasterBufferAndPrint [04:36:39]line [04:36:39]line [04:36:39]line [04:36:39]line [04:36:39]line [04:36:39]written 0, free lines is 3297 [04:36:39]MH_Cut [04:36:39]Write to MH i2c: D1 01 00 22 02 01 F6 [04:36:39]Write i2c OK [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: D1 [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: D1 01 00 [04:36:39]MH_I2C_Read... [04:36:39]Read from MH i2c: D1 01 00 22 02 00 F5 [04:36:39]Write to MH i2c: 01 00 00 23 02 25 [04:36:39]Write i2c OK [04:36:39]MH_I2C_Read... [04:36:40]*** Cut start [04:36:40]*** Partial cut [04:36:40]*** CUTSNS_PIN = 1 [04:36:40]*** CUTSNS_PIN = 0 [04:36:40]*** Brake cut motor [04:36:40]Read from MH i2c: 01 [04:36:40]MH_I2C_Read... [04:36:40]*** Stop cut motor [04:36:40]*** Cut end [04:36:40]Read from MH i2c: 01 07 00 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: 01 07 00 23 02 00 00 00 00 00 FF 0F 3A [04:36:40]process_action close_receipt done [04:36:40]requested_data is exist [04:36:40]produce_requested_data [04:36:40]requested_item fm.sn is exist - process it [04:36:40]wFMCommunicate request_size=4 [04:36:40]MH_SAM_APDU [04:36:40]CAPDU: 80 11 00 00 [04:36:40]Write to MH i2c: E2 08 00 24 02 80 11 00 00 00 00 00 00 A0 [04:36:40]Write i2c OK [04:36:40]MH_I2C_Read... [04:36:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:36:40]Read from MH i2c: E2 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 17 00 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 17 00 24 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F4 [04:36:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:36:40]wFMCommunicate OK [04:36:40]requested_item fd.num is exist - process it [04:36:40]SAM_PROTO_GetFieldsCounters [04:36:40]wFMCommunicate request_size=4 [04:36:40]MH_SAM_APDU [04:36:40]CAPDU: 80 13 00 00 [04:36:40]Write to MH i2c: E2 08 00 25 02 80 13 00 00 00 00 00 00 A3 [04:36:40]Write i2c OK [04:36:40]MH_I2C_Read... [04:36:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:36:40]Read from MH i2c: E2 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 62 00 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 62 00 25 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1F 1B 01 00 0E 04 04 00 2A 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 40 [04:36: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 1F 1B 01 00 0E 04 04 00 2A 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 [04:36:40]wFMCommunicate OK [04:36:40]SAM_PROTO_GetFieldsCounters done [04:36:40]requested_item shift.num is exist - process it [04:36:40]requested_item shift.opened is exist - process it [04:36:40]req_shift_opened [04:36:40]FM_GetShiftState [04:36:40]SAM_PROTO_GetShiftState [04:36:40]wFMCommunicate request_size=4 [04:36:40]MH_SAM_APDU [04:36:40]CAPDU: 80 13 01 00 [04:36:40]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [04:36:40]Write i2c OK [04:36:40]MH_I2C_Read... [04:36:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:36:40]Read from MH i2c: E2 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 0E 00 [04:36:40]MH_I2C_Read... [04:36:40]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0D [04:36:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [04:36:40]wFMCommunicate OK [04:36:40]SAM_PROTO_GetShiftState done [04:36:40]FM_GetShiftState done [04:36:40]req_shift_opened done [04:36:40]requested_item shift.open_date is exist - process it [04:36:40]req_shift_open_date [04:36:40]req_shift_open_date done [04:36:40]produce_requested_data done [04:36:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72479,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [04:36:40]process_action_free close_receipt [04:36:40]json_value_free [04:36:40]json_value_free done [04:36:40]process_json_proto returns [04:36:40]Send response to host [04:36:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72479,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [04:36:40]free response buf [04:36:40]execute_script done [04:36:40]execute_script returns [04:36:40]free content buf [04:36:40]Sock 9.Close socket [04:36:40]Sock 9.Thread stoped [04:36:43]ConnectInit Can't take IP for lk.salyk.kg [04:36:43]CommunicateWithHost connect error [04:36:43]CommunicateWithHost err = -1 [04:36:43]OFD Sender: Server communicate error [04:36:48]OFD Sender: Processing packet 72479 [packets to send 272, broken 271] [04:36:48]ProducePacketName [04:36:48]name=ofd_packets/00072479 [04:36:48]OFD Sender: To server: pG, [04:36:48]CommunicateWithHost lk.salyk.kg:30040 [04:36:48]ConnectInit lk.salyk.kg [04:36:49]Connected sock=7 [04:36:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 50 70 00 01 1E C6 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D6 14 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1B 01 00 35 04 06 00 87 B8 90 20 42 7B 55 1F D9 B7 89 81 3A D8 [04:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 71 D2 47 00 9A FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 1F 1B 01 00 F4 03 04 00 A0 BF 1E 67 B6 04 01 00 00 C2 CC F9 49 1D 09 A7 4B [04:36:50]CommunicateWithHost err = 0 [04:36:50]CheckOFDResponse [04:36:50]1017 (14) - 77093643461234 [04:36:50]1041 (16) - 0000000000874662 [04:36:50]1040 (4) - 72479 [04:36:50]1012 (4) - 27.10.2024 22:33 [04:36:50]1206 (1) - 0 [04:36:50]OFD Sender: Remove packet 72479 [04:36:50]ProducePacketName [04:36:50]name=ofd_packets/00072479 [04:36:50]NVStorageDeleteData [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:37:59]recv_with_timeout no data received [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:22]recv_with_timeout no data received [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:33]recv_with_timeout no data received [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:18]recv_with_timeout no data received [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:02]recv_with_timeout no data received [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:25]recv_with_timeout no data received [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:27]recv_with_timeout no data received [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:38]recv_with_timeout no data received [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:03]recv_with_timeout no data received [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:20]recv_with_timeout no data received [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:38]recv_with_timeout no data received [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:06]OFD Sender: No OFD packet to send [04:45:11]OFD Sender: No OFD packet to send [04:45:16]OFD Sender: No OFD packet to send [04:45:21]OFD Sender: No OFD packet to send [04:45:26]OFD Sender: No OFD packet to send [04:45:31]OFD Sender: No OFD packet to send [04:45:36]OFD Sender: No OFD packet to send [04:45:41]OFD Sender: No OFD packet to send [04:45:46]OFD Sender: No OFD packet to send [04:45:51]OFD Sender: No OFD packet to send [04:45:56]OFD Sender: No OFD packet to send [04:46:01]OFD Sender: No OFD packet to send [04:46:06]OFD Sender: No OFD packet to send [04:46:11]OFD Sender: No OFD packet to send [04:46:16]OFD Sender: No OFD packet to send [04:46:21]OFD Sender: No OFD packet to send [04:46:26]OFD Sender: No OFD packet to send [04:46:31]OFD Sender: No OFD packet to send [04:46:36]OFD Sender: No OFD packet to send [04:46:41]OFD Sender: No OFD packet to send [04:46:46]OFD Sender: No OFD packet to send [04:46:51]OFD Sender: No OFD packet to send [04:46:56]OFD Sender: No OFD packet to send [04:46:58]recv_with_timeout no data received [04:47:01]OFD Sender: No OFD packet to send [04:47:06]OFD Sender: No OFD packet to send [04:47:09]recv_with_timeout no data received [04:47:11]OFD Sender: No OFD packet to send [04:47:16]OFD Sender: No OFD packet to send [04:47:21]OFD Sender: No OFD packet to send [04:47:26]OFD Sender: No OFD packet to send [04:47:31]OFD Sender: No OFD packet to send [04:47:33]recv_with_timeout no data received [04:47:36]OFD Sender: No OFD packet to send [04:47:41]OFD Sender: No OFD packet to send [04:47:46]OFD Sender: No OFD packet to send [04:47:51]OFD Sender: No OFD packet to send [04:47:56]OFD Sender: No OFD packet to send [04:48:01]OFD Sender: No OFD packet to send [04:48:06]OFD Sender: No OFD packet to send [04:48:11]OFD Sender: No OFD packet to send [04:48:16]OFD Sender: No OFD packet to send [04:48:21]OFD Sender: No OFD packet to send [04:48:26]OFD Sender: No OFD packet to send [04:48:31]OFD Sender: No OFD packet to send [04:48:36]OFD Sender: No OFD packet to send [04:48:41]OFD Sender: No OFD packet to send [04:48:46]OFD Sender: No OFD packet to send [04:48:51]OFD Sender: No OFD packet to send [04:48:56]OFD Sender: No OFD packet to send [04:49:01]OFD Sender: No OFD packet to send [04:49:06]OFD Sender: No OFD packet to send [04:49:11]OFD Sender: No OFD packet to send [04:49:16]OFD Sender: No OFD packet to send [04:49:21]recv_with_timeout no data received [04:49:21]OFD Sender: No OFD packet to send [04:49:26]OFD Sender: No OFD packet to send [04:49:31]OFD Sender: No OFD packet to send [04:49:32]recv_with_timeout no data received [04:49:36]OFD Sender: No OFD packet to send [04:49:41]OFD Sender: No OFD packet to send [04:49:46]OFD Sender: No OFD packet to send [04:49:51]OFD Sender: No OFD packet to send [04:49:56]OFD Sender: No OFD packet to send [04:50:01]OFD Sender: No OFD packet to send [04:50:06]OFD Sender: No OFD packet to send [04:50:11]OFD Sender: No OFD packet to send [04:50:16]recv_with_timeout no data received [04:50:16]OFD Sender: No OFD packet to send [04:50:21]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:31]accept exits with 10 [04:50:31]New connection [04:50:31]New thread 3066936676 created [04:50:31]Thread 3067080036 joined [04:50:31]Waiting for new connection... [04:50:31] Sock 10.Parse request [04:50:31]Sock 10.Check first char [04:50:31]Sock 10.First char is OK [04:50:31]request: POST /json_proto HTTP/1.0 [04:50:31]Method: POST [04:50:31]URL: /json_proto [04:50:31]Method is POST - this is cgi request [04:50:31]url: /json_proto [04:50:31]query_string will be loaded in cgi processing [04:50:31]execute_cgi json_proto POST (null) [04:50:31]execute_cgi path=json_proto method=POST [04:50:31]POST find Content-Length [04:50:31]Host: 172.17.43.195:8080 [04:50:31]Content-Length: 792 [04:50:31]Content-Type: application/json [04:50:31] [04:50:31]POST finish read [04:50:31]Found Content-Length = 792 [04:50:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:31]execute_script... [04:50: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)951927", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:50:31]POST & json_proto [04:50:31]process_json_proto [04:50:31]json parsed OK: [04:50:31]protocol is kg_v1.0 [04:50:31]action value=close_receipt [04:50:31]process_action close_receipt [04:50:31]cmd_close_receipt [04:50:31]MH_GetDate [04:50:31]Write to MH i2c: F0 00 00 27 02 18 [04:50:31]Write i2c OK [04:50:31]MH_I2C_Read... [04:50:31]Read from MH i2c: F0 [04:50:31]MH_I2C_Read... [04:50:31]Read from MH i2c: F0 09 00 [04:50:31]MH_I2C_Read... [04:50:31]Read from MH i2c: F0 09 00 27 02 00 18 18 1F 67 74 2C AD 66 8A [04:50:31]GetLastDocTimeStamp 1730090198 [04:50:31]current date 1730091032 [04:50:31]FM_GetShiftState [04:50:31]SAM_PROTO_GetShiftState [04:50:31]wFMCommunicate request_size=4 [04:50:31]MH_SAM_APDU [04:50:31]CAPDU: 80 13 01 00 [04:50:31]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [04:50:31]Write i2c OK [04:50:31]MH_I2C_Read... [04:50:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:31]Read from MH i2c: E2 [04:50:31]MH_I2C_Read... [04:50:31]Read from MH i2c: E2 0E 00 [04:50:31]MH_I2C_Read... [04:50:31]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0F [04:50:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [04:50:31]wFMCommunicate OK [04:50:31]SAM_PROTO_GetShiftState done [04:50:31]FM_GetShiftState done [04:50:31]opened in 1730074113 [04:50:31]opened+sec_in_day 1730160513 [04:50:31]quantity*price = 0 [04:50:31]sum+1 = 1 [04:50:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 8 28.10.2024 04:50 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72480 ФПД: 47490472506400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T045032&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72480&fm=47490472506400&tin=02508201610067®Number=0000000000091644&sum=0 [04:50:32]StoreToDocumentArchive [04:50:32]shift 554 fd 72480 [04:50:32]save to /storage/0554/doc_00072480 [04:50:32]save last doc name /storage/0554/doc_00072480 to /storage/kkm_last_doc_name [04:50:32]save OK [04:50:32]Clear old archive folders... [04:50:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:50:32]tlvbuf is 00B53740 [04:50:32]SAM_PROTO_ClearQueue [04:50:32]wFMCommunicate request_size=4 [04:50:32]MH_SAM_APDU [04:50:32]CAPDU: 80 09 00 00 [04:50:32]Write to MH i2c: E2 08 00 35 02 80 09 00 00 00 00 00 00 A9 [04:50:32]Write i2c OK [04:50:32]MH_I2C_Read... [04:50:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [04:50:33]RAPDU: 90 00 [04:50:33]wFMCommunicate OK [04:50:33]SAM_PROTO_ClearQueue done [04:50:33]KKMCreateOFDPacket [04:50:33]OFDProtocolAddRootSTLVToBuf [04:50:33]FM_MakeSignedData [04:50:33]FM_MakeSignedData [04:50:33]SAM_PROTO_SignData [04:50:33]wFMCommunicate request_size=4 [04:50:33]MH_SAM_APDU [04:50:33]CAPDU: 80 0D 01 02 [04:50:33]Write to MH i2c: E2 08 00 36 02 80 0D 01 02 00 00 00 00 B1 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [04:50:33]RAPDU: 90 00 [04:50:33]wFMCommunicate OK [04:50:33]wFMCommunicate request_size=255 [04:50:33]MH_SAM_APDU [04:50:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 18 18 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1B 01 00 35 04 06 00 2B [04:50:33]Write to MH i2c: E2 02 01 37 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 18 18 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1B 01 00 35 04 06 00 2B 00 00 4C [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [04:50:33]RAPDU: 90 00 [04:50:33]wFMCommunicate OK [04:50:33]wFMCommunicate request_size=10 [04:50:33]MH_SAM_APDU [04:50:33]CAPDU: 80 0D 02 02 05 31 3C BE 74 20 [04:50:33]Write to MH i2c: E2 0D 00 38 02 80 0D 02 02 05 00 31 3C BE 74 20 00 00 7D [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [04:50:33]RAPDU: 90 00 [04:50:33]wFMCommunicate OK [04:50:33]wFMCommunicate request_size=4 [04:50:33]MH_SAM_APDU [04:50:33]CAPDU: 80 0D 03 02 [04:50:33]Write to MH i2c: E2 08 00 39 02 80 0D 03 02 00 00 00 00 B6 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 0B 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 0B 00 39 02 00 7C 65 EC 7F DE F1 64 EA 90 00 20 [04:50:33]RAPDU: 7C 65 EC 7F DE F1 64 EA 90 00 [04:50:33]wFMCommunicate OK [04:50:33]SAM_PROTO_SignData done [04:50:33]FM_MakeSignedData done [04:50:33]CreateOFDProtocolMessage [04:50:33]wFMCommunicate request_size=4 [04:50:33]MH_SAM_APDU [04:50:33]CAPDU: 80 11 00 00 [04:50:33]Write to MH i2c: E2 08 00 3A 02 80 11 00 00 00 00 00 00 B6 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:33]Read from MH i2c: E2 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 17 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: E2 17 00 3A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0A [04:50:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:50:33]wFMCommunicate OK [04:50:33]CreateOFDProtocolMessage done [04:50:33]OFDSenderStorePacket 72480 [04:50:33]StoreOFDPacket docnum=72480 [04:50:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5A 96 07 01 63 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 18 18 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1B 01 00 35 04 06 00 2B 31 3C BE 74 20 7C 65 EC 7F DE F1 64 EA [04:50:33]CheckFolder [04:50:33]dirname=/storage/ofd_packets [04:50:33]CheckFolder done [04:50:33]ProducePacketName [04:50:33]name=ofd_packets/00072480 [04:50:33]NVStorageSaveData ofd_packets/00072480 [04:50:33]File name is /storage/ofd_packets/00072480 [04:50:33]Write 301 bytes [04:50:33]NVStorageSaveData done [04:50:33]OFDSenderStorePacket done [04:50:33]KKMCreateOFDPacket done [04:50:33]NVStorageSaveData kkm_last_timestamp [04:50:33]File name is /storage/kkm_last_timestamp [04:50:33]Write 4 bytes [04:50:33]NVStorageSaveData done [04:50:33]OFD Sender: Processing packet 72480 [packets to send 272, broken 271] [04:50:33]ProducePacketName [04:50:33]name=ofd_packets/00072480 [04:50:33]OFD Sender: To server: pG, [04:50:33]CommunicateWithHost lk.salyk.kg:30040 [04:50:33]ConnectInit lk.salyk.kg [04:50:33]ExternCall_PrintAddStr [04:50:33]wPrintStart [04:50:33]Write to MH i2c: 01 00 00 3B 02 3D [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 3B 02 00 00 00 00 00 FF 0F 52 [04:50:33]RasterBufferAndPrint [04:50:33]line Счет N : (1)951927 [04:50:33]line ИНН: 02508201610067 [04:50:33]line Контрольно-Кассовый Чек [04:50:33]line ПРОДАЖА [04:50:33]line ТРК (МРК, ГНК) : 53 [04:50:33]line Товар: 2710124130 [04:50:33]line Аи-92-К-5 [04:50:33]line 29.900 * 0.00 [04:50:33]line = 0.00 [04:50:33]line НДС 12% НСП 1% [04:50:33]line > о реализуемом товаре [04:50:33]line ИТОГО: 0.00 [04:50:33]line НСП 1% : 0.00 [04:50:33]line НДС 12% : 0.00 [04:50:33]line Наличными: 0.00 [04:50:33]line Безнал.: 0.00 [04:50:33]line Место: АЗС № 113 "Партнер Нефть" [04:50:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [04:50:33]line СНО: Общий режим [04:50:33]line Чек 8 28.10.2024 04:50 [04:50:33]line Смена: 554 ФФД: 1.0 [04:50:33]line ЗНМ: 0300000087 [04:50:33]line РНМ: 0000000000091644 [04:50:33]line Версия ККМ: 001 [04:50:33]line Талоны: Топливная Карта [04:50:33]line 03047 [04:50:33]line ФМ: 0000000000874662 [04:50:33]line ФД: 72480 [04:50:33]line ФПД: 47490472506400 [04:50:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T045032&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72480&fm=47490472506400&tin=02508201610067®Number=0000000000091644&sum=0 [04:50:33]written 0, free lines is 4095 [04:50:33]Write to MH i2c: 01 00 00 65 02 67 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: 01 07 00 65 02 00 00 00 00 00 E6 0C 60 [04:50:33]RasterBufferAndPrint [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]line [04:50:33]written 0, free lines is 3309 [04:50:33]MH_Cut [04:50:33]Write to MH i2c: D1 01 00 6C 02 01 40 [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 01 00 [04:50:33]MH_I2C_Read... [04:50:33]Read from MH i2c: D1 01 00 6C 02 00 3F [04:50:33]Write to MH i2c: 01 00 00 6D 02 6F [04:50:33]Write i2c OK [04:50:33]MH_I2C_Read... [04:50:34]Connected sock=11 [04:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5A 96 07 01 63 BD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 18 18 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1B 01 00 35 04 06 00 2B 31 3C BE 74 20 7C 65 EC 7F DE F1 64 EA [04:50:34]*** Cut start [04:50:34]*** Partial cut [04:50:34]*** CUTSNS_PIN = 1 [04:50:34]*** CUTSNS_PIN = 0 [04:50:34]*** Brake cut motor [04:50:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C0 88 47 00 C9 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 20 1B 01 00 F4 03 04 00 D8 C2 1E 67 B6 04 01 00 00 A2 BC 34 68 7C F0 B3 77 [04:50:35]CommunicateWithHost err = 0 [04:50:35]CheckOFDResponse [04:50:35]1017 (14) - 77093643461234 [04:50:35]1041 (16) - 0000000000874662 [04:50:35]1040 (4) - 72480 [04:50:35]1012 (4) - 27.10.2024 22:46 [04:50:35]1206 (1) - 0 [04:50:35]OFD Sender: Remove packet 72480 [04:50:35]ProducePacketName [04:50:35]name=ofd_packets/00072480 [04:50:35]NVStorageDeleteData [04:50:35]Read from MH i2c: 01 [04:50:35]MH_I2C_Read... [04:50:35]*** Stop cut motor [04:50:35]*** Cut end [04:50:35]Read from MH i2c: 01 07 00 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: 01 07 00 6D 02 00 00 00 00 00 FF 0F 84 [04:50:35]process_action close_receipt done [04:50:35]requested_data is exist [04:50:35]produce_requested_data [04:50:35]requested_item fm.sn is exist - process it [04:50:35]wFMCommunicate request_size=4 [04:50:35]MH_SAM_APDU [04:50:35]CAPDU: 80 11 00 00 [04:50:35]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [04:50:35]Write i2c OK [04:50:35]MH_I2C_Read... [04:50:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:50:35]Read from MH i2c: E2 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 17 00 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3E [04:50:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [04:50:35]wFMCommunicate OK [04:50:35]requested_item fd.num is exist - process it [04:50:35]SAM_PROTO_GetFieldsCounters [04:50:35]wFMCommunicate request_size=4 [04:50:35]MH_SAM_APDU [04:50:35]CAPDU: 80 13 00 00 [04:50:35]Write to MH i2c: E2 08 00 6F 02 80 13 00 00 00 00 00 00 ED [04:50:35]Write i2c OK [04:50:35]MH_I2C_Read... [04:50:35]OFD Sender: No OFD packet to send [04:50:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:50:35]Read from MH i2c: E2 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 62 00 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 62 00 6F 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 20 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [04:50:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 20 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:50:35]wFMCommunicate OK [04:50:35]SAM_PROTO_GetFieldsCounters done [04:50:35]requested_item shift.num is exist - process it [04:50:35]requested_item shift.opened is exist - process it [04:50:35]req_shift_opened [04:50:35]FM_GetShiftState [04:50:35]SAM_PROTO_GetShiftState [04:50:35]wFMCommunicate request_size=4 [04:50:35]MH_SAM_APDU [04:50:35]CAPDU: 80 13 01 00 [04:50:35]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [04:50:35]Write i2c OK [04:50:35]MH_I2C_Read... [04:50:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:50:35]Read from MH i2c: E2 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 0E 00 [04:50:35]MH_I2C_Read... [04:50:35]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 57 [04:50:35]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [04:50:35]wFMCommunicate OK [04:50:35]SAM_PROTO_GetShiftState done [04:50:35]FM_GetShiftState done [04:50:35]req_shift_opened done [04:50:35]requested_item shift.open_date is exist - process it [04:50:35]req_shift_open_date [04:50:35]req_shift_open_date done [04:50:35]produce_requested_data done [04:50:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72480,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [04:50:35]process_action_free close_receipt [04:50:35]json_value_free [04:50:35]json_value_free done [04:50:35]process_json_proto returns [04:50:35]Send response to host [04:50:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72480,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [04:50:35]free response buf [04:50:35]execute_script done [04:50:35]execute_script returns [04:50:35]free content buf [04:50:35]Sock 10.Close socket [04:50:35]Sock 10.Thread stoped [04:50:40]OFD Sender: No OFD packet to send [04:50:44]recv_with_timeout no data received [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:54]recv_with_timeout no data received [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:41]recv_with_timeout no data received [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]recv_with_timeout no data received [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:54:59]recv_with_timeout no data received [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:22]recv_with_timeout no data received [04:55:25]OFD Sender: No OFD packet to send [04:55:31]OFD Sender: No OFD packet to send [04:55:36]OFD Sender: No OFD packet to send [04:55:41]OFD Sender: No OFD packet to send [04:55:46]OFD Sender: No OFD packet to send [04:55:51]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:26]recv_with_timeout no data received [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:46]recv_with_timeout no data received [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:03]recv_with_timeout no data received [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:34]recv_with_timeout no data received [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]recv_with_timeout no data received [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:36]recv_with_timeout no data received [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:48]recv_with_timeout no data received [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:13]recv_with_timeout no data received [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:51]recv_with_timeout no data received [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:09]accept exits with 9 [05:02:09]New connection [05:02:09]New thread 3067080036 created [05:02:09]Thread 3066936676 joined [05:02:09]Waiting for new connection... [05:02:09] Sock 9.Parse request [05:02:09]Sock 9.Check first char [05:02:09]Sock 9.First char is OK [05:02:09]request: POST /json_proto HTTP/1.0 [05:02:09]Method: POST [05:02:09]URL: /json_proto [05:02:09]Method is POST - this is cgi request [05:02:09]url: /json_proto [05:02:09]query_string will be loaded in cgi processing [05:02:09]execute_cgi json_proto POST (null) [05:02:09]execute_cgi path=json_proto method=POST [05:02:09]POST find Content-Length [05:02:09]Host: 172.17.43.195:8080 [05:02:09]Content-Length: 792 [05:02:09]Content-Type: application/json [05:02:09] [05:02:09]POST finish read [05:02:09]Found Content-Length = 792 [05:02:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:02:09]execute_script... [05:02: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)951928", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:02:09]POST & json_proto [05:02:09]process_json_proto [05:02:09]json parsed OK: [05:02:09]protocol is kg_v1.0 [05:02:09]action value=close_receipt [05:02:09]process_action close_receipt [05:02:09]cmd_close_receipt [05:02:09]MH_GetDate [05:02:09]Write to MH i2c: F0 00 00 71 02 62 [05:02:09]Write i2c OK [05:02:09]MH_I2C_Read... [05:02:09]Read from MH i2c: F0 [05:02:09]MH_I2C_Read... [05:02:09]Read from MH i2c: F0 09 00 [05:02:09]MH_I2C_Read... [05:02:09]Read from MH i2c: F0 09 00 71 02 00 D2 1A 1F 67 74 2C AD 66 90 [05:02:09]GetLastDocTimeStamp 1730091032 [05:02:09]current date 1730091730 [05:02:09]FM_GetShiftState [05:02:09]SAM_PROTO_GetShiftState [05:02:09]wFMCommunicate request_size=4 [05:02:09]MH_SAM_APDU [05:02:09]CAPDU: 80 13 01 00 [05:02:09]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [05:02:09]Write i2c OK [05:02:09]MH_I2C_Read... [05:02:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:09]Read from MH i2c: E2 [05:02:09]MH_I2C_Read... [05:02:09]Read from MH i2c: E2 0E 00 [05:02:09]MH_I2C_Read... [05:02:09]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 59 [05:02:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:02:09]wFMCommunicate OK [05:02:09]SAM_PROTO_GetShiftState done [05:02:09]FM_GetShiftState done [05:02:09]opened in 1730074113 [05:02:09]opened+sec_in_day 1730160513 [05:02:09]quantity*price = 0 [05:02:09]sum+1 = 1 [05:02:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 9 28.10.2024 05:02 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72481 ФПД: 95489571519627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T050210&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72481&fm=95489571519627&tin=02508201610067®Number=0000000000091644&sum=0 [05:02:10]StoreToDocumentArchive [05:02:10]shift 554 fd 72481 [05:02:10]save to /storage/0554/doc_00072481 [05:02:10]save last doc name /storage/0554/doc_00072481 to /storage/kkm_last_doc_name [05:02:10]save OK [05:02:10]Clear old archive folders... [05:02:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:02:10]tlvbuf is 00B659C0 [05:02:10]SAM_PROTO_ClearQueue [05:02:10]wFMCommunicate request_size=4 [05:02:10]MH_SAM_APDU [05:02:10]CAPDU: 80 09 00 00 [05:02:10]Write to MH i2c: E2 08 00 7F 02 80 09 00 00 00 00 00 00 F3 [05:02:10]Write i2c OK [05:02:10]MH_I2C_Read... [05:02:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:02:10]Read from MH i2c: E2 [05:02:10]MH_I2C_Read... [05:02:10]Read from MH i2c: E2 03 00 [05:02:10]MH_I2C_Read... [05:02:10]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [05:02:10]RAPDU: 90 00 [05:02:10]wFMCommunicate OK [05:02:10]SAM_PROTO_ClearQueue done [05:02:10]KKMCreateOFDPacket [05:02:10]OFDProtocolAddRootSTLVToBuf [05:02:10]FM_MakeSignedData [05:02:10]FM_MakeSignedData [05:02:10]SAM_PROTO_SignData [05:02:10]wFMCommunicate request_size=4 [05:02:10]MH_SAM_APDU [05:02:10]CAPDU: 80 0D 01 02 [05:02:10]Write to MH i2c: E2 08 00 80 02 80 0D 01 02 00 00 00 00 FB [05:02:10]Write i2c OK [05:02:10]MH_I2C_Read... [05:02:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:02:10]Read from MH i2c: E2 [05:02:10]MH_I2C_Read... [05:02:10]Read from MH i2c: E2 03 00 [05:02:10]MH_I2C_Read... [05:02:10]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [05:02:10]RAPDU: 90 00 [05:02:10]wFMCommunicate OK [05:02:10]wFMCommunicate request_size=255 [05:02:10]MH_SAM_APDU [05:02:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 09 00 00 00 F4 03 04 00 D2 1A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1B 01 00 35 04 06 00 56 [05:02:10]Write to MH i2c: E2 02 01 81 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D2 1A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1B 01 00 35 04 06 00 56 00 00 DF [05:02:10]Write i2c OK [05:02:10]MH_I2C_Read... [05:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:11]Read from MH i2c: E2 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 03 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [05:02:11]RAPDU: 90 00 [05:02:11]wFMCommunicate OK [05:02:11]wFMCommunicate request_size=10 [05:02:11]MH_SAM_APDU [05:02:11]CAPDU: 80 0D 02 02 05 D8 E5 FD 7C 8B [05:02:11]Write to MH i2c: E2 0D 00 82 02 80 0D 02 02 05 00 D8 E5 FD 7C 8B 00 00 C9 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:02:11]Read from MH i2c: E2 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 03 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [05:02:11]RAPDU: 90 00 [05:02:11]wFMCommunicate OK [05:02:11]wFMCommunicate request_size=4 [05:02:11]MH_SAM_APDU [05:02:11]CAPDU: 80 0D 03 02 [05:02:11]Write to MH i2c: E2 08 00 83 02 80 0D 03 02 00 00 00 00 00 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:02:11]Read from MH i2c: E2 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 0B 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 0B 00 83 02 00 96 1A B0 A1 8B 65 97 34 90 00 BD [05:02:11]RAPDU: 96 1A B0 A1 8B 65 97 34 90 00 [05:02:11]wFMCommunicate OK [05:02:11]SAM_PROTO_SignData done [05:02:11]FM_MakeSignedData done [05:02:11]CreateOFDProtocolMessage [05:02:11]wFMCommunicate request_size=4 [05:02:11]MH_SAM_APDU [05:02:11]CAPDU: 80 11 00 00 [05:02:11]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:11]Read from MH i2c: E2 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 17 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 54 [05:02:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:02:11]wFMCommunicate OK [05:02:11]CreateOFDProtocolMessage done [05:02:11]OFDSenderStorePacket 72481 [05:02:11]StoreOFDPacket docnum=72481 [05:02:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 12 77 07 01 E7 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D2 1A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1B 01 00 35 04 06 00 56 D8 E5 FD 7C 8B 96 1A B0 A1 8B 65 97 34 [05:02:11]CheckFolder [05:02:11]dirname=/storage/ofd_packets [05:02:11]CheckFolder done [05:02:11]ProducePacketName [05:02:11]name=ofd_packets/00072481 [05:02:11]NVStorageSaveData ofd_packets/00072481 [05:02:11]File name is /storage/ofd_packets/00072481 [05:02:11]Write 301 bytes [05:02:11]NVStorageSaveData done [05:02:11]OFDSenderStorePacket done [05:02:11]KKMCreateOFDPacket done [05:02:11]NVStorageSaveData kkm_last_timestamp [05:02:11]File name is /storage/kkm_last_timestamp [05:02:11]Write 4 bytes [05:02:11]NVStorageSaveData done [05:02:11]ExternCall_PrintAddStr [05:02:11]wPrintStart [05:02:11]Write to MH i2c: 01 00 00 85 02 87 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 07 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 07 00 85 02 00 00 00 00 00 FF 0F 9C [05:02:11]RasterBufferAndPrint [05:02:11]line Счет N : (1)951928 [05:02:11]line ИНН: 02508201610067 [05:02:11]line Контрольно-Кассовый Чек [05:02:11]line ПРОДАЖА [05:02:11]line ТРК (МРК, ГНК) : 53 [05:02:11]line Товар: 2710124130 [05:02:11]line Аи-92-К-5 [05:02:11]line 14.950 * 0.00 [05:02:11]line = 0.00 [05:02:11]line НДС 12% НСП 1% [05:02:11]line > о реализуемом товаре [05:02:11]line ИТОГО: 0.00 [05:02:11]line НСП 1% : 0.00 [05:02:11]line НДС 12% : 0.00 [05:02:11]line Наличными: 0.00 [05:02:11]line Безнал.: 0.00 [05:02:11]line Место: АЗС № 113 "Партнер Нефть" [05:02:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:02:11]line СНО: Общий режим [05:02:11]line Чек 9 28.10.2024 05:02 [05:02:11]line Смена: 554 ФФД: 1.0 [05:02:11]line ЗНМ: 0300000087 [05:02:11]line РНМ: 0000000000091644 [05:02:11]line Версия ККМ: 001 [05:02:11]line Талоны: Топливная Карта [05:02:11]line 03047 [05:02:11]line ФМ: 0000000000874662 [05:02:11]line ФД: 72481 [05:02:11]line ФПД: 95489571519627 [05:02:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T050210&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72481&fm=95489571519627&tin=02508201610067®Number=0000000000091644&sum=0 [05:02:11]written 0, free lines is 4095 [05:02:11]OFD Sender: Processing packet 72481 [packets to send 272, broken 271] [05:02:11]ProducePacketName [05:02:11]name=ofd_packets/00072481 [05:02:11]OFD Sender: To server: pG, [05:02:11]CommunicateWithHost lk.salyk.kg:30040 [05:02:11]ConnectInit lk.salyk.kg [05:02:11]Write to MH i2c: 01 00 00 AF 02 B1 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 07 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 DE 0C A2 [05:02:11]RasterBufferAndPrint [05:02:11]line [05:02:11]line [05:02:11]line [05:02:11]line [05:02:11]line [05:02:11]written 0, free lines is 3300 [05:02:11]MH_Cut [05:02:11]Write to MH i2c: D1 01 00 B6 02 01 8A [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: D1 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: D1 01 00 [05:02:11]MH_I2C_Read... [05:02:11]Read from MH i2c: D1 01 00 B6 02 00 89 [05:02:11]Write to MH i2c: 01 00 00 B7 02 B9 [05:02:11]Write i2c OK [05:02:11]MH_I2C_Read... [05:02:12]*** Cut start [05:02:12]*** Partial cut [05:02:12]*** CUTSNS_PIN = 1 [05:02:12]Connected sock=10 [05:02:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 12 77 07 01 E7 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D2 1A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 21 1B 01 00 35 04 06 00 56 D8 E5 FD 7C 8B 96 1A B0 A1 8B 65 97 34 [05:02:12]*** CUTSNS_PIN = 0 [05:02:12]*** Brake cut motor [05:02:13]Read from MH i2c: 01 [05:02:13]MH_I2C_Read... [05:02:13]*** Stop cut motor [05:02:13]*** Cut end [05:02:13]Read from MH i2c: 01 07 00 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: 01 07 00 B7 02 00 00 00 00 00 FF 0F CE [05:02:13]process_action close_receipt done [05:02:13]requested_data is exist [05:02:13]produce_requested_data [05:02:13]requested_item fm.sn is exist - process it [05:02:13]wFMCommunicate request_size=4 [05:02:13]MH_SAM_APDU [05:02:13]CAPDU: 80 11 00 00 [05:02:13]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [05:02:13]Write i2c OK [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 [05:02:13]MH_I2C_Read... [05:02:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:02:13]Read from MH i2c: E2 17 00 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 88 [05:02:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:02:13]wFMCommunicate OK [05:02:13]requested_item fd.num is exist - process it [05:02:13]SAM_PROTO_GetFieldsCounters [05:02:13]wFMCommunicate request_size=4 [05:02:13]MH_SAM_APDU [05:02:13]CAPDU: 80 13 00 00 [05:02:13]Write to MH i2c: E2 08 00 B9 02 80 13 00 00 00 00 00 00 37 [05:02:13]Write i2c OK [05:02:13]MH_I2C_Read... [05:02:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:02:13]Read from MH i2c: E2 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 62 00 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 62 00 B9 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 21 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [05:02:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 21 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:02:13]wFMCommunicate OK [05:02:13]SAM_PROTO_GetFieldsCounters done [05:02:13]requested_item shift.num is exist - process it [05:02:13]requested_item shift.opened is exist - process it [05:02:13]req_shift_opened [05:02:13]FM_GetShiftState [05:02:13]SAM_PROTO_GetShiftState [05:02:13]wFMCommunicate request_size=4 [05:02:13]MH_SAM_APDU [05:02:13]CAPDU: 80 13 01 00 [05:02:13]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [05:02:13]Write i2c OK [05:02:13]MH_I2C_Read... [05:02:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:02:13]Read from MH i2c: E2 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 0E 00 [05:02:13]MH_I2C_Read... [05:02:13]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A1 [05:02:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:02:13]wFMCommunicate OK [05:02:13]SAM_PROTO_GetShiftState done [05:02:13]FM_GetShiftState done [05:02:13]req_shift_opened done [05:02:13]requested_item shift.open_date is exist - process it [05:02:13]req_shift_open_date [05:02:13]req_shift_open_date done [05:02:13]produce_requested_data done [05:02:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72481,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:02:13]process_action_free close_receipt [05:02:13]json_value_free [05:02:13]json_value_free done [05:02:13]process_json_proto returns [05:02:13]Send response to host [05:02:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72481,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:02:13]free response buf [05:02:13]execute_script done [05:02:13]execute_script returns [05:02:13]free content buf [05:02:13]Sock 9.Close socket [05:02:13]Sock 9.Thread stoped [05:02:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 3B F8 47 00 89 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 34 36 36 32 10 04 04 00 21 1B 01 00 F4 03 04 00 93 C5 1E 67 B6 04 01 00 00 D8 46 0C ED 09 63 5A 14 [05:02:14]CommunicateWithHost err = 0 [05:02:14]CheckOFDResponse [05:02:14]1017 (14) - 77093643461234 [05:02:14]1041 (16) - 0000000000874662 [05:02:14]1040 (4) - 72481 [05:02:14]1012 (4) - 27.10.2024 22:58 [05:02:14]1206 (1) - 0 [05:02:14]OFD Sender: Remove packet 72481 [05:02:14]ProducePacketName [05:02:14]name=ofd_packets/00072481 [05:02:14]NVStorageDeleteData [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:28]recv_with_timeout no data received [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03:34]OFD Sender: No OFD packet to send [05:03:39]OFD Sender: No OFD packet to send [05:03:44]OFD Sender: No OFD packet to send [05:03:49]OFD Sender: No OFD packet to send [05:03:50]recv_with_timeout no data received [05:03:54]OFD Sender: No OFD packet to send [05:03:59]OFD Sender: No OFD packet to send [05:04:04]OFD Sender: No OFD packet to send [05:04:09]OFD Sender: No OFD packet to send [05:04:14]OFD Sender: No OFD packet to send [05:04:16]recv_with_timeout no data received [05:04:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]recv_with_timeout no data received [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:07]recv_with_timeout no data received [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:45]recv_with_timeout no data received [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:49]recv_with_timeout no data received [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:08]recv_with_timeout no data received [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:40]recv_with_timeout no data received [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:09:59]recv_with_timeout no data received [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:47]recv_with_timeout no data received [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:39]recv_with_timeout no data received [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:02]recv_with_timeout no data received [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:01]recv_with_timeout no data received [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]recv_with_timeout no data received [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:27]recv_with_timeout no data received [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:38]recv_with_timeout no data received [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:49]recv_with_timeout no data received [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:13]recv_with_timeout no data received [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:16:59]accept exits with 7 [05:16:59]New connection [05:16:59]New thread 3066936676 created [05:16:59]Thread 3067080036 joined [05:16:59]Waiting for new connection... [05:16:59] Sock 7.Parse request [05:16:59]Sock 7.Check first char [05:16:59]Sock 7.First char is OK [05:16:59]request: POST /json_proto HTTP/1.0 [05:16:59]Method: POST [05:16:59]URL: /json_proto [05:16:59]Method is POST - this is cgi request [05:16:59]url: /json_proto [05:16:59]query_string will be loaded in cgi processing [05:16:59]execute_cgi json_proto POST (null) [05:16:59]execute_cgi path=json_proto method=POST [05:16:59]POST find Content-Length [05:16:59]Host: 172.17.43.195:8080 [05:16:59]Content-Length: 848 [05:16:59]Content-Type: application/json [05:16:59] [05:16:59]POST finish read [05:16:59]Found Content-Length = 848 [05:16:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:59]execute_script... [05:16:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951929", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 3000.76 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:59]POST & json_proto [05:16:59]process_json_proto [05:16:59]json parsed OK: [05:16:59]protocol is kg_v1.0 [05:16:59]action value=close_receipt [05:16:59]process_action close_receipt [05:16:59]cmd_close_receipt [05:16:59]MH_GetDate [05:16:59]Write to MH i2c: F0 00 00 BB 02 AC [05:16:59]Write i2c OK [05:16:59]MH_I2C_Read... [05:16:59]Read from MH i2c: F0 [05:16:59]MH_I2C_Read... [05:16:59]Read from MH i2c: F0 09 00 [05:16:59]MH_I2C_Read... [05:16:59]Read from MH i2c: F0 09 00 BB 02 00 4C 1E 1F 67 74 2C AD 66 58 [05:16:59]GetLastDocTimeStamp 1730091730 [05:16:59]current date 1730092620 [05:16:59]FM_GetShiftState [05:16:59]SAM_PROTO_GetShiftState [05:16:59]wFMCommunicate request_size=4 [05:16:59]MH_SAM_APDU [05:16:59]CAPDU: 80 13 01 00 [05:16:59]Write to MH i2c: E2 08 00 BC 02 80 13 01 00 00 00 00 00 3B [05:16:59]Write i2c OK [05:16:59]MH_I2C_Read... [05:16:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:59]Read from MH i2c: E2 [05:16:59]MH_I2C_Read... [05:16:59]Read from MH i2c: E2 0E 00 [05:16:59]MH_I2C_Read... [05:16:59]Read from MH i2c: E2 0E 00 BC 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A3 [05:16:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:16:59]wFMCommunicate OK [05:16:59]SAM_PROTO_GetShiftState done [05:16:59]FM_GetShiftState done [05:16:59]opened in 1730074113 [05:16:59]opened+sec_in_day 1730160513 [05:16:59]quantity*price = 300075 [05:16:59]sum+1 = 300077 [05:16:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.76 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 0.00 Безнал.: 3000.76 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 10 28.10.2024 05:17 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72482 ФПД: 8032686860643 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T051700&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72482&fm=8032686860643&tin=02508201610067®Number=0000000000091644&sum=300076 [05:17:00]StoreToDocumentArchive [05:17:00]shift 554 fd 72482 [05:17:00]save to /storage/0554/doc_00072482 [05:17:00]save last doc name /storage/0554/doc_00072482 to /storage/kkm_last_doc_name [05:17:00]save OK [05:17:00]Clear old archive folders... [05:17:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:17:00]tlvbuf is 00B98710 [05:17:00]SAM_PROTO_ClearQueue [05:17:00]wFMCommunicate request_size=4 [05:17:00]MH_SAM_APDU [05:17:00]CAPDU: 80 09 00 00 [05:17:00]Write to MH i2c: E2 08 00 C9 02 80 09 00 00 00 00 00 00 3D [05:17:00]Write i2c OK [05:17:00]MH_I2C_Read... [05:17:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:17:00]Read from MH i2c: E2 [05:17:00]MH_I2C_Read... [05:17:00]Read from MH i2c: E2 03 00 [05:17:00]MH_I2C_Read... [05:17:00]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [05:17:00]RAPDU: 90 00 [05:17:00]wFMCommunicate OK [05:17:00]SAM_PROTO_ClearQueue done [05:17:00]KKMCreateOFDPacket [05:17:00]OFDProtocolAddRootSTLVToBuf [05:17:00]FM_MakeSignedData [05:17:00]FM_MakeSignedData [05:17:00]SAM_PROTO_SignData [05:17:00]wFMCommunicate request_size=4 [05:17:00]MH_SAM_APDU [05:17:00]CAPDU: 80 0D 01 02 [05:17:00]Write to MH i2c: E2 08 00 CA 02 80 0D 01 02 00 00 00 00 45 [05:17:00]Write i2c OK [05:17:00]MH_I2C_Read... [05:17:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:17:00]Read from MH i2c: E2 [05:17:00]MH_I2C_Read... [05:17:00]Read from MH i2c: E2 03 00 [05:17:00]MH_I2C_Read... [05:17:00]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [05:17:00]RAPDU: 90 00 [05:17:00]wFMCommunicate OK [05:17:00]wFMCommunicate request_size=255 [05:17:00]MH_SAM_APDU [05:17:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4C 1E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 22 1B 01 00 35 04 06 00 [05:17:00]Write to MH i2c: E2 02 01 CB 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4C 1E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 22 1B 01 00 35 04 06 00 00 00 E7 [05:17:00]Write i2c OK [05:17:00]MH_I2C_Read... [05:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:01]Read from MH i2c: E2 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 03 00 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [05:17:01]RAPDU: 90 00 [05:17:01]wFMCommunicate OK [05:17:01]wFMCommunicate request_size=11 [05:17:01]MH_SAM_APDU [05:17:01]CAPDU: 80 0D 02 02 06 07 4E 41 72 69 63 [05:17:01]Write to MH i2c: E2 0E 00 CC 02 80 0D 02 02 06 00 07 4E 41 72 69 63 00 00 28 [05:17:01]Write i2c OK [05:17:01]MH_I2C_Read... [05:17:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:01]Read from MH i2c: E2 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 03 00 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [05:17:01]RAPDU: 90 00 [05:17:01]wFMCommunicate OK [05:17:01]wFMCommunicate request_size=4 [05:17:01]MH_SAM_APDU [05:17:01]CAPDU: 80 0D 03 02 [05:17:01]Write to MH i2c: E2 08 00 CD 02 80 0D 03 02 00 00 00 00 4A [05:17:01]Write i2c OK [05:17:01]MH_I2C_Read... [05:17:01]OFD Sender: No OFD packet to send [05:17:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:17:01]Read from MH i2c: E2 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 0B 00 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 0B 00 CD 02 00 9A D2 D4 1F 61 40 2E 6A 90 00 E3 [05:17:01]RAPDU: 9A D2 D4 1F 61 40 2E 6A 90 00 [05:17:01]wFMCommunicate OK [05:17:01]SAM_PROTO_SignData done [05:17:01]FM_MakeSignedData done [05:17:01]CreateOFDProtocolMessage [05:17:01]wFMCommunicate request_size=4 [05:17:01]MH_SAM_APDU [05:17:01]CAPDU: 80 11 00 00 [05:17:01]Write to MH i2c: E2 08 00 CE 02 80 11 00 00 00 00 00 00 4A [05:17:01]Write i2c OK [05:17:01]MH_I2C_Read... [05:17:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:01]Read from MH i2c: E2 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 17 00 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: E2 17 00 CE 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9E [05:17:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:17:01]wFMCommunicate OK [05:17:01]CreateOFDProtocolMessage done [05:17:01]OFDSenderStorePacket 72482 [05:17:01]StoreOFDPacket docnum=72482 [05:17:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0F 51 08 01 AA D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4C 1E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 22 1B 01 00 35 04 06 00 07 4E 41 72 69 63 9A D2 D4 1F 61 40 2E 6A [05:17:01]CheckFolder [05:17:01]dirname=/storage/ofd_packets [05:17:01]CheckFolder done [05:17:01]ProducePacketName [05:17:01]name=ofd_packets/00072482 [05:17:01]NVStorageSaveData ofd_packets/00072482 [05:17:01]File name is /storage/ofd_packets/00072482 [05:17:01]Write 302 bytes [05:17:01]NVStorageSaveData done [05:17:01]OFDSenderStorePacket done [05:17:01]KKMCreateOFDPacket done [05:17:01]NVStorageSaveData kkm_last_timestamp [05:17:01]File name is /storage/kkm_last_timestamp [05:17:01]Write 4 bytes [05:17:01]NVStorageSaveData done [05:17:01]ExternCall_PrintAddStr [05:17:01]wPrintStart [05:17:01]Write to MH i2c: 01 00 00 CF 02 D1 [05:17:01]Write i2c OK [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: 01 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: 01 07 00 [05:17:01]MH_I2C_Read... [05:17:01]Read from MH i2c: 01 07 00 CF 02 00 00 00 00 00 FF 0F E6 [05:17:01]RasterBufferAndPrint [05:17:01]line Счет N : (1)951929 [05:17:01]line ИНН: 02508201610067 [05:17:01]line Контрольно-Кассовый Чек [05:17:01]line ПРОДАЖА [05:17:01]line ТРК (МРК, ГНК) : 33 [05:17:01]line Товар: 2710194210 [05:17:01]line ДТ(л)-К-5 [05:17:01]line 39.380 * 76.20 [05:17:01]line = 3000.76 [05:17:01]line НДС 12% НСП 1% [05:17:01]line > о реализуемом товаре [05:17:01]line ИТОГО: 3000.76 [05:17:01]line НСП 1% : 26.55 [05:17:01]line НДС 12% : 318.66 [05:17:01]line Наличными: 0.00 [05:17:01]line Безнал.: 3000.76 [05:17:01]line Место: АЗС № 113 "Партнер Нефть" [05:17:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:17:01]line СНО: Общий режим [05:17:01]line Чек 10 28.10.2024 05:17 [05:17:01]line Смена: 554 ФФД: 1.0 [05:17:01]line ЗНМ: 0300000087 [05:17:01]line РНМ: 0000000000091644 [05:17:01]line Версия ККМ: 001 [05:17:01]line Платежная система: АКБ Кыргызстан [05:17:01]line ФМ: 0000000000874662 [05:17:01]line ФД: 72482 [05:17:01]line ФПД: 8032686860643 [05:17:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T051700&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72482&fm=8032686860643&tin=02508201610067®Number=0000000000091644&sum=300076 [05:17:01]OFD Sender: Processing packet 72482 [packets to send 272, broken 271] [05:17:01]ProducePacketName [05:17:01]name=ofd_packets/00072482 [05:17:01]OFD Sender: To server: pG, [05:17:01]CommunicateWithHost lk.salyk.kg:30040 [05:17:01]ConnectInit lk.salyk.kg [05:17:01]written 0, free lines is 4095 [05:17:02]Write to MH i2c: 01 00 00 F9 02 FB [05:17:02]Write i2c OK [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: 01 [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: 01 07 00 [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: 01 07 00 F9 02 00 00 00 00 00 F4 0C 02 [05:17:02]RasterBufferAndPrint [05:17:02]line [05:17:02]line [05:17:02]line [05:17:02]line [05:17:02]line [05:17:02]written 0, free lines is 3324 [05:17:02]MH_Cut [05:17:02]Write to MH i2c: D1 01 00 00 03 01 D5 [05:17:02]Write i2c OK [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: D1 [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: D1 01 00 [05:17:02]MH_I2C_Read... [05:17:02]Read from MH i2c: D1 01 00 00 03 00 D4 [05:17:02]Write to MH i2c: 01 00 00 01 03 04 [05:17:02]Write i2c OK [05:17:02]MH_I2C_Read... [05:17:02]*** Cut start [05:17:02]*** Partial cut [05:17:02]*** CUTSNS_PIN = 1 [05:17:02]*** CUTSNS_PIN = 0 [05:17:03]*** Brake cut motor [05:17:03]Read from MH i2c: 01 [05:17:03]MH_I2C_Read... [05:17:03]*** Stop cut motor [05:17:03]*** Cut end [05:17:03]Read from MH i2c: 01 07 00 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: 01 07 00 01 03 00 00 00 00 00 FF 0F 19 [05:17:03]process_action close_receipt done [05:17:03]requested_data is exist [05:17:03]produce_requested_data [05:17:03]requested_item fm.sn is exist - process it [05:17:03]wFMCommunicate request_size=4 [05:17:03]MH_SAM_APDU [05:17:03]CAPDU: 80 11 00 00 [05:17:03]Write to MH i2c: E2 08 00 02 03 80 11 00 00 00 00 00 00 7F [05:17:03]Write i2c OK [05:17:03]MH_I2C_Read... [05:17:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:03]Read from MH i2c: E2 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 17 00 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 17 00 02 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D3 [05:17:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:17:03]wFMCommunicate OK [05:17:03]requested_item fd.num is exist - process it [05:17:03]SAM_PROTO_GetFieldsCounters [05:17:03]wFMCommunicate request_size=4 [05:17:03]MH_SAM_APDU [05:17:03]CAPDU: 80 13 00 00 [05:17:03]Write to MH i2c: E2 08 00 03 03 80 13 00 00 00 00 00 00 82 [05:17:03]Write i2c OK [05:17:03]MH_I2C_Read... [05:17:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:17:03]Read from MH i2c: E2 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 62 00 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 62 00 03 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 22 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 2B [05:17: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 22 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:17:03]wFMCommunicate OK [05:17:03]SAM_PROTO_GetFieldsCounters done [05:17:03]requested_item shift.num is exist - process it [05:17:03]requested_item shift.opened is exist - process it [05:17:03]req_shift_opened [05:17:03]FM_GetShiftState [05:17:03]SAM_PROTO_GetShiftState [05:17:03]wFMCommunicate request_size=4 [05:17:03]MH_SAM_APDU [05:17:03]CAPDU: 80 13 01 00 [05:17:03]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [05:17:03]Write i2c OK [05:17:03]MH_I2C_Read... [05:17:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:17:03]Read from MH i2c: E2 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 0E 00 [05:17:03]MH_I2C_Read... [05:17:03]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EC [05:17:03]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:17:03]wFMCommunicate OK [05:17:03]SAM_PROTO_GetShiftState done [05:17:03]FM_GetShiftState done [05:17:03]req_shift_opened done [05:17:03]requested_item shift.open_date is exist - process it [05:17:03]req_shift_open_date [05:17:03]req_shift_open_date done [05:17:03]produce_requested_data done [05:17:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72482,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:17:03]process_action_free close_receipt [05:17:03]json_value_free [05:17:03]json_value_free done [05:17:03]process_json_proto returns [05:17:03]Send response to host [05:17:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72482,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:17:03]free response buf [05:17:03]execute_script done [05:17:03]execute_script returns [05:17:03]free content buf [05:17:03]Sock 7.Close socket [05:17:03]Sock 7.Thread stoped [05:17:06]ConnectInit Can't take IP for lk.salyk.kg [05:17:06]CommunicateWithHost connect error [05:17:06]CommunicateWithHost err = -1 [05:17:06]OFD Sender: Server communicate error [05:17:11]OFD Sender: Processing packet 72482 [packets to send 272, broken 271] [05:17:11]ProducePacketName [05:17:11]name=ofd_packets/00072482 [05:17:11]OFD Sender: To server: pG, [05:17:11]CommunicateWithHost lk.salyk.kg:30040 [05:17:11]ConnectInit lk.salyk.kg [05:17:15]recv_with_timeout no data received [05:17:15]Connected sock=9 [05:17:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0F 51 08 01 AA D1 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 2C 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 4C 1E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 22 1B 01 00 35 04 06 00 07 4E 41 72 69 63 9A D2 D4 1F 61 40 2E 6A [05:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 81 E7 47 00 EC 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 34 36 36 32 10 04 04 00 22 1B 01 00 F4 03 04 00 1A C9 1E 67 B6 04 01 00 00 01 57 C1 25 86 C3 10 7B [05:17:18]CommunicateWithHost err = 0 [05:17:18]CheckOFDResponse [05:17:18]1017 (14) - 77093643461234 [05:17:18]1041 (16) - 0000000000874662 [05:17:18]1040 (4) - 72482 [05:17:18]1012 (4) - 27.10.2024 23:13 [05:17:18]1206 (1) - 0 [05:17:18]OFD Sender: Remove packet 72482 [05:17:18]ProducePacketName [05:17:18]name=ofd_packets/00072482 [05:17:18]NVStorageDeleteData [05:17:18]OFD Sender: No OFD packet to send [05:17:23]OFD Sender: No OFD packet to send [05:17:28]OFD Sender: No OFD packet to send [05:17:33]OFD Sender: No OFD packet to send [05:17:38]OFD Sender: No OFD packet to send [05:17:43]OFD Sender: No OFD packet to send [05:17:48]OFD Sender: No OFD packet to send [05:17:53]OFD Sender: No OFD packet to send [05:17:58]OFD Sender: No OFD packet to send [05:18:03]OFD Sender: No OFD packet to send [05:18:08]OFD Sender: No OFD packet to send [05:18:13]OFD Sender: No OFD packet to send [05:18:18]OFD Sender: No OFD packet to send [05:18:24]OFD Sender: No OFD packet to send [05:18:28]recv_with_timeout no data received [05:18:29]OFD Sender: No OFD packet to send [05:18:34]OFD Sender: No OFD packet to send [05:18:38]recv_with_timeout no data received [05:18:39]OFD Sender: No OFD packet to send [05:18:44]OFD Sender: No OFD packet to send [05:18:49]OFD Sender: No OFD packet to send [05:18:54]OFD Sender: No OFD packet to send [05:18:59]OFD Sender: No OFD packet to send [05:18:59]recv_with_timeout no data received [05:19:04]OFD Sender: No OFD packet to send [05:19:09]OFD Sender: No OFD packet to send [05:19:14]OFD Sender: No OFD packet to send [05:19:19]OFD Sender: No OFD packet to send [05:19:24]OFD Sender: No OFD packet to send [05:19:29]OFD Sender: No OFD packet to send [05:19:29]recv_with_timeout no data received [05:19:34]OFD Sender: No OFD packet to send [05:19:39]OFD Sender: No OFD packet to send [05:19:44]OFD Sender: No OFD packet to send [05:19:49]OFD Sender: No OFD packet to send [05:19:54]OFD Sender: No OFD packet to send [05:19:59]OFD Sender: No OFD packet to send [05:20:04]OFD Sender: No OFD packet to send [05:20:06]recv_with_timeout no data received [05:20:09]OFD Sender: No OFD packet to send [05:20:14]OFD Sender: No OFD packet to send [05:20:19]OFD Sender: No OFD packet to send [05:20:24]OFD Sender: No OFD packet to send [05:20:29]OFD Sender: No OFD packet to send [05:20:34]OFD Sender: No OFD packet to send [05:20:39]OFD Sender: No OFD packet to send [05:20:43]recv_with_timeout no data received [05:20:44]OFD Sender: No OFD packet to send [05:20:49]OFD Sender: No OFD packet to send [05:20:54]OFD Sender: No OFD packet to send [05:20:54]recv_with_timeout no data received [05:20:59]OFD Sender: No OFD packet to send [05:21:04]OFD Sender: No OFD packet to send [05:21:09]OFD Sender: No OFD packet to send [05:21:14]OFD Sender: No OFD packet to send [05:21:19]OFD Sender: No OFD packet to send [05:21:24]OFD Sender: No OFD packet to send [05:21:29]OFD Sender: No OFD packet to send [05:21:30]recv_with_timeout no data received [05:21:34]OFD Sender: No OFD packet to send [05:21:39]OFD Sender: No OFD packet to send [05:21:41]recv_with_timeout no data received [05:21:44]OFD Sender: No OFD packet to send [05:21:49]OFD Sender: No OFD packet to send [05:21:54]OFD Sender: No OFD packet to send [05:21:59]OFD Sender: No OFD packet to send [05:22:04]OFD Sender: No OFD packet to send [05:22:04]recv_with_timeout no data received [05:22:09]OFD Sender: No OFD packet to send [05:22:14]OFD Sender: No OFD packet to send [05:22:19]OFD Sender: No OFD packet to send [05:22:24]OFD Sender: No OFD packet to send [05:22:29]OFD Sender: No OFD packet to send [05:22:29]recv_with_timeout no data received [05:22:34]OFD Sender: No OFD packet to send [05:22:39]OFD Sender: No OFD packet to send [05:22:44]OFD Sender: No OFD packet to send [05:22:48]recv_with_timeout no data received [05:22:49]OFD Sender: No OFD packet to send [05:22:54]OFD Sender: No OFD packet to send [05:22:59]OFD Sender: No OFD packet to send [05:23:04]OFD Sender: No OFD packet to send [05:23:09]OFD Sender: No OFD packet to send [05:23:14]OFD Sender: No OFD packet to send [05:23:19]OFD Sender: No OFD packet to send [05:23:24]OFD Sender: No OFD packet to send [05:23:29]OFD Sender: No OFD packet to send [05:23:31]recv_with_timeout no data received [05:23:34]OFD Sender: No OFD packet to send [05:23:39]OFD Sender: No OFD packet to send [05:23:42]recv_with_timeout no data received [05:23:44]OFD Sender: No OFD packet to send [05:23:49]OFD Sender: No OFD packet to send [05:23:54]OFD Sender: No OFD packet to send [05:23:59]OFD Sender: No OFD packet to send [05:24:04]OFD Sender: No OFD packet to send [05:24:09]OFD Sender: No OFD packet to send [05:24:14]OFD Sender: No OFD packet to send [05:24:19]OFD Sender: No OFD packet to send [05:24:24]OFD Sender: No OFD packet to send [05:24:29]OFD Sender: No OFD packet to send [05:24:34]OFD Sender: No OFD packet to send [05:24:39]OFD Sender: No OFD packet to send [05:24:41]recv_with_timeout no data received [05:24:44]OFD Sender: No OFD packet to send [05:24:49]OFD Sender: No OFD packet to send [05:24:54]OFD Sender: No OFD packet to send [05:24:59]OFD Sender: No OFD packet to send [05:25:04]recv_with_timeout no data received [05:25:04]OFD Sender: No OFD packet to send [05:25:09]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:27]recv_with_timeout no data received [05:25:29]OFD Sender: No OFD packet to send [05:25:34]OFD Sender: No OFD packet to send [05:25:38]recv_with_timeout no data received [05:25:39]OFD Sender: No OFD packet to send [05:25:44]OFD Sender: No OFD packet to send [05:25:49]OFD Sender: No OFD packet to send [05:25:54]OFD Sender: No OFD packet to send [05:25:59]OFD Sender: No OFD packet to send [05:26:04]OFD Sender: No OFD packet to send [05:26:09]OFD Sender: No OFD packet to send [05:26:14]OFD Sender: No OFD packet to send [05:26:19]OFD Sender: No OFD packet to send [05:26:24]OFD Sender: No OFD packet to send [05:26:29]OFD Sender: No OFD packet to send [05:26:34]OFD Sender: No OFD packet to send [05:26:39]OFD Sender: No OFD packet to send [05:26:42]recv_with_timeout no data received [05:26:44]OFD Sender: No OFD packet to send [05:26:49]OFD Sender: No OFD packet to send [05:26:54]OFD Sender: No OFD packet to send [05:26:59]OFD Sender: No OFD packet to send [05:27:04]OFD Sender: No OFD packet to send [05:27:09]OFD Sender: No OFD packet to send [05:27:14]OFD Sender: No OFD packet to send [05:27:19]OFD Sender: No OFD packet to send [05:27:21]recv_with_timeout no data received [05:27:24]OFD Sender: No OFD packet to send [05:27:29]OFD Sender: No OFD packet to send [05:27:31]recv_with_timeout no data received [05:27:34]OFD Sender: No OFD packet to send [05:27:39]OFD Sender: No OFD packet to send [05:27:44]OFD Sender: No OFD packet to send [05:27:49]OFD Sender: No OFD packet to send [05:27:54]OFD Sender: No OFD packet to send [05:27:59]OFD Sender: No OFD packet to send [05:28:04]OFD Sender: No OFD packet to send [05:28:09]OFD Sender: No OFD packet to send [05:28:14]OFD Sender: No OFD packet to send [05:28:19]OFD Sender: No OFD packet to send [05:28:23]recv_with_timeout no data received [05:28:24]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:01]recv_with_timeout no data received [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:20]OFD Sender: No OFD packet to send [05:29:25]OFD Sender: No OFD packet to send [05:29:30]OFD Sender: No OFD packet to send [05:29:35]OFD Sender: No OFD packet to send [05:29:40]OFD Sender: No OFD packet to send [05:29:40]recv_with_timeout no data received [05:29:45]OFD Sender: No OFD packet to send [05:29:50]OFD Sender: No OFD packet to send [05:29:55]OFD Sender: No OFD packet to send [05:30:00]OFD Sender: No OFD packet to send [05:30:05]OFD Sender: No OFD packet to send [05:30:08]accept exits with 10 [05:30:08]New connection [05:30:08]New thread 3067080036 created [05:30:08]Thread 3066936676 joined [05:30:08]Waiting for new connection... [05:30:08] Sock 10.Parse request [05:30:08]Sock 10.Check first char [05:30:08]Sock 10.First char is OK [05:30:08]request: POST /json_proto HTTP/1.0 [05:30:08]Method: POST [05:30:08]URL: /json_proto [05:30:08]Method is POST - this is cgi request [05:30:08]url: /json_proto [05:30:08]query_string will be loaded in cgi processing [05:30:08]execute_cgi json_proto POST (null) [05:30:08]execute_cgi path=json_proto method=POST [05:30:08]POST find Content-Length [05:30:08]Host: 172.17.43.195:8080 [05:30:08]Content-Length: 846 [05:30:08]Content-Type: application/json [05:30:08] [05:30:08]POST finish read [05:30:08]Found Content-Length = 846 [05:30:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:08]execute_script... [05:30: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)951930", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:08]POST & json_proto [05:30:08]process_json_proto [05:30:08]json parsed OK: [05:30:08]protocol is kg_v1.0 [05:30:08]action value=close_receipt [05:30:08]process_action close_receipt [05:30:08]cmd_close_receipt [05:30:08]MH_GetDate [05:30:08]Write to MH i2c: F0 00 00 05 03 F7 [05:30:08]Write i2c OK [05:30:08]MH_I2C_Read... [05:30:08]Read from MH i2c: F0 [05:30:08]MH_I2C_Read... [05:30:08]Read from MH i2c: F0 09 00 [05:30:08]MH_I2C_Read... [05:30:08]Read from MH i2c: F0 09 00 05 03 00 61 21 1F 67 74 2C AD 66 BB [05:30:08]GetLastDocTimeStamp 1730092620 [05:30:08]current date 1730093409 [05:30:08]FM_GetShiftState [05:30:08]SAM_PROTO_GetShiftState [05:30:08]wFMCommunicate request_size=4 [05:30:08]MH_SAM_APDU [05:30:08]CAPDU: 80 13 01 00 [05:30:08]Write to MH i2c: E2 08 00 06 03 80 13 01 00 00 00 00 00 86 [05:30:08]Write i2c OK [05:30:08]MH_I2C_Read... [05:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:08]Read from MH i2c: E2 [05:30:08]MH_I2C_Read... [05:30:08]Read from MH i2c: E2 0E 00 [05:30:08]MH_I2C_Read... [05:30:08]Read from MH i2c: E2 0E 00 06 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EE [05:30:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:30:08]wFMCommunicate OK [05:30:08]SAM_PROTO_GetShiftState done [05:30:08]FM_GetShiftState done [05:30:08]opened in 1730074113 [05:30:08]opened+sec_in_day 1730160513 [05:30:08]quantity*price = 100011 [05:30:08]sum+1 = 100013 [05:30:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 11 28.10.2024 05:30 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72483 ФПД: 102612602371052 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T053010&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72483&fm=102612602371052&tin=02508201610067®Number=0000000000091644&sum=100012 [05:30:09]StoreToDocumentArchive [05:30:09]shift 554 fd 72483 [05:30:09]save to /storage/0554/doc_00072483 [05:30:09]save last doc name /storage/0554/doc_00072483 to /storage/kkm_last_doc_name [05:30:09]save OK [05:30:09]Clear old archive folders... [05:30:09]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:30:09]tlvbuf is 00B939F0 [05:30:09]SAM_PROTO_ClearQueue [05:30:09]wFMCommunicate request_size=4 [05:30:09]MH_SAM_APDU [05:30:09]CAPDU: 80 09 00 00 [05:30:09]Write to MH i2c: E2 08 00 13 03 80 09 00 00 00 00 00 00 88 [05:30:09]Write i2c OK [05:30:09]MH_I2C_Read... [05:30:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:09]Read from MH i2c: E2 [05:30:09]MH_I2C_Read... [05:30:09]Read from MH i2c: E2 03 00 [05:30:09]MH_I2C_Read... [05:30:09]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [05:30:09]RAPDU: 90 00 [05:30:09]wFMCommunicate OK [05:30:09]SAM_PROTO_ClearQueue done [05:30:09]KKMCreateOFDPacket [05:30:09]OFDProtocolAddRootSTLVToBuf [05:30:09]FM_MakeSignedData [05:30:09]FM_MakeSignedData [05:30:09]SAM_PROTO_SignData [05:30:09]wFMCommunicate request_size=4 [05:30:09]MH_SAM_APDU [05:30:09]CAPDU: 80 0D 01 02 [05:30:09]Write to MH i2c: E2 08 00 14 03 80 0D 01 02 00 00 00 00 90 [05:30:09]Write i2c OK [05:30:09]MH_I2C_Read... [05:30:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:10]Read from MH i2c: E2 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [05:30:10]RAPDU: 90 00 [05:30:10]wFMCommunicate OK [05:30:10]wFMCommunicate request_size=255 [05:30:10]MH_SAM_APDU [05:30:10]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 62 21 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1B 01 00 35 04 06 00 5D 53 [05:30:10]Write to MH i2c: E2 02 01 15 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 62 21 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1B 01 00 35 04 06 00 5D 53 00 00 38 [05:30:10]Write i2c OK [05:30:10]MH_I2C_Read... [05:30:10]OFD Sender: No OFD packet to send [05:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:10]Read from MH i2c: E2 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 15 03 00 90 00 8C [05:30:10]RAPDU: 90 00 [05:30:10]wFMCommunicate OK [05:30:10]wFMCommunicate request_size=9 [05:30:10]MH_SAM_APDU [05:30:10]CAPDU: 80 0D 02 02 04 5B B6 BB EC [05:30:10]Write to MH i2c: E2 0C 00 16 03 80 0D 02 02 04 00 5B B6 BB EC 00 00 53 [05:30:10]Write i2c OK [05:30:10]MH_I2C_Read... [05:30:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:10]Read from MH i2c: E2 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 03 00 16 03 00 90 00 8D [05:30:10]RAPDU: 90 00 [05:30:10]wFMCommunicate OK [05:30:10]wFMCommunicate request_size=4 [05:30:10]MH_SAM_APDU [05:30:10]CAPDU: 80 0D 03 02 [05:30:10]Write to MH i2c: E2 08 00 17 03 80 0D 03 02 00 00 00 00 95 [05:30:10]Write i2c OK [05:30:10]MH_I2C_Read... [05:30:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:10]Read from MH i2c: E2 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 0B 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 0B 00 17 03 00 30 25 EA E4 29 D1 5B 5F 90 00 6D [05:30:10]RAPDU: 30 25 EA E4 29 D1 5B 5F 90 00 [05:30:10]wFMCommunicate OK [05:30:10]SAM_PROTO_SignData done [05:30:10]FM_MakeSignedData done [05:30:10]CreateOFDProtocolMessage [05:30:10]wFMCommunicate request_size=4 [05:30:10]MH_SAM_APDU [05:30:10]CAPDU: 80 11 00 00 [05:30:10]Write to MH i2c: E2 08 00 18 03 80 11 00 00 00 00 00 00 95 [05:30:10]Write i2c OK [05:30:10]MH_I2C_Read... [05:30:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:10]Read from MH i2c: E2 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 17 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: E2 17 00 18 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E9 [05:30:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:30:10]wFMCommunicate OK [05:30:10]CreateOFDProtocolMessage done [05:30:10]OFDSenderStorePacket 72483 [05:30:10]StoreOFDPacket docnum=72483 [05:30:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F6 F7 06 01 F8 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 62 21 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1B 01 00 35 04 06 00 5D 53 5B B6 BB EC 30 25 EA E4 29 D1 5B 5F [05:30:10]CheckFolder [05:30:10]dirname=/storage/ofd_packets [05:30:10]CheckFolder done [05:30:10]ProducePacketName [05:30:10]name=ofd_packets/00072483 [05:30:10]NVStorageSaveData ofd_packets/00072483 [05:30:10]File name is /storage/ofd_packets/00072483 [05:30:10]Write 300 bytes [05:30:10]NVStorageSaveData done [05:30:10]OFDSenderStorePacket done [05:30:10]KKMCreateOFDPacket done [05:30:10]NVStorageSaveData kkm_last_timestamp [05:30:10]File name is /storage/kkm_last_timestamp [05:30:10]Write 4 bytes [05:30:10]NVStorageSaveData done [05:30:10]ExternCall_PrintAddStr [05:30:10]wPrintStart [05:30:10]Write to MH i2c: 01 00 00 19 03 1C [05:30:10]Write i2c OK [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: 01 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: 01 07 00 [05:30:10]MH_I2C_Read... [05:30:10]Read from MH i2c: 01 07 00 19 03 00 00 00 00 00 FF 0F 31 [05:30:10]RasterBufferAndPrint [05:30:10]line Счет N : (1)951930 [05:30:10]line ИНН: 02508201610067 [05:30:10]line Контрольно-Кассовый Чек [05:30:10]line ПРОДАЖА [05:30:10]line ТРК (МРК, ГНК) : 71 [05:30:10]line Товар: 2711190000 [05:30:10]line ГАЗ-К-3 [05:30:10]line 25.710 * 38.90 [05:30:10]line = 1000.12 [05:30:10]line НДС 12% НСП 1% [05:30:10]line > о реализуемом товаре [05:30:10]line ИТОГО: 1000.12 [05:30:10]line НСП 1% : 8.85 [05:30:10]line НДС 12% : 106.21 [05:30:10]line Наличными: 0.00 [05:30:10]line Безнал.: 1000.12 [05:30:10]line Место: АЗС № 113 "Партнер Нефть" [05:30:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:30:10]line СНО: Общий режим [05:30:10]line Чек 11 28.10.2024 05:30 [05:30:10]line Смена: 554 ФФД: 1.0 [05:30:10]line ЗНМ: 0300000087 [05:30:10]line РНМ: 0000000000091644 [05:30:10]line Версия ККМ: 001 [05:30:10]line Платежная система: АКБ Кыргызстан [05:30:10]line ФМ: 0000000000874662 [05:30:10]line ФД: 72483 [05:30:10]line ФПД: 102612602371052 [05:30:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T053010&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72483&fm=102612602371052&tin=02508201610067®Number=0000000000091644&sum=100012 [05:30:10]OFD Sender: Processing packet 72483 [packets to send 272, broken 271] [05:30:10]ProducePacketName [05:30:10]name=ofd_packets/00072483 [05:30:10]OFD Sender: To server: pG, [05:30:10]CommunicateWithHost lk.salyk.kg:30040 [05:30:10]ConnectInit lk.salyk.kg [05:30:10]written 0, free lines is 4095 [05:30:11]Write to MH i2c: 01 00 00 43 03 46 [05:30:11]Write i2c OK [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: 01 [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: 01 07 00 [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: 01 07 00 43 03 00 00 00 00 00 ED 0C 46 [05:30:11]RasterBufferAndPrint [05:30:11]line [05:30:11]line [05:30:11]line [05:30:11]line [05:30:11]line [05:30:11]written 0, free lines is 3315 [05:30:11]MH_Cut [05:30:11]Write to MH i2c: D1 01 00 4A 03 01 1F [05:30:11]Write i2c OK [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: D1 [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: D1 01 00 [05:30:11]MH_I2C_Read... [05:30:11]Read from MH i2c: D1 01 00 4A 03 00 1E [05:30:11]Write to MH i2c: 01 00 00 4B 03 4E [05:30:11]Write i2c OK [05:30:11]MH_I2C_Read... [05:30:11]recv_with_timeout no data received [05:30:11]*** Cut start [05:30:11]*** Partial cut [05:30:11]*** CUTSNS_PIN = 1 [05:30:12]*** CUTSNS_PIN = 0 [05:30:12]*** Brake cut motor [05:30:12]Read from MH i2c: 01 [05:30:12]MH_I2C_Read... [05:30:12]*** Stop cut motor [05:30:12]*** Cut end [05:30:12]Read from MH i2c: 01 07 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: 01 07 00 4B 03 00 00 00 00 00 FF 0F 63 [05:30:12]process_action close_receipt done [05:30:12]requested_data is exist [05:30:12]produce_requested_data [05:30:12]requested_item fm.sn is exist - process it [05:30:12]wFMCommunicate request_size=4 [05:30:12]MH_SAM_APDU [05:30:12]CAPDU: 80 11 00 00 [05:30:12]Write to MH i2c: E2 08 00 4C 03 80 11 00 00 00 00 00 00 C9 [05:30:12]Write i2c OK [05:30:12]MH_I2C_Read... [05:30:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:12]Read from MH i2c: E2 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 17 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 17 00 4C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1D [05:30:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:30:12]wFMCommunicate OK [05:30:12]requested_item fd.num is exist - process it [05:30:12]SAM_PROTO_GetFieldsCounters [05:30:12]wFMCommunicate request_size=4 [05:30:12]MH_SAM_APDU [05:30:12]CAPDU: 80 13 00 00 [05:30:12]Write to MH i2c: E2 08 00 4D 03 80 13 00 00 00 00 00 00 CC [05:30:12]Write i2c OK [05:30:12]MH_I2C_Read... [05:30:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:12]Read from MH i2c: E2 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 62 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 62 00 4D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 23 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [05:30:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 23 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:30:12]wFMCommunicate OK [05:30:12]SAM_PROTO_GetFieldsCounters done [05:30:12]requested_item shift.num is exist - process it [05:30:12]requested_item shift.opened is exist - process it [05:30:12]req_shift_opened [05:30:12]FM_GetShiftState [05:30:12]SAM_PROTO_GetShiftState [05:30:12]wFMCommunicate request_size=4 [05:30:12]MH_SAM_APDU [05:30:12]CAPDU: 80 13 01 00 [05:30:12]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [05:30:12]Write i2c OK [05:30:12]MH_I2C_Read... [05:30:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:12]Read from MH i2c: E2 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 0E 00 [05:30:12]MH_I2C_Read... [05:30:12]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 36 [05:30:12]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:30:12]wFMCommunicate OK [05:30:12]SAM_PROTO_GetShiftState done [05:30:12]FM_GetShiftState done [05:30:12]req_shift_opened done [05:30:12]requested_item shift.open_date is exist - process it [05:30:12]req_shift_open_date [05:30:12]req_shift_open_date done [05:30:12]produce_requested_data done [05:30:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72483,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:30:12]process_action_free close_receipt [05:30:12]json_value_free [05:30:12]json_value_free done [05:30:12]process_json_proto returns [05:30:12]Send response to host [05:30:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72483,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:30:12]free response buf [05:30:12]execute_script done [05:30:12]execute_script returns [05:30:12]free content buf [05:30:12]Sock 10.Close socket [05:30:12]Sock 10.Thread stoped [05:30:14]Connected sock=11 [05:30:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F6 F7 06 01 F8 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 62 21 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1B 01 00 35 04 06 00 5D 53 5B B6 BB EC 30 25 EA E4 29 D1 5B 5F [05:30:19]recv_with_timeout no data received [05:30:19]CommunicateWithHost answer receiving error [05:30:19]CommunicateWithHost err = -3 [05:30:19]OFD Sender: Server communicate error [05:30:24]OFD Sender: Processing packet 72483 [packets to send 272, broken 271] [05:30:24]ProducePacketName [05:30:24]name=ofd_packets/00072483 [05:30:24]OFD Sender: To server: pG, [05:30:24]CommunicateWithHost lk.salyk.kg:30040 [05:30:24]ConnectInit lk.salyk.kg [05:30:25]Connected sock=10 [05:30:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F6 F7 06 01 F8 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 62 21 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 23 1B 01 00 35 04 06 00 5D 53 5B B6 BB EC 30 25 EA E4 29 D1 5B 5F [05:30:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FE 4C 47 00 5B 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 34 36 36 32 10 04 04 00 23 1B 01 00 F4 03 04 00 2F CC 1E 67 B6 04 01 00 00 36 6D 0E 49 07 1D DA 8D [05:30:25]CommunicateWithHost err = 0 [05:30:25]CheckOFDResponse [05:30:25]1017 (14) - 77093643461234 [05:30:25]1041 (16) - 0000000000874662 [05:30:25]1040 (4) - 72483 [05:30:25]1012 (4) - 27.10.2024 23:26 [05:30:25]1206 (1) - 0 [05:30:25]OFD Sender: Remove packet 72483 [05:30:25]ProducePacketName [05:30:25]name=ofd_packets/00072483 [05:30:25]NVStorageDeleteData [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:45]recv_with_timeout no data received [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:03]recv_with_timeout no data received [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:22]recv_with_timeout no data received [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:32]recv_with_timeout no data received [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:23]recv_with_timeout no data received [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:47]recv_with_timeout no data received [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]recv_with_timeout no data received [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]recv_with_timeout no data received [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:34]recv_with_timeout no data received [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:02]recv_with_timeout no data received [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:49]recv_with_timeout no data received [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:35]recv_with_timeout no data received [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:08]recv_with_timeout no data received [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:33]recv_with_timeout no data received [05:37:37]OFD Sender: No OFD packet to send [05:37:41]accept exits with 9 [05:37:41]New connection [05:37:41]New thread 3066936676 created [05:37:41]Thread 3067080036 joined [05:37:41]Waiting for new connection... [05:37:41] Sock 9.Parse request [05:37:41]Sock 9.Check first char [05:37:41]Sock 9.First char is OK [05:37:41]request: POST /json_proto HTTP/1.0 [05:37:41]Method: POST [05:37:41]URL: /json_proto [05:37:41]Method is POST - this is cgi request [05:37:41]url: /json_proto [05:37:41]query_string will be loaded in cgi processing [05:37:41]execute_cgi json_proto POST (null) [05:37:41]execute_cgi path=json_proto method=POST [05:37:41]POST find Content-Length [05:37:41]Host: 172.17.43.195:8080 [05:37:41]Content-Length: 846 [05:37:41]Content-Type: application/json [05:37:41] [05:37:41]POST finish read [05:37:41]Found Content-Length = 846 [05:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.990, "sum" : 1750.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1750.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:41]execute_script... [05:37: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)951931", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 44.990, "sum" : 1750.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1750.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:37:41]POST & json_proto [05:37:41]process_json_proto [05:37:41]json parsed OK: [05:37:41]protocol is kg_v1.0 [05:37:41]action value=close_receipt [05:37:41]process_action close_receipt [05:37:41]cmd_close_receipt [05:37:41]MH_GetDate [05:37:41]Write to MH i2c: F0 00 00 4F 03 41 [05:37:41]Write i2c OK [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: F0 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: F0 09 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: F0 09 00 4F 03 00 27 23 1F 67 74 2C AD 66 CD [05:37:41]GetLastDocTimeStamp 1730093410 [05:37:41]current date 1730093863 [05:37:41]FM_GetShiftState [05:37:41]SAM_PROTO_GetShiftState [05:37:41]wFMCommunicate request_size=4 [05:37:41]MH_SAM_APDU [05:37:41]CAPDU: 80 13 01 00 [05:37:41]Write to MH i2c: E2 08 00 50 03 80 13 01 00 00 00 00 00 D0 [05:37:41]Write i2c OK [05:37:41]MH_I2C_Read... [05:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:41]Read from MH i2c: E2 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 0E 00 [05:37:41]MH_I2C_Read... [05:37:41]Read from MH i2c: E2 0E 00 50 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 38 [05:37:41]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:37:41]wFMCommunicate OK [05:37:41]SAM_PROTO_GetShiftState done [05:37:41]FM_GetShiftState done [05:37:41]opened in 1730074113 [05:37:41]opened+sec_in_day 1730160513 [05:37:41]quantity*price = 175011 [05:37:41]sum+1 = 175012 [05:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1750.11 НСП 1% : 15.49 НДС 12% : 185.85 Наличными: 0.00 Безнал.: 1750.11 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 12 28.10.2024 05:37 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72484 ФПД: 186727482785495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T053743&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72484&fm=186727482785495&tin=02508201610067®Number=0000000000091644&sum=175011 [05:37:43]StoreToDocumentArchive [05:37:43]shift 554 fd 72484 [05:37:43]save to /storage/0554/doc_00072484 [05:37:43]save last doc name /storage/0554/doc_00072484 to /storage/kkm_last_doc_name [05:37:43]save OK [05:37:43]Clear old archive folders... [05:37:43]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:37:43]tlvbuf is 00B54140 [05:37:43]SAM_PROTO_ClearQueue [05:37:43]wFMCommunicate request_size=4 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 09 00 00 [05:37:43]Write to MH i2c: E2 08 00 5D 03 80 09 00 00 00 00 00 00 D2 [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [05:37:43]RAPDU: 90 00 [05:37:43]wFMCommunicate OK [05:37:43]SAM_PROTO_ClearQueue done [05:37:43]KKMCreateOFDPacket [05:37:43]OFDProtocolAddRootSTLVToBuf [05:37:43]FM_MakeSignedData [05:37:43]FM_MakeSignedData [05:37:43]SAM_PROTO_SignData [05:37:43]wFMCommunicate request_size=4 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 0D 01 02 [05:37:43]Write to MH i2c: E2 08 00 5E 03 80 0D 01 02 00 00 00 00 DA [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [05:37:43]RAPDU: 90 00 [05:37:43]wFMCommunicate OK [05:37:43]wFMCommunicate request_size=255 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 27 23 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1B 01 00 35 04 06 00 A9 D3 [05:37:43]Write to MH i2c: E2 02 01 5F 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 27 23 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1B 01 00 35 04 06 00 A9 D3 00 00 DF [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 5F 03 00 90 00 D6 [05:37:43]RAPDU: 90 00 [05:37:43]wFMCommunicate OK [05:37:43]wFMCommunicate request_size=9 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 0D 02 02 04 E1 47 FE D7 [05:37:43]Write to MH i2c: E2 0C 00 60 03 80 0D 02 02 04 00 E1 47 FE D7 00 00 E2 [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 03 00 60 03 00 90 00 D7 [05:37:43]RAPDU: 90 00 [05:37:43]wFMCommunicate OK [05:37:43]wFMCommunicate request_size=4 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 0D 03 02 [05:37:43]Write to MH i2c: E2 08 00 61 03 80 0D 03 02 00 00 00 00 DF [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 0B 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 0B 00 61 03 00 1A 80 A4 76 58 0B 7F 1A 90 00 90 [05:37:43]RAPDU: 1A 80 A4 76 58 0B 7F 1A 90 00 [05:37:43]wFMCommunicate OK [05:37:43]SAM_PROTO_SignData done [05:37:43]FM_MakeSignedData done [05:37:43]CreateOFDProtocolMessage [05:37:43]wFMCommunicate request_size=4 [05:37:43]MH_SAM_APDU [05:37:43]CAPDU: 80 11 00 00 [05:37:43]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:43]Read from MH i2c: E2 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 17 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [05:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:37:43]wFMCommunicate OK [05:37:43]CreateOFDProtocolMessage done [05:37:43]OFDSenderStorePacket 72484 [05:37:43]StoreOFDPacket docnum=72484 [05:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 73 B2 06 01 9D AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 27 23 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1B 01 00 35 04 06 00 A9 D3 E1 47 FE D7 1A 80 A4 76 58 0B 7F 1A [05:37:43]CheckFolder [05:37:43]dirname=/storage/ofd_packets [05:37:43]CheckFolder done [05:37:43]ProducePacketName [05:37:43]name=ofd_packets/00072484 [05:37:43]NVStorageSaveData ofd_packets/00072484 [05:37:43]File name is /storage/ofd_packets/00072484 [05:37:43]Write 300 bytes [05:37:43]NVStorageSaveData done [05:37:43]OFDSenderStorePacket done [05:37:43]KKMCreateOFDPacket done [05:37:43]NVStorageSaveData kkm_last_timestamp [05:37:43]File name is /storage/kkm_last_timestamp [05:37:43]Write 4 bytes [05:37:43]NVStorageSaveData done [05:37:43]ExternCall_PrintAddStr [05:37:43]wPrintStart [05:37:43]Write to MH i2c: 01 00 00 63 03 66 [05:37:43]Write i2c OK [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: 01 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: 01 07 00 [05:37:43]MH_I2C_Read... [05:37:43]Read from MH i2c: 01 07 00 63 03 00 00 00 00 00 FF 0F 7B [05:37:43]RasterBufferAndPrint [05:37:43]line Счет N : (1)951931 [05:37:43]line ИНН: 02508201610067 [05:37:43]line Контрольно-Кассовый Чек [05:37:43]line ПРОДАЖА [05:37:43]line ТРК (МРК, ГНК) : 71 [05:37:43]line Товар: 2711190000 [05:37:43]line ГАЗ-К-3 [05:37:43]line 44.990 * 38.90 [05:37:43]line = 1750.11 [05:37:43]line НДС 12% НСП 1% [05:37:43]line > о реализуемом товаре [05:37:43]line ИТОГО: 1750.11 [05:37:43]line НСП 1% : 15.49 [05:37:43]line НДС 12% : 185.85 [05:37:43]line Наличными: 0.00 [05:37:43]line Безнал.: 1750.11 [05:37:43]line Место: АЗС № 113 "Партнер Нефть" [05:37:43]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:37:43]line СНО: Общий режим [05:37:43]line Чек 12 28.10.2024 05:37 [05:37:43]line Смена: 554 ФФД: 1.0 [05:37:43]line ЗНМ: 0300000087 [05:37:43]line РНМ: 0000000000091644 [05:37:43]line Версия ККМ: 001 [05:37:43]line Платежная система: АКБ Кыргызстан [05:37:43]line ФМ: 0000000000874662 [05:37:43]line ФД: 72484 [05:37:43]line ФПД: 186727482785495 [05:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T053743&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72484&fm=186727482785495&tin=02508201610067®Number=0000000000091644&sum=175011 [05:37:43]written 0, free lines is 4095 [05:37:43]OFD Sender: Processing packet 72484 [packets to send 272, broken 271] [05:37:43]ProducePacketName [05:37:43]name=ofd_packets/00072484 [05:37:43]OFD Sender: To server: pG, [05:37:43]CommunicateWithHost lk.salyk.kg:30040 [05:37:43]ConnectInit lk.salyk.kg [05:37:44]Write to MH i2c: 01 00 00 8D 03 90 [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: 01 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: 01 07 00 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: 01 07 00 8D 03 00 00 00 00 00 EA 0C 8D [05:37:44]RasterBufferAndPrint [05:37:44]line [05:37:44]line [05:37:44]line [05:37:44]line [05:37:44]line [05:37:44]written 0, free lines is 3313 [05:37:44]MH_Cut [05:37:44]Write to MH i2c: D1 01 00 94 03 01 69 [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: D1 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: D1 01 00 [05:37:44]MH_I2C_Read... [05:37:44]Read from MH i2c: D1 01 00 94 03 00 68 [05:37:44]Write to MH i2c: 01 00 00 95 03 98 [05:37:44]Write i2c OK [05:37:44]MH_I2C_Read... [05:37:45]*** Cut start [05:37:45]*** Partial cut [05:37:45]*** CUTSNS_PIN = 1 [05:37:45]*** CUTSNS_PIN = 0 [05:37:45]*** Brake cut motor [05:37:45]Read from MH i2c: 01 [05:37:45]MH_I2C_Read... [05:37:45]*** Stop cut motor [05:37:45]*** Cut end [05:37:45]Read from MH i2c: 01 07 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: 01 07 00 95 03 00 00 00 00 00 FF 0F AD [05:37:45]process_action close_receipt done [05:37:45]requested_data is exist [05:37:45]produce_requested_data [05:37:45]requested_item fm.sn is exist - process it [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 11 00 00 [05:37:45]Write to MH i2c: E2 08 00 96 03 80 11 00 00 00 00 00 00 13 [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 17 00 96 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [05:37:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:37:45]wFMCommunicate OK [05:37:45]requested_item fd.num is exist - process it [05:37:45]SAM_PROTO_GetFieldsCounters [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 13 00 00 [05:37:45]Write to MH i2c: E2 08 00 97 03 80 13 00 00 00 00 00 00 16 [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]recv_with_timeout no data received [05:37:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 62 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 62 00 97 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 24 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [05:37: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 24 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:37:45]wFMCommunicate OK [05:37:45]SAM_PROTO_GetFieldsCounters done [05:37:45]requested_item shift.num is exist - process it [05:37:45]requested_item shift.opened is exist - process it [05:37:45]req_shift_opened [05:37:45]FM_GetShiftState [05:37:45]SAM_PROTO_GetShiftState [05:37:45]wFMCommunicate request_size=4 [05:37:45]MH_SAM_APDU [05:37:45]CAPDU: 80 13 01 00 [05:37:45]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [05:37:45]Write i2c OK [05:37:45]MH_I2C_Read... [05:37:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:37:45]Read from MH i2c: E2 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 0E 00 [05:37:45]MH_I2C_Read... [05:37:45]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 80 [05:37:45]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:37:45]wFMCommunicate OK [05:37:45]SAM_PROTO_GetShiftState done [05:37:45]FM_GetShiftState done [05:37:45]req_shift_opened done [05:37:45]requested_item shift.open_date is exist - process it [05:37:45]req_shift_open_date [05:37:45]req_shift_open_date done [05:37:45]produce_requested_data done [05:37:45]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72484,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:37:45]process_action_free close_receipt [05:37:45]json_value_free [05:37:45]json_value_free done [05:37:45]process_json_proto returns [05:37:45]Send response to host [05:37:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72484,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:37:45]free response buf [05:37:45]execute_script done [05:37:45]execute_script returns [05:37:45]free content buf [05:37:45]Sock 9.Close socket [05:37:45]Sock 9.Thread stoped [05:37:47]Connected sock=11 [05:37:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 73 B2 06 01 9D AB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AF 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 A3 AB 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A3 AB 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 48 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A3 AB 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 27 23 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 24 1B 01 00 35 04 06 00 A9 D3 E1 47 FE D7 1A 80 A4 76 58 0B 7F 1A [05:37:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C6 A6 47 00 10 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 34 36 36 32 10 04 04 00 24 1B 01 00 F4 03 04 00 EA CD 1E 67 B6 04 01 00 00 F4 5F F0 D3 AA 41 43 69 [05:37:48]CommunicateWithHost err = 0 [05:37:48]CheckOFDResponse [05:37:48]1017 (14) - 77093643461234 [05:37:48]1041 (16) - 0000000000874662 [05:37:48]1040 (4) - 72484 [05:37:48]1012 (4) - 27.10.2024 23:34 [05:37:48]1206 (1) - 0 [05:37:48]OFD Sender: Remove packet 72484 [05:37:48]ProducePacketName [05:37:48]name=ofd_packets/00072484 [05:37:48]NVStorageDeleteData [05:37:48]OFD Sender: No OFD packet to send [05:37:53]OFD Sender: No OFD packet to send [05:37:57]recv_with_timeout no data received [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]recv_with_timeout no data received [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:19]recv_with_timeout no data received [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:40]accept exits with 10 [05:38:40]New connection [05:38:40]New thread 3067080036 created [05:38:40]Thread 3066936676 joined [05:38:40]Waiting for new connection... [05:38:40] Sock 10.Parse request [05:38:40]Sock 10.Check first char [05:38:40]Sock 10.First char is OK [05:38:40]request: POST /json_proto HTTP/1.0 [05:38:40]Method: POST [05:38:40]URL: /json_proto [05:38:40]Method is POST - this is cgi request [05:38:40]url: /json_proto [05:38:40]query_string will be loaded in cgi processing [05:38:40]execute_cgi json_proto POST (null) [05:38:40]execute_cgi path=json_proto method=POST [05:38:40]POST find Content-Length [05:38:40]Host: 172.17.43.195:8080 [05:38:40]Content-Length: 797 [05:38:40]Content-Type: application/json [05:38:40] [05:38:40]POST finish read [05:38:40]Found Content-Length = 797 [05:38:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:40]execute_script... [05:38:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951932", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:38:40]POST & json_proto [05:38:40]process_json_proto [05:38:40]json parsed OK: [05:38:40]protocol is kg_v1.0 [05:38:40]action value=close_receipt [05:38:40]process_action close_receipt [05:38:40]cmd_close_receipt [05:38:40]MH_GetDate [05:38:40]Write to MH i2c: F0 00 00 99 03 8B [05:38:40]Write i2c OK [05:38:40]MH_I2C_Read... [05:38:40]Read from MH i2c: F0 [05:38:40]MH_I2C_Read... [05:38:40]Read from MH i2c: F0 09 00 [05:38:40]MH_I2C_Read... [05:38:40]Read from MH i2c: F0 09 00 99 03 00 61 23 1F 67 74 2C AD 66 51 [05:38:40]GetLastDocTimeStamp 1730093863 [05:38:40]current date 1730093921 [05:38:40]FM_GetShiftState [05:38:40]SAM_PROTO_GetShiftState [05:38:40]wFMCommunicate request_size=4 [05:38:40]MH_SAM_APDU [05:38:40]CAPDU: 80 13 01 00 [05:38:40]Write to MH i2c: E2 08 00 9A 03 80 13 01 00 00 00 00 00 1A [05:38:40]Write i2c OK [05:38:40]MH_I2C_Read... [05:38:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:38:40]Read from MH i2c: E2 [05:38:40]MH_I2C_Read... [05:38:40]Read from MH i2c: E2 0E 00 [05:38:40]MH_I2C_Read... [05:38:40]Read from MH i2c: E2 0E 00 9A 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 82 [05:38:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:38:40]wFMCommunicate OK [05:38:40]SAM_PROTO_GetShiftState done [05:38:40]FM_GetShiftState done [05:38:40]opened in 1730074113 [05:38:40]opened+sec_in_day 1730160513 [05:38:40]quantity*price = 0 [05:38:40]sum+1 = 1 [05:38:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 14 28.10.2024 05:42 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72486 ФПД: 120362483430327 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054216&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72486&fm=120362483430327&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:16]StoreToDocumentArchive [05:42:16]shift 554 fd 72486 [05:42:16]save to /storage/0554/doc_00072486 [05:42:16]save last doc name /storage/0554/doc_00072486 to /storage/kkm_last_doc_name [05:42:16]save OK [05:42:16]Clear old archive folders... [05:42:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [05:42:16]tlvbuf is 00D61CA0 [05:42:16]SAM_PROTO_ClearQueue [05:42:16]wFMCommunicate request_size=4 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 09 00 00 [05:42:16]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [05:42:16]RAPDU: 90 00 [05:42:16]wFMCommunicate OK [05:42:16]SAM_PROTO_ClearQueue done [05:42:16]KKMCreateOFDPacket [05:42:16]OFDProtocolAddRootSTLVToBuf [05:42:16]FM_MakeSignedData [05:42:16]FM_MakeSignedData [05:42:16]SAM_PROTO_SignData [05:42:16]wFMCommunicate request_size=4 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 0D 01 02 [05:42:16]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:16]Read from MH i2c: E2 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 [05:42:16]MH_I2C_Read... [05:42:16]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [05:42:16]RAPDU: 90 00 [05:42:16]wFMCommunicate OK [05:42:16]wFMCommunicate request_size=255 [05:42:16]MH_SAM_APDU [05:42:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 38 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1B 01 00 35 04 06 00 [05:42:16]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 38 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1B 01 00 35 04 06 00 00 00 D3 [05:42:16]Write i2c OK [05:42:16]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [05:42:17]RAPDU: 90 00 [05:42:17]wFMCommunicate OK [05:42:17]wFMCommunicate request_size=11 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 0D 02 02 06 6D 78 13 11 B3 B7 [05:42:17]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 6D 78 13 11 B3 B7 00 00 27 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [05:42:17]RAPDU: 90 00 [05:42:17]wFMCommunicate OK [05:42:17]wFMCommunicate request_size=4 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 0D 03 02 [05:42:17]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 0B 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 0B 00 2F 00 00 58 59 EB 46 2A C0 40 92 90 00 49 [05:42:17]RAPDU: 58 59 EB 46 2A C0 40 92 90 00 [05:42:17]wFMCommunicate OK [05:42:17]SAM_PROTO_SignData done [05:42:17]FM_MakeSignedData done [05:42:17]CreateOFDProtocolMessage [05:42:17]wFMCommunicate request_size=4 [05:42:17]MH_SAM_APDU [05:42:17]CAPDU: 80 11 00 00 [05:42:17]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:17]Read from MH i2c: E2 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: E2 17 00 [05:42:17]MH_I2C_Read... [05:42:17]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 34 36 36 32 90 00 FE [05:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:17]wFMCommunicate OK [05:42:17]CreateOFDProtocolMessage done [05:42:17]OFDSenderStorePacket 72486 [05:42:17]StoreOFDPacket docnum=72486 [05:42:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 20 9A 08 01 2B 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 38 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1B 01 00 35 04 06 00 6D 78 13 11 B3 B7 58 59 EB 46 2A C0 40 92 [05:42:17]CheckFolder [05:42:17]dirname=/storage/ofd_packets [05:42:17]CheckFolder done [05:42:17]ProducePacketName [05:42:17]name=ofd_packets/00072486 [05:42:17]NVStorageSaveData ofd_packets/00072486 [05:42:17]File name is /storage/ofd_packets/00072486 [05:42:17]Write 302 bytes [05:42:17]NVStorageSaveData done [05:42:17]OFDSenderStorePacket done [05:42:17]KKMCreateOFDPacket done [05:42:17]NVStorageSaveData kkm_last_timestamp [05:42:17]File name is /storage/kkm_last_timestamp [05:42:17]Write 4 bytes [05:42:17]NVStorageSaveData done [05:42:17]ExternCall_PrintAddStr [05:42:17]wPrintStart [05:42:17]Write to MH i2c: 01 00 00 31 00 31 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [05:42:17]RasterBufferAndPrint [05:42:17]line Счет N : (1)951932 [05:42:17]line ИНН: 02508201610067 [05:42:17]line Контрольно-Кассовый Чек [05:42:17]line ПРОДАЖА [05:42:17]line ТРК (МРК, ГНК) : 33 [05:42:17]line Товар: 2710194210 [05:42:17]line ДТ(л)-К-5 [05:42:17]line 44.000 * 0.00 [05:42:17]line = 0.00 [05:42:17]line НДС 12% НСП 1% [05:42:17]line > о реализуемом товаре [05:42:17]line ИТОГО: 0.00 [05:42:17]line НСП 1% : 0.00 [05:42:17]line НДС 12% : 0.00 [05:42:17]line Наличными: 0.00 [05:42:17]line Безнал.: 0.00 [05:42:17]line Место: АЗС № 113 "Партнер Нефть" [05:42:17]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:42:17]line СНО: Общий режим [05:42:17]line Чек 14 28.10.2024 05:42 [05:42:17]line Смена: 554 ФФД: 1.0 [05:42:17]line ЗНМ: 0300000087 [05:42:17]line РНМ: 0000000000091644 [05:42:17]line Версия ККМ: 001 [05:42:17]line Талоны: Топливная Карта [05:42:17]line 02083 [05:42:17]line ФМ: 0000000000874662 [05:42:17]line ФД: 72486 [05:42:17]line ФПД: 120362483430327 [05:42:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054216&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72486&fm=120362483430327&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:17]written 0, free lines is 4095 [05:42:17]Write to MH i2c: 01 00 00 5B 00 5B [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 F7 0C 65 [05:42:17]RasterBufferAndPrint [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]line [05:42:17]written 0, free lines is 3342 [05:42:17]MH_Cut [05:42:17]Write to MH i2c: D1 01 00 62 00 01 34 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 01 00 [05:42:17]MH_I2C_Read... [05:42:17]Read from MH i2c: D1 01 00 62 00 00 33 [05:42:17]Write to MH i2c: 01 00 00 63 00 63 [05:42:17]Write i2c OK [05:42:17]MH_I2C_Read... [05:42:18]recv_with_timeout no data received [05:42:18]CommunicateWithHost answer receiving error [05:42:18]CommunicateWithHost err = -3 [05:42:18]OFD Sender: Server communicate error [05:42:18]OFD Sender: Processing packet 72485 [packets to send 273, broken 271] [05:42:18]ProducePacketName [05:42:18]name=ofd_packets/00072485 [05:42:18]OFD Sender: To server: pG, [05:42:18]CommunicateWithHost lk.salyk.kg:30040 [05:42:18]ConnectInit lk.salyk.kg [05:42:18]*** Cut start [05:42:18]*** Partial cut [05:42:18]*** CUTSNS_PIN = 1 [05:42:18]*** CUTSNS_PIN = 0 [05:42:18]*** Brake cut motor [05:42:19]Read from MH i2c: 01 [05:42:19]MH_I2C_Read... [05:42:19]*** Stop cut motor [05:42:19]*** Cut end [05:42:19]Read from MH i2c: 01 07 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [05:42:19]process_action close_receipt done [05:42:19]requested_data is exist [05:42:19]produce_requested_data [05:42:19]requested_item fm.sn is exist - process it [05:42:19]wFMCommunicate request_size=4 [05:42:19]MH_SAM_APDU [05:42:19]CAPDU: 80 11 00 00 [05:42:19]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:19]Read from MH i2c: E2 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 17 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [05:42:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:19]wFMCommunicate OK [05:42:19]requested_item fd.num is exist - process it [05:42:19]SAM_PROTO_GetFieldsCounters [05:42:19]wFMCommunicate request_size=4 [05:42:19]MH_SAM_APDU [05:42:19]CAPDU: 80 13 00 00 [05:42:19]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:19]Read from MH i2c: E2 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 62 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 26 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [05:42: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 26 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:42:19]wFMCommunicate OK [05:42:19]SAM_PROTO_GetFieldsCounters done [05:42:19]requested_item shift.num is exist - process it [05:42:19]requested_item shift.opened is exist - process it [05:42:19]req_shift_opened [05:42:19]FM_GetShiftState [05:42:19]SAM_PROTO_GetShiftState [05:42:19]wFMCommunicate request_size=4 [05:42:19]MH_SAM_APDU [05:42:19]CAPDU: 80 13 01 00 [05:42:19]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [05:42:19]Write i2c OK [05:42:19]MH_I2C_Read... [05:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:19]Read from MH i2c: E2 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 0E 00 [05:42:19]MH_I2C_Read... [05:42:19]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [05:42:19]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:42:19]wFMCommunicate OK [05:42:19]SAM_PROTO_GetShiftState done [05:42:19]FM_GetShiftState done [05:42:19]req_shift_opened done [05:42:19]requested_item shift.open_date is exist - process it [05:42:19]req_shift_open_date [05:42:19]req_shift_open_date done [05:42:19]produce_requested_data done [05:42:19]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72486,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:42:19]process_action_free close_receipt [05:42:19]json_value_free [05:42:19]json_value_free done [05:42:19]process_json_proto returns [05:42:19]Send response to host [05:42:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72486,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:42:19]free response buf [05:42:19]execute_script done [05:42:19]execute_script returns [05:42:19]free content buf [05:42:19]Sock 8.Close socket [05:42:19]Sock 8.Thread stoped [05:42:19]accept exits with 11 [05:42:19]New connection [05:42:19]New thread 3067448676 created [05:42:19]Thread 3067592036 joined [05:42:19]Waiting for new connection... [05:42:19] Sock 11.Parse request [05:42:19]Sock 11.Check first char [05:42:19]Sock 11.First char is OK [05:42:19]request: POST /json_proto HTTP/1.0 [05:42:19]Method: POST [05:42:19]URL: /json_proto [05:42:19]Method is POST - this is cgi request [05:42:19]url: /json_proto [05:42:19]query_string will be loaded in cgi processing [05:42:19]execute_cgi json_proto POST (null) [05:42:19]execute_cgi path=json_proto method=POST [05:42:19]POST find Content-Length [05:42:19]Host: 172.17.43.195:8080 [05:42:19]Content-Length: 792 [05:42:19]Content-Type: application/json [05:42:19] [05:42:19]POST finish read [05:42:19]Found Content-Length = 792 [05:42:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:20]execute_script... [05:42:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951933", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:42:20]POST & json_proto [05:42:20]process_json_proto [05:42:20]json parsed OK: [05:42:20]protocol is kg_v1.0 [05:42:20]action value=close_receipt [05:42:20]process_action close_receipt [05:42:20]cmd_close_receipt [05:42:20]MH_GetDate [05:42:20]Write to MH i2c: F0 00 00 67 00 56 [05:42:20]Write i2c OK [05:42:20]MH_I2C_Read... [05:42:20]Read from MH i2c: F0 [05:42:20]MH_I2C_Read... [05:42:20]Read from MH i2c: F0 09 00 [05:42:20]MH_I2C_Read... [05:42:20]Read from MH i2c: F0 09 00 67 00 00 3C 24 1F 67 74 2C AD 66 F8 [05:42:20]GetLastDocTimeStamp 1730094136 [05:42:20]current date 1730094140 [05:42:20]FM_GetShiftState [05:42:20]SAM_PROTO_GetShiftState [05:42:20]wFMCommunicate request_size=4 [05:42:20]MH_SAM_APDU [05:42:20]CAPDU: 80 13 01 00 [05:42:20]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [05:42:20]Write i2c OK [05:42:20]MH_I2C_Read... [05:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:20]Read from MH i2c: E2 [05:42:20]MH_I2C_Read... [05:42:20]Read from MH i2c: E2 0E 00 [05:42:20]MH_I2C_Read... [05:42:20]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [05:42:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:42:20]wFMCommunicate OK [05:42:20]SAM_PROTO_GetShiftState done [05:42:20]FM_GetShiftState done [05:42:20]opened in 1730074113 [05:42:20]opened+sec_in_day 1730160513 [05:42:20]quantity*price = 0 [05:42:20]sum+1 = 1 [05:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 15 28.10.2024 05:42 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72487 ФПД: 86729170698863 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054221&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72487&fm=86729170698863&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:21]StoreToDocumentArchive [05:42:21]shift 554 fd 72487 [05:42:21]save to /storage/0554/doc_00072487 [05:42:21]save last doc name /storage/0554/doc_00072487 to /storage/kkm_last_doc_name [05:42:21]save OK [05:42:21]Clear old archive folders... [05:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:42:21]tlvbuf is 00D61B70 [05:42:21]SAM_PROTO_ClearQueue [05:42:21]wFMCommunicate request_size=4 [05:42:21]MH_SAM_APDU [05:42:21]CAPDU: 80 09 00 00 [05:42:21]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [05:42:21]Write i2c OK [05:42:21]MH_I2C_Read... [05:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:21]Read from MH i2c: E2 [05:42:21]MH_I2C_Read... [05:42:21]Read from MH i2c: E2 03 00 [05:42:21]MH_I2C_Read... [05:42:21]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [05:42:21]RAPDU: 90 00 [05:42:21]wFMCommunicate OK [05:42:21]SAM_PROTO_ClearQueue done [05:42:21]KKMCreateOFDPacket [05:42:21]OFDProtocolAddRootSTLVToBuf [05:42:21]FM_MakeSignedData [05:42:21]FM_MakeSignedData [05:42:21]SAM_PROTO_SignData [05:42:21]wFMCommunicate request_size=4 [05:42:21]MH_SAM_APDU [05:42:21]CAPDU: 80 0D 01 02 [05:42:21]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [05:42:21]Write i2c OK [05:42:21]MH_I2C_Read... [05:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:21]Read from MH i2c: E2 [05:42:21]MH_I2C_Read... [05:42:21]Read from MH i2c: E2 03 00 [05:42:21]MH_I2C_Read... [05:42:21]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [05:42:21]RAPDU: 90 00 [05:42:21]wFMCommunicate OK [05:42:21]wFMCommunicate request_size=255 [05:42:21]MH_SAM_APDU [05:42:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3D 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1B 01 00 35 04 06 00 4E [05:42:21]Write to MH i2c: E2 02 01 77 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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3D 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1B 01 00 35 04 06 00 4E 00 00 EC [05:42:21]Write i2c OK [05:42:21]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 03 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [05:42:22]RAPDU: 90 00 [05:42:22]wFMCommunicate OK [05:42:22]wFMCommunicate request_size=10 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 0D 02 02 05 E1 35 69 42 6F [05:42:22]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 E1 35 69 42 6F 00 00 2C [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 03 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [05:42:22]RAPDU: 90 00 [05:42:22]wFMCommunicate OK [05:42:22]wFMCommunicate request_size=4 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 0D 03 02 [05:42:22]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 0B 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 0B 00 79 00 00 35 F2 C0 D9 9F 64 AD 52 90 00 B7 [05:42:22]RAPDU: 35 F2 C0 D9 9F 64 AD 52 90 00 [05:42:22]wFMCommunicate OK [05:42:22]SAM_PROTO_SignData done [05:42:22]FM_MakeSignedData done [05:42:22]CreateOFDProtocolMessage [05:42:22]wFMCommunicate request_size=4 [05:42:22]MH_SAM_APDU [05:42:22]CAPDU: 80 11 00 00 [05:42:22]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:22]Read from MH i2c: E2 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 17 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [05:42:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:22]wFMCommunicate OK [05:42:22]CreateOFDProtocolMessage done [05:42:22]OFDSenderStorePacket 72487 [05:42:22]StoreOFDPacket docnum=72487 [05:42:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E9 23 07 01 D7 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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3D 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1B 01 00 35 04 06 00 4E E1 35 69 42 6F 35 F2 C0 D9 9F 64 AD 52 [05:42:22]CheckFolder [05:42:22]dirname=/storage/ofd_packets [05:42:22]CheckFolder done [05:42:22]ProducePacketName [05:42:22]name=ofd_packets/00072487 [05:42:22]NVStorageSaveData ofd_packets/00072487 [05:42:22]File name is /storage/ofd_packets/00072487 [05:42:22]Write 301 bytes [05:42:22]NVStorageSaveData done [05:42:22]OFDSenderStorePacket done [05:42:22]KKMCreateOFDPacket done [05:42:22]NVStorageSaveData kkm_last_timestamp [05:42:22]File name is /storage/kkm_last_timestamp [05:42:22]Write 4 bytes [05:42:22]NVStorageSaveData done [05:42:22]ExternCall_PrintAddStr [05:42:22]wPrintStart [05:42:22]Write to MH i2c: 01 00 00 7B 00 7B [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 07 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [05:42:22]RasterBufferAndPrint [05:42:22]line Счет N : (1)951933 [05:42:22]line ИНН: 02508201610067 [05:42:22]line Контрольно-Кассовый Чек [05:42:22]line ПРОДАЖА [05:42:22]line ТРК (МРК, ГНК) : 53 [05:42:22]line Товар: 2710124130 [05:42:22]line Аи-92-К-5 [05:42:22]line 35.000 * 0.00 [05:42:22]line = 0.00 [05:42:22]line НДС 12% НСП 1% [05:42:22]line > о реализуемом товаре [05:42:22]line ИТОГО: 0.00 [05:42:22]line НСП 1% : 0.00 [05:42:22]line НДС 12% : 0.00 [05:42:22]line Наличными: 0.00 [05:42:22]line Безнал.: 0.00 [05:42:22]line Место: АЗС № 113 "Партнер Нефть" [05:42:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:42:22]line СНО: Общий режим [05:42:22]line Чек 15 28.10.2024 05:42 [05:42:22]line Смена: 554 ФФД: 1.0 [05:42:22]line ЗНМ: 0300000087 [05:42:22]line РНМ: 0000000000091644 [05:42:22]line Версия ККМ: 001 [05:42:22]line Талоны: Топливная Карта [05:42:22]line 03047 [05:42:22]line ФМ: 0000000000874662 [05:42:22]line ФД: 72487 [05:42:22]line ФПД: 86729170698863 [05:42:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054221&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72487&fm=86729170698863&tin=02508201610067®Number=0000000000091644&sum=0 [05:42:22]written 0, free lines is 4095 [05:42:22]Write to MH i2c: 01 00 00 A5 00 A5 [05:42:22]Write i2c OK [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 07 00 [05:42:22]MH_I2C_Read... [05:42:22]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 EE 0C A6 [05:42:22]RasterBufferAndPrint [05:42:22]line [05:42:22]line [05:42:22]line [05:42:22]line [05:42:22]line [05:42:22]written 0, free lines is 3340 [05:42:22]MH_Cut [05:42:22]Write to MH i2c: D1 01 00 AC 00 01 7E [05:42:23]Write i2c OK [05:42:23]MH_I2C_Read... [05:42:23]Read from MH i2c: D1 [05:42:23]MH_I2C_Read... [05:42:23]Read from MH i2c: D1 01 00 [05:42:23]MH_I2C_Read... [05:42:23]Read from MH i2c: D1 01 00 AC 00 00 7D [05:42:23]Write to MH i2c: 01 00 00 AD 00 AD [05:42:23]Write i2c OK [05:42:23]MH_I2C_Read... [05:42:23]*** Cut start [05:42:23]*** Partial cut [05:42:23]*** CUTSNS_PIN = 1 [05:42:23]*** CUTSNS_PIN = 0 [05:42:23]*** Brake cut motor [05:42:24]Read from MH i2c: 01 [05:42:24]MH_I2C_Read... [05:42:24]*** Stop cut motor [05:42:24]*** Cut end [05:42:24]Read from MH i2c: 01 07 00 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [05:42:24]process_action close_receipt done [05:42:24]requested_data is exist [05:42:24]produce_requested_data [05:42:24]requested_item fm.sn is exist - process it [05:42:24]wFMCommunicate request_size=4 [05:42:24]MH_SAM_APDU [05:42:24]CAPDU: 80 11 00 00 [05:42:24]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [05:42:24]Write i2c OK [05:42:24]MH_I2C_Read... [05:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:24]Read from MH i2c: E2 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 17 00 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [05:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:42:24]wFMCommunicate OK [05:42:24]requested_item fd.num is exist - process it [05:42:24]SAM_PROTO_GetFieldsCounters [05:42:24]wFMCommunicate request_size=4 [05:42:24]MH_SAM_APDU [05:42:24]CAPDU: 80 13 00 00 [05:42:24]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [05:42:24]Write i2c OK [05:42:24]MH_I2C_Read... [05:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:24]Read from MH i2c: E2 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 62 00 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 27 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [05:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 27 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:42:24]wFMCommunicate OK [05:42:24]SAM_PROTO_GetFieldsCounters done [05:42:24]requested_item shift.num is exist - process it [05:42:24]requested_item shift.opened is exist - process it [05:42:24]req_shift_opened [05:42:24]FM_GetShiftState [05:42:24]SAM_PROTO_GetShiftState [05:42:24]wFMCommunicate request_size=4 [05:42:24]MH_SAM_APDU [05:42:24]CAPDU: 80 13 01 00 [05:42:24]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [05:42:24]Write i2c OK [05:42:24]MH_I2C_Read... [05:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:24]Read from MH i2c: E2 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 0E 00 [05:42:24]MH_I2C_Read... [05:42:24]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [05:42:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:42:24]wFMCommunicate OK [05:42:24]SAM_PROTO_GetShiftState done [05:42:24]FM_GetShiftState done [05:42:24]req_shift_opened done [05:42:24]requested_item shift.open_date is exist - process it [05:42:24]req_shift_open_date [05:42:24]req_shift_open_date done [05:42:24]produce_requested_data done [05:42:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72487,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:42:24]process_action_free close_receipt [05:42:24]json_value_free [05:42:24]json_value_free done [05:42:24]process_json_proto returns [05:42:24]Send response to host [05:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72487,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:42:24]free response buf [05:42:24]execute_script done [05:42:24]execute_script returns [05:42:24]free content buf [05:42:24]Sock 11.Close socket [05:42:24]Sock 11.Thread stoped [05:42:24]recv_with_timeout no data received [05:42:26]Connected sock=6 [05:42:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 91 C3 08 01 41 BD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 61 23 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 25 1B 01 00 35 04 06 00 A7 44 DC 98 D3 18 B0 B6 0A 6E 7F 85 2B 56 [05:42:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7D 7D 47 00 8C 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 34 36 36 32 10 04 04 00 25 1B 01 00 F4 03 04 00 00 CF 1E 67 B6 04 01 00 00 27 B0 A8 4D 2A D5 B0 09 [05:42:29]CommunicateWithHost err = 0 [05:42:29]CheckOFDResponse [05:42:29]1017 (14) - 77093643461234 [05:42:29]1041 (16) - 0000000000874662 [05:42:29]1040 (4) - 72485 [05:42:29]1012 (4) - 27.10.2024 23:38 [05:42:29]1206 (1) - 0 [05:42:29]OFD Sender: Remove packet 72485 [05:42:29]ProducePacketName [05:42:29]name=ofd_packets/00072485 [05:42:29]NVStorageDeleteData [05:42:30]OFD Sender: Processing packet 72486 [packets to send 273, broken 271] [05:42:30]ProducePacketName [05:42:30]name=ofd_packets/00072486 [05:42:30]OFD Sender: To server: pG, [05:42:30]CommunicateWithHost lk.salyk.kg:30040 [05:42:30]ConnectInit lk.salyk.kg [05:42:36]recv_with_timeout no data received [05:42:36]Connected sock=10 [05:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 20 9A 08 01 2B 71 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 38 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 26 1B 01 00 35 04 06 00 6D 78 13 11 B3 B7 58 59 EB 46 2A C0 40 92 [05:42:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 50 AF 47 00 81 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 34 36 36 32 10 04 04 00 26 1B 01 00 F4 03 04 00 0A CF 1E 67 B6 04 01 00 00 93 11 6C A6 3D 90 62 CE [05:42:40]CommunicateWithHost err = 0 [05:42:40]CheckOFDResponse [05:42:40]1017 (14) - 77093643461234 [05:42:40]1041 (16) - 0000000000874662 [05:42:40]1040 (4) - 72486 [05:42:40]1012 (4) - 27.10.2024 23:38 [05:42:40]1206 (1) - 0 [05:42:40]OFD Sender: Remove packet 72486 [05:42:40]ProducePacketName [05:42:40]name=ofd_packets/00072486 [05:42:40]NVStorageDeleteData [05:42:41]OFD Sender: Processing packet 72487 [packets to send 272, broken 271] [05:42:41]ProducePacketName [05:42:41]name=ofd_packets/00072487 [05:42:41]OFD Sender: To server: pG, [05:42:41]CommunicateWithHost lk.salyk.kg:30040 [05:42:41]ConnectInit lk.salyk.kg [05:42:47]recv_with_timeout no data received [05:42:50]Connected sock=10 [05:42:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E9 23 07 01 D7 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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 3D 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1B 01 00 35 04 06 00 4E E1 35 69 42 6F 35 F2 C0 D9 9F 64 AD 52 [05:42:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 99 AF 47 00 E2 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 27 1B 01 00 F4 03 04 00 19 CF 1E 67 B6 04 01 00 00 6F DD 9E A0 9D 23 51 55 [05:42:53]CommunicateWithHost err = 0 [05:42:53]CheckOFDResponse [05:42:53]1017 (14) - 77093643461234 [05:42:53]1041 (16) - 0000000000874662 [05:42:53]1040 (4) - 72487 [05:42:53]1012 (4) - 27.10.2024 23:39 [05:42:53]1206 (1) - 0 [05:42:53]OFD Sender: Remove packet 72487 [05:42:53]ProducePacketName [05:42:53]name=ofd_packets/00072487 [05:42:53]NVStorageDeleteData [05:42:53]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:18]recv_with_timeout no data received [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:58]recv_with_timeout no data received [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:06]accept exits with 8 [05:44:06]New connection [05:44:06]New thread 3067592036 created [05:44:06]Thread 3067448676 joined [05:44:06]Waiting for new connection... [05:44:06] Sock 8.Parse request [05:44:06]Sock 8.Check first char [05:44:06]Sock 8.First char is OK [05:44:06]request: POST /json_proto HTTP/1.0 [05:44:06]Method: POST [05:44:06]URL: /json_proto [05:44:06]Method is POST - this is cgi request [05:44:06]url: /json_proto [05:44:06]query_string will be loaded in cgi processing [05:44:06]execute_cgi json_proto POST (null) [05:44:06]execute_cgi path=json_proto method=POST [05:44:06]POST find Content-Length [05:44:06]Host: 172.17.43.195:8080 [05:44:06]Content-Length: 846 [05:44:06]Content-Type: application/json [05:44:06] [05:44:06]POST finish read [05:44:06]Found Content-Length = 846 [05:44:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:06]execute_script... [05:44:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951934", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 25.710, "sum" : 1000.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:06]POST & json_proto [05:44:06]process_json_proto [05:44:06]json parsed OK: [05:44:06]protocol is kg_v1.0 [05:44:06]action value=close_receipt [05:44:06]process_action close_receipt [05:44:06]cmd_close_receipt [05:44:06]MH_GetDate [05:44:06]Write to MH i2c: F0 00 00 B1 00 A0 [05:44:06]Write i2c OK [05:44:06]MH_I2C_Read... [05:44:06]Read from MH i2c: F0 [05:44:06]MH_I2C_Read... [05:44:06]Read from MH i2c: F0 09 00 [05:44:06]MH_I2C_Read... [05:44:06]Read from MH i2c: F0 09 00 B1 00 00 A7 24 1F 67 74 2C AD 66 AD [05:44:06]GetLastDocTimeStamp 1730094141 [05:44:06]current date 1730094247 [05:44:06]FM_GetShiftState [05:44:06]SAM_PROTO_GetShiftState [05:44:06]wFMCommunicate request_size=4 [05:44:06]MH_SAM_APDU [05:44:06]CAPDU: 80 13 01 00 [05:44:06]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [05:44:06]Write i2c OK [05:44:06]MH_I2C_Read... [05:44:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:06]Read from MH i2c: E2 [05:44:06]MH_I2C_Read... [05:44:06]Read from MH i2c: E2 0E 00 [05:44:06]MH_I2C_Read... [05:44:06]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [05:44:06]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:44:06]wFMCommunicate OK [05:44:06]SAM_PROTO_GetShiftState done [05:44:06]FM_GetShiftState done [05:44:06]opened in 1730074113 [05:44:06]opened+sec_in_day 1730160513 [05:44:06]quantity*price = 100011 [05:44:06]sum+1 = 100013 [05:44:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.12 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.12 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 16 28.10.2024 05:44 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72488 ФПД: 180453872021414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054407&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72488&fm=180453872021414&tin=02508201610067®Number=0000000000091644&sum=100012 [05:44:08]StoreToDocumentArchive [05:44:08]shift 554 fd 72488 [05:44:08]save to /storage/0554/doc_00072488 [05:44:08]save last doc name /storage/0554/doc_00072488 to /storage/kkm_last_doc_name [05:44:08]save OK [05:44:08]Clear old archive folders... [05:44:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [05:44:08]tlvbuf is 00D78D40 [05:44:08]SAM_PROTO_ClearQueue [05:44:08]wFMCommunicate request_size=4 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 09 00 00 [05:44:08]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [05:44:08]RAPDU: 90 00 [05:44:08]wFMCommunicate OK [05:44:08]SAM_PROTO_ClearQueue done [05:44:08]KKMCreateOFDPacket [05:44:08]OFDProtocolAddRootSTLVToBuf [05:44:08]FM_MakeSignedData [05:44:08]FM_MakeSignedData [05:44:08]SAM_PROTO_SignData [05:44:08]wFMCommunicate request_size=4 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 0D 01 02 [05:44:08]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [05:44:08]RAPDU: 90 00 [05:44:08]wFMCommunicate OK [05:44:08]wFMCommunicate request_size=255 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A7 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1B 01 00 35 04 06 00 A4 1F [05:44:08]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A7 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1B 01 00 35 04 06 00 A4 1F 00 00 46 [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [05:44:08]RAPDU: 90 00 [05:44:08]wFMCommunicate OK [05:44:08]wFMCommunicate request_size=9 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 0D 02 02 04 30 F0 AF A6 [05:44:08]Write to MH i2c: E2 0C 00 C2 00 80 0D 02 02 04 00 30 F0 AF A6 00 00 B9 [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [05:44:08]RAPDU: 90 00 [05:44:08]wFMCommunicate OK [05:44:08]wFMCommunicate request_size=4 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 0D 03 02 [05:44:08]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 0B 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 0B 00 C3 00 00 EC BF 22 58 4E 00 BB 0B 90 00 78 [05:44:08]RAPDU: EC BF 22 58 4E 00 BB 0B 90 00 [05:44:08]wFMCommunicate OK [05:44:08]SAM_PROTO_SignData done [05:44:08]FM_MakeSignedData done [05:44:08]CreateOFDProtocolMessage [05:44:08]wFMCommunicate request_size=4 [05:44:08]MH_SAM_APDU [05:44:08]CAPDU: 80 11 00 00 [05:44:08]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:08]Read from MH i2c: E2 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 17 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [05:44:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:08]wFMCommunicate OK [05:44:08]CreateOFDProtocolMessage done [05:44:08]OFDSenderStorePacket 72488 [05:44:08]StoreOFDPacket docnum=72488 [05:44:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E2 E5 06 01 6D D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A7 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1B 01 00 35 04 06 00 A4 1F 30 F0 AF A6 EC BF 22 58 4E 00 BB 0B [05:44:08]CheckFolder [05:44:08]dirname=/storage/ofd_packets [05:44:08]CheckFolder done [05:44:08]ProducePacketName [05:44:08]name=ofd_packets/00072488 [05:44:08]NVStorageSaveData ofd_packets/00072488 [05:44:08]File name is /storage/ofd_packets/00072488 [05:44:08]Write 300 bytes [05:44:08]NVStorageSaveData done [05:44:08]OFDSenderStorePacket done [05:44:08]KKMCreateOFDPacket done [05:44:08]NVStorageSaveData kkm_last_timestamp [05:44:08]File name is /storage/kkm_last_timestamp [05:44:08]Write 4 bytes [05:44:08]NVStorageSaveData done [05:44:08]ExternCall_PrintAddStr [05:44:08]wPrintStart [05:44:08]Write to MH i2c: 01 00 00 C5 00 C5 [05:44:08]Write i2c OK [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: 01 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: 01 07 00 [05:44:08]MH_I2C_Read... [05:44:08]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [05:44:08]RasterBufferAndPrint [05:44:08]line Счет N : (1)951934 [05:44:08]line ИНН: 02508201610067 [05:44:08]line Контрольно-Кассовый Чек [05:44:08]line ПРОДАЖА [05:44:08]line ТРК (МРК, ГНК) : 71 [05:44:08]line Товар: 2711190000 [05:44:08]line ГАЗ-К-3 [05:44:08]line 25.710 * 38.90 [05:44:08]line = 1000.12 [05:44:08]line НДС 12% НСП 1% [05:44:08]line > о реализуемом товаре [05:44:08]line ИТОГО: 1000.12 [05:44:08]line НСП 1% : 8.85 [05:44:08]line НДС 12% : 106.21 [05:44:08]line Наличными: 0.00 [05:44:08]line Безнал.: 1000.12 [05:44:08]line Место: АЗС № 113 "Партнер Нефть" [05:44:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:44:08]line СНО: Общий режим [05:44:08]line Чек 16 28.10.2024 05:44 [05:44:08]line Смена: 554 ФФД: 1.0 [05:44:08]line ЗНМ: 0300000087 [05:44:08]line РНМ: 0000000000091644 [05:44:08]line Версия ККМ: 001 [05:44:08]line Платежная система: АКБ Кыргызстан [05:44:08]line ФМ: 0000000000874662 [05:44:08]line ФД: 72488 [05:44:08]line ФПД: 180453872021414 [05:44:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054407&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72488&fm=180453872021414&tin=02508201610067®Number=0000000000091644&sum=100012 [05:44:08]written 0, free lines is 4095 [05:44:08]OFD Sender: Processing packet 72488 [packets to send 272, broken 271] [05:44:08]ProducePacketName [05:44:08]name=ofd_packets/00072488 [05:44:08]OFD Sender: To server: pG, [05:44:08]CommunicateWithHost lk.salyk.kg:30040 [05:44:08]ConnectInit lk.salyk.kg [05:44:09]Write to MH i2c: 01 00 00 EF 00 EF [05:44:09]Write i2c OK [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: 01 [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: 01 07 00 [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 EC 0C EE [05:44:09]RasterBufferAndPrint [05:44:09]line [05:44:09]line [05:44:09]line [05:44:09]line [05:44:09]line [05:44:09]written 0, free lines is 3315 [05:44:09]MH_Cut [05:44:09]Write to MH i2c: D1 01 00 F6 00 01 C8 [05:44:09]Write i2c OK [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: D1 [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: D1 01 00 [05:44:09]MH_I2C_Read... [05:44:09]Read from MH i2c: D1 01 00 F6 00 00 C7 [05:44:09]Write to MH i2c: 01 00 00 F7 00 F7 [05:44:09]Write i2c OK [05:44:09]MH_I2C_Read... [05:44:09]*** Cut start [05:44:09]*** Partial cut [05:44:09]*** CUTSNS_PIN = 1 [05:44:09]*** CUTSNS_PIN = 0 [05:44:10]*** Brake cut motor [05:44:10]Read from MH i2c: 01 [05:44:10]MH_I2C_Read... [05:44:10]*** Stop cut motor [05:44:10]*** Cut end [05:44:10]Read from MH i2c: 01 07 00 [05:44:10]MH_I2C_Read... [05:44:10]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [05:44:10]process_action close_receipt done [05:44:10]requested_data is exist [05:44:10]produce_requested_data [05:44:10]requested_item fm.sn is exist - process it [05:44:10]wFMCommunicate request_size=4 [05:44:10]MH_SAM_APDU [05:44:10]CAPDU: 80 11 00 00 [05:44:10]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [05:44:10]Write i2c OK [05:44:10]MH_I2C_Read... [05:44:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:10]Read from MH i2c: E2 [05:44:10]MH_I2C_Read... [05:44:10]Read from MH i2c: E2 17 00 [05:44:10]MH_I2C_Read... [05:44:10]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 34 36 36 32 90 00 C6 [05:44:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:10]wFMCommunicate OK [05:44:10]requested_item fd.num is exist - process it [05:44:10]SAM_PROTO_GetFieldsCounters [05:44:10]wFMCommunicate request_size=4 [05:44:10]MH_SAM_APDU [05:44:10]CAPDU: 80 13 00 00 [05:44:10]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [05:44:10]Write i2c OK [05:44:10]MH_I2C_Read... [05:44:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:10]Read from MH i2c: E2 [05:44:10]MH_I2C_Read... [05:44:10]Read from MH i2c: E2 62 00 [05:44:10]MH_I2C_Read... [05:44:10]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 28 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [05:44:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 28 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:44:10]wFMCommunicate OK [05:44:10]SAM_PROTO_GetFieldsCounters done [05:44:10]requested_item shift.num is exist - process it [05:44:10]requested_item shift.opened is exist - process it [05:44:10]req_shift_opened [05:44:10]FM_GetShiftState [05:44:10]SAM_PROTO_GetShiftState [05:44:10]wFMCommunicate request_size=4 [05:44:10]MH_SAM_APDU [05:44:10]CAPDU: 80 13 01 00 [05:44:10]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [05:44:10]Write i2c OK [05:44:10]MH_I2C_Read... [05:44:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:10]Read from MH i2c: E2 [05:44:10]MH_I2C_Read... [05:44:10]Read from MH i2c: E2 0E 00 [05:44:10]MH_I2C_Read... [05:44:10]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [05:44:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:44:10]wFMCommunicate OK [05:44:10]SAM_PROTO_GetShiftState done [05:44:10]FM_GetShiftState done [05:44:10]req_shift_opened done [05:44:10]requested_item shift.open_date is exist - process it [05:44:10]req_shift_open_date [05:44:10]req_shift_open_date done [05:44:10]produce_requested_data done [05:44:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72488,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:44:10]process_action_free close_receipt [05:44:10]json_value_free [05:44:10]json_value_free done [05:44:10]process_json_proto returns [05:44:10]Send response to host [05:44:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72488,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:44:10]free response buf [05:44:10]execute_script done [05:44:10]execute_script returns [05:44:10]free content buf [05:44:10]Sock 8.Close socket [05:44:10]Sock 8.Thread stoped [05:44:11]Connected sock=11 [05:44:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E2 E5 06 01 6D D9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 6E 64 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 AC 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 AC 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 A7 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1B 01 00 35 04 06 00 A4 1F 30 F0 AF A6 EC BF 22 58 4E 00 BB 0B [05:44:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A9 27 47 00 8E 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 28 1B 01 00 F4 03 04 00 69 CF 1E 67 B6 04 01 00 00 DA A8 B2 11 CB DF 27 5E [05:44:11]CommunicateWithHost err = 0 [05:44:11]CheckOFDResponse [05:44:11]1017 (14) - 77093643461234 [05:44:11]1041 (16) - 0000000000874662 [05:44:11]1040 (4) - 72488 [05:44:11]1012 (4) - 27.10.2024 23:40 [05:44:11]1206 (1) - 0 [05:44:11]OFD Sender: Remove packet 72488 [05:44:11]ProducePacketName [05:44:11]name=ofd_packets/00072488 [05:44:11]NVStorageDeleteData [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:18]accept exits with 10 [05:44:18]New connection [05:44:18]New thread 3067448676 created [05:44:18]Thread 3067592036 joined [05:44:18]Waiting for new connection... [05:44:18] Sock 10.Parse request [05:44:18]Sock 10.Check first char [05:44:18]Sock 10.First char is OK [05:44:18]request: POST /json_proto HTTP/1.0 [05:44:18]Method: POST [05:44:18]URL: /json_proto [05:44:18]Method is POST - this is cgi request [05:44:18]url: /json_proto [05:44:18]query_string will be loaded in cgi processing [05:44:18]execute_cgi json_proto POST (null) [05:44:18]execute_cgi path=json_proto method=POST [05:44:18]POST find Content-Length [05:44:18]Host: 172.17.43.195:8080 [05:44:18]Content-Length: 792 [05:44:18]Content-Type: application/json [05:44:18] [05:44:18]POST finish read [05:44:18]Found Content-Length = 792 [05:44:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:18]execute_script... [05:44: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)951935", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:44:18]POST & json_proto [05:44:18]process_json_proto [05:44:18]json parsed OK: [05:44:18]protocol is kg_v1.0 [05:44:18]action value=close_receipt [05:44:18]process_action close_receipt [05:44:18]cmd_close_receipt [05:44:18]MH_GetDate [05:44:18]Write to MH i2c: F0 00 00 FB 00 EA [05:44:18]Write i2c OK [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 09 00 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: F0 09 00 FB 00 00 B3 24 1F 67 74 2C AD 66 03 [05:44:18]GetLastDocTimeStamp 1730094247 [05:44:18]current date 1730094259 [05:44:18]FM_GetShiftState [05:44:18]SAM_PROTO_GetShiftState [05:44:18]wFMCommunicate request_size=4 [05:44:18]MH_SAM_APDU [05:44:18]CAPDU: 80 13 01 00 [05:44:18]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [05:44:18]Write i2c OK [05:44:18]MH_I2C_Read... [05:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:18]Read from MH i2c: E2 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: E2 0E 00 [05:44:18]MH_I2C_Read... [05:44:18]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [05:44:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:44:18]wFMCommunicate OK [05:44:18]SAM_PROTO_GetShiftState done [05:44:18]FM_GetShiftState done [05:44:18]opened in 1730074113 [05:44:18]opened+sec_in_day 1730160513 [05:44:18]quantity*price = 0 [05:44:18]sum+1 = 1 [05:44:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 17 28.10.2024 05:44 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72489 ФПД: 95144065048062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054419&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72489&fm=95144065048062&tin=02508201610067®Number=0000000000091644&sum=0 [05:44:19]StoreToDocumentArchive [05:44:19]shift 554 fd 72489 [05:44:19]save to /storage/0554/doc_00072489 [05:44:19]save last doc name /storage/0554/doc_00072489 to /storage/kkm_last_doc_name [05:44:19]save OK [05:44:19]Clear old archive folders... [05:44:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:44:19]tlvbuf is 00D78BF0 [05:44:19]SAM_PROTO_ClearQueue [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 09 00 00 [05:44:19]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]SAM_PROTO_ClearQueue done [05:44:19]KKMCreateOFDPacket [05:44:19]OFDProtocolAddRootSTLVToBuf [05:44:19]FM_MakeSignedData [05:44:19]FM_MakeSignedData [05:44:19]SAM_PROTO_SignData [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 01 02 [05:44:19]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=255 [05:44:19]MH_SAM_APDU [05:44: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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B3 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1B 01 00 35 04 06 00 56 [05:44:19]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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B3 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1B 01 00 35 04 06 00 56 00 00 CC [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=10 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 02 02 05 88 74 33 1D FE [05:44:19]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 88 74 33 1D FE 00 00 DB [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [05:44:19]RAPDU: 90 00 [05:44:19]wFMCommunicate OK [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 0D 03 02 [05:44:19]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 0B 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 0B 00 0D 01 00 42 38 35 3F 76 4F E0 D1 90 00 EE [05:44:19]RAPDU: 42 38 35 3F 76 4F E0 D1 90 00 [05:44:19]wFMCommunicate OK [05:44:19]SAM_PROTO_SignData done [05:44:19]FM_MakeSignedData done [05:44:19]CreateOFDProtocolMessage [05:44:19]wFMCommunicate request_size=4 [05:44:19]MH_SAM_APDU [05:44:19]CAPDU: 80 11 00 00 [05:44:19]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:19]Read from MH i2c: E2 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: E2 17 00 [05:44:19]MH_I2C_Read... [05:44:19]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 34 36 36 32 90 00 DD [05:44:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:19]wFMCommunicate OK [05:44:19]CreateOFDProtocolMessage done [05:44:19]OFDSenderStorePacket 72489 [05:44:19]StoreOFDPacket docnum=72489 [05:44:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 71 07 01 B2 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B3 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1B 01 00 35 04 06 00 56 88 74 33 1D FE 42 38 35 3F 76 4F E0 D1 [05:44:19]CheckFolder [05:44:19]dirname=/storage/ofd_packets [05:44:19]CheckFolder done [05:44:19]ProducePacketName [05:44:19]name=ofd_packets/00072489 [05:44:19]NVStorageSaveData ofd_packets/00072489 [05:44:19]File name is /storage/ofd_packets/00072489 [05:44:19]Write 301 bytes [05:44:19]NVStorageSaveData done [05:44:19]OFDSenderStorePacket done [05:44:19]KKMCreateOFDPacket done [05:44:19]NVStorageSaveData kkm_last_timestamp [05:44:19]File name is /storage/kkm_last_timestamp [05:44:19]Write 4 bytes [05:44:19]NVStorageSaveData done [05:44:19]ExternCall_PrintAddStr [05:44:19]wPrintStart [05:44:19]Write to MH i2c: 01 00 00 0F 01 10 [05:44:19]Write i2c OK [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 07 00 [05:44:19]MH_I2C_Read... [05:44:19]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [05:44:19]RasterBufferAndPrint [05:44:19]line Счет N : (1)951935 [05:44:19]line ИНН: 02508201610067 [05:44:19]line Контрольно-Кассовый Чек [05:44:19]line ПРОДАЖА [05:44:19]line ТРК (МРК, ГНК) : 53 [05:44:19]line Товар: 2710124130 [05:44:19]line Аи-92-К-5 [05:44:19]line 25.000 * 0.00 [05:44:19]line = 0.00 [05:44:19]line НДС 12% НСП 1% [05:44:19]line > о реализуемом товаре [05:44:19]line ИТОГО: 0.00 [05:44:19]line НСП 1% : 0.00 [05:44:19]line НДС 12% : 0.00 [05:44:19]line Наличными: 0.00 [05:44:19]line Безнал.: 0.00 [05:44:19]line Место: АЗС № 113 "Партнер Нефть" [05:44:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:44:19]line СНО: Общий режим [05:44:19]line Чек 17 28.10.2024 05:44 [05:44:19]line Смена: 554 ФФД: 1.0 [05:44:19]line ЗНМ: 0300000087 [05:44:19]line РНМ: 0000000000091644 [05:44:19]line Версия ККМ: 001 [05:44:19]line Талоны: Топливная Карта [05:44:19]line 03047 [05:44:19]line ФМ: 0000000000874662 [05:44:19]line ФД: 72489 [05:44:19]line ФПД: 95144065048062 [05:44:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054419&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72489&fm=95144065048062&tin=02508201610067®Number=0000000000091644&sum=0 [05:44:19]OFD Sender: Processing packet 72489 [packets to send 272, broken 271] [05:44:19]ProducePacketName [05:44:19]name=ofd_packets/00072489 [05:44:19]OFD Sender: To server: pG, [05:44:19]CommunicateWithHost lk.salyk.kg:30040 [05:44:19]ConnectInit lk.salyk.kg [05:44:20]written 0, free lines is 4095 [05:44:20]Write to MH i2c: 01 00 00 39 01 3A [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 07 00 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 E5 0C 32 [05:44:20]RasterBufferAndPrint [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]line [05:44:20]written 0, free lines is 3313 [05:44:20]MH_Cut [05:44:20]Write to MH i2c: D1 01 00 40 01 01 13 [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 01 00 [05:44:20]MH_I2C_Read... [05:44:20]Read from MH i2c: D1 01 00 40 01 00 12 [05:44:20]Write to MH i2c: 01 00 00 41 01 42 [05:44:20]Write i2c OK [05:44:20]MH_I2C_Read... [05:44:21]*** Cut start [05:44:21]*** Partial cut [05:44:21]*** CUTSNS_PIN = 1 [05:44:21]*** CUTSNS_PIN = 0 [05:44:21]*** Brake cut motor [05:44:21]Read from MH i2c: 01 [05:44:21]MH_I2C_Read... [05:44:21]*** Stop cut motor [05:44:21]*** Cut end [05:44:21]Read from MH i2c: 01 07 00 [05:44:21]MH_I2C_Read... [05:44:21]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [05:44:21]process_action close_receipt done [05:44:21]requested_data is exist [05:44:21]produce_requested_data [05:44:21]requested_item fm.sn is exist - process it [05:44:21]wFMCommunicate request_size=4 [05:44:21]MH_SAM_APDU [05:44:21]CAPDU: 80 11 00 00 [05:44:21]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [05:44:21]Write i2c OK [05:44:21]MH_I2C_Read... [05:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:44:21]Read from MH i2c: E2 [05:44:21]MH_I2C_Read... [05:44:21]Read from MH i2c: E2 17 00 [05:44:21]MH_I2C_Read... [05:44:21]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [05:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:44:21]wFMCommunicate OK [05:44:21]requested_item fd.num is exist - process it [05:44:21]SAM_PROTO_GetFieldsCounters [05:44:21]wFMCommunicate request_size=4 [05:44:21]MH_SAM_APDU [05:44:21]CAPDU: 80 13 00 00 [05:44:21]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [05:44:21]Write i2c OK [05:44:21]MH_I2C_Read... [05:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:44:21]Read from MH i2c: E2 [05:44:21]MH_I2C_Read... [05:44:21]Read from MH i2c: E2 62 00 [05:44:21]MH_I2C_Read... [05:44:21]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 29 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [05:44: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 29 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:44:22]wFMCommunicate OK [05:44:22]SAM_PROTO_GetFieldsCounters done [05:44:22]requested_item shift.num is exist - process it [05:44:22]requested_item shift.opened is exist - process it [05:44:22]req_shift_opened [05:44:22]FM_GetShiftState [05:44:22]SAM_PROTO_GetShiftState [05:44:22]wFMCommunicate request_size=4 [05:44:22]MH_SAM_APDU [05:44:22]CAPDU: 80 13 01 00 [05:44:22]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [05:44:22]Write i2c OK [05:44:22]MH_I2C_Read... [05:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:44:22]Read from MH i2c: E2 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 0E 00 [05:44:22]MH_I2C_Read... [05:44:22]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [05:44:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:44:22]wFMCommunicate OK [05:44:22]SAM_PROTO_GetShiftState done [05:44:22]FM_GetShiftState done [05:44:22]req_shift_opened done [05:44:22]requested_item shift.open_date is exist - process it [05:44:22]req_shift_open_date [05:44:22]req_shift_open_date done [05:44:22]produce_requested_data done [05:44:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72489,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:44:22]process_action_free close_receipt [05:44:22]json_value_free [05:44:22]json_value_free done [05:44:22]process_json_proto returns [05:44:22]Send response to host [05:44:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72489,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:44:22]free response buf [05:44:22]execute_script done [05:44:22]execute_script returns [05:44:22]free content buf [05:44:22]Sock 10.Close socket [05:44:22]Sock 10.Thread stoped [05:44:22]Connected sock=11 [05:44:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 71 07 01 B2 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 B3 24 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 29 1B 01 00 35 04 06 00 56 88 74 33 1D FE 42 38 35 3F 76 4F E0 D1 [05:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C4 15 47 00 29 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 34 36 36 32 10 04 04 00 29 1B 01 00 F4 03 04 00 75 CF 1E 67 B6 04 01 00 00 1B 73 61 63 04 A3 97 A7 [05:44:23]CommunicateWithHost err = 0 [05:44:23]CheckOFDResponse [05:44:23]1017 (14) - 77093643461234 [05:44:23]1041 (16) - 0000000000874662 [05:44:23]1040 (4) - 72489 [05:44:23]1012 (4) - 27.10.2024 23:40 [05:44:23]1206 (1) - 0 [05:44:23]OFD Sender: Remove packet 72489 [05:44:23]ProducePacketName [05:44:23]name=ofd_packets/00072489 [05:44:23]NVStorageDeleteData [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:32]recv_with_timeout no data received [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:06]recv_with_timeout no data received [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:19]recv_with_timeout no data received [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:46]recv_with_timeout no data received [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:04]OFD Sender: No OFD packet to send [05:46:09]OFD Sender: No OFD packet to send [05:46:14]OFD Sender: No OFD packet to send [05:46:17]accept exits with 9 [05:46:17]New connection [05:46:17]New thread 3067592036 created [05:46:17]Thread 3067448676 joined [05:46:17]Waiting for new connection... [05:46:17] Sock 9.Parse request [05:46:17]Sock 9.Check first char [05:46:17]Sock 9.First char is OK [05:46:17]request: POST /json_proto HTTP/1.0 [05:46:17]Method: POST [05:46:17]URL: /json_proto [05:46:17]Method is POST - this is cgi request [05:46:17]url: /json_proto [05:46:17]query_string will be loaded in cgi processing [05:46:17]execute_cgi json_proto POST (null) [05:46:17]execute_cgi path=json_proto method=POST [05:46:17]POST find Content-Length [05:46:17]Host: 172.17.43.195:8080 [05:46:17]Content-Length: 792 [05:46:17]Content-Type: application/json [05:46:17] [05:46:17]POST finish read [05:46:17]Found Content-Length = 792 [05:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:17]execute_script... [05:46: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)951936", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:17]POST & json_proto [05:46:17]process_json_proto [05:46:17]json parsed OK: [05:46:17]protocol is kg_v1.0 [05:46:17]action value=close_receipt [05:46:17]process_action close_receipt [05:46:17]cmd_close_receipt [05:46:17]MH_GetDate [05:46:17]Write to MH i2c: F0 00 00 45 01 35 [05:46:17]Write i2c OK [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 09 00 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 09 00 45 01 00 2A 25 1F 67 74 2C AD 66 C6 [05:46:17]GetLastDocTimeStamp 1730094259 [05:46:17]current date 1730094378 [05:46:17]FM_GetShiftState [05:46:17]SAM_PROTO_GetShiftState [05:46:17]wFMCommunicate request_size=4 [05:46:17]MH_SAM_APDU [05:46:17]CAPDU: 80 13 01 00 [05:46:17]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [05:46:17]Write i2c OK [05:46:17]MH_I2C_Read... [05:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:17]Read from MH i2c: E2 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: E2 0E 00 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [05:46:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:46:17]wFMCommunicate OK [05:46:17]SAM_PROTO_GetShiftState done [05:46:17]FM_GetShiftState done [05:46:17]opened in 1730074113 [05:46:17]opened+sec_in_day 1730160513 [05:46:17]quantity*price = 0 [05:46:17]sum+1 = 1 [05:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 18 28.10.2024 05:46 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72490 ФПД: 209328493009894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054618&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72490&fm=209328493009894&tin=02508201610067®Number=0000000000091644&sum=0 [05:46:18]StoreToDocumentArchive [05:46:18]shift 554 fd 72490 [05:46:18]save to /storage/0554/doc_00072490 [05:46:18]save last doc name /storage/0554/doc_00072490 to /storage/kkm_last_doc_name [05:46:18]save OK [05:46:18]Clear old archive folders... [05:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:46:18]tlvbuf is 00CEE840 [05:46:18]SAM_PROTO_ClearQueue [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 09 00 00 [05:46:18]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]SAM_PROTO_ClearQueue done [05:46:18]KKMCreateOFDPacket [05:46:18]OFDProtocolAddRootSTLVToBuf [05:46:18]FM_MakeSignedData [05:46:18]FM_MakeSignedData [05:46:18]SAM_PROTO_SignData [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 0D 01 02 [05:46:18]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]wFMCommunicate request_size=255 [05:46:18]MH_SAM_APDU [05:46: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 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 12 00 00 00 F4 03 04 00 2A 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1B 01 00 35 04 06 00 BE [05:46:18]Write to MH i2c: E2 02 01 55 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 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 12 00 00 00 F4 03 04 00 2A 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1B 01 00 35 04 06 00 BE 00 00 C1 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:19]Read from MH i2c: E2 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 03 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [05:46:19]RAPDU: 90 00 [05:46:19]wFMCommunicate OK [05:46:19]wFMCommunicate request_size=10 [05:46:19]MH_SAM_APDU [05:46:19]CAPDU: 80 0D 02 02 05 62 16 77 9B E6 [05:46:19]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 62 16 77 9B E6 00 00 4B [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:19]Read from MH i2c: E2 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 03 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [05:46:19]RAPDU: 90 00 [05:46:19]wFMCommunicate OK [05:46:19]wFMCommunicate request_size=4 [05:46:19]MH_SAM_APDU [05:46:19]CAPDU: 80 0D 03 02 [05:46:19]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]OFD Sender: No OFD packet to send [05:46:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:19]Read from MH i2c: E2 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 0B 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 0B 00 57 01 00 37 EF 2F C2 44 8D 66 C3 90 00 E5 [05:46:19]RAPDU: 37 EF 2F C2 44 8D 66 C3 90 00 [05:46:19]wFMCommunicate OK [05:46:19]SAM_PROTO_SignData done [05:46:19]FM_MakeSignedData done [05:46:19]CreateOFDProtocolMessage [05:46:19]wFMCommunicate request_size=4 [05:46:19]MH_SAM_APDU [05:46:19]CAPDU: 80 11 00 00 [05:46:19]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:19]Read from MH i2c: E2 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 17 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [05:46:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:46:19]wFMCommunicate OK [05:46:19]CreateOFDProtocolMessage done [05:46:19]OFDSenderStorePacket 72490 [05:46:19]StoreOFDPacket docnum=72490 [05:46:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E 82 07 01 3D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 2A 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1B 01 00 35 04 06 00 BE 62 16 77 9B E6 37 EF 2F C2 44 8D 66 C3 [05:46:19]CheckFolder [05:46:19]dirname=/storage/ofd_packets [05:46:19]CheckFolder done [05:46:19]ProducePacketName [05:46:19]name=ofd_packets/00072490 [05:46:19]NVStorageSaveData ofd_packets/00072490 [05:46:19]File name is /storage/ofd_packets/00072490 [05:46:19]Write 301 bytes [05:46:19]NVStorageSaveData done [05:46:19]OFDSenderStorePacket done [05:46:19]KKMCreateOFDPacket done [05:46:19]NVStorageSaveData kkm_last_timestamp [05:46:19]File name is /storage/kkm_last_timestamp [05:46:19]Write 4 bytes [05:46:19]NVStorageSaveData done [05:46:19]ExternCall_PrintAddStr [05:46:19]wPrintStart [05:46:19]Write to MH i2c: 01 00 00 59 01 5A [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [05:46:19]RasterBufferAndPrint [05:46:19]line Счет N : (1)951936 [05:46:19]line ИНН: 02508201610067 [05:46:19]line Контрольно-Кассовый Чек [05:46:19]line ПРОДАЖА [05:46:19]line ТРК (МРК, ГНК) : 42 [05:46:19]line Товар: 2710124130 [05:46:19]line Аи-92-К-5 [05:46:19]line 15.000 * 0.00 [05:46:19]line = 0.00 [05:46:19]line НДС 12% НСП 1% [05:46:19]line > о реализуемом товаре [05:46:19]line ИТОГО: 0.00 [05:46:19]line НСП 1% : 0.00 [05:46:19]line НДС 12% : 0.00 [05:46:19]line Наличными: 0.00 [05:46:19]line Безнал.: 0.00 [05:46:19]line Место: АЗС № 113 "Партнер Нефть" [05:46:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:46:19]line СНО: Общий режим [05:46:19]line Чек 18 28.10.2024 05:46 [05:46:19]line Смена: 554 ФФД: 1.0 [05:46:19]line ЗНМ: 0300000087 [05:46:19]line РНМ: 0000000000091644 [05:46:19]line Версия ККМ: 001 [05:46:19]line Талоны: Топливная Карта [05:46:19]line 03047 [05:46:19]line ФМ: 0000000000874662 [05:46:19]line ФД: 72490 [05:46:19]line ФПД: 209328493009894 [05:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054618&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72490&fm=209328493009894&tin=02508201610067®Number=0000000000091644&sum=0 [05:46:19]written 0, free lines is 4095 [05:46:19]OFD Sender: Processing packet 72490 [packets to send 272, broken 271] [05:46:19]ProducePacketName [05:46:19]name=ofd_packets/00072490 [05:46:19]OFD Sender: To server: pG, [05:46:19]CommunicateWithHost lk.salyk.kg:30040 [05:46:19]ConnectInit lk.salyk.kg [05:46:19]Write to MH i2c: 01 00 00 83 01 84 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E7 0C 7E [05:46:19]RasterBufferAndPrint [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]written 0, free lines is 3310 [05:46:19]MH_Cut [05:46:19]Write to MH i2c: D1 01 00 8A 01 01 5D [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 01 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 01 00 8A 01 00 5C [05:46:19]Write to MH i2c: 01 00 00 8B 01 8C [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:20]Connected sock=10 [05:46:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E 82 07 01 3D C1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 12 00 00 00 F4 03 04 00 2A 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1B 01 00 35 04 06 00 BE 62 16 77 9B E6 37 EF 2F C2 44 8D 66 C3 [05:46:20]*** Cut start [05:46:20]*** Partial cut [05:46:20]*** CUTSNS_PIN = 1 [05:46:20]*** CUTSNS_PIN = 0 [05:46:20]*** Brake cut motor [05:46:21]Read from MH i2c: 01 [05:46:21]MH_I2C_Read... [05:46:21]*** Stop cut motor [05:46:21]*** Cut end [05:46:21]Read from MH i2c: 01 07 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [05:46:21]process_action close_receipt done [05:46:21]requested_data is exist [05:46:21]produce_requested_data [05:46:21]requested_item fm.sn is exist - process it [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 11 00 00 [05:46:21]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [05:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:46:21]wFMCommunicate OK [05:46:21]requested_item fd.num is exist - process it [05:46:21]SAM_PROTO_GetFieldsCounters [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 13 00 00 [05:46:21]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 62 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 62 00 8D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [05:46: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_GetFieldsCounters done [05:46:21]requested_item shift.num is exist - process it [05:46:21]requested_item shift.opened is exist - process it [05:46:21]req_shift_opened [05:46:21]FM_GetShiftState [05:46:21]SAM_PROTO_GetShiftState [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 13 01 00 [05:46:21]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0E 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 74 [05:46:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_GetShiftState done [05:46:21]FM_GetShiftState done [05:46:21]req_shift_opened done [05:46:21]requested_item shift.open_date is exist - process it [05:46:21]req_shift_open_date [05:46:21]req_shift_open_date done [05:46:21]produce_requested_data done [05:46:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72490,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:46:21]process_action_free close_receipt [05:46:21]json_value_free [05:46:21]json_value_free done [05:46:21]process_json_proto returns [05:46:21]Send response to host [05:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72490,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:46:21]free response buf [05:46:21]execute_script done [05:46:21]execute_script returns [05:46:21]free content buf [05:46:21]Sock 9.Close socket [05:46:21]Sock 9.Thread stoped [05:46:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2A 3D 47 00 F7 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2A 1B 01 00 F4 03 04 00 EB CF 1E 67 B6 04 01 00 00 A4 48 BB 17 18 80 3E 37 [05:46:22]CommunicateWithHost err = 0 [05:46:22]CheckOFDResponse [05:46:22]1017 (14) - 77093643461234 [05:46:22]1041 (16) - 0000000000874662 [05:46:22]1040 (4) - 72490 [05:46:22]1012 (4) - 27.10.2024 23:42 [05:46:22]1206 (1) - 0 [05:46:22]OFD Sender: Remove packet 72490 [05:46:22]ProducePacketName [05:46:22]name=ofd_packets/00072490 [05:46:22]NVStorageDeleteData [05:46:22]OFD Sender: No OFD packet to send [05:46:27]recv_with_timeout no data received [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:41]recv_with_timeout no data received [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:54]recv_with_timeout no data received [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:55]recv_with_timeout no data received [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]recv_with_timeout no data received [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:04]accept exits with 8 [05:49:04]New connection [05:49:04]New thread 3067448676 created [05:49:04]Thread 3067592036 joined [05:49:04]Waiting for new connection... [05:49:04] Sock 8.Parse request [05:49:04]Sock 8.Check first char [05:49:04]Sock 8.First char is OK [05:49:04]request: POST /json_proto HTTP/1.0 [05:49:04]Method: POST [05:49:04]URL: /json_proto [05:49:04]Method is POST - this is cgi request [05:49:04]url: /json_proto [05:49:04]query_string will be loaded in cgi processing [05:49:04]execute_cgi json_proto POST (null) [05:49:04]execute_cgi path=json_proto method=POST [05:49:04]POST find Content-Length [05:49:04]Host: 172.17.43.195:8080 [05:49:04]Content-Length: 792 [05:49:04]Content-Type: application/json [05:49:04] [05:49:04]POST finish read [05:49:04]Found Content-Length = 792 [05:49:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:04]execute_script... [05:49:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951937", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 28.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:49:04]POST & json_proto [05:49:04]process_json_proto [05:49:04]json parsed OK: [05:49:04]protocol is kg_v1.0 [05:49:04]action value=close_receipt [05:49:04]process_action close_receipt [05:49:04]cmd_close_receipt [05:49:04]MH_GetDate [05:49:04]Write to MH i2c: F0 00 00 8F 01 7F [05:49:04]Write i2c OK [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: F0 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: F0 09 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: F0 09 00 8F 01 00 D1 25 1F 67 74 2C AD 66 B7 [05:49:04]GetLastDocTimeStamp 1730094378 [05:49:04]current date 1730094545 [05:49:04]FM_GetShiftState [05:49:04]SAM_PROTO_GetShiftState [05:49:04]wFMCommunicate request_size=4 [05:49:04]MH_SAM_APDU [05:49:04]CAPDU: 80 13 01 00 [05:49:04]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [05:49:04]Write i2c OK [05:49:04]MH_I2C_Read... [05:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:04]Read from MH i2c: E2 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 0E 00 [05:49:04]MH_I2C_Read... [05:49:04]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 76 [05:49:04]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:49:04]wFMCommunicate OK [05:49:04]SAM_PROTO_GetShiftState done [05:49:04]FM_GetShiftState done [05:49:04]opened in 1730074113 [05:49:04]opened+sec_in_day 1730160513 [05:49:04]quantity*price = 0 [05:49:04]sum+1 = 1 [05:49:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 19 28.10.2024 05:49 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72491 ФПД: 154108484724708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72491&fm=154108484724708&tin=02508201610067®Number=0000000000091644&sum=0 [05:49:06]StoreToDocumentArchive [05:49:06]shift 554 fd 72491 [05:49:06]save to /storage/0554/doc_00072491 [05:49:06]save last doc name /storage/0554/doc_00072491 to /storage/kkm_last_doc_name [05:49:06]save OK [05:49:06]Clear old archive folders... [05:49:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:49:06]tlvbuf is 00D98090 [05:49:06]SAM_PROTO_ClearQueue [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 09 00 00 [05:49:06]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [05:49:06]RAPDU: 90 00 [05:49:06]wFMCommunicate OK [05:49:06]SAM_PROTO_ClearQueue done [05:49:06]KKMCreateOFDPacket [05:49:06]OFDProtocolAddRootSTLVToBuf [05:49:06]FM_MakeSignedData [05:49:06]FM_MakeSignedData [05:49:06]SAM_PROTO_SignData [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 0D 01 02 [05:49:06]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [05:49:06]RAPDU: 90 00 [05:49:06]wFMCommunicate OK [05:49:06]wFMCommunicate request_size=255 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D1 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1B 01 00 35 04 06 00 8C [05:49:06]Write to MH i2c: E2 02 01 9F 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 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D1 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1B 01 00 35 04 06 00 8C 00 00 7D [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [05:49:06]RAPDU: 90 00 [05:49:06]wFMCommunicate OK [05:49:06]wFMCommunicate request_size=10 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 0D 02 02 05 29 2D 7D 27 E4 [05:49:06]Write to MH i2c: E2 0D 00 A0 01 80 0D 02 02 05 00 29 2D 7D 27 E4 00 00 03 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [05:49:06]RAPDU: 90 00 [05:49:06]wFMCommunicate OK [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 0D 03 02 [05:49:06]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 0B 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 0B 00 A1 01 00 43 7E F4 E7 E0 8D DA F1 90 00 F2 [05:49:06]RAPDU: 43 7E F4 E7 E0 8D DA F1 90 00 [05:49:06]wFMCommunicate OK [05:49:06]SAM_PROTO_SignData done [05:49:06]FM_MakeSignedData done [05:49:06]CreateOFDProtocolMessage [05:49:06]wFMCommunicate request_size=4 [05:49:06]MH_SAM_APDU [05:49:06]CAPDU: 80 11 00 00 [05:49:06]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:06]Read from MH i2c: E2 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 17 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [05:49:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:49:06]wFMCommunicate OK [05:49:06]CreateOFDProtocolMessage done [05:49:06]OFDSenderStorePacket 72491 [05:49:06]StoreOFDPacket docnum=72491 [05:49:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 33 5C 07 01 6D 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 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D1 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1B 01 00 35 04 06 00 8C 29 2D 7D 27 E4 43 7E F4 E7 E0 8D DA F1 [05:49:06]CheckFolder [05:49:06]dirname=/storage/ofd_packets [05:49:06]CheckFolder done [05:49:06]ProducePacketName [05:49:06]name=ofd_packets/00072491 [05:49:06]NVStorageSaveData ofd_packets/00072491 [05:49:06]File name is /storage/ofd_packets/00072491 [05:49:06]Write 301 bytes [05:49:06]NVStorageSaveData done [05:49:06]OFDSenderStorePacket done [05:49:06]KKMCreateOFDPacket done [05:49:06]NVStorageSaveData kkm_last_timestamp [05:49:06]File name is /storage/kkm_last_timestamp [05:49:06]Write 4 bytes [05:49:06]NVStorageSaveData done [05:49:06]ExternCall_PrintAddStr [05:49:06]wPrintStart [05:49:06]Write to MH i2c: 01 00 00 A3 01 A4 [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 07 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [05:49:06]RasterBufferAndPrint [05:49:06]line Счет N : (1)951937 [05:49:06]line ИНН: 02508201610067 [05:49:06]line Контрольно-Кассовый Чек [05:49:06]line ПРОДАЖА [05:49:06]line ТРК (МРК, ГНК) : 63 [05:49:06]line Товар: 2710124130 [05:49:06]line Аи-92-К-5 [05:49:06]line 28.000 * 0.00 [05:49:06]line = 0.00 [05:49:06]line НДС 12% НСП 1% [05:49:06]line > о реализуемом товаре [05:49:06]line ИТОГО: 0.00 [05:49:06]line НСП 1% : 0.00 [05:49:06]line НДС 12% : 0.00 [05:49:06]line Наличными: 0.00 [05:49:06]line Безнал.: 0.00 [05:49:06]line Место: АЗС № 113 "Партнер Нефть" [05:49:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:49:06]line СНО: Общий режим [05:49:06]line Чек 19 28.10.2024 05:49 [05:49:06]line Смена: 554 ФФД: 1.0 [05:49:06]line ЗНМ: 0300000087 [05:49:06]line РНМ: 0000000000091644 [05:49:06]line Версия ККМ: 001 [05:49:06]line Талоны: Топливная Карта [05:49:06]line 02648 [05:49:06]line ФМ: 0000000000874662 [05:49:06]line ФД: 72491 [05:49:06]line ФПД: 154108484724708 [05:49:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T054905&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72491&fm=154108484724708&tin=02508201610067®Number=0000000000091644&sum=0 [05:49:06]written 0, free lines is 4095 [05:49:06]OFD Sender: Processing packet 72491 [packets to send 272, broken 271] [05:49:06]ProducePacketName [05:49:06]name=ofd_packets/00072491 [05:49:06]OFD Sender: To server: pG, [05:49:06]CommunicateWithHost lk.salyk.kg:30040 [05:49:06]ConnectInit lk.salyk.kg [05:49:06]Write to MH i2c: 01 00 00 CD 01 CE [05:49:06]Write i2c OK [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 07 00 [05:49:06]MH_I2C_Read... [05:49:06]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 E6 0C C7 [05:49:06]RasterBufferAndPrint [05:49:06]line [05:49:06]line [05:49:06]line [05:49:06]line [05:49:06]line [05:49:06]written 0, free lines is 3309 [05:49:07]MH_Cut [05:49:07]Write to MH i2c: D1 01 00 D4 01 01 A7 [05:49:07]Write i2c OK [05:49:07]MH_I2C_Read... [05:49:07]Read from MH i2c: D1 [05:49:07]MH_I2C_Read... [05:49:07]Read from MH i2c: D1 01 00 [05:49:07]MH_I2C_Read... [05:49:07]Read from MH i2c: D1 01 00 D4 01 00 A6 [05:49:07]Write to MH i2c: 01 00 00 D5 01 D6 [05:49:07]Write i2c OK [05:49:07]MH_I2C_Read... [05:49:07]*** Cut start [05:49:07]*** Partial cut [05:49:07]*** CUTSNS_PIN = 1 [05:49:07]*** CUTSNS_PIN = 0 [05:49:08]*** Brake cut motor [05:49:08]Connected sock=10 [05:49:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 33 5C 07 01 6D 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 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D1 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1B 01 00 35 04 06 00 8C 29 2D 7D 27 E4 43 7E F4 E7 E0 8D DA F1 [05:49:08]Read from MH i2c: 01 [05:49:08]MH_I2C_Read... [05:49:08]*** Stop cut motor [05:49:08]*** Cut end [05:49:08]Read from MH i2c: 01 07 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [05:49:08]process_action close_receipt done [05:49:08]requested_data is exist [05:49:08]produce_requested_data [05:49:08]requested_item fm.sn is exist - process it [05:49:08]wFMCommunicate request_size=4 [05:49:08]MH_SAM_APDU [05:49:08]CAPDU: 80 11 00 00 [05:49:08]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [05:49:08]Write i2c OK [05:49:08]MH_I2C_Read... [05:49:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:08]Read from MH i2c: E2 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 17 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [05:49:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:49:08]wFMCommunicate OK [05:49:08]requested_item fd.num is exist - process it [05:49:08]SAM_PROTO_GetFieldsCounters [05:49:08]wFMCommunicate request_size=4 [05:49:08]MH_SAM_APDU [05:49:08]CAPDU: 80 13 00 00 [05:49:08]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [05:49:08]Write i2c OK [05:49:08]MH_I2C_Read... [05:49:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:08]Read from MH i2c: E2 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 62 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 62 00 D7 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [05:49: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:49:08]wFMCommunicate OK [05:49:08]SAM_PROTO_GetFieldsCounters done [05:49:08]requested_item shift.num is exist - process it [05:49:08]requested_item shift.opened is exist - process it [05:49:08]req_shift_opened [05:49:08]FM_GetShiftState [05:49:08]SAM_PROTO_GetShiftState [05:49:08]wFMCommunicate request_size=4 [05:49:08]MH_SAM_APDU [05:49:08]CAPDU: 80 13 01 00 [05:49:08]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [05:49:08]Write i2c OK [05:49:08]MH_I2C_Read... [05:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:08]Read from MH i2c: E2 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 0E 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BE [05:49:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:49:08]wFMCommunicate OK [05:49:08]SAM_PROTO_GetShiftState done [05:49:08]FM_GetShiftState done [05:49:08]req_shift_opened done [05:49:08]requested_item shift.open_date is exist - process it [05:49:08]req_shift_open_date [05:49:08]req_shift_open_date done [05:49:08]produce_requested_data done [05:49:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72491,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:49:08]process_action_free close_receipt [05:49:08]json_value_free [05:49:08]json_value_free done [05:49:08]process_json_proto returns [05:49:08]Send response to host [05:49:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72491,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:49:08]free response buf [05:49:08]execute_script done [05:49:08]execute_script returns [05:49:08]free content buf [05:49:08]Sock 8.Close socket [05:49:08]Sock 8.Thread stoped [05:49:13]recv_with_timeout no data received [05:49:13]CommunicateWithHost answer receiving error [05:49:13]CommunicateWithHost err = -3 [05:49:13]OFD Sender: Server communicate error [05:49:18]OFD Sender: Processing packet 72491 [packets to send 272, broken 271] [05:49:18]ProducePacketName [05:49:18]name=ofd_packets/00072491 [05:49:18]OFD Sender: To server: pG, [05:49:18]CommunicateWithHost lk.salyk.kg:30040 [05:49:18]ConnectInit lk.salyk.kg [05:49:18]Connected sock=10 [05:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 33 5C 07 01 6D 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 60 6D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 D1 25 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2B 1B 01 00 35 04 06 00 8C 29 2D 7D 27 E4 43 7E F4 E7 E0 8D DA F1 [05:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DC BF 47 00 3E 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 34 36 36 32 10 04 04 00 2B 1B 01 00 F4 03 04 00 9D D0 1E 67 B6 04 01 00 00 8E 40 5F E5 77 25 E3 C0 [05:49:19]CommunicateWithHost err = 0 [05:49:19]CheckOFDResponse [05:49:19]1017 (14) - 77093643461234 [05:49:19]1041 (16) - 0000000000874662 [05:49:19]1040 (4) - 72491 [05:49:19]1012 (4) - 27.10.2024 23:45 [05:49:19]1206 (1) - 0 [05:49:19]OFD Sender: Remove packet 72491 [05:49:19]ProducePacketName [05:49:19]name=ofd_packets/00072491 [05:49:19]NVStorageDeleteData [05:49:19]OFD Sender: No OFD packet to send [05:49:24]OFD Sender: No OFD packet to send [05:49:28]recv_with_timeout no data received [05:49:29]OFD Sender: No OFD packet to send [05:49:34]OFD Sender: No OFD packet to send [05:49:39]recv_with_timeout no data received [05:49:39]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:05]recv_with_timeout no data received [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:34]recv_with_timeout no data received [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:50:57]accept exits with 9 [05:50:57]New connection [05:50:57]New thread 3067592036 created [05:50:57]Thread 3067448676 joined [05:50:57]Waiting for new connection... [05:50:57] Sock 9.Parse request [05:50:57]Sock 9.Check first char [05:50:57]Sock 9.First char is OK [05:50:57]request: POST /json_proto HTTP/1.0 [05:50:57]Method: POST [05:50:57]URL: /json_proto [05:50:57]Method is POST - this is cgi request [05:50:57]url: /json_proto [05:50:57]query_string will be loaded in cgi processing [05:50:57]execute_cgi json_proto POST (null) [05:50:57]execute_cgi path=json_proto method=POST [05:50:57]POST find Content-Length [05:50:57]Host: 172.17.43.195:8080 [05:50:57]Content-Length: 824 [05:50:57]Content-Type: application/json [05:50:57] [05:50:57]POST finish read [05:50:57]Found Content-Length = 824 [05:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 36.550, "sum" : 2500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:57]execute_script... [05:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951938", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 36.550, "sum" : 2500.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 2500.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:50:57]POST & json_proto [05:50:57]process_json_proto [05:50:57]json parsed OK: [05:50:57]protocol is kg_v1.0 [05:50:57]action value=close_receipt [05:50:57]process_action close_receipt [05:50:57]cmd_close_receipt [05:50:57]MH_GetDate [05:50:57]Write to MH i2c: F0 00 00 D9 01 C9 [05:50:57]Write i2c OK [05:50:57]MH_I2C_Read... [05:50:57]Read from MH i2c: F0 [05:50:57]MH_I2C_Read... [05:50:57]Read from MH i2c: F0 09 00 [05:50:57]MH_I2C_Read... [05:50:57]Read from MH i2c: F0 09 00 D9 01 00 42 26 1F 67 74 2C AD 66 73 [05:50:57]GetLastDocTimeStamp 1730094545 [05:50:57]current date 1730094658 [05:50:57]FM_GetShiftState [05:50:57]SAM_PROTO_GetShiftState [05:50:57]wFMCommunicate request_size=4 [05:50:57]MH_SAM_APDU [05:50:57]CAPDU: 80 13 01 00 [05:50:57]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [05:50:57]Write i2c OK [05:50:57]MH_I2C_Read... [05:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:50:57]Read from MH i2c: E2 [05:50:57]MH_I2C_Read... [05:50:57]Read from MH i2c: E2 0E 00 [05:50:57]MH_I2C_Read... [05:50:57]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C0 [05:50:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:50:57]wFMCommunicate OK [05:50:57]SAM_PROTO_GetShiftState done [05:50:57]FM_GetShiftState done [05:50:57]opened in 1730074113 [05:50:57]opened+sec_in_day 1730160513 [05:50:57]quantity*price = 250002 [05:50:57]sum+1 = 250003 [05:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.02 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 0.00 Безнал.: 2500.02 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 20 28.10.2024 05:50 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72492 ФПД: 56075867071023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T055058&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72492&fm=56075867071023&tin=02508201610067®Number=0000000000091644&sum=250002 [05:50:58]StoreToDocumentArchive [05:50:58]shift 554 fd 72492 [05:50:58]save to /storage/0554/doc_00072492 [05:50:58]save last doc name /storage/0554/doc_00072492 to /storage/kkm_last_doc_name [05:50:58]save OK [05:50:58]Clear old archive folders... [05:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [05:50:58]tlvbuf is 00DC33A0 [05:50:58]SAM_PROTO_ClearQueue [05:50:58]wFMCommunicate request_size=4 [05:50:58]MH_SAM_APDU [05:50:58]CAPDU: 80 09 00 00 [05:50:58]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:50:58]Read from MH i2c: E2 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [05:50:58]RAPDU: 90 00 [05:50:58]wFMCommunicate OK [05:50:58]SAM_PROTO_ClearQueue done [05:50:58]KKMCreateOFDPacket [05:50:58]OFDProtocolAddRootSTLVToBuf [05:50:58]FM_MakeSignedData [05:50:58]FM_MakeSignedData [05:50:58]SAM_PROTO_SignData [05:50:58]wFMCommunicate request_size=4 [05:50:58]MH_SAM_APDU [05:50:58]CAPDU: 80 0D 01 02 [05:50:58]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:50:58]Read from MH i2c: E2 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [05:50:58]RAPDU: 90 00 [05:50:58]wFMCommunicate OK [05:50:58]wFMCommunicate request_size=253 [05:50:58]MH_SAM_APDU [05:50:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 42 26 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1B 01 00 35 04 06 00 33 00 2E 23 22 2F [05:50:58]Write to MH i2c: E2 00 01 E9 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 42 26 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1B 01 00 35 04 06 00 33 00 2E 23 22 2F 00 00 3D [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:50:58]Read from MH i2c: E2 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [05:50:58]RAPDU: 90 00 [05:50:58]wFMCommunicate OK [05:50:58]wFMCommunicate request_size=4 [05:50:58]MH_SAM_APDU [05:50:58]CAPDU: 80 0D 03 02 [05:50:58]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:50:58]Read from MH i2c: E2 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 0B 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 0B 00 EA 01 00 50 32 5D D9 FA 2F B9 C0 90 00 C1 [05:50:58]RAPDU: 50 32 5D D9 FA 2F B9 C0 90 00 [05:50:58]wFMCommunicate OK [05:50:58]SAM_PROTO_SignData done [05:50:58]FM_MakeSignedData done [05:50:58]CreateOFDProtocolMessage [05:50:58]wFMCommunicate request_size=4 [05:50:58]MH_SAM_APDU [05:50:58]CAPDU: 80 11 00 00 [05:50:58]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:50:58]Read from MH i2c: E2 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 17 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [05:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:50:58]wFMCommunicate OK [05:50:58]CreateOFDProtocolMessage done [05:50:58]OFDSenderStorePacket 72492 [05:50:58]StoreOFDPacket docnum=72492 [05:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 23 B7 00 01 FB 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 42 26 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1B 01 00 35 04 06 00 33 00 2E 23 22 2F 50 32 5D D9 FA 2F B9 C0 [05:50:58]CheckFolder [05:50:58]dirname=/storage/ofd_packets [05:50:58]CheckFolder done [05:50:58]ProducePacketName [05:50:58]name=ofd_packets/00072492 [05:50:58]NVStorageSaveData ofd_packets/00072492 [05:50:58]File name is /storage/ofd_packets/00072492 [05:50:58]Write 294 bytes [05:50:58]NVStorageSaveData done [05:50:58]OFDSenderStorePacket done [05:50:58]KKMCreateOFDPacket done [05:50:58]NVStorageSaveData kkm_last_timestamp [05:50:58]File name is /storage/kkm_last_timestamp [05:50:58]Write 4 bytes [05:50:58]NVStorageSaveData done [05:50:58]ExternCall_PrintAddStr [05:50:58]wPrintStart [05:50:58]Write to MH i2c: 01 00 00 EC 01 ED [05:50:58]Write i2c OK [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: 01 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: 01 07 00 [05:50:58]MH_I2C_Read... [05:50:58]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [05:50:58]RasterBufferAndPrint [05:50:58]line Счет N : (1)951938 [05:50:58]line ИНН: 02508201610067 [05:50:58]line Контрольно-Кассовый Чек [05:50:58]line ПРОДАЖА [05:50:58]line ТРК (МРК, ГНК) : 51 [05:50:58]line Товар: 50.50.0 [05:50:58]line Super 92 [05:50:58]line 36.550 * 68.40 [05:50:58]line = 2500.02 [05:50:58]line НДС 12% НСП 1% [05:50:58]line > о реализуемом товаре [05:50:58]line ИТОГО: 2500.02 [05:50:58]line НСП 1% : 22.12 [05:50:58]line НДС 12% : 265.49 [05:50:58]line Наличными: 0.00 [05:50:58]line Безнал.: 2500.02 [05:50:58]line Место: АЗС № 113 "Партнер Нефть" [05:50:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [05:50:58]line СНО: Общий режим [05:50:58]line Чек 20 28.10.2024 05:50 [05:50:58]line Смена: 554 ФФД: 1.0 [05:50:58]line ЗНМ: 0300000087 [05:50:58]line РНМ: 0000000000091644 [05:50:58]line Версия ККМ: 001 [05:50:58]line Платежная система: АКБ Кыргызстан [05:50:58]line ФМ: 0000000000874662 [05:50:58]line ФД: 72492 [05:50:58]line ФПД: 56075867071023 [05:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T055058&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72492&fm=56075867071023&tin=02508201610067®Number=0000000000091644&sum=250002 [05:50:59]OFD Sender: Processing packet 72492 [packets to send 272, broken 271] [05:50:59]ProducePacketName [05:50:59]name=ofd_packets/00072492 [05:50:59]OFD Sender: To server: pG, [05:50:59]CommunicateWithHost lk.salyk.kg:30040 [05:50:59]ConnectInit lk.salyk.kg [05:50:59]written 0, free lines is 4095 [05:50:59]Write to MH i2c: 01 00 00 16 02 18 [05:50:59]Write i2c OK [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: 01 [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: 01 07 00 [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 FA 0C 25 [05:50:59]RasterBufferAndPrint [05:50:59]line [05:50:59]line [05:50:59]line [05:50:59]line [05:50:59]line [05:50:59]written 0, free lines is 3328 [05:50:59]MH_Cut [05:50:59]Write to MH i2c: D1 01 00 1D 02 01 F1 [05:50:59]Write i2c OK [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: D1 [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: D1 01 00 [05:50:59]MH_I2C_Read... [05:50:59]Read from MH i2c: D1 01 00 1D 02 00 F0 [05:50:59]Write to MH i2c: 01 00 00 1E 02 20 [05:50:59]Write i2c OK [05:50:59]MH_I2C_Read... [05:51:00]*** Cut start [05:51:00]*** Partial cut [05:51:00]*** CUTSNS_PIN = 1 [05:51:00]*** CUTSNS_PIN = 0 [05:51:00]*** Brake cut motor [05:51:00]Read from MH i2c: 01 [05:51:00]MH_I2C_Read... [05:51:00]*** Stop cut motor [05:51:00]*** Cut end [05:51:00]Read from MH i2c: 01 07 00 [05:51:00]MH_I2C_Read... [05:51:00]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [05:51:00]process_action close_receipt done [05:51:00]requested_data is exist [05:51:00]produce_requested_data [05:51:00]requested_item fm.sn is exist - process it [05:51:00]wFMCommunicate request_size=4 [05:51:00]MH_SAM_APDU [05:51:00]CAPDU: 80 11 00 00 [05:51:00]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [05:51:00]Write i2c OK [05:51:00]MH_I2C_Read... [05:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:51:01]Read from MH i2c: E2 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 17 00 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [05:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [05:51:01]wFMCommunicate OK [05:51:01]requested_item fd.num is exist - process it [05:51:01]SAM_PROTO_GetFieldsCounters [05:51:01]wFMCommunicate request_size=4 [05:51:01]MH_SAM_APDU [05:51:01]CAPDU: 80 13 00 00 [05:51:01]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [05:51:01]Write i2c OK [05:51:01]MH_I2C_Read... [05:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:51:01]Read from MH i2c: E2 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 62 00 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 62 00 20 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [05:51: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:51:01]wFMCommunicate OK [05:51:01]SAM_PROTO_GetFieldsCounters done [05:51:01]requested_item shift.num is exist - process it [05:51:01]requested_item shift.opened is exist - process it [05:51:01]req_shift_opened [05:51:01]FM_GetShiftState [05:51:01]SAM_PROTO_GetShiftState [05:51:01]wFMCommunicate request_size=4 [05:51:01]MH_SAM_APDU [05:51:01]CAPDU: 80 13 01 00 [05:51:01]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [05:51:01]Write i2c OK [05:51:01]MH_I2C_Read... [05:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:51:01]Read from MH i2c: E2 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 0E 00 [05:51:01]MH_I2C_Read... [05:51:01]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 08 [05:51:01]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [05:51:01]wFMCommunicate OK [05:51:01]SAM_PROTO_GetShiftState done [05:51:01]FM_GetShiftState done [05:51:01]req_shift_opened done [05:51:01]requested_item shift.open_date is exist - process it [05:51:01]req_shift_open_date [05:51:01]req_shift_open_date done [05:51:01]produce_requested_data done [05:51:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72492,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [05:51:01]process_action_free close_receipt [05:51:01]json_value_free [05:51:01]json_value_free done [05:51:01]process_json_proto returns [05:51:01]Send response to host [05:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72492,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [05:51:01]free response buf [05:51:01]execute_script done [05:51:01]execute_script returns [05:51:01]free content buf [05:51:01]Sock 9.Close socket [05:51:01]Sock 9.Thread stoped [05:51:04]ConnectInit Can't take IP for lk.salyk.kg [05:51:04]CommunicateWithHost connect error [05:51:04]CommunicateWithHost err = -1 [05:51:04]OFD Sender: Server communicate error [05:51:09]OFD Sender: Processing packet 72492 [packets to send 272, broken 271] [05:51:09]ProducePacketName [05:51:09]name=ofd_packets/00072492 [05:51:09]OFD Sender: To server: pG, [05:51:09]CommunicateWithHost lk.salyk.kg:30040 [05:51:09]ConnectInit lk.salyk.kg [05:51:16]recv_with_timeout no data received [05:51:37]recv_with_timeout no data received [05:51:51]recv_with_timeout no data received [05:53:20]ConnectInit Can't connect to host [05:53:20]CommunicateWithHost connect error [05:53:20]CommunicateWithHost err = -1 [05:53:20]OFD Sender: Server communicate error [05:53:25]OFD Sender: Processing packet 72492 [packets to send 272, broken 271] [05:53:25]ProducePacketName [05:53:25]name=ofd_packets/00072492 [05:53:25]OFD Sender: To server: pG, [05:53:25]CommunicateWithHost lk.salyk.kg:30040 [05:53:25]ConnectInit lk.salyk.kg [05:53:25]Connected sock=9 [05:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 23 B7 00 01 FB 96 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 C6 8E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 92 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 92 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 B5 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 92 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 42 26 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1B 01 00 35 04 06 00 33 00 2E 23 22 2F 50 32 5D D9 FA 2F B9 C0 [05:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 03 84 47 00 4B A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2C 1B 01 00 F4 03 04 00 94 D1 1E 67 B6 04 01 00 00 E9 E0 E9 5B CC AD 8B 00 [05:53:26]CommunicateWithHost err = 0 [05:53:26]CheckOFDResponse [05:53:26]1017 (14) - 77093643461234 [05:53:26]1041 (16) - 0000000000874662 [05:53:26]1040 (4) - 72492 [05:53:26]1012 (4) - 27.10.2024 23:49 [05:53:26]1206 (1) - 0 [05:53:26]OFD Sender: Remove packet 72492 [05:53:26]ProducePacketName [05:53:26]name=ofd_packets/00072492 [05:53:26]NVStorageDeleteData [05:53:26]OFD Sender: No OFD packet to send [05:53:31]OFD Sender: No OFD packet to send [05:53:36]OFD Sender: No OFD packet to send [05:53:41]OFD Sender: No OFD packet to send [05:53:46]OFD Sender: No OFD packet to send [05:53:51]OFD Sender: No OFD packet to send [05:53:56]OFD Sender: No OFD packet to send [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:20]recv_with_timeout no data received [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:55]recv_with_timeout no data received [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:13]recv_with_timeout no data received [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:57:58]recv_with_timeout no data received [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:10]recv_with_timeout no data received [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:21]recv_with_timeout no data received [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:04]accept exits with 10 [06:00:04]New connection [06:00:04]New thread 3067448676 created [06:00:04]Thread 3067592036 joined [06:00:04]Waiting for new connection... [06:00:04] Sock 10.Parse request [06:00:04]Sock 10.Check first char [06:00:04]Sock 10.First char is OK [06:00:04]request: POST /json_proto HTTP/1.0 [06:00:04]Method: POST [06:00:04]URL: /json_proto [06:00:04]Method is POST - this is cgi request [06:00:04]url: /json_proto [06:00:04]query_string will be loaded in cgi processing [06:00:04]execute_cgi json_proto POST (null) [06:00:04]execute_cgi path=json_proto method=POST [06:00:04]POST find Content-Length [06:00:04]Host: 172.17.43.195:8080 [06:00:04]Content-Length: 792 [06:00:04]Content-Type: application/json [06:00:04] [06:00:04]POST finish read [06:00:04]Found Content-Length = 792 [06:00:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:04]execute_script... [06:00:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951939", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:00:04]POST & json_proto [06:00:04]process_json_proto [06:00:04]json parsed OK: [06:00:04]protocol is kg_v1.0 [06:00:04]action value=close_receipt [06:00:04]process_action close_receipt [06:00:04]cmd_close_receipt [06:00:04]MH_GetDate [06:00:04]Write to MH i2c: F0 00 00 22 02 13 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: F0 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: F0 09 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: F0 09 00 22 02 00 65 28 1F 67 74 2C AD 66 E2 [06:00:04]GetLastDocTimeStamp 1730094658 [06:00:04]current date 1730095205 [06:00:04]FM_GetShiftState [06:00:04]SAM_PROTO_GetShiftState [06:00:04]wFMCommunicate request_size=4 [06:00:04]MH_SAM_APDU [06:00:04]CAPDU: 80 13 01 00 [06:00:04]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [06:00:04]Write i2c OK [06:00:04]MH_I2C_Read... [06:00:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:04]Read from MH i2c: E2 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 0E 00 [06:00:04]MH_I2C_Read... [06:00:04]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0A [06:00:04]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:00:04]wFMCommunicate OK [06:00:04]SAM_PROTO_GetShiftState done [06:00:04]FM_GetShiftState done [06:00:04]opened in 1730074113 [06:00:04]opened+sec_in_day 1730160513 [06:00:04]quantity*price = 0 [06:00:04]sum+1 = 1 [06:00:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 21 28.10.2024 06:00 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72493 ФПД: 78949034512394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T060005&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72493&fm=78949034512394&tin=02508201610067®Number=0000000000091644&sum=0 [06:00:05]StoreToDocumentArchive [06:00:05]shift 554 fd 72493 [06:00:05]save to /storage/0554/doc_00072493 [06:00:05]save last doc name /storage/0554/doc_00072493 to /storage/kkm_last_doc_name [06:00:05]save OK [06:00:05]Clear old archive folders... [06:00:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:00:05]tlvbuf is 00CE91A0 [06:00:05]SAM_PROTO_ClearQueue [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 09 00 00 [06:00:05]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [06:00:05]RAPDU: 90 00 [06:00:05]wFMCommunicate OK [06:00:05]SAM_PROTO_ClearQueue done [06:00:05]KKMCreateOFDPacket [06:00:05]OFDProtocolAddRootSTLVToBuf [06:00:05]FM_MakeSignedData [06:00:05]FM_MakeSignedData [06:00:05]SAM_PROTO_SignData [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 0D 01 02 [06:00:05]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [06:00:05]RAPDU: 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=255 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 65 28 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1B 01 00 35 04 06 00 47 [06:00:05]Write to MH i2c: E2 02 01 32 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 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 15 00 00 00 F4 03 04 00 65 28 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1B 01 00 35 04 06 00 47 00 00 6C [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [06:00:05]RAPDU: 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=10 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 0D 02 02 05 CD C1 28 50 0A [06:00:05]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 CD C1 28 50 0A 00 00 C9 [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [06:00:05]RAPDU: 90 00 [06:00:05]wFMCommunicate OK [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 0D 03 02 [06:00:05]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [06:00:05]Write i2c OK [06:00:05]MH_I2C_Read... [06:00:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:00:05]Read from MH i2c: E2 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 0B 00 [06:00:05]MH_I2C_Read... [06:00:05]Read from MH i2c: E2 0B 00 34 02 00 29 50 36 A9 2E F4 75 FC 90 00 9D [06:00:05]RAPDU: 29 50 36 A9 2E F4 75 FC 90 00 [06:00:05]wFMCommunicate OK [06:00:05]SAM_PROTO_SignData done [06:00:05]FM_MakeSignedData done [06:00:05]CreateOFDProtocolMessage [06:00:05]wFMCommunicate request_size=4 [06:00:05]MH_SAM_APDU [06:00:05]CAPDU: 80 11 00 00 [06:00:05]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:06]Read from MH i2c: E2 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 17 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [06:00:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:00:06]wFMCommunicate OK [06:00:06]CreateOFDProtocolMessage done [06:00:06]OFDSenderStorePacket 72493 [06:00:06]StoreOFDPacket docnum=72493 [06:00:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 02 9E 07 01 BA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 65 28 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1B 01 00 35 04 06 00 47 CD C1 28 50 0A 29 50 36 A9 2E F4 75 FC [06:00:06]CheckFolder [06:00:06]dirname=/storage/ofd_packets [06:00:06]CheckFolder done [06:00:06]ProducePacketName [06:00:06]name=ofd_packets/00072493 [06:00:06]NVStorageSaveData ofd_packets/00072493 [06:00:06]File name is /storage/ofd_packets/00072493 [06:00:06]Write 301 bytes [06:00:06]NVStorageSaveData done [06:00:06]OFDSenderStorePacket done [06:00:06]KKMCreateOFDPacket done [06:00:06]NVStorageSaveData kkm_last_timestamp [06:00:06]File name is /storage/kkm_last_timestamp [06:00:06]Write 4 bytes [06:00:06]NVStorageSaveData done [06:00:06]ExternCall_PrintAddStr [06:00:06]wPrintStart [06:00:06]Write to MH i2c: 01 00 00 36 02 38 [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 07 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [06:00:06]RasterBufferAndPrint [06:00:06]line Счет N : (1)951939 [06:00:06]line ИНН: 02508201610067 [06:00:06]line Контрольно-Кассовый Чек [06:00:06]line ПРОДАЖА [06:00:06]line ТРК (МРК, ГНК) : 53 [06:00:06]line Товар: 2710124130 [06:00:06]line Аи-92-К-5 [06:00:06]line 15.000 * 0.00 [06:00:06]line = 0.00 [06:00:06]line НДС 12% НСП 1% [06:00:06]line > о реализуемом товаре [06:00:06]line ИТОГО: 0.00 [06:00:06]line НСП 1% : 0.00 [06:00:06]line НДС 12% : 0.00 [06:00:06]line Наличными: 0.00 [06:00:06]line Безнал.: 0.00 [06:00:06]line Место: АЗС № 113 "Партнер Нефть" [06:00:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:00:06]line СНО: Общий режим [06:00:06]line Чек 21 28.10.2024 06:00 [06:00:06]line Смена: 554 ФФД: 1.0 [06:00:06]line ЗНМ: 0300000087 [06:00:06]line РНМ: 0000000000091644 [06:00:06]line Версия ККМ: 001 [06:00:06]line Талоны: Топливная Карта [06:00:06]line 02648 [06:00:06]line ФМ: 0000000000874662 [06:00:06]line ФД: 72493 [06:00:06]line ФПД: 78949034512394 [06:00:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T060005&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72493&fm=78949034512394&tin=02508201610067®Number=0000000000091644&sum=0 [06:00:06]OFD Sender: Processing packet 72493 [packets to send 272, broken 271] [06:00:06]ProducePacketName [06:00:06]name=ofd_packets/00072493 [06:00:06]OFD Sender: To server: pG, [06:00:06]CommunicateWithHost lk.salyk.kg:30040 [06:00:06]ConnectInit lk.salyk.kg [06:00:06]written 0, free lines is 4095 [06:00:06]Write to MH i2c: 01 00 00 60 02 62 [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 07 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 E2 0C 57 [06:00:06]RasterBufferAndPrint [06:00:06]line [06:00:06]line [06:00:06]line [06:00:06]line [06:00:06]line [06:00:06]written 0, free lines is 3304 [06:00:06]MH_Cut [06:00:06]Write to MH i2c: D1 01 00 67 02 01 3B [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: D1 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: D1 01 00 [06:00:06]MH_I2C_Read... [06:00:06]Read from MH i2c: D1 01 00 67 02 00 3A [06:00:06]Write to MH i2c: 01 00 00 68 02 6A [06:00:06]Write i2c OK [06:00:06]MH_I2C_Read... [06:00:07]*** Cut start [06:00:07]*** Partial cut [06:00:07]*** CUTSNS_PIN = 1 [06:00:07]*** CUTSNS_PIN = 0 [06:00:07]*** Brake cut motor [06:00:08]Read from MH i2c: 01 [06:00:08]MH_I2C_Read... [06:00:08]*** Stop cut motor [06:00:08]*** Cut end [06:00:08]Read from MH i2c: 01 07 00 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [06:00:08]process_action close_receipt done [06:00:08]requested_data is exist [06:00:08]produce_requested_data [06:00:08]requested_item fm.sn is exist - process it [06:00:08]wFMCommunicate request_size=4 [06:00:08]MH_SAM_APDU [06:00:08]CAPDU: 80 11 00 00 [06:00:08]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [06:00:08]Write i2c OK [06:00:08]MH_I2C_Read... [06:00:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:00:08]Read from MH i2c: E2 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: E2 17 00 [06:00:08]MH_I2C_Read... [06:00:08]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 34 36 36 32 90 00 39 [06:00:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:00:08]wFMCommunicate OK [06:00:08]requested_item fd.num is exist - process it [06:00:08]SAM_PROTO_GetFieldsCounters [06:00:08]wFMCommunicate request_size=4 [06:00:08]MH_SAM_APDU [06:00:08]CAPDU: 80 13 00 00 [06:00:08]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [06:00:08]Write i2c OK [06:00:08]MH_I2C_Read... [06:00:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:00:08]Read from MH i2c: E2 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: E2 62 00 [06:00:08]MH_I2C_Read... [06:00:08]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [06:00: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:00:08]wFMCommunicate OK [06:00:08]SAM_PROTO_GetFieldsCounters done [06:00:08]requested_item shift.num is exist - process it [06:00:08]requested_item shift.opened is exist - process it [06:00:08]req_shift_opened [06:00:08]FM_GetShiftState [06:00:08]SAM_PROTO_GetShiftState [06:00:08]wFMCommunicate request_size=4 [06:00:08]MH_SAM_APDU [06:00:08]CAPDU: 80 13 01 00 [06:00:08]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [06:00:08]Write i2c OK [06:00:08]MH_I2C_Read... [06:00:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:00:08]Read from MH i2c: E2 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: E2 0E 00 [06:00:08]MH_I2C_Read... [06:00:08]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 52 [06:00:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:00:08]wFMCommunicate OK [06:00:08]SAM_PROTO_GetShiftState done [06:00:08]FM_GetShiftState done [06:00:08]req_shift_opened done [06:00:08]requested_item shift.open_date is exist - process it [06:00:08]req_shift_open_date [06:00:08]req_shift_open_date done [06:00:08]produce_requested_data done [06:00:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72493,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [06:00:08]process_action_free close_receipt [06:00:08]json_value_free [06:00:08]json_value_free done [06:00:08]process_json_proto returns [06:00:08]Send response to host [06:00:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72493,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [06:00:08]free response buf [06:00:08]execute_script done [06:00:08]execute_script returns [06:00:08]free content buf [06:00:08]Sock 10.Close socket [06:00:08]Sock 10.Thread stoped [06:00:11]Connected sock=11 [06:00:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 02 9E 07 01 BA 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 15 00 00 00 F4 03 04 00 65 28 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2D 1B 01 00 35 04 06 00 47 CD C1 28 50 0A 29 50 36 A9 2E F4 75 FC [06:00:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 25 13 47 00 36 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 34 36 36 32 10 04 04 00 2D 1B 01 00 F4 03 04 00 29 D3 1E 67 B6 04 01 00 00 D6 E9 AB 18 9F A3 E9 AD [06:00:11]CommunicateWithHost err = 0 [06:00:11]CheckOFDResponse [06:00:11]1017 (14) - 77093643461234 [06:00:11]1041 (16) - 0000000000874662 [06:00:11]1040 (4) - 72493 [06:00:11]1012 (4) - 27.10.2024 23:56 [06:00:11]1206 (1) - 0 [06:00:11]OFD Sender: Remove packet 72493 [06:00:11]ProducePacketName [06:00:11]name=ofd_packets/00072493 [06:00:11]NVStorageDeleteData [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:21]recv_with_timeout no data received [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:00:58]recv_with_timeout no data received [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:32]recv_with_timeout no data received [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:50]recv_with_timeout no data received [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:14]recv_with_timeout no data received [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:26]recv_with_timeout no data received [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:00]recv_with_timeout no data received [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:23]recv_with_timeout no data received [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:42]recv_with_timeout no data received [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:12]recv_with_timeout no data received [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:30]recv_with_timeout no data received [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:47]recv_with_timeout no data received [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:04:59]recv_with_timeout no data received [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:27]recv_with_timeout no data received [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:38]recv_with_timeout no data received [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:55]recv_with_timeout no data received [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:22]OFD Sender: No OFD packet to send [06:07:27]OFD Sender: No OFD packet to send [06:07:29]recv_with_timeout no data received [06:07:32]OFD Sender: No OFD packet to send [06:07:37]OFD Sender: No OFD packet to send [06:07:42]OFD Sender: No OFD packet to send [06:07:47]OFD Sender: No OFD packet to send [06:07:52]OFD Sender: No OFD packet to send [06:07:57]OFD Sender: No OFD packet to send [06:08:02]OFD Sender: No OFD packet to send [06:08:07]OFD Sender: No OFD packet to send [06:08:12]OFD Sender: No OFD packet to send [06:08:17]OFD Sender: No OFD packet to send [06:08:22]recv_with_timeout no data received [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:17]recv_with_timeout no data received [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:34]recv_with_timeout no data received [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:11]recv_with_timeout no data received [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:37]recv_with_timeout no data received [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:10]recv_with_timeout no data received [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:52]recv_with_timeout no data received [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:31]recv_with_timeout no data received [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]recv_with_timeout no data received [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:15:59]recv_with_timeout no data received [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:07]recv_with_timeout no data received [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:19]recv_with_timeout no data received [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]OFD Sender: No OFD packet to send [06:19:24]OFD Sender: No OFD packet to send [06:19:29]OFD Sender: No OFD packet to send [06:19:34]OFD Sender: No OFD packet to send [06:19:39]OFD Sender: No OFD packet to send [06:19:44]OFD Sender: No OFD packet to send [06:19:49]OFD Sender: No OFD packet to send [06:19:54]OFD Sender: No OFD packet to send [06:19:59]OFD Sender: No OFD packet to send [06:20:04]OFD Sender: No OFD packet to send [06:20:08]recv_with_timeout no data received [06:20:09]OFD Sender: No OFD packet to send [06:20:14]OFD Sender: No OFD packet to send [06:20:19]OFD Sender: No OFD packet to send [06:20:19]recv_with_timeout no data received [06:20:24]OFD Sender: No OFD packet to send [06:20:29]OFD Sender: No OFD packet to send [06:20:29]recv_with_timeout no data received [06:20:34]OFD Sender: No OFD packet to send [06:20:39]OFD Sender: No OFD packet to send [06:20:40]recv_with_timeout no data received [06:20:44]OFD Sender: No OFD packet to send [06:20:49]OFD Sender: No OFD packet to send [06:20:54]OFD Sender: No OFD packet to send [06:20:59]OFD Sender: No OFD packet to send [06:21:04]OFD Sender: No OFD packet to send [06:21:09]OFD Sender: No OFD packet to send [06:21:14]OFD Sender: No OFD packet to send [06:21:19]OFD Sender: No OFD packet to send [06:21:24]OFD Sender: No OFD packet to send [06:21:29]OFD Sender: No OFD packet to send [06:21:34]OFD Sender: No OFD packet to send [06:21:39]OFD Sender: No OFD packet to send [06:21:44]OFD Sender: No OFD packet to send [06:21:49]OFD Sender: No OFD packet to send [06:21:54]OFD Sender: No OFD packet to send [06:21:59]OFD Sender: No OFD packet to send [06:22:04]OFD Sender: No OFD packet to send [06:22:09]OFD Sender: No OFD packet to send [06:22:14]OFD Sender: No OFD packet to send [06:22:19]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:38]recv_with_timeout no data received [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:03]recv_with_timeout no data received [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]recv_with_timeout no data received [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:58]recv_with_timeout no data received [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]recv_with_timeout no data received [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:29]recv_with_timeout no data received [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:59]OFD Sender: No OFD packet to send [06:25:04]OFD Sender: No OFD packet to send [06:25:09]OFD Sender: No OFD packet to send [06:25:14]OFD Sender: No OFD packet to send [06:25:19]OFD Sender: No OFD packet to send [06:25:24]OFD Sender: No OFD packet to send [06:25:29]OFD Sender: No OFD packet to send [06:25:32]recv_with_timeout no data received [06:25:34]OFD Sender: No OFD packet to send [06:25:39]OFD Sender: No OFD packet to send [06:25:44]OFD Sender: No OFD packet to send [06:25:49]OFD Sender: No OFD packet to send [06:25:54]OFD Sender: No OFD packet to send [06:25:59]OFD Sender: No OFD packet to send [06:26:04]OFD Sender: No OFD packet to send [06:26:09]OFD Sender: No OFD packet to send [06:26:14]OFD Sender: No OFD packet to send [06:26:19]OFD Sender: No OFD packet to send [06:26:24]OFD Sender: No OFD packet to send [06:26:29]OFD Sender: No OFD packet to send [06:26:34]OFD Sender: No OFD packet to send [06:26:39]OFD Sender: No OFD packet to send [06:26:44]OFD Sender: No OFD packet to send [06:26:49]OFD Sender: No OFD packet to send [06:26:54]OFD Sender: No OFD packet to send [06:26:59]OFD Sender: No OFD packet to send [06:27:04]OFD Sender: No OFD packet to send [06:27:09]OFD Sender: No OFD packet to send [06:27:14]OFD Sender: No OFD packet to send [06:27:19]OFD Sender: No OFD packet to send [06:27:24]OFD Sender: No OFD packet to send [06:27:28]recv_with_timeout no data received [06:27:29]OFD Sender: No OFD packet to send [06:27:34]OFD Sender: No OFD packet to send [06:27:39]recv_with_timeout no data received [06:27:39]OFD Sender: No OFD packet to send [06:27:44]OFD Sender: No OFD packet to send [06:27:49]OFD Sender: No OFD packet to send [06:27:50]recv_with_timeout no data received [06:27:54]OFD Sender: No OFD packet to send [06:27:59]OFD Sender: No OFD packet to send [06:28:04]OFD Sender: No OFD packet to send [06:28:09]OFD Sender: No OFD packet to send [06:28:14]OFD Sender: No OFD packet to send [06:28:19]OFD Sender: No OFD packet to send [06:28:21]accept exits with 8 [06:28:21]New connection [06:28:21]New thread 3067592036 created [06:28:21] Sock 8.Parse request [06:28:21]Thread 3067448676 joined [06:28:21]Sock 8.Check first char [06:28:21]Waiting for new connection... [06:28:21]Sock 8.First char is OK [06:28:21]request: POST /json_proto HTTP/1.0 [06:28:21]Method: POST [06:28:21]URL: /json_proto [06:28:21]Method is POST - this is cgi request [06:28:21]url: /json_proto [06:28:21]query_string will be loaded in cgi processing [06:28:21]execute_cgi json_proto POST (null) [06:28:21]execute_cgi path=json_proto method=POST [06:28:21]POST find Content-Length [06:28:21]Host: 172.17.43.195:8080 [06:28:21]Content-Length: 792 [06:28:21]Content-Type: application/json [06:28:21] [06:28:21]POST finish read [06:28:21]Found Content-Length = 792 [06:28:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:21]execute_script... [06:28: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)951940", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:21]POST & json_proto [06:28:21]process_json_proto [06:28:21]json parsed OK: [06:28:21]protocol is kg_v1.0 [06:28:21]action value=close_receipt [06:28:21]process_action close_receipt [06:28:21]cmd_close_receipt [06:28:21]MH_GetDate [06:28:21]Write to MH i2c: F0 00 00 6C 02 5D [06:28:21]Write i2c OK [06:28:21]MH_I2C_Read... [06:28:21]Read from MH i2c: F0 [06:28:21]MH_I2C_Read... [06:28:21]Read from MH i2c: F0 09 00 [06:28:21]MH_I2C_Read... [06:28:21]Read from MH i2c: F0 09 00 6C 02 00 06 2F 1F 67 74 2C AD 66 D4 [06:28:21]GetLastDocTimeStamp 1730095205 [06:28:21]current date 1730096902 [06:28:21]FM_GetShiftState [06:28:21]SAM_PROTO_GetShiftState [06:28:21]wFMCommunicate request_size=4 [06:28:21]MH_SAM_APDU [06:28:21]CAPDU: 80 13 01 00 [06:28:21]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [06:28:21]Write i2c OK [06:28:21]MH_I2C_Read... [06:28:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:21]Read from MH i2c: E2 [06:28:21]MH_I2C_Read... [06:28:21]Read from MH i2c: E2 0E 00 [06:28:21]MH_I2C_Read... [06:28:21]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 54 [06:28:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:28:21]wFMCommunicate OK [06:28:21]SAM_PROTO_GetShiftState done [06:28:21]FM_GetShiftState done [06:28:21]opened in 1730074113 [06:28:21]opened+sec_in_day 1730160513 [06:28:21]quantity*price = 0 [06:28:21]sum+1 = 1 [06:28:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 22 28.10.2024 06:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72494 ФПД: 198914199032078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T062822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72494&fm=198914199032078&tin=02508201610067®Number=0000000000091644&sum=0 [06:28:22]StoreToDocumentArchive [06:28:22]shift 554 fd 72494 [06:28:22]save to /storage/0554/doc_00072494 [06:28:22]save last doc name /storage/0554/doc_00072494 to /storage/kkm_last_doc_name [06:28:22]save OK [06:28:22]Clear old archive folders... [06:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:28:22]tlvbuf is 00CE8D80 [06:28:22]SAM_PROTO_ClearQueue [06:28:22]wFMCommunicate request_size=4 [06:28:22]MH_SAM_APDU [06:28:22]CAPDU: 80 09 00 00 [06:28:22]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [06:28:22]Write i2c OK [06:28:22]MH_I2C_Read... [06:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:22]Read from MH i2c: E2 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [06:28:22]RAPDU: 90 00 [06:28:22]wFMCommunicate OK [06:28:22]SAM_PROTO_ClearQueue done [06:28:22]KKMCreateOFDPacket [06:28:22]OFDProtocolAddRootSTLVToBuf [06:28:22]FM_MakeSignedData [06:28:22]FM_MakeSignedData [06:28:22]SAM_PROTO_SignData [06:28:22]wFMCommunicate request_size=4 [06:28:22]MH_SAM_APDU [06:28:22]CAPDU: 80 0D 01 02 [06:28:22]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [06:28:22]Write i2c OK [06:28:22]MH_I2C_Read... [06:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:22]Read from MH i2c: E2 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [06:28:22]RAPDU: 90 00 [06:28:22]wFMCommunicate OK [06:28:22]wFMCommunicate request_size=255 [06:28:22]MH_SAM_APDU [06:28: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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 2F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1B 01 00 35 04 06 00 B4 [06:28:22]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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 2F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1B 01 00 35 04 06 00 B4 00 00 3B [06:28:22]Write i2c OK [06:28:22]MH_I2C_Read... [06:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:22]Read from MH i2c: E2 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 [06:28:22]MH_I2C_Read... [06:28:22]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [06:28:22]RAPDU: 90 00 [06:28:22]wFMCommunicate OK [06:28:22]wFMCommunicate request_size=10 [06:28:22]MH_SAM_APDU [06:28:22]CAPDU: 80 0D 02 02 05 E9 52 2C 91 0E [06:28:22]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 E9 52 2C 91 0E 00 00 09 [06:28:22]Write i2c OK [06:28:22]MH_I2C_Read... [06:28:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:23]Read from MH i2c: E2 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: E2 03 00 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [06:28:23]RAPDU: 90 00 [06:28:23]wFMCommunicate OK [06:28:23]wFMCommunicate request_size=4 [06:28:23]MH_SAM_APDU [06:28:23]CAPDU: 80 0D 03 02 [06:28:23]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:23]Read from MH i2c: E2 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: E2 0B 00 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: E2 0B 00 7E 02 00 CA 2E 73 BE 99 B6 20 0B 90 00 9F [06:28:23]RAPDU: CA 2E 73 BE 99 B6 20 0B 90 00 [06:28:23]wFMCommunicate OK [06:28:23]SAM_PROTO_SignData done [06:28:23]FM_MakeSignedData done [06:28:23]CreateOFDProtocolMessage [06:28:23]wFMCommunicate request_size=4 [06:28:23]MH_SAM_APDU [06:28:23]CAPDU: 80 11 00 00 [06:28:23]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:23]Read from MH i2c: E2 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: E2 17 00 [06:28:23]MH_I2C_Read... [06:28:23]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 34 36 36 32 90 00 4F [06:28:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:28:23]wFMCommunicate OK [06:28:23]CreateOFDProtocolMessage done [06:28:23]OFDSenderStorePacket 72494 [06:28:23]StoreOFDPacket docnum=72494 [06:28:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D8 C6 07 01 17 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 2F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1B 01 00 35 04 06 00 B4 E9 52 2C 91 0E CA 2E 73 BE 99 B6 20 0B [06:28:23]CheckFolder [06:28:23]dirname=/storage/ofd_packets [06:28:23]CheckFolder done [06:28:23]ProducePacketName [06:28:23]name=ofd_packets/00072494 [06:28:23]NVStorageSaveData ofd_packets/00072494 [06:28:23]File name is /storage/ofd_packets/00072494 [06:28:23]Write 301 bytes [06:28:23]NVStorageSaveData done [06:28:23]OFDSenderStorePacket done [06:28:23]KKMCreateOFDPacket done [06:28:23]NVStorageSaveData kkm_last_timestamp [06:28:23]File name is /storage/kkm_last_timestamp [06:28:23]Write 4 bytes [06:28:23]NVStorageSaveData done [06:28:23]OFD Sender: Processing packet 72494 [packets to send 272, broken 271] [06:28:23]ProducePacketName [06:28:23]name=ofd_packets/00072494 [06:28:23]OFD Sender: To server: pG, [06:28:23]CommunicateWithHost lk.salyk.kg:30040 [06:28:23]ConnectInit lk.salyk.kg [06:28:23]ExternCall_PrintAddStr [06:28:23]wPrintStart [06:28:23]Write to MH i2c: 01 00 00 80 02 82 [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 07 00 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [06:28:23]RasterBufferAndPrint [06:28:23]line Счет N : (1)951940 [06:28:23]line ИНН: 02508201610067 [06:28:23]line Контрольно-Кассовый Чек [06:28:23]line ПРОДАЖА [06:28:23]line ТРК (МРК, ГНК) : 53 [06:28:23]line Товар: 2710124130 [06:28:23]line Аи-92-К-5 [06:28:23]line 29.900 * 0.00 [06:28:23]line = 0.00 [06:28:23]line НДС 12% НСП 1% [06:28:23]line > о реализуемом товаре [06:28:23]line ИТОГО: 0.00 [06:28:23]line НСП 1% : 0.00 [06:28:23]line НДС 12% : 0.00 [06:28:23]line Наличными: 0.00 [06:28:23]line Безнал.: 0.00 [06:28:23]line Место: АЗС № 113 "Партнер Нефть" [06:28:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:28:23]line СНО: Общий режим [06:28:23]line Чек 22 28.10.2024 06:28 [06:28:23]line Смена: 554 ФФД: 1.0 [06:28:23]line ЗНМ: 0300000087 [06:28:23]line РНМ: 0000000000091644 [06:28:23]line Версия ККМ: 001 [06:28:23]line Талоны: Топливная Карта [06:28:23]line 03047 [06:28:23]line ФМ: 0000000000874662 [06:28:23]line ФД: 72494 [06:28:23]line ФПД: 198914199032078 [06:28:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T062822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72494&fm=198914199032078&tin=02508201610067®Number=0000000000091644&sum=0 [06:28:23]written 0, free lines is 4095 [06:28:23]Write to MH i2c: 01 00 00 AA 02 AC [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 07 00 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 ED 0C AC [06:28:23]RasterBufferAndPrint [06:28:23]line [06:28:23]line [06:28:23]line [06:28:23]line [06:28:23]line [06:28:23]written 0, free lines is 3316 [06:28:23]MH_Cut [06:28:23]Write to MH i2c: D1 01 00 B1 02 01 85 [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: D1 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: D1 01 00 [06:28:23]MH_I2C_Read... [06:28:23]Read from MH i2c: D1 01 00 B1 02 00 84 [06:28:23]Write to MH i2c: 01 00 00 B2 02 B4 [06:28:23]Write i2c OK [06:28:23]MH_I2C_Read... [06:28:24]Connected sock=11 [06:28:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D8 C6 07 01 17 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 06 2F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1B 01 00 35 04 06 00 B4 E9 52 2C 91 0E CA 2E 73 BE 99 B6 20 0B [06:28:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4A B5 47 00 78 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2E 1B 01 00 F4 03 04 00 C6 D9 1E 67 B6 04 01 00 00 5C 26 55 DC 27 75 3E 5A [06:28:24]CommunicateWithHost err = 0 [06:28:24]CheckOFDResponse [06:28:24]1017 (14) - 77093643461234 [06:28:24]1041 (16) - 0000000000874662 [06:28:24]1040 (4) - 72494 [06:28:24]1012 (4) - 28.10.2024 00:24 [06:28:24]1206 (1) - 0 [06:28:24]OFD Sender: Remove packet 72494 [06:28:24]ProducePacketName [06:28:24]name=ofd_packets/00072494 [06:28:24]NVStorageDeleteData [06:28:24]*** Cut start [06:28:24]*** Partial cut [06:28:24]*** CUTSNS_PIN = 1 [06:28:24]*** CUTSNS_PIN = 0 [06:28:24]*** Brake cut motor [06:28:25]OFD Sender: No OFD packet to send [06:28:25]Read from MH i2c: 01 [06:28:25]MH_I2C_Read... [06:28:25]*** Stop cut motor [06:28:25]*** Cut end [06:28:25]Read from MH i2c: 01 07 00 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [06:28:25]process_action close_receipt done [06:28:25]requested_data is exist [06:28:25]produce_requested_data [06:28:25]requested_item fm.sn is exist - process it [06:28:25]wFMCommunicate request_size=4 [06:28:25]MH_SAM_APDU [06:28:25]CAPDU: 80 11 00 00 [06:28:25]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [06:28:25]Write i2c OK [06:28:25]MH_I2C_Read... [06:28:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:25]Read from MH i2c: E2 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 17 00 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 83 [06:28:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:28:25]wFMCommunicate OK [06:28:25]requested_item fd.num is exist - process it [06:28:25]SAM_PROTO_GetFieldsCounters [06:28:25]wFMCommunicate request_size=4 [06:28:25]MH_SAM_APDU [06:28:25]CAPDU: 80 13 00 00 [06:28:25]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [06:28:25]Write i2c OK [06:28:25]MH_I2C_Read... [06:28:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:25]Read from MH i2c: E2 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 62 00 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 62 00 B4 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [06:28: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:25]wFMCommunicate OK [06:28:25]SAM_PROTO_GetFieldsCounters done [06:28:25]requested_item shift.num is exist - process it [06:28:25]requested_item shift.opened is exist - process it [06:28:25]req_shift_opened [06:28:25]FM_GetShiftState [06:28:25]SAM_PROTO_GetShiftState [06:28:25]wFMCommunicate request_size=4 [06:28:25]MH_SAM_APDU [06:28:25]CAPDU: 80 13 01 00 [06:28:25]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [06:28:25]Write i2c OK [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 [06:28:25]MH_I2C_Read... [06:28:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:25]Read from MH i2c: E2 0E 00 [06:28:25]MH_I2C_Read... [06:28:25]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9C [06:28:25]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:28:25]wFMCommunicate OK [06:28:25]SAM_PROTO_GetShiftState done [06:28:25]FM_GetShiftState done [06:28:25]req_shift_opened done [06:28:25]requested_item shift.open_date is exist - process it [06:28:25]req_shift_open_date [06:28:25]req_shift_open_date done [06:28:25]produce_requested_data done [06:28:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72494,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [06:28:25]process_action_free close_receipt [06:28:25]json_value_free [06:28:25]json_value_free done [06:28:25]process_json_proto returns [06:28:25]Send response to host [06:28:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72494,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [06:28:25]free response buf [06:28:25]execute_script done [06:28:25]execute_script returns [06:28:25]free content buf [06:28:25]Sock 8.Close socket [06:28:25]Sock 8.Thread stoped [06:28:30]OFD Sender: No OFD packet to send [06:28:35]OFD Sender: No OFD packet to send [06:28:39]recv_with_timeout no data received [06:28:40]OFD Sender: No OFD packet to send [06:28:45]OFD Sender: No OFD packet to send [06:28:50]OFD Sender: No OFD packet to send [06:28:55]OFD Sender: No OFD packet to send [06:29:00]OFD Sender: No OFD packet to send [06:29:05]OFD Sender: No OFD packet to send [06:29:10]OFD Sender: No OFD packet to send [06:29:15]OFD Sender: No OFD packet to send [06:29:20]OFD Sender: No OFD packet to send [06:29:25]OFD Sender: No OFD packet to send [06:29:28]recv_with_timeout no data received [06:29:30]OFD Sender: No OFD packet to send [06:29:35]OFD Sender: No OFD packet to send [06:29:40]OFD Sender: No OFD packet to send [06:29:45]OFD Sender: No OFD packet to send [06:29:50]OFD Sender: No OFD packet to send [06:29:55]OFD Sender: No OFD packet to send [06:29:58]recv_with_timeout no data received [06:30:00]OFD Sender: No OFD packet to send [06:30:05]OFD Sender: No OFD packet to send [06:30:10]OFD Sender: No OFD packet to send [06:30:15]OFD Sender: No OFD packet to send [06:30:16]recv_with_timeout no data received [06:30:20]OFD Sender: No OFD packet to send [06:30:25]OFD Sender: No OFD packet to send [06:30:30]OFD Sender: No OFD packet to send [06:30:33]recv_with_timeout no data received [06:30:35]OFD Sender: No OFD packet to send [06:30:40]OFD Sender: No OFD packet to send [06:30:45]OFD Sender: No OFD packet to send [06:30:50]OFD Sender: No OFD packet to send [06:30:55]OFD Sender: No OFD packet to send [06:31:00]OFD Sender: No OFD packet to send [06:31:05]OFD Sender: No OFD packet to send [06:31:10]OFD Sender: No OFD packet to send [06:31:15]OFD Sender: No OFD packet to send [06:31:20]OFD Sender: No OFD packet to send [06:31:25]OFD Sender: No OFD packet to send [06:31:27]recv_with_timeout no data received [06:31:30]OFD Sender: No OFD packet to send [06:31:35]OFD Sender: No OFD packet to send [06:31:40]OFD Sender: No OFD packet to send [06:31:45]OFD Sender: No OFD packet to send [06:31:48]recv_with_timeout no data received [06:31:50]OFD Sender: No OFD packet to send [06:31:55]OFD Sender: No OFD packet to send [06:32:00]OFD Sender: No OFD packet to send [06:32:05]OFD Sender: No OFD packet to send [06:32:10]OFD Sender: No OFD packet to send [06:32:15]OFD Sender: No OFD packet to send [06:32:20]OFD Sender: No OFD packet to send [06:32:25]OFD Sender: No OFD packet to send [06:32:30]OFD Sender: No OFD packet to send [06:32:35]OFD Sender: No OFD packet to send [06:32:39]recv_with_timeout no data received [06:32:40]OFD Sender: No OFD packet to send [06:32:45]OFD Sender: No OFD packet to send [06:32:50]OFD Sender: No OFD packet to send [06:32:55]OFD Sender: No OFD packet to send [06:33:00]OFD Sender: No OFD packet to send [06:33:05]OFD Sender: No OFD packet to send [06:33:10]OFD Sender: No OFD packet to send [06:33:15]OFD Sender: No OFD packet to send [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:40]OFD Sender: No OFD packet to send [06:33:44]recv_with_timeout no data received [06:33:45]OFD Sender: No OFD packet to send [06:33:50]OFD Sender: No OFD packet to send [06:33:55]OFD Sender: No OFD packet to send [06:34:00]OFD Sender: No OFD packet to send [06:34:05]OFD Sender: No OFD packet to send [06:34:10]OFD Sender: No OFD packet to send [06:34:11]recv_with_timeout no data received [06:34:15]OFD Sender: No OFD packet to send [06:34:20]OFD Sender: No OFD packet to send [06:34:25]OFD Sender: No OFD packet to send [06:34:30]OFD Sender: No OFD packet to send [06:34:35]OFD Sender: No OFD packet to send [06:34:37]recv_with_timeout no data received [06:34:40]OFD Sender: No OFD packet to send [06:34:45]OFD Sender: No OFD packet to send [06:34:50]OFD Sender: No OFD packet to send [06:34:55]OFD Sender: No OFD packet to send [06:35:00]OFD Sender: No OFD packet to send [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:20]OFD Sender: No OFD packet to send [06:35:25]OFD Sender: No OFD packet to send [06:35:30]OFD Sender: No OFD packet to send [06:35:35]OFD Sender: No OFD packet to send [06:35:40]OFD Sender: No OFD packet to send [06:35:45]OFD Sender: No OFD packet to send [06:35:50]OFD Sender: No OFD packet to send [06:35:55]OFD Sender: No OFD packet to send [06:36:00]OFD Sender: No OFD packet to send [06:36:05]OFD Sender: No OFD packet to send [06:36:10]OFD Sender: No OFD packet to send [06:36:15]OFD Sender: No OFD packet to send [06:36:20]OFD Sender: No OFD packet to send [06:36:25]OFD Sender: No OFD packet to send [06:36:30]OFD Sender: No OFD packet to send [06:36:35]OFD Sender: No OFD packet to send [06:36:40]OFD Sender: No OFD packet to send [06:36:45]OFD Sender: No OFD packet to send [06:36:50]OFD Sender: No OFD packet to send [06:36:55]OFD Sender: No OFD packet to send [06:37:00]OFD Sender: No OFD packet to send [06:37:05]OFD Sender: No OFD packet to send [06:37:10]OFD Sender: No OFD packet to send [06:37:16]OFD Sender: No OFD packet to send [06:37:21]OFD Sender: No OFD packet to send [06:37:26]OFD Sender: No OFD packet to send [06:37:31]OFD Sender: No OFD packet to send [06:37:36]OFD Sender: No OFD packet to send [06:37:41]OFD Sender: No OFD packet to send [06:37:46]OFD Sender: No OFD packet to send [06:37:50]recv_with_timeout no data received [06:37:51]OFD Sender: No OFD packet to send [06:37:56]OFD Sender: No OFD packet to send [06:38:01]OFD Sender: No OFD packet to send [06:38:06]OFD Sender: No OFD packet to send [06:38:11]OFD Sender: No OFD packet to send [06:38:16]OFD Sender: No OFD packet to send [06:38:21]OFD Sender: No OFD packet to send [06:38:26]OFD Sender: No OFD packet to send [06:38:31]OFD Sender: No OFD packet to send [06:38:36]OFD Sender: No OFD packet to send [06:38:41]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:46]recv_with_timeout no data received [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:14]recv_with_timeout no data received [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:36]OFD Sender: No OFD packet to send [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:52]recv_with_timeout no data received [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:10]recv_with_timeout no data received [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:42]recv_with_timeout no data received [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:51]recv_with_timeout no data received [06:42:56]OFD Sender: No OFD packet to send [06:43:01]OFD Sender: No OFD packet to send [06:43:06]OFD Sender: No OFD packet to send [06:43:11]OFD Sender: No OFD packet to send [06:43:16]OFD Sender: No OFD packet to send [06:43:21]OFD Sender: No OFD packet to send [06:43:26]OFD Sender: No OFD packet to send [06:43:28]recv_with_timeout no data received [06:43:31]OFD Sender: No OFD packet to send [06:43:36]OFD Sender: No OFD packet to send [06:43:41]OFD Sender: No OFD packet to send [06:43:46]OFD Sender: No OFD packet to send [06:43:51]OFD Sender: No OFD packet to send [06:43:56]OFD Sender: No OFD packet to send [06:44:01]OFD Sender: No OFD packet to send [06:44:06]OFD Sender: No OFD packet to send [06:44:08]recv_with_timeout no data received [06:44:11]OFD Sender: No OFD packet to send [06:44:16]OFD Sender: No OFD packet to send [06:44:21]OFD Sender: No OFD packet to send [06:44:26]OFD Sender: No OFD packet to send [06:44:31]OFD Sender: No OFD packet to send [06:44:36]OFD Sender: No OFD packet to send [06:44:41]OFD Sender: No OFD packet to send [06:44:46]OFD Sender: No OFD packet to send [06:44:51]recv_with_timeout no data received [06:44:51]OFD Sender: No OFD packet to send [06:44:56]OFD Sender: No OFD packet to send [06:45:01]OFD Sender: No OFD packet to send [06:45:06]OFD Sender: No OFD packet to send [06:45:11]OFD Sender: No OFD packet to send [06:45:16]OFD Sender: No OFD packet to send [06:45:21]OFD Sender: No OFD packet to send [06:45:26]OFD Sender: No OFD packet to send [06:45:31]OFD Sender: No OFD packet to send [06:45:36]OFD Sender: No OFD packet to send [06:45:41]OFD Sender: No OFD packet to send [06:45:46]OFD Sender: No OFD packet to send [06:45:51]OFD Sender: No OFD packet to send [06:45:56]OFD Sender: No OFD packet to send [06:46:01]OFD Sender: No OFD packet to send [06:46:06]OFD Sender: No OFD packet to send [06:46:11]OFD Sender: No OFD packet to send [06:46:16]OFD Sender: No OFD packet to send [06:46:21]OFD Sender: No OFD packet to send [06:46:26]OFD Sender: No OFD packet to send [06:46:31]OFD Sender: No OFD packet to send [06:46:36]OFD Sender: No OFD packet to send [06:46:41]OFD Sender: No OFD packet to send [06:46:46]OFD Sender: No OFD packet to send [06:46:47]recv_with_timeout no data received [06:46:51]OFD Sender: No OFD packet to send [06:46:56]OFD Sender: No OFD packet to send [06:47:01]OFD Sender: No OFD packet to send [06:47:06]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:37]recv_with_timeout no data received [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:21]recv_with_timeout no data received [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:53]recv_with_timeout no data received [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:34]recv_with_timeout no data received [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:49:58]recv_with_timeout no data received [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:43]recv_with_timeout no data received [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:53]recv_with_timeout no data received [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:18]recv_with_timeout no data received [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:31]recv_with_timeout no data received [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:18]recv_with_timeout no data received [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:28]recv_with_timeout no data received [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:39]recv_with_timeout no data received [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:50]recv_with_timeout no data received [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:28]recv_with_timeout no data received [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:44]recv_with_timeout no data received [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:01]recv_with_timeout no data received [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:49]recv_with_timeout no data received [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:04]recv_with_timeout no data received [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:25]recv_with_timeout no data received [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:28]recv_with_timeout no data received [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:44]accept exits with 10 [06:59:44]New connection [06:59:44]New thread 3067448676 created [06:59:44]Thread 3067592036 joined [06:59:44]Waiting for new connection... [06:59:44] Sock 10.Parse request [06:59:44]Sock 10.Check first char [06:59:44]Sock 10.First char is OK [06:59:44]request: POST /json_proto HTTP/1.0 [06:59:44]Method: POST [06:59:44]URL: /json_proto [06:59:44]Method is POST - this is cgi request [06:59:44]url: /json_proto [06:59:44]query_string will be loaded in cgi processing [06:59:44]execute_cgi json_proto POST (null) [06:59:44]execute_cgi path=json_proto method=POST [06:59:44]POST find Content-Length [06:59:44]Host: 172.17.43.195:8080 [06:59:44]Content-Length: 824 [06:59:44]Content-Type: application/json [06:59:44] [06:59:44]POST finish read [06:59:44]Found Content-Length = 824 [06:59:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:44]execute_script... [06:59: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)951941", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:59:44]POST & json_proto [06:59:44]process_json_proto [06:59:44]json parsed OK: [06:59:44]protocol is kg_v1.0 [06:59:44]action value=close_receipt [06:59:44]process_action close_receipt [06:59:44]cmd_close_receipt [06:59:44]MH_GetDate [06:59:44]Write to MH i2c: F0 00 00 B6 02 A7 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: F0 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: F0 09 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: F0 09 00 B6 02 00 61 36 1F 67 74 2C AD 66 80 [06:59:44]GetLastDocTimeStamp 1730096902 [06:59:44]current date 1730098785 [06:59:44]FM_GetShiftState [06:59:44]SAM_PROTO_GetShiftState [06:59:44]wFMCommunicate request_size=4 [06:59:44]MH_SAM_APDU [06:59:44]CAPDU: 80 13 01 00 [06:59:44]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [06:59:44]Write i2c OK [06:59:44]MH_I2C_Read... [06:59:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:44]Read from MH i2c: E2 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 0E 00 [06:59:44]MH_I2C_Read... [06:59:44]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9E [06:59:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:59:44]wFMCommunicate OK [06:59:44]SAM_PROTO_GetShiftState done [06:59:44]FM_GetShiftState done [06:59:44]opened in 1730074113 [06:59:44]opened+sec_in_day 1730160513 [06:59:44]quantity*price = 100000 [06:59:44]sum+1 = 100002 [06:59:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 23 28.10.2024 06:59 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72495 ФПД: 120700777331184 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72495&fm=120700777331184&tin=02508201610067®Number=0000000000091644&sum=100001 [06:59:45]StoreToDocumentArchive [06:59:45]shift 554 fd 72495 [06:59:45]save to /storage/0554/doc_00072495 [06:59:45]save last doc name /storage/0554/doc_00072495 to /storage/kkm_last_doc_name [06:59:45]save OK [06:59:45]Clear old archive folders... [06:59:45]ProcessDocumentItem done err = 0, tmpTLVsize=244 [06:59:45]tlvbuf is 00DA3F20 [06:59:45]SAM_PROTO_ClearQueue [06:59:45]wFMCommunicate request_size=4 [06:59:45]MH_SAM_APDU [06:59:45]CAPDU: 80 09 00 00 [06:59:45]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [06:59:45]Write i2c OK [06:59:45]MH_I2C_Read... [06:59:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:59:45]Read from MH i2c: E2 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: E2 03 00 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [06:59:45]RAPDU: 90 00 [06:59:45]wFMCommunicate OK [06:59:45]SAM_PROTO_ClearQueue done [06:59:45]KKMCreateOFDPacket [06:59:45]OFDProtocolAddRootSTLVToBuf [06:59:45]FM_MakeSignedData [06:59:45]FM_MakeSignedData [06:59:45]SAM_PROTO_SignData [06:59:45]wFMCommunicate request_size=4 [06:59:45]MH_SAM_APDU [06:59:45]CAPDU: 80 0D 01 02 [06:59:45]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [06:59:45]Write i2c OK [06:59:45]MH_I2C_Read... [06:59:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:59:45]Read from MH i2c: E2 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: E2 03 00 [06:59:45]MH_I2C_Read... [06:59:45]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [06:59:45]RAPDU: 90 00 [06:59:45]wFMCommunicate OK [06:59:45]wFMCommunicate request_size=253 [06:59:45]MH_SAM_APDU [06:59:45]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 36 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1B 01 00 35 04 06 00 6D C6 D6 F4 F9 F0 [06:59:45]Write to MH i2c: E2 00 01 C6 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 36 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1B 01 00 35 04 06 00 6D C6 D6 F4 F9 F0 00 00 01 [06:59:46]Write i2c OK [06:59:46]MH_I2C_Read... [06:59:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:59:46]Read from MH i2c: E2 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 03 00 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [06:59:46]RAPDU: 90 00 [06:59:46]wFMCommunicate OK [06:59:46]wFMCommunicate request_size=4 [06:59:46]MH_SAM_APDU [06:59:46]CAPDU: 80 0D 03 02 [06:59:46]Write to MH i2c: E2 08 00 C7 02 80 0D 03 02 00 00 00 00 44 [06:59:46]Write i2c OK [06:59:46]MH_I2C_Read... [06:59:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:59:46]Read from MH i2c: E2 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 0B 00 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 0B 00 C7 02 00 1D F8 1E BF 36 3F 0A B8 90 00 6E [06:59:46]RAPDU: 1D F8 1E BF 36 3F 0A B8 90 00 [06:59:46]wFMCommunicate OK [06:59:46]SAM_PROTO_SignData done [06:59:46]FM_MakeSignedData done [06:59:46]CreateOFDProtocolMessage [06:59:46]wFMCommunicate request_size=4 [06:59:46]MH_SAM_APDU [06:59:46]CAPDU: 80 11 00 00 [06:59:46]Write to MH i2c: E2 08 00 C8 02 80 11 00 00 00 00 00 00 44 [06:59:46]Write i2c OK [06:59:46]MH_I2C_Read... [06:59:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:46]Read from MH i2c: E2 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 17 00 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: E2 17 00 C8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 98 [06:59:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:46]wFMCommunicate OK [06:59:46]CreateOFDProtocolMessage done [06:59:46]OFDSenderStorePacket 72495 [06:59:46]StoreOFDPacket docnum=72495 [06:59:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 DE E0 00 01 92 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 36 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1B 01 00 35 04 06 00 6D C6 D6 F4 F9 F0 1D F8 1E BF 36 3F 0A B8 [06:59:46]CheckFolder [06:59:46]dirname=/storage/ofd_packets [06:59:46]CheckFolder done [06:59:46]ProducePacketName [06:59:46]name=ofd_packets/00072495 [06:59:46]NVStorageSaveData ofd_packets/00072495 [06:59:46]File name is /storage/ofd_packets/00072495 [06:59:46]Write 294 bytes [06:59:46]NVStorageSaveData done [06:59:46]OFDSenderStorePacket done [06:59:46]KKMCreateOFDPacket done [06:59:46]NVStorageSaveData kkm_last_timestamp [06:59:46]File name is /storage/kkm_last_timestamp [06:59:46]Write 4 bytes [06:59:46]NVStorageSaveData done [06:59:46]ExternCall_PrintAddStr [06:59:46]wPrintStart [06:59:46]Write to MH i2c: 01 00 00 C9 02 CB [06:59:46]Write i2c OK [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: 01 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: 01 07 00 [06:59:46]MH_I2C_Read... [06:59:46]Read from MH i2c: 01 07 00 C9 02 00 00 00 00 00 FF 0F E0 [06:59:46]RasterBufferAndPrint [06:59:46]line Счет N : (1)951941 [06:59:46]line ИНН: 02508201610067 [06:59:46]line Контрольно-Кассовый Чек [06:59:46]line ПРОДАЖА [06:59:46]line ТРК (МРК, ГНК) : 51 [06:59:46]line Товар: 50.50.0 [06:59:46]line Super 92 [06:59:46]line 14.620 * 68.40 [06:59:46]line = 1000.01 [06:59:46]line НДС 12% НСП 1% [06:59:46]line > о реализуемом товаре [06:59:46]line ИТОГО: 1000.01 [06:59:46]line НСП 1% : 8.85 [06:59:46]line НДС 12% : 106.20 [06:59:46]line Наличными: 0.00 [06:59:46]line Безнал.: 1000.01 [06:59:46]line Место: АЗС № 113 "Партнер Нефть" [06:59:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [06:59:46]line СНО: Общий режим [06:59:46]line Чек 23 28.10.2024 06:59 [06:59:46]line Смена: 554 ФФД: 1.0 [06:59:46]line ЗНМ: 0300000087 [06:59:46]line РНМ: 0000000000091644 [06:59:46]line Версия ККМ: 001 [06:59:46]line Платежная система: АКБ Кыргызстан [06:59:46]line ФМ: 0000000000874662 [06:59:46]line ФД: 72495 [06:59:46]line ФПД: 120700777331184 [06:59:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T065946&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72495&fm=120700777331184&tin=02508201610067®Number=0000000000091644&sum=100001 [06:59:46]OFD Sender: Processing packet 72495 [packets to send 272, broken 271] [06:59:46]ProducePacketName [06:59:46]name=ofd_packets/00072495 [06:59:46]OFD Sender: To server: pG, [06:59:46]CommunicateWithHost lk.salyk.kg:30040 [06:59:46]ConnectInit lk.salyk.kg [06:59:46]written 0, free lines is 4095 [06:59:47]Write to MH i2c: 01 00 00 F3 02 F5 [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: 01 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: 01 07 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: 01 07 00 F3 02 00 00 00 00 00 E7 0C EF [06:59:47]RasterBufferAndPrint [06:59:47]line [06:59:47]line [06:59:47]line [06:59:47]line [06:59:47]line [06:59:47]written 0, free lines is 3310 [06:59:47]MH_Cut [06:59:47]Write to MH i2c: D1 01 00 FA 02 01 CE [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: D1 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: D1 01 00 [06:59:47]MH_I2C_Read... [06:59:47]Read from MH i2c: D1 01 00 FA 02 00 CD [06:59:47]Write to MH i2c: 01 00 00 FB 02 FD [06:59:47]Write i2c OK [06:59:47]MH_I2C_Read... [06:59:47]Connected sock=9 [06:59:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 DE E0 00 01 92 7C 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 62 36 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 2F 1B 01 00 35 04 06 00 6D C6 D6 F4 F9 F0 1D F8 1E BF 36 3F 0A B8 [06:59:47]*** Cut start [06:59:47]*** Partial cut [06:59:47]*** CUTSNS_PIN = 1 [06:59:47]*** CUTSNS_PIN = 0 [06:59:48]*** Brake cut motor [06:59:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 11 B4 47 00 34 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 34 36 36 32 10 04 04 00 2F 1B 01 00 F4 03 04 00 22 E1 1E 67 B6 04 01 00 00 66 58 5E 64 BC F2 91 A2 [06:59:48]CommunicateWithHost err = 0 [06:59:48]CheckOFDResponse [06:59:48]1017 (14) - 77093643461234 [06:59:48]1041 (16) - 0000000000874662 [06:59:48]1040 (4) - 72495 [06:59:48]1012 (4) - 28.10.2024 00:56 [06:59:48]1206 (1) - 0 [06:59:48]OFD Sender: Remove packet 72495 [06:59:48]ProducePacketName [06:59:48]name=ofd_packets/00072495 [06:59:48]NVStorageDeleteData [06:59:48]Read from MH i2c: 01 [06:59:48]MH_I2C_Read... [06:59:48]*** Stop cut motor [06:59:48]*** Cut end [06:59:48]Read from MH i2c: 01 07 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: 01 07 00 FB 02 00 00 00 00 00 FF 0F 12 [06:59:48]process_action close_receipt done [06:59:48]requested_data is exist [06:59:48]produce_requested_data [06:59:48]requested_item fm.sn is exist - process it [06:59:48]wFMCommunicate request_size=4 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 11 00 00 [06:59:48]Write to MH i2c: E2 08 00 FC 02 80 11 00 00 00 00 00 00 78 [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:59:48]Read from MH i2c: E2 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 17 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 17 00 FC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CC [06:59:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [06:59:48]wFMCommunicate OK [06:59:48]requested_item fd.num is exist - process it [06:59:48]SAM_PROTO_GetFieldsCounters [06:59:48]wFMCommunicate request_size=4 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 13 00 00 [06:59:48]Write to MH i2c: E2 08 00 FD 02 80 13 00 00 00 00 00 00 7B [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:59:48]OFD Sender: No OFD packet to send [06:59:48]Read from MH i2c: E2 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 62 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 62 00 FD 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [06:59: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 2F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:59:48]wFMCommunicate OK [06:59:48]SAM_PROTO_GetFieldsCounters done [06:59:48]requested_item shift.num is exist - process it [06:59:48]requested_item shift.opened is exist - process it [06:59:48]req_shift_opened [06:59:48]FM_GetShiftState [06:59:48]SAM_PROTO_GetShiftState [06:59:48]wFMCommunicate request_size=4 [06:59:48]MH_SAM_APDU [06:59:48]CAPDU: 80 13 01 00 [06:59:48]Write to MH i2c: E2 08 00 FE 02 80 13 01 00 00 00 00 00 7D [06:59:48]Write i2c OK [06:59:48]MH_I2C_Read... [06:59:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:59:48]Read from MH i2c: E2 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 0E 00 [06:59:48]MH_I2C_Read... [06:59:48]Read from MH i2c: E2 0E 00 FE 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E5 [06:59:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [06:59:48]wFMCommunicate OK [06:59:48]SAM_PROTO_GetShiftState done [06:59:48]FM_GetShiftState done [06:59:48]req_shift_opened done [06:59:48]requested_item shift.open_date is exist - process it [06:59:48]req_shift_open_date [06:59:48]req_shift_open_date done [06:59:48]produce_requested_data done [06:59:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72495,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [06:59:48]process_action_free close_receipt [06:59:48]json_value_free [06:59:48]json_value_free done [06:59:48]process_json_proto returns [06:59:48]Send response to host [06:59:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72495,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [06:59:48]free response buf [06:59:48]execute_script done [06:59:48]execute_script returns [06:59:48]free content buf [06:59:48]Sock 10.Close socket [06:59:48]Sock 10.Thread stoped [06:59:53]recv_with_timeout no data received [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:04]recv_with_timeout no data received [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]recv_with_timeout no data received [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:24]OFD Sender: No OFD packet to send [07:02:29]OFD Sender: No OFD packet to send [07:02:31]recv_with_timeout no data received [07:02:34]OFD Sender: No OFD packet to send [07:02:39]OFD Sender: No OFD packet to send [07:02:44]OFD Sender: No OFD packet to send [07:02:45]recv_with_timeout no data received [07:02:49]OFD Sender: No OFD packet to send [07:02:54]OFD Sender: No OFD packet to send [07:02:59]OFD Sender: No OFD packet to send [07:03:04]OFD Sender: No OFD packet to send [07:03:09]OFD Sender: No OFD packet to send [07:03:14]OFD Sender: No OFD packet to send [07:03:19]OFD Sender: No OFD packet to send [07:03:24]OFD Sender: No OFD packet to send [07:03:29]OFD Sender: No OFD packet to send [07:03:34]OFD Sender: No OFD packet to send [07:03:39]OFD Sender: No OFD packet to send [07:03:44]OFD Sender: No OFD packet to send [07:03:49]OFD Sender: No OFD packet to send [07:03:54]OFD Sender: No OFD packet to send [07:03:59]OFD Sender: No OFD packet to send [07:04:04]OFD Sender: No OFD packet to send [07:04:09]OFD Sender: No OFD packet to send [07:04:14]OFD Sender: No OFD packet to send [07:04:19]OFD Sender: No OFD packet to send [07:04:20]recv_with_timeout no data received [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:30]recv_with_timeout no data received [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:07]recv_with_timeout no data received [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:18]recv_with_timeout no data received [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:28]recv_with_timeout no data received [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:39]recv_with_timeout no data received [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:47]recv_with_timeout no data received [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:13]recv_with_timeout no data received [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:58]accept exits with 8 [07:07:58]New connection [07:07:58]New thread 3067592036 created [07:07:58]Thread 3067448676 joined [07:07:58]Waiting for new connection... [07:07:58] Sock 8.Parse request [07:07:58]Sock 8.Check first char [07:07:58]Sock 8.First char is OK [07:07:58]request: POST /json_proto HTTP/1.0 [07:07:58]Method: POST [07:07:58]URL: /json_proto [07:07:58]Method is POST - this is cgi request [07:07:58]url: /json_proto [07:07:58]query_string will be loaded in cgi processing [07:07:58]execute_cgi json_proto POST (null) [07:07:58]execute_cgi path=json_proto method=POST [07:07:58]POST find Content-Length [07:07:58]Host: 172.17.43.195:8080 [07:07:58]Content-Length: 791 [07:07:58]Content-Type: application/json [07:07:58] [07:07:58]POST finish read [07:07:58]Found Content-Length = 791 [07:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 3.960, "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\u000A24264", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:58]execute_script... [07:07: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)951942", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 3.960, "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\u000A24264", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:58]POST & json_proto [07:07:58]process_json_proto [07:07:58]json parsed OK: [07:07:58]protocol is kg_v1.0 [07:07:58]action value=close_receipt [07:07:58]process_action close_receipt [07:07:58]cmd_close_receipt [07:07:58]MH_GetDate [07:07:58]Write to MH i2c: F0 00 00 FF 02 F0 [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: F0 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: F0 09 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: F0 09 00 FF 02 00 4F 38 1F 67 74 2C AD 66 B9 [07:07:58]GetLastDocTimeStamp 1730098786 [07:07:58]current date 1730099279 [07:07:58]FM_GetShiftState [07:07:58]SAM_PROTO_GetShiftState [07:07:58]wFMCommunicate request_size=4 [07:07:58]MH_SAM_APDU [07:07:58]CAPDU: 80 13 01 00 [07:07:58]Write to MH i2c: E2 08 00 00 03 80 13 01 00 00 00 00 00 80 [07:07:58]Write i2c OK [07:07:58]MH_I2C_Read... [07:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:58]Read from MH i2c: E2 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 0E 00 [07:07:58]MH_I2C_Read... [07:07:58]Read from MH i2c: E2 0E 00 00 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E8 [07:07:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:07:58]wFMCommunicate OK [07:07:58]SAM_PROTO_GetShiftState done [07:07:58]FM_GetShiftState done [07:07:58]opened in 1730074113 [07:07:58]opened+sec_in_day 1730160513 [07:07:58]quantity*price = 0 [07:07:58]sum+1 = 1 [07:07:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 24 28.10.2024 07:07 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 24264 ФМ: 0000000000874662 ФД: 72496 ФПД: 148140710831534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T070759&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72496&fm=148140710831534&tin=02508201610067®Number=0000000000091644&sum=0 [07:07:59]StoreToDocumentArchive [07:07:59]shift 554 fd 72496 [07:07:59]save to /storage/0554/doc_00072496 [07:07:59]save last doc name /storage/0554/doc_00072496 to /storage/kkm_last_doc_name [07:07:59]save OK [07:07:59]Clear old archive folders... [07:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:07:59]tlvbuf is 00DA5600 [07:07:59]SAM_PROTO_ClearQueue [07:07:59]wFMCommunicate request_size=4 [07:07:59]MH_SAM_APDU [07:07:59]CAPDU: 80 09 00 00 [07:07:59]Write to MH i2c: E2 08 00 0D 03 80 09 00 00 00 00 00 00 82 [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:59]Read from MH i2c: E2 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 03 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 03 00 0D 03 00 90 00 84 [07:07:59]RAPDU: 90 00 [07:07:59]wFMCommunicate OK [07:07:59]SAM_PROTO_ClearQueue done [07:07:59]KKMCreateOFDPacket [07:07:59]OFDProtocolAddRootSTLVToBuf [07:07:59]FM_MakeSignedData [07:07:59]FM_MakeSignedData [07:07:59]SAM_PROTO_SignData [07:07:59]wFMCommunicate request_size=4 [07:07:59]MH_SAM_APDU [07:07:59]CAPDU: 80 0D 01 02 [07:07:59]Write to MH i2c: E2 08 00 0E 03 80 0D 01 02 00 00 00 00 8A [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:59]Read from MH i2c: E2 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 03 00 [07:07:59]MH_I2C_Read... [07:07:59]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [07:07:59]RAPDU: 90 00 [07:07:59]wFMCommunicate OK [07:07:59]wFMCommunicate request_size=255 [07:07:59]MH_SAM_APDU [07:07: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 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 38 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1B 01 00 35 04 06 00 86 [07:07:59]Write to MH i2c: E2 02 01 0F 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 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 38 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1B 01 00 35 04 06 00 86 00 00 3E [07:07:59]Write i2c OK [07:07:59]MH_I2C_Read... [07:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:00]Read from MH i2c: E2 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 03 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [07:08:00]RAPDU: 90 00 [07:08:00]wFMCommunicate OK [07:08:00]wFMCommunicate request_size=10 [07:08:00]MH_SAM_APDU [07:08:00]CAPDU: 80 0D 02 02 05 BB B2 72 25 AE [07:08:00]Write to MH i2c: E2 0D 00 10 03 80 0D 02 02 05 00 BB B2 72 25 AE 00 00 49 [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:00]Read from MH i2c: E2 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 03 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [07:08:00]RAPDU: 90 00 [07:08:00]wFMCommunicate OK [07:08:00]wFMCommunicate request_size=4 [07:08:00]MH_SAM_APDU [07:08:00]CAPDU: 80 0D 03 02 [07:08:00]Write to MH i2c: E2 08 00 11 03 80 0D 03 02 00 00 00 00 8F [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:00]Read from MH i2c: E2 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 0B 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 0B 00 11 03 00 ED F5 2C A8 0B 78 80 6D 90 00 B6 [07:08:00]RAPDU: ED F5 2C A8 0B 78 80 6D 90 00 [07:08:00]wFMCommunicate OK [07:08:00]SAM_PROTO_SignData done [07:08:00]FM_MakeSignedData done [07:08:00]CreateOFDProtocolMessage [07:08:00]wFMCommunicate request_size=4 [07:08:00]MH_SAM_APDU [07:08:00]CAPDU: 80 11 00 00 [07:08:00]Write to MH i2c: E2 08 00 12 03 80 11 00 00 00 00 00 00 8F [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:00]Read from MH i2c: E2 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 17 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: E2 17 00 12 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E3 [07:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:08:00]wFMCommunicate OK [07:08:00]CreateOFDProtocolMessage done [07:08:00]OFDSenderStorePacket 72496 [07:08:00]StoreOFDPacket docnum=72496 [07:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 40 B6 07 01 7B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 38 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1B 01 00 35 04 06 00 86 BB B2 72 25 AE ED F5 2C A8 0B 78 80 6D [07:08:00]CheckFolder [07:08:00]dirname=/storage/ofd_packets [07:08:00]CheckFolder done [07:08:00]ProducePacketName [07:08:00]name=ofd_packets/00072496 [07:08:00]NVStorageSaveData ofd_packets/00072496 [07:08:00]File name is /storage/ofd_packets/00072496 [07:08:00]Write 301 bytes [07:08:00]NVStorageSaveData done [07:08:00]OFDSenderStorePacket done [07:08:00]KKMCreateOFDPacket done [07:08:00]NVStorageSaveData kkm_last_timestamp [07:08:00]File name is /storage/kkm_last_timestamp [07:08:00]Write 4 bytes [07:08:00]NVStorageSaveData done [07:08:00]ExternCall_PrintAddStr [07:08:00]wPrintStart [07:08:00]Write to MH i2c: 01 00 00 13 03 16 [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 07 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 07 00 13 03 00 00 00 00 00 FF 0F 2B [07:08:00]RasterBufferAndPrint [07:08:00]line Счет N : (1)951942 [07:08:00]line ИНН: 02508201610067 [07:08:00]line Контрольно-Кассовый Чек [07:08:00]line ПРОДАЖА [07:08:00]line ТРК (МРК, ГНК) : 63 [07:08:00]line Товар: 2710124130 [07:08:00]line Аи-92-К-5 [07:08:00]line 3.960 * 0.00 [07:08:00]line = 0.00 [07:08:00]line НДС 12% НСП 1% [07:08:00]line > о реализуемом товаре [07:08:00]line ИТОГО: 0.00 [07:08:00]line НСП 1% : 0.00 [07:08:00]line НДС 12% : 0.00 [07:08:00]line Наличными: 0.00 [07:08:00]line Безнал.: 0.00 [07:08:00]line Место: АЗС № 113 "Партнер Нефть" [07:08:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:08:00]line СНО: Общий режим [07:08:00]line Чек 24 28.10.2024 07:07 [07:08:00]line Смена: 554 ФФД: 1.0 [07:08:00]line ЗНМ: 0300000087 [07:08:00]line РНМ: 0000000000091644 [07:08:00]line Версия ККМ: 001 [07:08:00]line Талоны: Топливная Карта [07:08:00]line 24264 [07:08:00]line ФМ: 0000000000874662 [07:08:00]line ФД: 72496 [07:08:00]line ФПД: 148140710831534 [07:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T070759&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72496&fm=148140710831534&tin=02508201610067®Number=0000000000091644&sum=0 [07:08:00]written 0, free lines is 4095 [07:08:00]OFD Sender: Processing packet 72496 [packets to send 272, broken 271] [07:08:00]ProducePacketName [07:08:00]name=ofd_packets/00072496 [07:08:00]OFD Sender: To server: pG, [07:08:00]CommunicateWithHost lk.salyk.kg:30040 [07:08:00]ConnectInit lk.salyk.kg [07:08:00]Write to MH i2c: 01 00 00 3D 03 40 [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 07 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: 01 07 00 3D 03 00 00 00 00 00 E1 0C 34 [07:08:00]RasterBufferAndPrint [07:08:00]line [07:08:00]line [07:08:00]line [07:08:00]line [07:08:00]line [07:08:00]written 0, free lines is 3303 [07:08:00]MH_Cut [07:08:00]Write to MH i2c: D1 01 00 44 03 01 19 [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: D1 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: D1 01 00 [07:08:00]MH_I2C_Read... [07:08:00]Read from MH i2c: D1 01 00 44 03 00 18 [07:08:00]Write to MH i2c: 01 00 00 45 03 48 [07:08:00]Write i2c OK [07:08:00]MH_I2C_Read... [07:08:01]*** Cut start [07:08:01]*** Partial cut [07:08:01]*** CUTSNS_PIN = 1 [07:08:01]*** CUTSNS_PIN = 0 [07:08:01]*** Brake cut motor [07:08:02]Read from MH i2c: 01 [07:08:02]MH_I2C_Read... [07:08:02]*** Stop cut motor [07:08:02]*** Cut end [07:08:02]Read from MH i2c: 01 07 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: 01 07 00 45 03 00 00 00 00 00 FF 0F 5D [07:08:02]process_action close_receipt done [07:08:02]requested_data is exist [07:08:02]produce_requested_data [07:08:02]requested_item fm.sn is exist - process it [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 11 00 00 [07:08:02]Write to MH i2c: E2 08 00 46 03 80 11 00 00 00 00 00 00 C3 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 17 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 17 00 46 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 17 [07:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:08:02]wFMCommunicate OK [07:08:02]requested_item fd.num is exist - process it [07:08:02]SAM_PROTO_GetFieldsCounters [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 13 00 00 [07:08:02]Write to MH i2c: E2 08 00 47 03 80 13 00 00 00 00 00 00 C6 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 62 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 62 00 47 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 30 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [07:08: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 30 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:08:02]wFMCommunicate OK [07:08:02]SAM_PROTO_GetFieldsCounters done [07:08:02]requested_item shift.num is exist - process it [07:08:02]requested_item shift.opened is exist - process it [07:08:02]req_shift_opened [07:08:02]FM_GetShiftState [07:08:02]SAM_PROTO_GetShiftState [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 13 01 00 [07:08:02]Write to MH i2c: E2 08 00 48 03 80 13 01 00 00 00 00 00 C8 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0E 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0E 00 48 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 30 [07:08:02]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:08:02]wFMCommunicate OK [07:08:02]SAM_PROTO_GetShiftState done [07:08:02]FM_GetShiftState done [07:08:02]req_shift_opened done [07:08:02]requested_item shift.open_date is exist - process it [07:08:02]req_shift_open_date [07:08:02]req_shift_open_date done [07:08:02]produce_requested_data done [07:08:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72496,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:08:02]process_action_free close_receipt [07:08:02]json_value_free [07:08:02]json_value_free done [07:08:02]process_json_proto returns [07:08:02]Send response to host [07:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72496,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:08:02]free response buf [07:08:02]execute_script done [07:08:02]execute_script returns [07:08:02]free content buf [07:08:02]Sock 8.Close socket [07:08:02]Sock 8.Thread stoped [07:08:05]ConnectInit Can't take IP for lk.salyk.kg [07:08:05]CommunicateWithHost connect error [07:08:05]CommunicateWithHost err = -1 [07:08:05]OFD Sender: Server communicate error [07:08:10]OFD Sender: Processing packet 72496 [packets to send 272, broken 271] [07:08:10]ProducePacketName [07:08:10]name=ofd_packets/00072496 [07:08:10]OFD Sender: To server: pG, [07:08:10]CommunicateWithHost lk.salyk.kg:30040 [07:08:10]ConnectInit lk.salyk.kg [07:08:12]recv_with_timeout no data received [07:08:15]ConnectInit Can't take IP for lk.salyk.kg [07:08:15]CommunicateWithHost connect error [07:08:15]CommunicateWithHost err = -1 [07:08:15]OFD Sender: Server communicate error [07:08:20]OFD Sender: Processing packet 72496 [packets to send 272, broken 271] [07:08:20]ProducePacketName [07:08:20]name=ofd_packets/00072496 [07:08:20]OFD Sender: To server: pG, [07:08:20]CommunicateWithHost lk.salyk.kg:30040 [07:08:20]ConnectInit lk.salyk.kg [07:08:25]ConnectInit Can't take IP for lk.salyk.kg [07:08:25]CommunicateWithHost connect error [07:08:25]CommunicateWithHost err = -1 [07:08:25]OFD Sender: Server communicate error [07:08:30]OFD Sender: Processing packet 72496 [packets to send 272, broken 271] [07:08:30]ProducePacketName [07:08:30]name=ofd_packets/00072496 [07:08:30]OFD Sender: To server: pG, [07:08:30]CommunicateWithHost lk.salyk.kg:30040 [07:08:30]ConnectInit lk.salyk.kg [07:08:31]recv_with_timeout no data received [07:08:35]ConnectInit Can't take IP for lk.salyk.kg [07:08:35]CommunicateWithHost connect error [07:08:35]CommunicateWithHost err = -1 [07:08:35]OFD Sender: Server communicate error [07:08:40]OFD Sender: Processing packet 72496 [packets to send 272, broken 271] [07:08:40]ProducePacketName [07:08:40]name=ofd_packets/00072496 [07:08:40]OFD Sender: To server: pG, [07:08:40]CommunicateWithHost lk.salyk.kg:30040 [07:08:40]ConnectInit lk.salyk.kg [07:08:48]recv_with_timeout no data received [07:08:56]Connected sock=9 [07:08:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 40 B6 07 01 7B 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 78 0F 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 4F 38 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1B 01 00 35 04 06 00 86 BB B2 72 25 AE ED F5 2C A8 0B 78 80 6D [07:09:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 88 8B 47 00 71 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 30 1B 01 00 F4 03 04 00 4A E3 1E 67 B6 04 01 00 00 64 3A 4F 5A 2B 95 D7 61 [07:09:01]CommunicateWithHost err = 0 [07:09:01]CheckOFDResponse [07:09:01]1017 (14) - 77093643461234 [07:09:01]1041 (16) - 0000000000874662 [07:09:01]1040 (4) - 72496 [07:09:01]1012 (4) - 28.10.2024 01:05 [07:09:01]1206 (1) - 0 [07:09:01]OFD Sender: Remove packet 72496 [07:09:01]ProducePacketName [07:09:01]name=ofd_packets/00072496 [07:09:01]NVStorageDeleteData [07:09:01]OFD Sender: No OFD packet to send [07:09:06]OFD Sender: No OFD packet to send [07:09:11]OFD Sender: No OFD packet to send [07:09:16]OFD Sender: No OFD packet to send [07:09:21]OFD Sender: No OFD packet to send [07:09:26]OFD Sender: No OFD packet to send [07:09:31]OFD Sender: No OFD packet to send [07:09:35]recv_with_timeout no data received [07:09:36]OFD Sender: No OFD packet to send [07:09:41]OFD Sender: No OFD packet to send [07:09:46]OFD Sender: No OFD packet to send [07:09:51]OFD Sender: No OFD packet to send [07:09:56]OFD Sender: No OFD packet to send [07:10:01]OFD Sender: No OFD packet to send [07:10:06]OFD Sender: No OFD packet to send [07:10:11]OFD Sender: No OFD packet to send [07:10:14]recv_with_timeout no data received [07:10:16]OFD Sender: No OFD packet to send [07:10:21]OFD Sender: No OFD packet to send [07:10:24]recv_with_timeout no data received [07:10:26]OFD Sender: No OFD packet to send [07:10:31]OFD Sender: No OFD packet to send [07:10:36]OFD Sender: No OFD packet to send [07:10:41]OFD Sender: No OFD packet to send [07:10:46]OFD Sender: No OFD packet to send [07:10:51]OFD Sender: No OFD packet to send [07:10:56]OFD Sender: No OFD packet to send [07:11:01]OFD Sender: No OFD packet to send [07:11:06]OFD Sender: No OFD packet to send [07:11:11]OFD Sender: No OFD packet to send [07:11:16]OFD Sender: No OFD packet to send [07:11:21]OFD Sender: No OFD packet to send [07:11:26]OFD Sender: No OFD packet to send [07:11:31]OFD Sender: No OFD packet to send [07:11:36]OFD Sender: No OFD packet to send [07:11:41]OFD Sender: No OFD packet to send [07:11:46]OFD Sender: No OFD packet to send [07:11:51]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:27]recv_with_timeout no data received [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:52]OFD Sender: No OFD packet to send [07:12:57]OFD Sender: No OFD packet to send [07:13:02]OFD Sender: No OFD packet to send [07:13:07]OFD Sender: No OFD packet to send [07:13:12]OFD Sender: No OFD packet to send [07:13:17]OFD Sender: No OFD packet to send [07:13:22]OFD Sender: No OFD packet to send [07:13:27]OFD Sender: No OFD packet to send [07:13:32]OFD Sender: No OFD packet to send [07:13:37]OFD Sender: No OFD packet to send [07:13:42]OFD Sender: No OFD packet to send [07:13:47]OFD Sender: No OFD packet to send [07:13:52]OFD Sender: No OFD packet to send [07:13:57]OFD Sender: No OFD packet to send [07:14:02]OFD Sender: No OFD packet to send [07:14:07]OFD Sender: No OFD packet to send [07:14:12]OFD Sender: No OFD packet to send [07:14:17]OFD Sender: No OFD packet to send [07:14:22]recv_with_timeout no data received [07:14:22]OFD Sender: No OFD packet to send [07:14:27]OFD Sender: No OFD packet to send [07:14:32]OFD Sender: No OFD packet to send [07:14:32]recv_with_timeout no data received [07:14:37]OFD Sender: No OFD packet to send [07:14:42]OFD Sender: No OFD packet to send [07:14:47]OFD Sender: No OFD packet to send [07:14:52]OFD Sender: No OFD packet to send [07:14:57]OFD Sender: No OFD packet to send [07:15:02]OFD Sender: No OFD packet to send [07:15:07]OFD Sender: No OFD packet to send [07:15:12]OFD Sender: No OFD packet to send [07:15:17]OFD Sender: No OFD packet to send [07:15:22]OFD Sender: No OFD packet to send [07:15:27]OFD Sender: No OFD packet to send [07:15:32]OFD Sender: No OFD packet to send [07:15:32]recv_with_timeout no data received [07:15:37]OFD Sender: No OFD packet to send [07:15:42]OFD Sender: No OFD packet to send [07:15:47]OFD Sender: No OFD packet to send [07:15:52]OFD Sender: No OFD packet to send [07:15:57]OFD Sender: No OFD packet to send [07:15:59]recv_with_timeout no data received [07:16:02]OFD Sender: No OFD packet to send [07:16:07]OFD Sender: No OFD packet to send [07:16:12]OFD Sender: No OFD packet to send [07:16:17]OFD Sender: No OFD packet to send [07:16:22]OFD Sender: No OFD packet to send [07:16:27]OFD Sender: No OFD packet to send [07:16:32]OFD Sender: No OFD packet to send [07:16:37]OFD Sender: No OFD packet to send [07:16:42]OFD Sender: No OFD packet to send [07:16:47]OFD Sender: No OFD packet to send [07:16:52]OFD Sender: No OFD packet to send [07:16:57]OFD Sender: No OFD packet to send [07:17:02]OFD Sender: No OFD packet to send [07:17:07]OFD Sender: No OFD packet to send [07:17:11]recv_with_timeout no data received [07:17:12]OFD Sender: No OFD packet to send [07:17:17]OFD Sender: No OFD packet to send [07:17:22]OFD Sender: No OFD packet to send [07:17:22]recv_with_timeout no data received [07:17:27]OFD Sender: No OFD packet to send [07:17:32]OFD Sender: No OFD packet to send [07:17:37]OFD Sender: No OFD packet to send [07:17:42]OFD Sender: No OFD packet to send [07:17:47]OFD Sender: No OFD packet to send [07:17:51]recv_with_timeout no data received [07:17:52]OFD Sender: No OFD packet to send [07:17:57]OFD Sender: No OFD packet to send [07:18:02]recv_with_timeout no data received [07:18:02]OFD Sender: No OFD packet to send [07:18:07]OFD Sender: No OFD packet to send [07:18:12]OFD Sender: No OFD packet to send [07:18:17]OFD Sender: No OFD packet to send [07:18:22]OFD Sender: No OFD packet to send [07:18:27]OFD Sender: No OFD packet to send [07:18:31]recv_with_timeout no data received [07:18:32]OFD Sender: No OFD packet to send [07:18:37]OFD Sender: No OFD packet to send [07:18:42]recv_with_timeout no data received [07:18:42]OFD Sender: No OFD packet to send [07:18:47]OFD Sender: No OFD packet to send [07:18:52]OFD Sender: No OFD packet to send [07:18:53]recv_with_timeout no data received [07:18:57]OFD Sender: No OFD packet to send [07:19:02]OFD Sender: No OFD packet to send [07:19:07]OFD Sender: No OFD packet to send [07:19:12]recv_with_timeout no data received [07:19:12]OFD Sender: No OFD packet to send [07:19:17]OFD Sender: No OFD packet to send [07:19:22]OFD Sender: No OFD packet to send [07:19:27]OFD Sender: No OFD packet to send [07:19:29]recv_with_timeout no data received [07:19:32]OFD Sender: No OFD packet to send [07:19:37]OFD Sender: No OFD packet to send [07:19:42]OFD Sender: No OFD packet to send [07:19:47]OFD Sender: No OFD packet to send [07:19:52]OFD Sender: No OFD packet to send [07:19:57]OFD Sender: No OFD packet to send [07:20:02]OFD Sender: No OFD packet to send [07:20:07]OFD Sender: No OFD packet to send [07:20:11]recv_with_timeout no data received [07:20:12]OFD Sender: No OFD packet to send [07:20:17]OFD Sender: No OFD packet to send [07:20:21]recv_with_timeout no data received [07:20:22]OFD Sender: No OFD packet to send [07:20:27]OFD Sender: No OFD packet to send [07:20:32]OFD Sender: No OFD packet to send [07:20:37]OFD Sender: No OFD packet to send [07:20:42]OFD Sender: No OFD packet to send [07:20:47]OFD Sender: No OFD packet to send [07:20:52]OFD Sender: No OFD packet to send [07:20:57]OFD Sender: No OFD packet to send [07:21:01]recv_with_timeout no data received [07:21:02]OFD Sender: No OFD packet to send [07:21:07]OFD Sender: No OFD packet to send [07:21:12]OFD Sender: No OFD packet to send [07:21:16]accept exits with 10 [07:21:16]New connection [07:21:16]New thread 3067448676 created [07:21:16]Thread 3067592036 joined [07:21:16]Waiting for new connection... [07:21:16] Sock 10.Parse request [07:21:16]Sock 10.Check first char [07:21:16]Sock 10.First char is OK [07:21:16]request: POST /json_proto HTTP/1.0 [07:21:16]Method: POST [07:21:16]URL: /json_proto [07:21:16]Method is POST - this is cgi request [07:21:16]url: /json_proto [07:21:16]query_string will be loaded in cgi processing [07:21:16]execute_cgi json_proto POST (null) [07:21:16]execute_cgi path=json_proto method=POST [07:21:16]POST find Content-Length [07:21:16]Host: 172.17.43.195:8080 [07:21:16]Content-Length: 792 [07:21:16]Content-Type: application/json [07:21:16] [07:21:16]POST finish read [07:21:16]Found Content-Length = 792 [07:21:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53906", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:16]execute_script... [07:21: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)951943", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53906", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:21:16]POST & json_proto [07:21:16]process_json_proto [07:21:16]json parsed OK: [07:21:16]protocol is kg_v1.0 [07:21:16]action value=close_receipt [07:21:16]process_action close_receipt [07:21:16]cmd_close_receipt [07:21:16]MH_GetDate [07:21:16]Write to MH i2c: F0 00 00 49 03 3B [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: F0 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: F0 09 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: F0 09 00 49 03 00 6E 3B 1F 67 74 2C AD 66 26 [07:21:16]GetLastDocTimeStamp 1730099279 [07:21:16]current date 1730100078 [07:21:16]FM_GetShiftState [07:21:16]SAM_PROTO_GetShiftState [07:21:16]wFMCommunicate request_size=4 [07:21:16]MH_SAM_APDU [07:21:16]CAPDU: 80 13 01 00 [07:21:16]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [07:21:16]Write i2c OK [07:21:16]MH_I2C_Read... [07:21:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:16]Read from MH i2c: E2 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 0E 00 [07:21:16]MH_I2C_Read... [07:21:16]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 32 [07:21:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:21:16]wFMCommunicate OK [07:21:16]SAM_PROTO_GetShiftState done [07:21:16]FM_GetShiftState done [07:21:16]opened in 1730074113 [07:21:16]opened+sec_in_day 1730160513 [07:21:16]quantity*price = 0 [07:21:16]sum+1 = 1 [07:21:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 25 28.10.2024 07:21 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53906 ФМ: 0000000000874662 ФД: 72497 ФПД: 215982447787456 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072118&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72497&fm=215982447787456&tin=02508201610067®Number=0000000000091644&sum=0 [07:21:17]StoreToDocumentArchive [07:21:17]shift 554 fd 72497 [07:21:17]save to /storage/0554/doc_00072497 [07:21:17]save last doc name /storage/0554/doc_00072497 to /storage/kkm_last_doc_name [07:21:17]save OK [07:21:17]Clear old archive folders... [07:21:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:21:17]tlvbuf is 00DA7000 [07:21:17]SAM_PROTO_ClearQueue [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 09 00 00 [07:21:17]Write to MH i2c: E2 08 00 57 03 80 09 00 00 00 00 00 00 CC [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 03 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 03 00 57 03 00 90 00 CE [07:21:17]RAPDU: 90 00 [07:21:17]wFMCommunicate OK [07:21:17]SAM_PROTO_ClearQueue done [07:21:17]KKMCreateOFDPacket [07:21:17]OFDProtocolAddRootSTLVToBuf [07:21:17]FM_MakeSignedData [07:21:17]FM_MakeSignedData [07:21:17]SAM_PROTO_SignData [07:21:17]wFMCommunicate request_size=4 [07:21:17]MH_SAM_APDU [07:21:17]CAPDU: 80 0D 01 02 [07:21:17]Write to MH i2c: E2 08 00 58 03 80 0D 01 02 00 00 00 00 D4 [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:21:17]Read from MH i2c: E2 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 03 00 [07:21:17]MH_I2C_Read... [07:21:17]Read from MH i2c: E2 03 00 58 03 00 90 00 CF [07:21:17]RAPDU: 90 00 [07:21:17]wFMCommunicate OK [07:21:17]wFMCommunicate request_size=255 [07:21:17]MH_SAM_APDU [07:21: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6E 3B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1B 01 00 35 04 06 00 C4 [07:21:17]Write to MH i2c: E2 02 01 59 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6E 3B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1B 01 00 35 04 06 00 C4 00 00 3F [07:21:17]Write i2c OK [07:21:17]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]wFMCommunicate request_size=10 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 02 02 05 6F 55 13 FD C0 [07:21:18]Write to MH i2c: E2 0D 00 5A 03 80 0D 02 02 05 00 6F 55 13 FD C0 00 00 75 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [07:21:18]RAPDU: 90 00 [07:21:18]wFMCommunicate OK [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 0D 03 02 [07:21:18]Write to MH i2c: E2 08 00 5B 03 80 0D 03 02 00 00 00 00 D9 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 0B 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 0B 00 5B 03 00 76 E5 54 35 58 D0 F8 51 90 00 2F [07:21:18]RAPDU: 76 E5 54 35 58 D0 F8 51 90 00 [07:21:18]wFMCommunicate OK [07:21:18]SAM_PROTO_SignData done [07:21:18]FM_MakeSignedData done [07:21:18]CreateOFDProtocolMessage [07:21:18]wFMCommunicate request_size=4 [07:21:18]MH_SAM_APDU [07:21:18]CAPDU: 80 11 00 00 [07:21:18]Write to MH i2c: E2 08 00 5C 03 80 11 00 00 00 00 00 00 D9 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:18]Read from MH i2c: E2 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 17 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: E2 17 00 5C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2D [07:21:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:21:18]wFMCommunicate OK [07:21:18]CreateOFDProtocolMessage done [07:21:18]OFDSenderStorePacket 72497 [07:21:18]StoreOFDPacket docnum=72497 [07:21:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5D 92 07 01 83 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6E 3B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1B 01 00 35 04 06 00 C4 6F 55 13 FD C0 76 E5 54 35 58 D0 F8 51 [07:21:18]CheckFolder [07:21:18]dirname=/storage/ofd_packets [07:21:18]CheckFolder done [07:21:18]ProducePacketName [07:21:18]name=ofd_packets/00072497 [07:21:18]NVStorageSaveData ofd_packets/00072497 [07:21:18]File name is /storage/ofd_packets/00072497 [07:21:18]Write 301 bytes [07:21:18]NVStorageSaveData done [07:21:18]OFDSenderStorePacket done [07:21:18]KKMCreateOFDPacket done [07:21:18]NVStorageSaveData kkm_last_timestamp [07:21:18]File name is /storage/kkm_last_timestamp [07:21:18]Write 4 bytes [07:21:18]NVStorageSaveData done [07:21:18]ExternCall_PrintAddStr [07:21:18]wPrintStart [07:21:18]Write to MH i2c: 01 00 00 5D 03 60 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 5D 03 00 00 00 00 00 FF 0F 75 [07:21:18]RasterBufferAndPrint [07:21:18]line Счет N : (1)951943 [07:21:18]line ИНН: 02508201610067 [07:21:18]line Контрольно-Кассовый Чек [07:21:18]line ПРОДАЖА [07:21:18]line ТРК (МРК, ГНК) : 53 [07:21:18]line Товар: 2710124130 [07:21:18]line Аи-92-К-5 [07:21:18]line 40.000 * 0.00 [07:21:18]line = 0.00 [07:21:18]line НДС 12% НСП 1% [07:21:18]line > о реализуемом товаре [07:21:18]line ИТОГО: 0.00 [07:21:18]line НСП 1% : 0.00 [07:21:18]line НДС 12% : 0.00 [07:21:18]line Наличными: 0.00 [07:21:18]line Безнал.: 0.00 [07:21:18]line Место: АЗС № 113 "Партнер Нефть" [07:21:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:21:18]line СНО: Общий режим [07:21:18]line Чек 25 28.10.2024 07:21 [07:21:18]line Смена: 554 ФФД: 1.0 [07:21:18]line ЗНМ: 0300000087 [07:21:18]line РНМ: 0000000000091644 [07:21:18]line Версия ККМ: 001 [07:21:18]line Талоны: Топливная Карта [07:21:18]line 53906 [07:21:18]line ФМ: 0000000000874662 [07:21:18]line ФД: 72497 [07:21:18]line ФПД: 215982447787456 [07:21:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072118&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72497&fm=215982447787456&tin=02508201610067®Number=0000000000091644&sum=0 [07:21:18]written 0, free lines is 4095 [07:21:18]OFD Sender: Processing packet 72497 [packets to send 272, broken 271] [07:21:18]ProducePacketName [07:21:18]name=ofd_packets/00072497 [07:21:18]OFD Sender: To server: pG, [07:21:18]CommunicateWithHost lk.salyk.kg:30040 [07:21:18]ConnectInit lk.salyk.kg [07:21:18]Write to MH i2c: 01 00 00 87 03 8A [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: 01 07 00 87 03 00 00 00 00 00 D7 0C 74 [07:21:18]RasterBufferAndPrint [07:21:18]line [07:21:18]line [07:21:18]line [07:21:18]line [07:21:18]line [07:21:18]written 0, free lines is 3293 [07:21:18]MH_Cut [07:21:18]Write to MH i2c: D1 01 00 8E 03 01 63 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: D1 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: D1 01 00 [07:21:18]MH_I2C_Read... [07:21:18]Read from MH i2c: D1 01 00 8E 03 00 62 [07:21:18]Write to MH i2c: 01 00 00 8F 03 92 [07:21:18]Write i2c OK [07:21:18]MH_I2C_Read... [07:21:19]*** Cut start [07:21:19]*** Partial cut [07:21:19]*** CUTSNS_PIN = 1 [07:21:19]*** CUTSNS_PIN = 0 [07:21:19]*** Brake cut motor [07:21:20]Connected sock=9 [07:21:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5D 92 07 01 83 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 6E 3B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 31 1B 01 00 35 04 06 00 C4 6F 55 13 FD C0 76 E5 54 35 58 D0 F8 51 [07:21:20]Read from MH i2c: 01 [07:21:20]MH_I2C_Read... [07:21:20]*** Stop cut motor [07:21:20]*** Cut end [07:21:20]Read from MH i2c: 01 07 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: 01 07 00 8F 03 00 00 00 00 00 FF 0F A7 [07:21:20]process_action close_receipt done [07:21:20]requested_data is exist [07:21:20]produce_requested_data [07:21:20]requested_item fm.sn is exist - process it [07:21:20]wFMCommunicate request_size=4 [07:21:20]MH_SAM_APDU [07:21:20]CAPDU: 80 11 00 00 [07:21:20]Write to MH i2c: E2 08 00 90 03 80 11 00 00 00 00 00 00 0D [07:21:20]Write i2c OK [07:21:20]MH_I2C_Read... [07:21:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:21:20]Read from MH i2c: E2 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 17 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 17 00 90 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 61 [07:21:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:21:20]wFMCommunicate OK [07:21:20]requested_item fd.num is exist - process it [07:21:20]SAM_PROTO_GetFieldsCounters [07:21:20]wFMCommunicate request_size=4 [07:21:20]MH_SAM_APDU [07:21:20]CAPDU: 80 13 00 00 [07:21:20]Write to MH i2c: E2 08 00 91 03 80 13 00 00 00 00 00 00 10 [07:21:20]Write i2c OK [07:21:20]MH_I2C_Read... [07:21:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:21:20]Read from MH i2c: E2 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 62 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 62 00 91 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 31 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 F5 [07:21: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 31 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:21:20]wFMCommunicate OK [07:21:20]SAM_PROTO_GetFieldsCounters done [07:21:20]requested_item shift.num is exist - process it [07:21:20]requested_item shift.opened is exist - process it [07:21:20]req_shift_opened [07:21:20]FM_GetShiftState [07:21:20]SAM_PROTO_GetShiftState [07:21:20]wFMCommunicate request_size=4 [07:21:20]MH_SAM_APDU [07:21:20]CAPDU: 80 13 01 00 [07:21:20]Write to MH i2c: E2 08 00 92 03 80 13 01 00 00 00 00 00 12 [07:21:20]Write i2c OK [07:21:20]MH_I2C_Read... [07:21:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:21:20]Read from MH i2c: E2 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 0E 00 [07:21:20]MH_I2C_Read... [07:21:20]Read from MH i2c: E2 0E 00 92 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7A [07:21:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:21:20]wFMCommunicate OK [07:21:20]SAM_PROTO_GetShiftState done [07:21:20]FM_GetShiftState done [07:21:20]req_shift_opened done [07:21:20]requested_item shift.open_date is exist - process it [07:21:20]req_shift_open_date [07:21:20]req_shift_open_date done [07:21:20]produce_requested_data done [07:21:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72497,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:21:20]process_action_free close_receipt [07:21:20]json_value_free [07:21:20]json_value_free done [07:21:20]process_json_proto returns [07:21:20]Send response to host [07:21:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72497,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:21:20]free response buf [07:21:20]execute_script done [07:21:20]execute_script returns [07:21:20]free content buf [07:21:20]Sock 10.Close socket [07:21:20]Sock 10.Thread stoped [07:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 15 25 47 00 AA 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 34 36 36 32 10 04 04 00 31 1B 01 00 F4 03 04 00 2E E6 1E 67 B6 04 01 00 00 84 8E F5 C5 31 09 32 72 [07:21:21]CommunicateWithHost err = 0 [07:21:21]CheckOFDResponse [07:21:21]1017 (14) - 77093643461234 [07:21:21]1041 (16) - 0000000000874662 [07:21:21]1040 (4) - 72497 [07:21:21]1012 (4) - 28.10.2024 01:17 [07:21:21]1206 (1) - 0 [07:21:21]OFD Sender: Remove packet 72497 [07:21:21]ProducePacketName [07:21:21]name=ofd_packets/00072497 [07:21:21]NVStorageDeleteData [07:21:22]OFD Sender: No OFD packet to send [07:21:27]OFD Sender: No OFD packet to send [07:21:32]OFD Sender: No OFD packet to send [07:21:37]OFD Sender: No OFD packet to send [07:21:42]OFD Sender: No OFD packet to send [07:21:44]recv_with_timeout no data received [07:21:47]OFD Sender: No OFD packet to send [07:21:52]OFD Sender: No OFD packet to send [07:21:57]OFD Sender: No OFD packet to send [07:22:02]OFD Sender: No OFD packet to send [07:22:07]OFD Sender: No OFD packet to send [07:22:12]OFD Sender: No OFD packet to send [07:22:17]OFD Sender: No OFD packet to send [07:22:17]recv_with_timeout no data received [07:22:22]OFD Sender: No OFD packet to send [07:22:27]OFD Sender: No OFD packet to send [07:22:32]OFD Sender: No OFD packet to send [07:22:37]OFD Sender: No OFD packet to send [07:22:42]OFD Sender: No OFD packet to send [07:22:47]OFD Sender: No OFD packet to send [07:22:52]OFD Sender: No OFD packet to send [07:22:57]OFD Sender: No OFD packet to send [07:23:02]OFD Sender: No OFD packet to send [07:23:07]OFD Sender: No OFD packet to send [07:23:11]recv_with_timeout no data received [07:23:12]OFD Sender: No OFD packet to send [07:23:17]OFD Sender: No OFD packet to send [07:23:22]OFD Sender: No OFD packet to send [07:23:27]OFD Sender: No OFD packet to send [07:23:32]OFD Sender: No OFD packet to send [07:23:37]OFD Sender: No OFD packet to send [07:23:42]OFD Sender: No OFD packet to send [07:23:47]OFD Sender: No OFD packet to send [07:23:49]recv_with_timeout no data received [07:23:52]OFD Sender: No OFD packet to send [07:23:57]OFD Sender: No OFD packet to send [07:24:02]OFD Sender: No OFD packet to send [07:24:02]recv_with_timeout no data received [07:24:07]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:11]recv_with_timeout no data received [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:28]recv_with_timeout no data received [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:52]OFD Sender: No OFD packet to send [07:26:57]OFD Sender: No OFD packet to send [07:27:02]OFD Sender: No OFD packet to send [07:27:07]OFD Sender: No OFD packet to send [07:27:12]OFD Sender: No OFD packet to send [07:27:17]OFD Sender: No OFD packet to send [07:27:22]OFD Sender: No OFD packet to send [07:27:27]OFD Sender: No OFD packet to send [07:27:32]OFD Sender: No OFD packet to send [07:27:37]OFD Sender: No OFD packet to send [07:27:42]OFD Sender: No OFD packet to send [07:27:44]recv_with_timeout no data received [07:27:47]OFD Sender: No OFD packet to send [07:27:52]OFD Sender: No OFD packet to send [07:27:57]OFD Sender: No OFD packet to send [07:28:02]recv_with_timeout no data received [07:28:02]OFD Sender: No OFD packet to send [07:28:07]OFD Sender: No OFD packet to send [07:28:12]OFD Sender: No OFD packet to send [07:28:17]OFD Sender: No OFD packet to send [07:28:22]OFD Sender: No OFD packet to send [07:28:27]OFD Sender: No OFD packet to send [07:28:32]OFD Sender: No OFD packet to send [07:28:37]accept exits with 8 [07:28:37]New connection [07:28:37]New thread 3067592036 created [07:28:37]Thread 3067448676 joined [07:28:37]Waiting for new connection... [07:28:37] Sock 8.Parse request [07:28:37]Sock 8.Check first char [07:28:37]Sock 8.First char is OK [07:28:37]request: POST /json_proto HTTP/1.0 [07:28:37]Method: POST [07:28:37]URL: /json_proto [07:28:37]Method is POST - this is cgi request [07:28:37]url: /json_proto [07:28:37]query_string will be loaded in cgi processing [07:28:37]execute_cgi json_proto POST (null) [07:28:37]execute_cgi path=json_proto method=POST [07:28:37]POST find Content-Length [07:28:37]Host: 172.17.43.195:8080 [07:28:37]Content-Length: 791 [07:28:37]Content-Type: application/json [07:28:37] [07:28:37]POST finish read [07:28:37]Found Content-Length = 791 [07:28:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:37]execute_script... [07:28:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951945", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:37]POST & json_proto [07:28:37]process_json_proto [07:28:37]json parsed OK: [07:28:37]protocol is kg_v1.0 [07:28:37]action value=close_receipt [07:28:37]process_action close_receipt [07:28:37]cmd_close_receipt [07:28:37]MH_GetDate [07:28:37]Write to MH i2c: F0 00 00 93 03 85 [07:28:37]Write i2c OK [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: F0 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: F0 09 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: F0 09 00 93 03 00 27 3D 1F 67 74 2C AD 66 2B [07:28:37]GetLastDocTimeStamp 1730100078 [07:28:37]current date 1730100519 [07:28:37]FM_GetShiftState [07:28:37]SAM_PROTO_GetShiftState [07:28:37]wFMCommunicate request_size=4 [07:28:37]MH_SAM_APDU [07:28:37]CAPDU: 80 13 01 00 [07:28:37]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [07:28:37]Write i2c OK [07:28:37]MH_I2C_Read... [07:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:37]Read from MH i2c: E2 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 0E 00 [07:28:37]MH_I2C_Read... [07:28:37]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7C [07:28:37]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:28:37]wFMCommunicate OK [07:28:37]SAM_PROTO_GetShiftState done [07:28:37]FM_GetShiftState done [07:28:37]opened in 1730074113 [07:28:37]opened+sec_in_day 1730160513 [07:28:37]quantity*price = 0 [07:28:37]sum+1 = 1 [07:28:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 26 28.10.2024 07:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72498 ФПД: 26732544683332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072839&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72498&fm=26732544683332&tin=02508201610067®Number=0000000000091644&sum=0 [07:28:38]StoreToDocumentArchive [07:28:38]shift 554 fd 72498 [07:28:38]save to /storage/0554/doc_00072498 [07:28:38]save last doc name /storage/0554/doc_00072498 to /storage/kkm_last_doc_name [07:28:38]save OK [07:28:38]Clear old archive folders... [07:28:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:38]tlvbuf is 00D982D0 [07:28:38]SAM_PROTO_ClearQueue [07:28:38]wFMCommunicate request_size=4 [07:28:38]MH_SAM_APDU [07:28:38]CAPDU: 80 09 00 00 [07:28:38]Write to MH i2c: E2 08 00 A1 03 80 09 00 00 00 00 00 00 16 [07:28:38]Write i2c OK [07:28:38]MH_I2C_Read... [07:28:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:38]Read from MH i2c: E2 [07:28:38]MH_I2C_Read... [07:28:38]Read from MH i2c: E2 03 00 [07:28:38]MH_I2C_Read... [07:28:38]Read from MH i2c: E2 03 00 A1 03 00 90 00 18 [07:28:38]RAPDU: 90 00 [07:28:38]wFMCommunicate OK [07:28:38]SAM_PROTO_ClearQueue done [07:28:38]KKMCreateOFDPacket [07:28:38]OFDProtocolAddRootSTLVToBuf [07:28:38]FM_MakeSignedData [07:28:38]FM_MakeSignedData [07:28:38]SAM_PROTO_SignData [07:28:38]wFMCommunicate request_size=4 [07:28:38]MH_SAM_APDU [07:28:38]CAPDU: 80 0D 01 02 [07:28:38]Write to MH i2c: E2 08 00 A2 03 80 0D 01 02 00 00 00 00 1E [07:28:38]Write i2c OK [07:28:38]MH_I2C_Read... [07:28:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:38]Read from MH i2c: E2 [07:28:38]MH_I2C_Read... [07:28:38]Read from MH i2c: E2 03 00 [07:28:38]MH_I2C_Read... [07:28:38]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [07:28:38]RAPDU: 90 00 [07:28:38]wFMCommunicate OK [07:28:38]wFMCommunicate request_size=255 [07:28:38]MH_SAM_APDU [07:28:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 27 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1B 01 00 35 04 06 00 18 [07:28:38]Write to MH i2c: E2 02 01 A3 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 27 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1B 01 00 35 04 06 00 18 00 00 59 [07:28:38]Write i2c OK [07:28:38]MH_I2C_Read... [07:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:39]Read from MH i2c: E2 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 03 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [07:28:39]RAPDU: 90 00 [07:28:39]wFMCommunicate OK [07:28:39]wFMCommunicate request_size=10 [07:28:39]MH_SAM_APDU [07:28:39]CAPDU: 80 0D 02 02 05 50 27 D4 6D 44 [07:28:39]Write to MH i2c: E2 0D 00 A4 03 80 0D 02 02 05 00 50 27 D4 6D 44 00 00 27 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:39]Read from MH i2c: E2 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 03 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [07:28:39]RAPDU: 90 00 [07:28:39]wFMCommunicate OK [07:28:39]wFMCommunicate request_size=4 [07:28:39]MH_SAM_APDU [07:28:39]CAPDU: 80 0D 03 02 [07:28:39]Write to MH i2c: E2 08 00 A5 03 80 0D 03 02 00 00 00 00 23 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:39]Read from MH i2c: E2 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 0B 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 0B 00 A5 03 00 5C F5 E0 8B 91 6E A4 7B 90 00 FE [07:28:39]RAPDU: 5C F5 E0 8B 91 6E A4 7B 90 00 [07:28:39]wFMCommunicate OK [07:28:39]SAM_PROTO_SignData done [07:28:39]FM_MakeSignedData done [07:28:39]CreateOFDProtocolMessage [07:28:39]wFMCommunicate request_size=4 [07:28:39]MH_SAM_APDU [07:28:39]CAPDU: 80 11 00 00 [07:28:39]Write to MH i2c: E2 08 00 A6 03 80 11 00 00 00 00 00 00 23 [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:39]Read from MH i2c: E2 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 17 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: E2 17 00 A6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 77 [07:28:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:39]wFMCommunicate OK [07:28:39]CreateOFDProtocolMessage done [07:28:39]OFDSenderStorePacket 72498 [07:28:39]StoreOFDPacket docnum=72498 [07:28:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 83 BF 07 01 A4 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 27 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1B 01 00 35 04 06 00 18 50 27 D4 6D 44 5C F5 E0 8B 91 6E A4 7B [07:28:39]CheckFolder [07:28:39]dirname=/storage/ofd_packets [07:28:39]CheckFolder done [07:28:39]ProducePacketName [07:28:39]name=ofd_packets/00072498 [07:28:39]NVStorageSaveData ofd_packets/00072498 [07:28:39]File name is /storage/ofd_packets/00072498 [07:28:39]Write 301 bytes [07:28:39]NVStorageSaveData done [07:28:39]OFDSenderStorePacket done [07:28:39]KKMCreateOFDPacket done [07:28:39]NVStorageSaveData kkm_last_timestamp [07:28:39]File name is /storage/kkm_last_timestamp [07:28:39]Write 4 bytes [07:28:39]NVStorageSaveData done [07:28:39]ExternCall_PrintAddStr [07:28:39]wPrintStart [07:28:39]Write to MH i2c: 01 00 00 A7 03 AA [07:28:39]Write i2c OK [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 [07:28:39]MH_I2C_Read... [07:28:39]Read from MH i2c: 01 07 00 A7 03 00 00 00 00 00 FF 0F BF [07:28:39]RasterBufferAndPrint [07:28:39]line Счет N : (1)951945 [07:28:39]line ИНН: 02508201610067 [07:28:39]line Контрольно-Кассовый Чек [07:28:39]line ПРОДАЖА [07:28:39]line ТРК (МРК, ГНК) : 63 [07:28:39]line Товар: 2710124130 [07:28:39]line Аи-92-К-5 [07:28:39]line 5.000 * 0.00 [07:28:39]line = 0.00 [07:28:39]line НДС 12% НСП 1% [07:28:39]line > о реализуемом товаре [07:28:39]line ИТОГО: 0.00 [07:28:39]line НСП 1% : 0.00 [07:28:39]line НДС 12% : 0.00 [07:28:39]line Наличными: 0.00 [07:28:39]line Безнал.: 0.00 [07:28:39]line Место: АЗС № 113 "Партнер Нефть" [07:28:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:28:39]line СНО: Общий режим [07:28:39]line Чек 26 28.10.2024 07:28 [07:28:39]line Смена: 554 ФФД: 1.0 [07:28:39]line ЗНМ: 0300000087 [07:28:39]line РНМ: 0000000000091644 [07:28:39]line Версия ККМ: 001 [07:28:39]line Талоны: Топливная Карта [07:28:39]line 02648 [07:28:39]line ФМ: 0000000000874662 [07:28:39]line ФД: 72498 [07:28:39]line ФПД: 26732544683332 [07:28:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072839&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72498&fm=26732544683332&tin=02508201610067®Number=0000000000091644&sum=0 [07:28:39]OFD Sender: Processing packet 72498 [packets to send 272, broken 271] [07:28:39]ProducePacketName [07:28:39]name=ofd_packets/00072498 [07:28:39]OFD Sender: To server: pG, [07:28:39]CommunicateWithHost lk.salyk.kg:30040 [07:28:39]ConnectInit lk.salyk.kg [07:28:39]written 0, free lines is 4095 [07:28:40]Write to MH i2c: 01 00 00 D1 03 D4 [07:28:40]Write i2c OK [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: 01 [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: 01 07 00 [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: 01 07 00 D1 03 00 00 00 00 00 DA 0C C1 [07:28:40]RasterBufferAndPrint [07:28:40]line [07:28:40]line [07:28:40]line [07:28:40]line [07:28:40]line [07:28:40]written 0, free lines is 3296 [07:28:40]MH_Cut [07:28:40]Write to MH i2c: D1 01 00 D8 03 01 AD [07:28:40]Write i2c OK [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: D1 [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: D1 01 00 [07:28:40]MH_I2C_Read... [07:28:40]Read from MH i2c: D1 01 00 D8 03 00 AC [07:28:40]Write to MH i2c: 01 00 00 D9 03 DC [07:28:40]Write i2c OK [07:28:40]MH_I2C_Read... [07:28:40]*** Cut start [07:28:40]*** Partial cut [07:28:40]*** CUTSNS_PIN = 1 [07:28:40]*** CUTSNS_PIN = 0 [07:28:41]*** Brake cut motor [07:28:41]Read from MH i2c: 01 [07:28:41]MH_I2C_Read... [07:28:41]*** Stop cut motor [07:28:41]*** Cut end [07:28:41]Read from MH i2c: 01 07 00 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: 01 07 00 D9 03 00 00 00 00 00 FF 0F F1 [07:28:41]process_action close_receipt done [07:28:41]requested_data is exist [07:28:41]produce_requested_data [07:28:41]requested_item fm.sn is exist - process it [07:28:41]wFMCommunicate request_size=4 [07:28:41]MH_SAM_APDU [07:28:41]CAPDU: 80 11 00 00 [07:28:41]Write to MH i2c: E2 08 00 DA 03 80 11 00 00 00 00 00 00 57 [07:28:41]Write i2c OK [07:28:41]MH_I2C_Read... [07:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:41]Read from MH i2c: E2 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 17 00 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 17 00 DA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AB [07:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:41]wFMCommunicate OK [07:28:41]requested_item fd.num is exist - process it [07:28:41]SAM_PROTO_GetFieldsCounters [07:28:41]wFMCommunicate request_size=4 [07:28:41]MH_SAM_APDU [07:28:41]CAPDU: 80 13 00 00 [07:28:41]Write to MH i2c: E2 08 00 DB 03 80 13 00 00 00 00 00 00 5A [07:28:41]Write i2c OK [07:28:41]MH_I2C_Read... [07:28:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:41]Read from MH i2c: E2 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 62 00 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 62 00 DB 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 32 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 43 [07:28:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 32 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:41]wFMCommunicate OK [07:28:41]SAM_PROTO_GetFieldsCounters done [07:28:41]requested_item shift.num is exist - process it [07:28:41]requested_item shift.opened is exist - process it [07:28:41]req_shift_opened [07:28:41]FM_GetShiftState [07:28:41]SAM_PROTO_GetShiftState [07:28:41]wFMCommunicate request_size=4 [07:28:41]MH_SAM_APDU [07:28:41]CAPDU: 80 13 01 00 [07:28:41]Write to MH i2c: E2 08 00 DC 03 80 13 01 00 00 00 00 00 5C [07:28:41]Write i2c OK [07:28:41]MH_I2C_Read... [07:28:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:41]Read from MH i2c: E2 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 0E 00 [07:28:41]MH_I2C_Read... [07:28:41]Read from MH i2c: E2 0E 00 DC 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C4 [07:28:41]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:28:41]wFMCommunicate OK [07:28:41]SAM_PROTO_GetShiftState done [07:28:41]FM_GetShiftState done [07:28:41]req_shift_opened done [07:28:41]requested_item shift.open_date is exist - process it [07:28:41]req_shift_open_date [07:28:41]req_shift_open_date done [07:28:41]produce_requested_data done [07:28:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72498,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:28:41]process_action_free close_receipt [07:28:41]json_value_free [07:28:41]json_value_free done [07:28:41]process_json_proto returns [07:28:41]Send response to host [07:28:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72498,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:28:41]free response buf [07:28:41]execute_script done [07:28:41]execute_script returns [07:28:41]free content buf [07:28:41]Sock 8.Close socket [07:28:41]Sock 8.Thread stoped [07:28:42]accept exits with 9 [07:28:42]New connection [07:28:42]New thread 3067448676 created [07:28:42]Thread 3067592036 joined [07:28:42]Waiting for new connection... [07:28:42] Sock 9.Parse request [07:28:42]Sock 9.Check first char [07:28:42]Sock 9.First char is OK [07:28:42]request: POST /json_proto HTTP/1.0 [07:28:42]Method: POST [07:28:42]URL: /json_proto [07:28:42]Method is POST - this is cgi request [07:28:42]url: /json_proto [07:28:42]query_string will be loaded in cgi processing [07:28:42]execute_cgi json_proto POST (null) [07:28:42]execute_cgi path=json_proto method=POST [07:28:42]POST find Content-Length [07:28:42]Host: 172.17.43.195:8080 [07:28:42]Content-Length: 792 [07:28:42]Content-Type: application/json [07:28:42] [07:28:42]POST finish read [07:28:42]Found Content-Length = 792 [07:28:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:42]execute_script... [07:28: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)951944", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53912", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:28:42]POST & json_proto [07:28:42]process_json_proto [07:28:42]json parsed OK: [07:28:42]protocol is kg_v1.0 [07:28:42]action value=close_receipt [07:28:42]process_action close_receipt [07:28:42]cmd_close_receipt [07:28:42]MH_GetDate [07:28:42]Write to MH i2c: F0 00 00 DD 03 CF [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 09 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: F0 09 00 DD 03 00 2B 3D 1F 67 74 2C AD 66 79 [07:28:42]GetLastDocTimeStamp 1730100519 [07:28:42]current date 1730100523 [07:28:42]FM_GetShiftState [07:28:42]SAM_PROTO_GetShiftState [07:28:42]wFMCommunicate request_size=4 [07:28:42]MH_SAM_APDU [07:28:42]CAPDU: 80 13 01 00 [07:28:42]Write to MH i2c: E2 08 00 DE 03 80 13 01 00 00 00 00 00 5E [07:28:42]Write i2c OK [07:28:42]MH_I2C_Read... [07:28:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:42]Read from MH i2c: E2 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 [07:28:42]MH_I2C_Read... [07:28:42]Read from MH i2c: E2 0E 00 DE 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C6 [07:28:42]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:28:42]wFMCommunicate OK [07:28:42]SAM_PROTO_GetShiftState done [07:28:42]FM_GetShiftState done [07:28:42]opened in 1730074113 [07:28:42]opened+sec_in_day 1730160513 [07:28:42]quantity*price = 0 [07:28:42]sum+1 = 1 [07:28:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 27 28.10.2024 07:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53912 ФМ: 0000000000874662 ФД: 72499 ФПД: 83800041709541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72499&fm=83800041709541&tin=02508201610067®Number=0000000000091644&sum=0 [07:28:43]StoreToDocumentArchive [07:28:43]shift 554 fd 72499 [07:28:43]save to /storage/0554/doc_00072499 [07:28:43]save last doc name /storage/0554/doc_00072499 to /storage/kkm_last_doc_name [07:28:43]save OK [07:28:43]Clear old archive folders... [07:28:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:28:43]tlvbuf is 00D981A0 [07:28:43]SAM_PROTO_ClearQueue [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 09 00 00 [07:28:43]Write to MH i2c: E2 08 00 EB 03 80 09 00 00 00 00 00 00 60 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]SAM_PROTO_ClearQueue done [07:28:43]KKMCreateOFDPacket [07:28:43]OFDProtocolAddRootSTLVToBuf [07:28:43]FM_MakeSignedData [07:28:43]FM_MakeSignedData [07:28:43]SAM_PROTO_SignData [07:28:43]wFMCommunicate request_size=4 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 01 02 [07:28:43]Write to MH i2c: E2 08 00 EC 03 80 0D 01 02 00 00 00 00 68 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]wFMCommunicate request_size=255 [07:28:43]MH_SAM_APDU [07:28: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 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 1B 00 00 00 F4 03 04 00 2B 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1B 01 00 35 04 06 00 4C [07:28:43]Write to MH i2c: E2 02 01 ED 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 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 1B 00 00 00 F4 03 04 00 2B 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1B 01 00 35 04 06 00 4C 00 00 E7 [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:43]Read from MH i2c: E2 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 [07:28:43]MH_I2C_Read... [07:28:43]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [07:28:43]RAPDU: 90 00 [07:28:43]wFMCommunicate OK [07:28:43]wFMCommunicate request_size=10 [07:28:43]MH_SAM_APDU [07:28:43]CAPDU: 80 0D 02 02 05 37 37 B7 DF E5 [07:28:43]Write to MH i2c: E2 0D 00 EE 03 80 0D 02 02 05 00 37 37 B7 DF E5 00 00 5E [07:28:43]Write i2c OK [07:28:43]MH_I2C_Read... [07:28:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:28:44]recv_with_timeout no data received [07:28:44]Read from MH i2c: E2 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 03 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [07:28:44]RAPDU: 90 00 [07:28:44]wFMCommunicate OK [07:28:44]wFMCommunicate request_size=4 [07:28:44]MH_SAM_APDU [07:28:44]CAPDU: 80 0D 03 02 [07:28:44]Write to MH i2c: E2 08 00 EF 03 80 0D 03 02 00 00 00 00 6D [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:28:44]Read from MH i2c: E2 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 0B 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 0B 00 EF 03 00 8A 74 7F E0 09 46 91 FE 90 00 A9 [07:28:44]RAPDU: 8A 74 7F E0 09 46 91 FE 90 00 [07:28:44]wFMCommunicate OK [07:28:44]SAM_PROTO_SignData done [07:28:44]FM_MakeSignedData done [07:28:44]CreateOFDProtocolMessage [07:28:44]wFMCommunicate request_size=4 [07:28:44]MH_SAM_APDU [07:28:44]CAPDU: 80 11 00 00 [07:28:44]Write to MH i2c: E2 08 00 F0 03 80 11 00 00 00 00 00 00 6D [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:44]Read from MH i2c: E2 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 17 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: E2 17 00 F0 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C1 [07:28:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:44]wFMCommunicate OK [07:28:44]CreateOFDProtocolMessage done [07:28:44]OFDSenderStorePacket 72499 [07:28:44]StoreOFDPacket docnum=72499 [07:28:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EA 5E 07 01 6E 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 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 1B 00 00 00 F4 03 04 00 2B 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1B 01 00 35 04 06 00 4C 37 37 B7 DF E5 8A 74 7F E0 09 46 91 FE [07:28:44]CheckFolder [07:28:44]dirname=/storage/ofd_packets [07:28:44]CheckFolder done [07:28:44]ProducePacketName [07:28:44]name=ofd_packets/00072499 [07:28:44]NVStorageSaveData ofd_packets/00072499 [07:28:44]File name is /storage/ofd_packets/00072499 [07:28:44]Write 301 bytes [07:28:44]NVStorageSaveData done [07:28:44]OFDSenderStorePacket done [07:28:44]KKMCreateOFDPacket done [07:28:44]NVStorageSaveData kkm_last_timestamp [07:28:44]File name is /storage/kkm_last_timestamp [07:28:44]Write 4 bytes [07:28:44]NVStorageSaveData done [07:28:44]ExternCall_PrintAddStr [07:28:44]wPrintStart [07:28:44]Write to MH i2c: 01 00 00 F1 03 F4 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 F1 03 00 00 00 00 00 FF 0F 09 [07:28:44]RasterBufferAndPrint [07:28:44]line Счет N : (1)951944 [07:28:44]line ИНН: 02508201610067 [07:28:44]line Контрольно-Кассовый Чек [07:28:44]line ПРОДАЖА [07:28:44]line ТРК (МРК, ГНК) : 53 [07:28:44]line Товар: 2710124130 [07:28:44]line Аи-92-К-5 [07:28:44]line 30.000 * 0.00 [07:28:44]line = 0.00 [07:28:44]line НДС 12% НСП 1% [07:28:44]line > о реализуемом товаре [07:28:44]line ИТОГО: 0.00 [07:28:44]line НСП 1% : 0.00 [07:28:44]line НДС 12% : 0.00 [07:28:44]line Наличными: 0.00 [07:28:44]line Безнал.: 0.00 [07:28:44]line Место: АЗС № 113 "Партнер Нефть" [07:28:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:28:44]line СНО: Общий режим [07:28:44]line Чек 27 28.10.2024 07:28 [07:28:44]line Смена: 554 ФФД: 1.0 [07:28:44]line ЗНМ: 0300000087 [07:28:44]line РНМ: 0000000000091644 [07:28:44]line Версия ККМ: 001 [07:28:44]line Талоны: Топливная Карта [07:28:44]line 53912 [07:28:44]line ФМ: 0000000000874662 [07:28:44]line ФД: 72499 [07:28:44]line ФПД: 83800041709541 [07:28:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72499&fm=83800041709541&tin=02508201610067®Number=0000000000091644&sum=0 [07:28:44]written 0, free lines is 4095 [07:28:44]ConnectInit Can't take IP for lk.salyk.kg [07:28:44]CommunicateWithHost connect error [07:28:44]CommunicateWithHost err = -1 [07:28:44]OFD Sender: Server communicate error [07:28:44]OFD Sender: Processing packet 72498 [packets to send 273, broken 271] [07:28:44]ProducePacketName [07:28:44]name=ofd_packets/00072498 [07:28:44]OFD Sender: To server: pG, [07:28:44]CommunicateWithHost lk.salyk.kg:30040 [07:28:44]ConnectInit lk.salyk.kg [07:28:44]Write to MH i2c: 01 00 00 1B 04 1F [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 F0 0C 22 [07:28:44]RasterBufferAndPrint [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]line [07:28:44]written 0, free lines is 3321 [07:28:44]MH_Cut [07:28:44]Write to MH i2c: D1 01 00 22 04 01 F8 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 01 00 [07:28:44]MH_I2C_Read... [07:28:44]Read from MH i2c: D1 01 00 22 04 00 F7 [07:28:44]Write to MH i2c: 01 00 00 23 04 27 [07:28:44]Write i2c OK [07:28:44]MH_I2C_Read... [07:28:45]*** Cut start [07:28:45]*** Partial cut [07:28:45]*** CUTSNS_PIN = 1 [07:28:45]*** CUTSNS_PIN = 0 [07:28:45]*** Brake cut motor [07:28:46]Read from MH i2c: 01 [07:28:46]MH_I2C_Read... [07:28:46]*** Stop cut motor [07:28:46]*** Cut end [07:28:46]Read from MH i2c: 01 07 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [07:28:46]process_action close_receipt done [07:28:46]requested_data is exist [07:28:46]produce_requested_data [07:28:46]requested_item fm.sn is exist - process it [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 11 00 00 [07:28:46]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F6 [07:28:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:28:46]wFMCommunicate OK [07:28:46]requested_item fd.num is exist - process it [07:28:46]SAM_PROTO_GetFieldsCounters [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 13 00 00 [07:28:46]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 62 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 62 00 25 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 33 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [07: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 33 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_GetFieldsCounters done [07:28:46]requested_item shift.num is exist - process it [07:28:46]requested_item shift.opened is exist - process it [07:28:46]req_shift_opened [07:28:46]FM_GetShiftState [07:28:46]SAM_PROTO_GetShiftState [07:28:46]wFMCommunicate request_size=4 [07:28:46]MH_SAM_APDU [07:28:46]CAPDU: 80 13 01 00 [07:28:46]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [07:28:46]Write i2c OK [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 [07:28:46]MH_I2C_Read... [07:28:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:28:46]Read from MH i2c: E2 0E 00 [07:28:46]MH_I2C_Read... [07:28:46]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0F [07:28:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:28:46]wFMCommunicate OK [07:28:46]SAM_PROTO_GetShiftState done [07:28:46]FM_GetShiftState done [07:28:46]req_shift_opened done [07:28:46]requested_item shift.open_date is exist - process it [07:28:46]req_shift_open_date [07:28:46]req_shift_open_date done [07:28:46]produce_requested_data done [07:28:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72499,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:28:46]process_action_free close_receipt [07:28:46]json_value_free [07:28:46]json_value_free done [07:28:46]process_json_proto returns [07:28:46]Send response to host [07:28:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72499,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:28:46]free response buf [07:28:46]execute_script done [07:28:46]execute_script returns [07:28:46]free content buf [07:28:46]Sock 9.Close socket [07:28:46]Sock 9.Thread stoped [07:28:47]Connected sock=10 [07:28:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 83 BF 07 01 A4 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 27 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 32 1B 01 00 35 04 06 00 18 50 27 D4 6D 44 5C F5 E0 8B 91 6E A4 7B [07:28:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4D 5F 47 00 58 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 34 36 36 32 10 04 04 00 32 1B 01 00 F4 03 04 00 EE E7 1E 67 B6 04 01 00 00 A9 3D 76 5D 99 BA 7B 00 [07:28:49]CommunicateWithHost err = 0 [07:28:49]CheckOFDResponse [07:28:49]1017 (14) - 77093643461234 [07:28:49]1041 (16) - 0000000000874662 [07:28:49]1040 (4) - 72498 [07:28:49]1012 (4) - 28.10.2024 01:25 [07:28:49]1206 (1) - 0 [07:28:49]OFD Sender: Remove packet 72498 [07:28:49]ProducePacketName [07:28:49]name=ofd_packets/00072498 [07:28:49]NVStorageDeleteData [07:28:49]OFD Sender: Processing packet 72499 [packets to send 272, broken 271] [07:28:49]ProducePacketName [07:28:49]name=ofd_packets/00072499 [07:28:49]OFD Sender: To server: pG, [07:28:49]CommunicateWithHost lk.salyk.kg:30040 [07:28:49]ConnectInit lk.salyk.kg [07:28:55]Connected sock=10 [07:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EA 5E 07 01 6E 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 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 1B 00 00 00 F4 03 04 00 2B 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 33 1B 01 00 35 04 06 00 4C 37 37 B7 DF E5 8A 74 7F E0 09 46 91 FE [07:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 71 99 47 00 CF 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 34 36 36 32 10 04 04 00 33 1B 01 00 F4 03 04 00 F5 E7 1E 67 B6 04 01 00 00 36 9E 82 2C FC C5 CF A9 [07:28:56]CommunicateWithHost err = 0 [07:28:56]CheckOFDResponse [07:28:56]1017 (14) - 77093643461234 [07:28:56]1041 (16) - 0000000000874662 [07:28:56]1040 (4) - 72499 [07:28:56]1012 (4) - 28.10.2024 01:25 [07:28:56]1206 (1) - 0 [07:28:56]OFD Sender: Remove packet 72499 [07:28:56]ProducePacketName [07:28:56]name=ofd_packets/00072499 [07:28:56]NVStorageDeleteData [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:24]recv_with_timeout no data received [07:29:26]OFD Sender: No OFD packet to send [07:29:27]accept exits with 8 [07:29:27]New connection [07:29:27]New thread 3067592036 created [07:29:27]Thread 3067448676 joined [07:29:27]Waiting for new connection... [07:29:27] Sock 8.Parse request [07:29:27]Sock 8.Check first char [07:29:27]Sock 8.First char is OK [07:29:27]request: POST /json_proto HTTP/1.0 [07:29:27]Method: POST [07:29:27]URL: /json_proto [07:29:27]Method is POST - this is cgi request [07:29:27]url: /json_proto [07:29:27]query_string will be loaded in cgi processing [07:29:27]execute_cgi json_proto POST (null) [07:29:27]execute_cgi path=json_proto method=POST [07:29:27]POST find Content-Length [07:29:27]Host: 172.17.43.195:8080 [07:29:27]Content-Length: 792 [07:29:27]Content-Type: application/json [07:29:27] [07:29:27]POST finish read [07:29:27]Found Content-Length = 792 [07:29:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:27]execute_script... [07:29: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)951946", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:29:27]POST & json_proto [07:29:27]process_json_proto [07:29:27]json parsed OK: [07:29:27]protocol is kg_v1.0 [07:29:27]action value=close_receipt [07:29:27]process_action close_receipt [07:29:27]cmd_close_receipt [07:29:27]MH_GetDate [07:29:27]Write to MH i2c: F0 00 00 27 04 1A [07:29:27]Write i2c OK [07:29:27]MH_I2C_Read... [07:29:27]Read from MH i2c: F0 [07:29:27]MH_I2C_Read... [07:29:27]Read from MH i2c: F0 09 00 [07:29:27]MH_I2C_Read... [07:29:27]Read from MH i2c: F0 09 00 27 04 00 59 3D 1F 67 74 2C AD 66 F2 [07:29:27]GetLastDocTimeStamp 1730100523 [07:29:27]current date 1730100569 [07:29:27]FM_GetShiftState [07:29:27]SAM_PROTO_GetShiftState [07:29:27]wFMCommunicate request_size=4 [07:29:27]MH_SAM_APDU [07:29:27]CAPDU: 80 13 01 00 [07:29:27]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [07:29:27]Write i2c OK [07:29:27]MH_I2C_Read... [07:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:27]Read from MH i2c: E2 [07:29:27]MH_I2C_Read... [07:29:27]Read from MH i2c: E2 0E 00 [07:29:27]MH_I2C_Read... [07:29:27]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 11 [07:29:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:29:27]wFMCommunicate OK [07:29:27]SAM_PROTO_GetShiftState done [07:29:27]FM_GetShiftState done [07:29:27]opened in 1730074113 [07:29:27]opened+sec_in_day 1730160513 [07:29:27]quantity*price = 0 [07:29:27]sum+1 = 1 [07:29:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 28 28.10.2024 07:29 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72500 ФПД: 191085045052328 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072929&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72500&fm=191085045052328&tin=02508201610067®Number=0000000000091644&sum=0 [07:29:28]StoreToDocumentArchive [07:29:28]shift 554 fd 72500 [07:29:28]save to /storage/0554/doc_00072500 [07:29:28]save last doc name /storage/0554/doc_00072500 to /storage/kkm_last_doc_name [07:29:28]save OK [07:29:28]Clear old archive folders... [07:29:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:29:28]tlvbuf is 00DC7340 [07:29:28]SAM_PROTO_ClearQueue [07:29:28]wFMCommunicate request_size=4 [07:29:28]MH_SAM_APDU [07:29:28]CAPDU: 80 09 00 00 [07:29:28]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [07:29:28]Write i2c OK [07:29:28]MH_I2C_Read... [07:29:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:29:28]Read from MH i2c: E2 [07:29:28]MH_I2C_Read... [07:29:28]Read from MH i2c: E2 03 00 [07:29:28]MH_I2C_Read... [07:29:28]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [07:29:28]RAPDU: 90 00 [07:29:28]wFMCommunicate OK [07:29:28]SAM_PROTO_ClearQueue done [07:29:28]KKMCreateOFDPacket [07:29:28]OFDProtocolAddRootSTLVToBuf [07:29:28]FM_MakeSignedData [07:29:28]FM_MakeSignedData [07:29:28]SAM_PROTO_SignData [07:29:28]wFMCommunicate request_size=4 [07:29:28]MH_SAM_APDU [07:29:28]CAPDU: 80 0D 01 02 [07:29:28]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [07:29:28]Write i2c OK [07:29:28]MH_I2C_Read... [07:29:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:29:28]Read from MH i2c: E2 [07:29:28]MH_I2C_Read... [07:29:28]Read from MH i2c: E2 03 00 [07:29:28]MH_I2C_Read... [07:29:28]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [07:29:28]RAPDU: 90 00 [07:29:28]wFMCommunicate OK [07:29:28]wFMCommunicate request_size=255 [07:29:28]MH_SAM_APDU [07:29:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 59 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1B 01 00 35 04 06 00 AD [07:29:28]Write to MH i2c: E2 02 01 37 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 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 1C 00 00 00 F4 03 04 00 59 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1B 01 00 35 04 06 00 AD 00 00 55 [07:29:28]Write i2c OK [07:29:28]MH_I2C_Read... [07:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:29]Read from MH i2c: E2 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 03 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [07:29:29]RAPDU: 90 00 [07:29:29]wFMCommunicate OK [07:29:29]wFMCommunicate request_size=10 [07:29:29]MH_SAM_APDU [07:29:29]CAPDU: 80 0D 02 02 05 CA 74 3B 73 A8 [07:29:29]Write to MH i2c: E2 0D 00 38 04 80 0D 02 02 05 00 CA 74 3B 73 A8 00 00 54 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:29:29]Read from MH i2c: E2 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 03 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [07:29:29]RAPDU: 90 00 [07:29:29]wFMCommunicate OK [07:29:29]wFMCommunicate request_size=4 [07:29:29]MH_SAM_APDU [07:29:29]CAPDU: 80 0D 03 02 [07:29:29]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:29:29]Read from MH i2c: E2 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 0B 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 0B 00 39 04 00 FF F0 24 11 21 5E B8 69 90 00 7D [07:29:29]RAPDU: FF F0 24 11 21 5E B8 69 90 00 [07:29:29]wFMCommunicate OK [07:29:29]SAM_PROTO_SignData done [07:29:29]FM_MakeSignedData done [07:29:29]CreateOFDProtocolMessage [07:29:29]wFMCommunicate request_size=4 [07:29:29]MH_SAM_APDU [07:29:29]CAPDU: 80 11 00 00 [07:29:29]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 [07:29:29]MH_I2C_Read... [07:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:29]Read from MH i2c: E2 17 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0C [07:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:29:29]wFMCommunicate OK [07:29:29]CreateOFDProtocolMessage done [07:29:29]OFDSenderStorePacket 72500 [07:29:29]StoreOFDPacket docnum=72500 [07:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E 78 07 01 95 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 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 1C 00 00 00 F4 03 04 00 59 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1B 01 00 35 04 06 00 AD CA 74 3B 73 A8 FF F0 24 11 21 5E B8 69 [07:29:29]CheckFolder [07:29:29]dirname=/storage/ofd_packets [07:29:29]CheckFolder done [07:29:29]ProducePacketName [07:29:29]name=ofd_packets/00072500 [07:29:29]NVStorageSaveData ofd_packets/00072500 [07:29:29]File name is /storage/ofd_packets/00072500 [07:29:29]Write 301 bytes [07:29:29]NVStorageSaveData done [07:29:29]OFDSenderStorePacket done [07:29:29]KKMCreateOFDPacket done [07:29:29]NVStorageSaveData kkm_last_timestamp [07:29:29]File name is /storage/kkm_last_timestamp [07:29:29]Write 4 bytes [07:29:29]NVStorageSaveData done [07:29:29]ExternCall_PrintAddStr [07:29:29]wPrintStart [07:29:29]Write to MH i2c: 01 00 00 3B 04 3F [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 07 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [07:29:29]RasterBufferAndPrint [07:29:29]line Счет N : (1)951946 [07:29:29]line ИНН: 02508201610067 [07:29:29]line Контрольно-Кассовый Чек [07:29:29]line ПРОДАЖА [07:29:29]line ТРК (МРК, ГНК) : 63 [07:29:29]line Товар: 2710124130 [07:29:29]line Аи-92-К-5 [07:29:29]line 10.000 * 0.00 [07:29:29]line = 0.00 [07:29:29]line НДС 12% НСП 1% [07:29:29]line > о реализуемом товаре [07:29:29]line ИТОГО: 0.00 [07:29:29]line НСП 1% : 0.00 [07:29:29]line НДС 12% : 0.00 [07:29:29]line Наличными: 0.00 [07:29:29]line Безнал.: 0.00 [07:29:29]line Место: АЗС № 113 "Партнер Нефть" [07:29:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:29:29]line СНО: Общий режим [07:29:29]line Чек 28 28.10.2024 07:29 [07:29:29]line Смена: 554 ФФД: 1.0 [07:29:29]line ЗНМ: 0300000087 [07:29:29]line РНМ: 0000000000091644 [07:29:29]line Версия ККМ: 001 [07:29:29]line Талоны: Топливная Карта [07:29:29]line 03047 [07:29:29]line ФМ: 0000000000874662 [07:29:29]line ФД: 72500 [07:29:29]line ФПД: 191085045052328 [07:29:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T072929&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72500&fm=191085045052328&tin=02508201610067®Number=0000000000091644&sum=0 [07:29:29]written 0, free lines is 4095 [07:29:29]OFD Sender: Processing packet 72500 [packets to send 272, broken 271] [07:29:29]ProducePacketName [07:29:29]name=ofd_packets/00072500 [07:29:29]OFD Sender: To server: pG, [07:29:29]CommunicateWithHost lk.salyk.kg:30040 [07:29:29]ConnectInit lk.salyk.kg [07:29:29]Write to MH i2c: 01 00 00 65 04 69 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 07 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: 01 07 00 65 04 00 00 00 00 00 E4 0C 60 [07:29:29]RasterBufferAndPrint [07:29:29]line [07:29:29]line [07:29:29]line [07:29:29]line [07:29:29]line [07:29:29]written 0, free lines is 3306 [07:29:29]MH_Cut [07:29:29]Write to MH i2c: D1 01 00 6C 04 01 42 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: D1 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: D1 01 00 [07:29:29]MH_I2C_Read... [07:29:29]Read from MH i2c: D1 01 00 6C 04 00 41 [07:29:29]Write to MH i2c: 01 00 00 6D 04 71 [07:29:29]Write i2c OK [07:29:29]MH_I2C_Read... [07:29:30]*** Cut start [07:29:30]*** Partial cut [07:29:30]*** CUTSNS_PIN = 1 [07:29:30]*** CUTSNS_PIN = 0 [07:29:30]*** Brake cut motor [07:29:31]Read from MH i2c: 01 [07:29:31]MH_I2C_Read... [07:29:31]*** Stop cut motor [07:29:31]*** Cut end [07:29:31]Read from MH i2c: 01 07 00 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: 01 07 00 6D 04 00 00 00 00 00 FF 0F 86 [07:29:31]process_action close_receipt done [07:29:31]requested_data is exist [07:29:31]produce_requested_data [07:29:31]requested_item fm.sn is exist - process it [07:29:31]wFMCommunicate request_size=4 [07:29:31]MH_SAM_APDU [07:29:31]CAPDU: 80 11 00 00 [07:29:31]Write to MH i2c: E2 08 00 6E 04 80 11 00 00 00 00 00 00 EC [07:29:31]Write i2c OK [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 [07:29:31]MH_I2C_Read... [07:29:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:29:31]Read from MH i2c: E2 17 00 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 17 00 6E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 40 [07:29:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:29:31]wFMCommunicate OK [07:29:31]requested_item fd.num is exist - process it [07:29:31]SAM_PROTO_GetFieldsCounters [07:29:31]wFMCommunicate request_size=4 [07:29:31]MH_SAM_APDU [07:29:31]CAPDU: 80 13 00 00 [07:29:31]Write to MH i2c: E2 08 00 6F 04 80 13 00 00 00 00 00 00 EF [07:29:31]Write i2c OK [07:29:31]MH_I2C_Read... [07:29:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:29:31]Read from MH i2c: E2 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 62 00 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 62 00 6F 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 34 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [07:29: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 34 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:29:31]wFMCommunicate OK [07:29:31]SAM_PROTO_GetFieldsCounters done [07:29:31]requested_item shift.num is exist - process it [07:29:31]requested_item shift.opened is exist - process it [07:29:31]req_shift_opened [07:29:31]FM_GetShiftState [07:29:31]SAM_PROTO_GetShiftState [07:29:31]wFMCommunicate request_size=4 [07:29:31]MH_SAM_APDU [07:29:31]CAPDU: 80 13 01 00 [07:29:31]Write to MH i2c: E2 08 00 70 04 80 13 01 00 00 00 00 00 F1 [07:29:31]Write i2c OK [07:29:31]MH_I2C_Read... [07:29:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:29:31]Read from MH i2c: E2 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 0E 00 [07:29:31]MH_I2C_Read... [07:29:31]Read from MH i2c: E2 0E 00 70 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 59 [07:29:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:29:31]wFMCommunicate OK [07:29:31]SAM_PROTO_GetShiftState done [07:29:31]FM_GetShiftState done [07:29:31]req_shift_opened done [07:29:31]requested_item shift.open_date is exist - process it [07:29:31]req_shift_open_date [07:29:31]req_shift_open_date done [07:29:31]produce_requested_data done [07:29:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72500,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:29:31]process_action_free close_receipt [07:29:31]json_value_free [07:29:31]json_value_free done [07:29:31]process_json_proto returns [07:29:31]Send response to host [07:29:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72500,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:29:31]free response buf [07:29:31]execute_script done [07:29:31]execute_script returns [07:29:31]free content buf [07:29:31]Sock 8.Close socket [07:29:31]Sock 8.Thread stoped [07:29:35]recv_with_timeout no data received [07:31:43]ConnectInit Can't connect to host [07:31:43]CommunicateWithHost connect error [07:31:43]CommunicateWithHost err = -1 [07:31:43]OFD Sender: Server communicate error [07:31:48]OFD Sender: Processing packet 72500 [packets to send 272, broken 271] [07:31:48]ProducePacketName [07:31:48]name=ofd_packets/00072500 [07:31:48]OFD Sender: To server: pG, [07:31:48]CommunicateWithHost lk.salyk.kg:30040 [07:31:48]ConnectInit lk.salyk.kg [07:31:49]Connected sock=10 [07:31:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E 78 07 01 95 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 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 1C 00 00 00 F4 03 04 00 59 3D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 34 1B 01 00 35 04 06 00 AD CA 74 3B 73 A8 FF F0 24 11 21 5E B8 69 [07:31:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 70 A8 47 00 F6 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 34 36 36 32 10 04 04 00 34 1B 01 00 F4 03 04 00 A4 E8 1E 67 B6 04 01 00 00 FA 43 E6 3D 11 7B 23 BC [07:31:50]CommunicateWithHost err = 0 [07:31:50]CheckOFDResponse [07:31:50]1017 (14) - 77093643461234 [07:31:50]1041 (16) - 0000000000874662 [07:31:50]1040 (4) - 72500 [07:31:50]1012 (4) - 28.10.2024 01:28 [07:31:50]1206 (1) - 0 [07:31:50]OFD Sender: Remove packet 72500 [07:31:50]ProducePacketName [07:31:50]name=ofd_packets/00072500 [07:31:50]NVStorageDeleteData [07:31:50]OFD Sender: No OFD packet to send [07:31:55]OFD Sender: No OFD packet to send [07:32:00]OFD Sender: No OFD packet to send [07:32:05]OFD Sender: No OFD packet to send [07:32:10]OFD Sender: No OFD packet to send [07:32:15]OFD Sender: No OFD packet to send [07:32:20]OFD Sender: No OFD packet to send [07:32:25]OFD Sender: No OFD packet to send [07:32:30]OFD Sender: No OFD packet to send [07:32:35]OFD Sender: No OFD packet to send [07:32:40]OFD Sender: No OFD packet to send [07:32:45]OFD Sender: No OFD packet to send [07:32:50]OFD Sender: No OFD packet to send [07:32:54]accept exits with 9 [07:32:54]New connection [07:32:54]New thread 3067448676 created [07:32:54]Thread 3067592036 joined [07:32:54]Waiting for new connection... [07:32:54] Sock 9.Parse request [07:32:54]Sock 9.Check first char [07:32:54]Sock 9.First char is OK [07:32:54]request: POST /json_proto HTTP/1.0 [07:32:54]Method: POST [07:32:54]URL: /json_proto [07:32:54]Method is POST - this is cgi request [07:32:54]url: /json_proto [07:32:54]query_string will be loaded in cgi processing [07:32:54]execute_cgi json_proto POST (null) [07:32:54]execute_cgi path=json_proto method=POST [07:32:54]POST find Content-Length [07:32:54]Host: 172.17.43.195:8080 [07:32:54]Content-Length: 792 [07:32:54]Content-Type: application/json [07:32:54] [07:32:54]POST finish read [07:32:54]Found Content-Length = 792 [07:32:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:54]execute_script... [07:32: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)951947", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:32:54]POST & json_proto [07:32:54]process_json_proto [07:32:54]json parsed OK: [07:32:54]protocol is kg_v1.0 [07:32:54]action value=close_receipt [07:32:54]process_action close_receipt [07:32:54]cmd_close_receipt [07:32:54]MH_GetDate [07:32:54]Write to MH i2c: F0 00 00 71 04 64 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 09 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: F0 09 00 71 04 00 28 3E 1F 67 74 2C AD 66 0C [07:32:54]GetLastDocTimeStamp 1730100569 [07:32:54]current date 1730100776 [07:32:54]FM_GetShiftState [07:32:54]SAM_PROTO_GetShiftState [07:32:54]wFMCommunicate request_size=4 [07:32:54]MH_SAM_APDU [07:32:54]CAPDU: 80 13 01 00 [07:32:54]Write to MH i2c: E2 08 00 72 04 80 13 01 00 00 00 00 00 F3 [07:32:54]Write i2c OK [07:32:54]MH_I2C_Read... [07:32:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:54]Read from MH i2c: E2 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0E 00 [07:32:54]MH_I2C_Read... [07:32:54]Read from MH i2c: E2 0E 00 72 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 5B [07:32:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:32:54]wFMCommunicate OK [07:32:54]SAM_PROTO_GetShiftState done [07:32:54]FM_GetShiftState done [07:32:54]opened in 1730074113 [07:32:54]opened+sec_in_day 1730160513 [07:32:54]quantity*price = 0 [07:32:54]sum+1 = 1 [07:32:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 29 28.10.2024 07:32 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72501 ФПД: 89507042283590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T073256&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72501&fm=89507042283590&tin=02508201610067®Number=0000000000091644&sum=0 [07:32:56]StoreToDocumentArchive [07:32:56]shift 554 fd 72501 [07:32:56]save to /storage/0554/doc_00072501 [07:32:56]save last doc name /storage/0554/doc_00072501 to /storage/kkm_last_doc_name [07:32:56]save OK [07:32:56]Clear old archive folders... [07:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:32:56]tlvbuf is 00DC6F20 [07:32:56]SAM_PROTO_ClearQueue [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 09 00 00 [07:32:56]Write to MH i2c: E2 08 00 7F 04 80 09 00 00 00 00 00 00 F5 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_ClearQueue done [07:32:56]KKMCreateOFDPacket [07:32:56]OFDProtocolAddRootSTLVToBuf [07:32:56]FM_MakeSignedData [07:32:56]FM_MakeSignedData [07:32:56]SAM_PROTO_SignData [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 01 02 [07:32:56]Write to MH i2c: E2 08 00 80 04 80 0D 01 02 00 00 00 00 FD [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=255 [07:32:56]MH_SAM_APDU [07:32: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 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 1D 00 00 00 F4 03 04 00 28 3E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1B 01 00 35 04 06 00 51 [07:32:56]Write to MH i2c: E2 02 01 81 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 1D 00 00 00 F4 03 04 00 28 3E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1B 01 00 35 04 06 00 51 00 00 83 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=10 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 02 02 05 67 FB 75 D0 46 [07:32:56]Write to MH i2c: E2 0D 00 82 04 80 0D 02 02 05 00 67 FB 75 D0 46 00 00 F7 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 03 00 82 04 00 90 00 FA [07:32:56]RAPDU: 90 00 [07:32:56]wFMCommunicate OK [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 0D 03 02 [07:32:56]Write to MH i2c: E2 08 00 83 04 80 0D 03 02 00 00 00 00 02 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0B 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 0B 00 83 04 00 98 55 98 D6 1F B5 D9 BE 90 00 C9 [07:32:56]RAPDU: 98 55 98 D6 1F B5 D9 BE 90 00 [07:32:56]wFMCommunicate OK [07:32:56]SAM_PROTO_SignData done [07:32:56]FM_MakeSignedData done [07:32:56]CreateOFDProtocolMessage [07:32:56]wFMCommunicate request_size=4 [07:32:56]MH_SAM_APDU [07:32:56]CAPDU: 80 11 00 00 [07:32:56]Write to MH i2c: E2 08 00 84 04 80 11 00 00 00 00 00 00 02 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:56]Read from MH i2c: E2 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: E2 17 00 84 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 56 [07:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:32:56]wFMCommunicate OK [07:32:56]CreateOFDProtocolMessage done [07:32:56]OFDSenderStorePacket 72501 [07:32:56]StoreOFDPacket docnum=72501 [07:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 51 0E 07 01 A6 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 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 1D 00 00 00 F4 03 04 00 28 3E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1B 01 00 35 04 06 00 51 67 FB 75 D0 46 98 55 98 D6 1F B5 D9 BE [07:32:56]CheckFolder [07:32:56]dirname=/storage/ofd_packets [07:32:56]CheckFolder done [07:32:56]ProducePacketName [07:32:56]name=ofd_packets/00072501 [07:32:56]NVStorageSaveData ofd_packets/00072501 [07:32:56]File name is /storage/ofd_packets/00072501 [07:32:56]Write 301 bytes [07:32:56]NVStorageSaveData done [07:32:56]OFDSenderStorePacket done [07:32:56]KKMCreateOFDPacket done [07:32:56]NVStorageSaveData kkm_last_timestamp [07:32:56]File name is /storage/kkm_last_timestamp [07:32:56]Write 4 bytes [07:32:56]NVStorageSaveData done [07:32:56]ExternCall_PrintAddStr [07:32:56]wPrintStart [07:32:56]Write to MH i2c: 01 00 00 85 04 89 [07:32:56]Write i2c OK [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 [07:32:56]MH_I2C_Read... [07:32:56]Read from MH i2c: 01 07 00 85 04 00 00 00 00 00 FF 0F 9E [07:32:56]RasterBufferAndPrint [07:32:56]line Счет N : (1)951947 [07:32:56]line ИНН: 02508201610067 [07:32:56]line Контрольно-Кассовый Чек [07:32:56]line ПРОДАЖА [07:32:56]line ТРК (МРК, ГНК) : 63 [07:32:56]line Товар: 2710124130 [07:32:56]line Аи-92-К-5 [07:32:56]line 30.000 * 0.00 [07:32:56]line = 0.00 [07:32:56]line НДС 12% НСП 1% [07:32:56]line > о реализуемом товаре [07:32:56]line ИТОГО: 0.00 [07:32:56]line НСП 1% : 0.00 [07:32:56]line НДС 12% : 0.00 [07:32:56]line Наличными: 0.00 [07:32:56]line Безнал.: 0.00 [07:32:56]line Место: АЗС № 113 "Партнер Нефть" [07:32:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:32:56]line СНО: Общий режим [07:32:56]line Чек 29 28.10.2024 07:32 [07:32:56]line Смена: 554 ФФД: 1.0 [07:32:56]line ЗНМ: 0300000087 [07:32:56]line РНМ: 0000000000091644 [07:32:56]line Версия ККМ: 001 [07:32:56]line Талоны: Топливная Карта [07:32:56]line 03047 [07:32:56]line ФМ: 0000000000874662 [07:32:56]line ФД: 72501 [07:32:56]line ФПД: 89507042283590 [07:32:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T073256&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72501&fm=89507042283590&tin=02508201610067®Number=0000000000091644&sum=0 [07:32:56]written 0, free lines is 4095 [07:32:56]OFD Sender: Processing packet 72501 [packets to send 272, broken 271] [07:32:56]ProducePacketName [07:32:56]name=ofd_packets/00072501 [07:32:56]OFD Sender: To server: pG, [07:32:56]CommunicateWithHost lk.salyk.kg:30040 [07:32:56]ConnectInit lk.salyk.kg [07:32:57]Write to MH i2c: 01 00 00 AF 04 B3 [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: 01 07 00 AF 04 00 00 00 00 00 E2 0C A8 [07:32:57]RasterBufferAndPrint [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]line [07:32:57]written 0, free lines is 3304 [07:32:57]MH_Cut [07:32:57]Write to MH i2c: D1 01 00 B6 04 01 8C [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 01 00 [07:32:57]MH_I2C_Read... [07:32:57]Read from MH i2c: D1 01 00 B6 04 00 8B [07:32:57]Write to MH i2c: 01 00 00 B7 04 BB [07:32:57]Write i2c OK [07:32:57]MH_I2C_Read... [07:32:57]*** Cut start [07:32:57]*** Partial cut [07:32:57]*** CUTSNS_PIN = 1 [07:32:57]*** CUTSNS_PIN = 0 [07:32:58]*** Brake cut motor [07:32:58]Read from MH i2c: 01 [07:32:58]MH_I2C_Read... [07:32:58]*** Stop cut motor [07:32:58]*** Cut end [07:32:58]Read from MH i2c: 01 07 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: 01 07 00 B7 04 00 00 00 00 00 FF 0F D0 [07:32:58]process_action close_receipt done [07:32:58]requested_data is exist [07:32:58]produce_requested_data [07:32:58]requested_item fm.sn is exist - process it [07:32:58]wFMCommunicate request_size=4 [07:32:58]MH_SAM_APDU [07:32:58]CAPDU: 80 11 00 00 [07:32:58]Write to MH i2c: E2 08 00 B8 04 80 11 00 00 00 00 00 00 36 [07:32:58]Write i2c OK [07:32:58]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 17 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 17 00 B8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8A [07:32:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:32:58]wFMCommunicate OK [07:32:58]requested_item fd.num is exist - process it [07:32:58]SAM_PROTO_GetFieldsCounters [07:32:58]wFMCommunicate request_size=4 [07:32:58]MH_SAM_APDU [07:32:58]CAPDU: 80 13 00 00 [07:32:58]Write to MH i2c: E2 08 00 B9 04 80 13 00 00 00 00 00 00 39 [07:32:58]Write i2c OK [07:32:58]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 62 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 62 00 B9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 35 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [07:32: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 35 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:32:58]wFMCommunicate OK [07:32:58]SAM_PROTO_GetFieldsCounters done [07:32:58]requested_item shift.num is exist - process it [07:32:58]requested_item shift.opened is exist - process it [07:32:58]req_shift_opened [07:32:58]FM_GetShiftState [07:32:58]SAM_PROTO_GetShiftState [07:32:58]wFMCommunicate request_size=4 [07:32:58]MH_SAM_APDU [07:32:58]CAPDU: 80 13 01 00 [07:32:58]Write to MH i2c: E2 08 00 BA 04 80 13 01 00 00 00 00 00 3B [07:32:58]Write i2c OK [07:32:58]MH_I2C_Read... [07:32:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:32:58]Read from MH i2c: E2 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 0E 00 [07:32:58]MH_I2C_Read... [07:32:58]Read from MH i2c: E2 0E 00 BA 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A3 [07:32:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:32:58]wFMCommunicate OK [07:32:58]SAM_PROTO_GetShiftState done [07:32:58]FM_GetShiftState done [07:32:58]req_shift_opened done [07:32:58]requested_item shift.open_date is exist - process it [07:32:58]req_shift_open_date [07:32:58]req_shift_open_date done [07:32:58]produce_requested_data done [07:32:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72501,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:32:58]process_action_free close_receipt [07:32:58]json_value_free [07:32:58]json_value_free done [07:32:58]process_json_proto returns [07:32:58]Send response to host [07:32:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72501,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:32:58]free response buf [07:32:58]execute_script done [07:32:58]execute_script returns [07:32:58]free content buf [07:32:58]Sock 9.Close socket [07:32:58]Sock 9.Thread stoped [07:32:58]Connected sock=10 [07:32:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 51 0E 07 01 A6 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 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 1D 00 00 00 F4 03 04 00 28 3E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1B 01 00 35 04 06 00 51 67 FB 75 D0 46 98 55 98 D6 1F B5 D9 BE [07:33:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C9 BB 47 00 49 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 35 1B 01 00 F4 03 04 00 ED E8 1E 67 B6 04 01 00 00 F7 A0 D5 54 54 04 1E 0A [07:33:03]CommunicateWithHost err = 0 [07:33:03]CheckOFDResponse [07:33:03]1017 (14) - 77093643461234 [07:33:03]1041 (16) - 0000000000874662 [07:33:03]1040 (4) - 72501 [07:33:03]1012 (4) - 28.10.2024 01:29 [07:33:03]1206 (1) - 0 [07:33:03]OFD Sender: Remove packet 72501 [07:33:03]ProducePacketName [07:33:03]name=ofd_packets/00072501 [07:33:03]NVStorageDeleteData [07:33:03]OFD Sender: No OFD packet to send [07:33:08]OFD Sender: No OFD packet to send [07:33:13]OFD Sender: No OFD packet to send [07:33:13]recv_with_timeout no data received [07:33:18]OFD Sender: No OFD packet to send [07:33:23]OFD Sender: No OFD packet to send [07:33:24]recv_with_timeout no data received [07:33:28]OFD Sender: No OFD packet to send [07:33:33]OFD Sender: No OFD packet to send [07:33:38]OFD Sender: No OFD packet to send [07:33:42]recv_with_timeout no data received [07:33:43]OFD Sender: No OFD packet to send [07:33:48]OFD Sender: No OFD packet to send [07:33:53]OFD Sender: No OFD packet to send [07:33:58]OFD Sender: No OFD packet to send [07:34:03]OFD Sender: No OFD packet to send [07:34:08]OFD Sender: No OFD packet to send [07:34:09]recv_with_timeout no data received [07:34:13]OFD Sender: No OFD packet to send [07:34:18]OFD Sender: No OFD packet to send [07:34:23]OFD Sender: No OFD packet to send [07:34:28]OFD Sender: No OFD packet to send [07:34:33]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:49]OFD Sender: No OFD packet to send [07:34:50]recv_with_timeout no data received [07:34:54]OFD Sender: No OFD packet to send [07:34:59]OFD Sender: No OFD packet to send [07:35:04]OFD Sender: No OFD packet to send [07:35:09]OFD Sender: No OFD packet to send [07:35:14]OFD Sender: No OFD packet to send [07:35:19]OFD Sender: No OFD packet to send [07:35:24]OFD Sender: No OFD packet to send [07:35:29]OFD Sender: No OFD packet to send [07:35:30]recv_with_timeout no data received [07:35:34]OFD Sender: No OFD packet to send [07:35:39]OFD Sender: No OFD packet to send [07:35:44]OFD Sender: No OFD packet to send [07:35:49]OFD Sender: No OFD packet to send [07:35:54]OFD Sender: No OFD packet to send [07:35:59]OFD Sender: No OFD packet to send [07:36:04]OFD Sender: No OFD packet to send [07:36:09]OFD Sender: No OFD packet to send [07:36:14]OFD Sender: No OFD packet to send [07:36:17]recv_with_timeout no data received [07:36:19]OFD Sender: No OFD packet to send [07:36:24]OFD Sender: No OFD packet to send [07:36:29]OFD Sender: No OFD packet to send [07:36:34]OFD Sender: No OFD packet to send [07:36:39]OFD Sender: No OFD packet to send [07:36:44]OFD Sender: No OFD packet to send [07:36:49]OFD Sender: No OFD packet to send [07:36:51]recv_with_timeout no data received [07:36:54]OFD Sender: No OFD packet to send [07:36:59]OFD Sender: No OFD packet to send [07:37:04]OFD Sender: No OFD packet to send [07:37:09]OFD Sender: No OFD packet to send [07:37:14]OFD Sender: No OFD packet to send [07:37:19]OFD Sender: No OFD packet to send [07:37:24]OFD Sender: No OFD packet to send [07:37:29]OFD Sender: No OFD packet to send [07:37:34]OFD Sender: No OFD packet to send [07:37:39]OFD Sender: No OFD packet to send [07:37:44]OFD Sender: No OFD packet to send [07:37:49]OFD Sender: No OFD packet to send [07:37:54]OFD Sender: No OFD packet to send [07:37:59]OFD Sender: No OFD packet to send [07:38:04]OFD Sender: No OFD packet to send [07:38:09]OFD Sender: No OFD packet to send [07:38:10]recv_with_timeout no data received [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:33]recv_with_timeout no data received [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:49]OFD Sender: No OFD packet to send [07:38:51]recv_with_timeout no data received [07:38:54]OFD Sender: No OFD packet to send [07:38:59]OFD Sender: No OFD packet to send [07:39:04]OFD Sender: No OFD packet to send [07:39:08]recv_with_timeout no data received [07:39:09]OFD Sender: No OFD packet to send [07:39:14]OFD Sender: No OFD packet to send [07:39:19]recv_with_timeout no data received [07:39:19]OFD Sender: No OFD packet to send [07:39:24]OFD Sender: No OFD packet to send [07:39:29]OFD Sender: No OFD packet to send [07:39:34]OFD Sender: No OFD packet to send [07:39:39]OFD Sender: No OFD packet to send [07:39:44]OFD Sender: No OFD packet to send [07:39:49]OFD Sender: No OFD packet to send [07:39:54]OFD Sender: No OFD packet to send [07:39:59]OFD Sender: No OFD packet to send [07:40:02]recv_with_timeout no data received [07:40:04]OFD Sender: No OFD packet to send [07:40:09]OFD Sender: No OFD packet to send [07:40:14]OFD Sender: No OFD packet to send [07:40:19]OFD Sender: No OFD packet to send [07:40:20]recv_with_timeout no data received [07:40:24]OFD Sender: No OFD packet to send [07:40:29]OFD Sender: No OFD packet to send [07:40:34]OFD Sender: No OFD packet to send [07:40:37]recv_with_timeout no data received [07:40:39]OFD Sender: No OFD packet to send [07:40:44]OFD Sender: No OFD packet to send [07:40:49]OFD Sender: No OFD packet to send [07:40:54]OFD Sender: No OFD packet to send [07:40:59]OFD Sender: No OFD packet to send [07:41:04]OFD Sender: No OFD packet to send [07:41:09]OFD Sender: No OFD packet to send [07:41:14]OFD Sender: No OFD packet to send [07:41:19]OFD Sender: No OFD packet to send [07:41:24]OFD Sender: No OFD packet to send [07:41:29]OFD Sender: No OFD packet to send [07:41:30]recv_with_timeout no data received [07:41:34]OFD Sender: No OFD packet to send [07:41:39]OFD Sender: No OFD packet to send [07:41:41]recv_with_timeout no data received [07:41:44]OFD Sender: No OFD packet to send [07:41:49]OFD Sender: No OFD packet to send [07:41:54]OFD Sender: No OFD packet to send [07:41:59]OFD Sender: No OFD packet to send [07:42:04]OFD Sender: No OFD packet to send [07:42:09]OFD Sender: No OFD packet to send [07:42:14]OFD Sender: No OFD packet to send [07:42:19]OFD Sender: No OFD packet to send [07:42:24]OFD Sender: No OFD packet to send [07:42:29]OFD Sender: No OFD packet to send [07:42:34]OFD Sender: No OFD packet to send [07:42:39]OFD Sender: No OFD packet to send [07:42:44]OFD Sender: No OFD packet to send [07:42:49]OFD Sender: No OFD packet to send [07:42:50]recv_with_timeout no data received [07:42:54]OFD Sender: No OFD packet to send [07:42:59]OFD Sender: No OFD packet to send [07:43:04]OFD Sender: No OFD packet to send [07:43:09]OFD Sender: No OFD packet to send [07:43:14]OFD Sender: No OFD packet to send [07:43:19]OFD Sender: No OFD packet to send [07:43:20]recv_with_timeout no data received [07:43:24]OFD Sender: No OFD packet to send [07:43:29]OFD Sender: No OFD packet to send [07:43:34]OFD Sender: No OFD packet to send [07:43:39]OFD Sender: No OFD packet to send [07:43:44]OFD Sender: No OFD packet to send [07:43:49]OFD Sender: No OFD packet to send [07:43:54]OFD Sender: No OFD packet to send [07:43:59]OFD Sender: No OFD packet to send [07:44:04]OFD Sender: No OFD packet to send [07:44:09]OFD Sender: No OFD packet to send [07:44:14]OFD Sender: No OFD packet to send [07:44:19]OFD Sender: No OFD packet to send [07:44:24]OFD Sender: No OFD packet to send [07:44:29]OFD Sender: No OFD packet to send [07:44:31]recv_with_timeout no data received [07:44:34]OFD Sender: No OFD packet to send [07:44:39]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:48]recv_with_timeout no data received [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:15]recv_with_timeout no data received [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:27]recv_with_timeout no data received [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:50]recv_with_timeout no data received [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:01]recv_with_timeout no data received [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]recv_with_timeout no data received [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:33]recv_with_timeout no data received [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:38]recv_with_timeout no data received [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:51]accept exits with 8 [07:49:51]New connection [07:49:51]New thread 3067592036 created [07:49:51]Thread 3067448676 joined [07:49:51]Waiting for new connection... [07:49:51] Sock 8.Parse request [07:49:51]Sock 8.Check first char [07:49:51]Sock 8.First char is OK [07:49:51]request: POST /json_proto HTTP/1.0 [07:49:51]Method: POST [07:49:51]URL: /json_proto [07:49:51]Method is POST - this is cgi request [07:49:51]url: /json_proto [07:49:51]query_string will be loaded in cgi processing [07:49:51]execute_cgi json_proto POST (null) [07:49:51]execute_cgi path=json_proto method=POST [07:49:51]POST find Content-Length [07:49:51]Host: 172.17.43.195:8080 [07:49:51]Content-Length: 791 [07:49:51]Content-Type: application/json [07:49:51] [07:49:51]POST finish read [07:49:51]Found Content-Length = 791 [07:49:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:51]execute_script... [07:49:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951948", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:49:51]POST & json_proto [07:49:51]process_json_proto [07:49:51]json parsed OK: [07:49:51]protocol is kg_v1.0 [07:49:51]action value=close_receipt [07:49:51]process_action close_receipt [07:49:51]cmd_close_receipt [07:49:51]MH_GetDate [07:49:51]Write to MH i2c: F0 00 00 BB 04 AE [07:49:51]Write i2c OK [07:49:51]MH_I2C_Read... [07:49:51]Read from MH i2c: F0 [07:49:51]MH_I2C_Read... [07:49:51]Read from MH i2c: F0 09 00 [07:49:51]MH_I2C_Read... [07:49:51]Read from MH i2c: F0 09 00 BB 04 00 21 42 1F 67 74 2C AD 66 53 [07:49:51]GetLastDocTimeStamp 1730100776 [07:49:51]current date 1730101793 [07:49:51]FM_GetShiftState [07:49:51]SAM_PROTO_GetShiftState [07:49:51]wFMCommunicate request_size=4 [07:49:51]MH_SAM_APDU [07:49:51]CAPDU: 80 13 01 00 [07:49:51]Write to MH i2c: E2 08 00 BC 04 80 13 01 00 00 00 00 00 3D [07:49:51]Write i2c OK [07:49:51]MH_I2C_Read... [07:49:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:51]Read from MH i2c: E2 [07:49:51]MH_I2C_Read... [07:49:51]Read from MH i2c: E2 0E 00 [07:49:51]MH_I2C_Read... [07:49:51]Read from MH i2c: E2 0E 00 BC 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A5 [07:49:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:49:51]wFMCommunicate OK [07:49:51]SAM_PROTO_GetShiftState done [07:49:51]FM_GetShiftState done [07:49:51]opened in 1730074113 [07:49:51]opened+sec_in_day 1730160513 [07:49:51]quantity*price = 0 [07:49:51]sum+1 = 1 [07:49:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 30 28.10.2024 07:49 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72502 ФПД: 108681522918905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074953&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72502&fm=108681522918905&tin=02508201610067®Number=0000000000091644&sum=0 [07:49:52]StoreToDocumentArchive [07:49:52]shift 554 fd 72502 [07:49:52]save to /storage/0554/doc_00072502 [07:49:52]save last doc name /storage/0554/doc_00072502 to /storage/kkm_last_doc_name [07:49:52]save OK [07:49:52]Clear old archive folders... [07:49:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:49:52]tlvbuf is 00D979D0 [07:49:52]SAM_PROTO_ClearQueue [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 09 00 00 [07:49:52]Write to MH i2c: E2 08 00 C9 04 80 09 00 00 00 00 00 00 3F [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 03 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [07:49:52]RAPDU: 90 00 [07:49:52]wFMCommunicate OK [07:49:52]SAM_PROTO_ClearQueue done [07:49:52]KKMCreateOFDPacket [07:49:52]OFDProtocolAddRootSTLVToBuf [07:49:52]FM_MakeSignedData [07:49:52]FM_MakeSignedData [07:49:52]SAM_PROTO_SignData [07:49:52]wFMCommunicate request_size=4 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 0D 01 02 [07:49:52]Write to MH i2c: E2 08 00 CA 04 80 0D 01 02 00 00 00 00 47 [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:49:52]Read from MH i2c: E2 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 03 00 [07:49:52]MH_I2C_Read... [07:49:52]Read from MH i2c: E2 03 00 CA 04 00 90 00 42 [07:49:52]RAPDU: 90 00 [07:49:52]wFMCommunicate OK [07:49:52]wFMCommunicate request_size=255 [07:49:52]MH_SAM_APDU [07:49:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 21 42 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 36 1B 01 00 35 04 06 00 62 [07:49:52]Write to MH i2c: E2 02 01 CB 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 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 21 42 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 36 1B 01 00 35 04 06 00 62 00 00 8D [07:49:52]Write i2c OK [07:49:52]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 CB 04 00 90 00 43 [07:49:53]RAPDU: 90 00 [07:49:53]wFMCommunicate OK [07:49:53]wFMCommunicate request_size=10 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 0D 02 02 05 D8 63 91 35 F9 [07:49:53]Write to MH i2c: E2 0D 00 CC 04 80 0D 02 02 05 00 D8 63 91 35 F9 00 00 4E [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 03 00 CC 04 00 90 00 44 [07:49:53]RAPDU: 90 00 [07:49:53]wFMCommunicate OK [07:49:53]wFMCommunicate request_size=4 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 0D 03 02 [07:49:53]Write to MH i2c: E2 08 00 CD 04 80 0D 03 02 00 00 00 00 4C [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 0B 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 0B 00 CD 04 00 D2 62 F4 65 28 95 7C 56 90 00 69 [07:49:53]RAPDU: D2 62 F4 65 28 95 7C 56 90 00 [07:49:53]wFMCommunicate OK [07:49:53]SAM_PROTO_SignData done [07:49:53]FM_MakeSignedData done [07:49:53]CreateOFDProtocolMessage [07:49:53]wFMCommunicate request_size=4 [07:49:53]MH_SAM_APDU [07:49:53]CAPDU: 80 11 00 00 [07:49:53]Write to MH i2c: E2 08 00 CE 04 80 11 00 00 00 00 00 00 4C [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:53]Read from MH i2c: E2 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 17 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: E2 17 00 CE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A0 [07:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:49:53]wFMCommunicate OK [07:49:53]CreateOFDProtocolMessage done [07:49:53]OFDSenderStorePacket 72502 [07:49:53]StoreOFDPacket docnum=72502 [07:49:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EE 06 07 01 1C 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 21 42 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 36 1B 01 00 35 04 06 00 62 D8 63 91 35 F9 D2 62 F4 65 28 95 7C 56 [07:49:53]CheckFolder [07:49:53]dirname=/storage/ofd_packets [07:49:53]CheckFolder done [07:49:53]ProducePacketName [07:49:53]name=ofd_packets/00072502 [07:49:53]NVStorageSaveData ofd_packets/00072502 [07:49:53]File name is /storage/ofd_packets/00072502 [07:49:53]Write 301 bytes [07:49:53]NVStorageSaveData done [07:49:53]OFDSenderStorePacket done [07:49:53]KKMCreateOFDPacket done [07:49:53]NVStorageSaveData kkm_last_timestamp [07:49:53]File name is /storage/kkm_last_timestamp [07:49:53]Write 4 bytes [07:49:53]NVStorageSaveData done [07:49:53]ExternCall_PrintAddStr [07:49:53]wPrintStart [07:49:53]Write to MH i2c: 01 00 00 CF 04 D3 [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 07 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 07 00 CF 04 00 00 00 00 00 FF 0F E8 [07:49:53]RasterBufferAndPrint [07:49:53]line Счет N : (1)951948 [07:49:53]line ИНН: 02508201610067 [07:49:53]line Контрольно-Кассовый Чек [07:49:53]line ПРОДАЖА [07:49:53]line ТРК (МРК, ГНК) : 63 [07:49:53]line Товар: 2710124130 [07:49:53]line Аи-92-К-5 [07:49:53]line 7.480 * 0.00 [07:49:53]line = 0.00 [07:49:53]line НДС 12% НСП 1% [07:49:53]line > о реализуемом товаре [07:49:53]line ИТОГО: 0.00 [07:49:53]line НСП 1% : 0.00 [07:49:53]line НДС 12% : 0.00 [07:49:53]line Наличными: 0.00 [07:49:53]line Безнал.: 0.00 [07:49:53]line Место: АЗС № 113 "Партнер Нефть" [07:49:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:49:53]line СНО: Общий режим [07:49:53]line Чек 30 28.10.2024 07:49 [07:49:53]line Смена: 554 ФФД: 1.0 [07:49:53]line ЗНМ: 0300000087 [07:49:53]line РНМ: 0000000000091644 [07:49:53]line Версия ККМ: 001 [07:49:53]line Талоны: Топливная Карта [07:49:53]line 03047 [07:49:53]line ФМ: 0000000000874662 [07:49:53]line ФД: 72502 [07:49:53]line ФПД: 108681522918905 [07:49:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T074953&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72502&fm=108681522918905&tin=02508201610067®Number=0000000000091644&sum=0 [07:49:53]written 0, free lines is 4095 [07:49:53]OFD Sender: Processing packet 72502 [packets to send 272, broken 271] [07:49:53]ProducePacketName [07:49:53]name=ofd_packets/00072502 [07:49:53]OFD Sender: To server: pG, [07:49:53]CommunicateWithHost lk.salyk.kg:30040 [07:49:53]ConnectInit lk.salyk.kg [07:49:53]Write to MH i2c: 01 00 00 F9 04 FD [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 07 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: 01 07 00 F9 04 00 00 00 00 00 DA 0C EA [07:49:53]RasterBufferAndPrint [07:49:53]line [07:49:53]line [07:49:53]line [07:49:53]line [07:49:53]line [07:49:53]written 0, free lines is 3296 [07:49:53]MH_Cut [07:49:53]Write to MH i2c: D1 01 00 00 05 01 D7 [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: D1 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: D1 01 00 [07:49:53]MH_I2C_Read... [07:49:53]Read from MH i2c: D1 01 00 00 05 00 D6 [07:49:53]Write to MH i2c: 01 00 00 01 05 06 [07:49:53]Write i2c OK [07:49:53]MH_I2C_Read... [07:49:54]*** Cut start [07:49:54]*** Partial cut [07:49:54]*** CUTSNS_PIN = 1 [07:49:54]*** CUTSNS_PIN = 0 [07:49:54]*** Brake cut motor [07:49:55]Read from MH i2c: 01 [07:49:55]*** Stop cut motor [07:49:55]*** Cut end [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: 01 07 00 01 05 00 00 00 00 00 FF 0F 1B [07:49:55]process_action close_receipt done [07:49:55]requested_data is exist [07:49:55]produce_requested_data [07:49:55]requested_item fm.sn is exist - process it [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 11 00 00 [07:49:55]Write to MH i2c: E2 08 00 02 05 80 11 00 00 00 00 00 00 81 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 17 00 02 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D5 [07:49:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:49:55]wFMCommunicate OK [07:49:55]requested_item fd.num is exist - process it [07:49:55]SAM_PROTO_GetFieldsCounters [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 13 00 00 [07:49:55]Write to MH i2c: E2 08 00 03 05 80 13 00 00 00 00 00 00 84 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 62 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 62 00 03 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 36 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [07:49: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 36 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_GetFieldsCounters done [07:49:55]requested_item shift.num is exist - process it [07:49:55]requested_item shift.opened is exist - process it [07:49:55]req_shift_opened [07:49:55]FM_GetShiftState [07:49:55]SAM_PROTO_GetShiftState [07:49:55]wFMCommunicate request_size=4 [07:49:55]MH_SAM_APDU [07:49:55]CAPDU: 80 13 01 00 [07:49:55]Write to MH i2c: E2 08 00 04 05 80 13 01 00 00 00 00 00 86 [07:49:55]Write i2c OK [07:49:55]MH_I2C_Read... [07:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:49:55]Read from MH i2c: E2 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0E 00 [07:49:55]MH_I2C_Read... [07:49:55]Read from MH i2c: E2 0E 00 04 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EE [07:49:55]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:49:55]wFMCommunicate OK [07:49:55]SAM_PROTO_GetShiftState done [07:49:55]FM_GetShiftState done [07:49:55]req_shift_opened done [07:49:55]requested_item shift.open_date is exist - process it [07:49:55]req_shift_open_date [07:49:55]req_shift_open_date done [07:49:55]produce_requested_data done [07:49:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72502,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:49:55]process_action_free close_receipt [07:49:55]json_value_free [07:49:55]json_value_free done [07:49:55]process_json_proto returns [07:49:55]Send response to host [07:49:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72502,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:49:55]free response buf [07:49:55]execute_script done [07:49:55]execute_script returns [07:49:55]free content buf [07:49:55]Sock 8.Close socket [07:49:55]Sock 8.Thread stoped [07:49:58]ConnectInit Can't take IP for lk.salyk.kg [07:49:58]CommunicateWithHost connect error [07:49:58]CommunicateWithHost err = -1 [07:49:58]OFD Sender: Server communicate error [07:49:58]recv_with_timeout no data received [07:50:03]OFD Sender: Processing packet 72502 [packets to send 272, broken 271] [07:50:03]ProducePacketName [07:50:03]name=ofd_packets/00072502 [07:50:03]OFD Sender: To server: pG, [07:50:03]CommunicateWithHost lk.salyk.kg:30040 [07:50:03]ConnectInit lk.salyk.kg [07:50:11]recv_with_timeout no data received [07:50:21]recv_with_timeout no data received [07:52:17]ConnectInit Can't connect to host [07:52:17]CommunicateWithHost connect error [07:52:17]CommunicateWithHost err = -1 [07:52:17]OFD Sender: Server communicate error [07:52:22]OFD Sender: Processing packet 72502 [packets to send 272, broken 271] [07:52:22]ProducePacketName [07:52:22]name=ofd_packets/00072502 [07:52:22]OFD Sender: To server: pG, [07:52:22]CommunicateWithHost lk.salyk.kg:30040 [07:52:22]ConnectInit lk.salyk.kg [07:52:23]Connected sock=10 [07:52:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EE 06 07 01 1C 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 21 42 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 36 1B 01 00 35 04 06 00 62 D8 63 91 35 F9 D2 62 F4 65 28 95 7C 56 [07:52:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 ED AF 47 00 61 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 34 36 36 32 10 04 04 00 36 1B 01 00 F4 03 04 00 75 ED 1E 67 B6 04 01 00 00 18 14 98 51 06 5B 07 38 [07:52:23]CommunicateWithHost err = 0 [07:52:23]CheckOFDResponse [07:52:23]1017 (14) - 77093643461234 [07:52:23]1041 (16) - 0000000000874662 [07:52:23]1040 (4) - 72502 [07:52:23]1012 (4) - 28.10.2024 01:48 [07:52:23]1206 (1) - 0 [07:52:23]OFD Sender: Remove packet 72502 [07:52:23]ProducePacketName [07:52:23]name=ofd_packets/00072502 [07:52:23]NVStorageDeleteData [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:33]recv_with_timeout no data received [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:12]recv_with_timeout no data received [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:53:59]recv_with_timeout no data received [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:12]recv_with_timeout no data received [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:30]recv_with_timeout no data received [07:54:33]accept exits with 9 [07:54:33]New connection [07:54:33]New thread 3067448676 created [07:54:33]Thread 3067592036 joined [07:54:33]Waiting for new connection... [07:54:33] Sock 9.Parse request [07:54:33]Sock 9.Check first char [07:54:33]Sock 9.First char is OK [07:54:33]request: POST /json_proto HTTP/1.0 [07:54:33]Method: POST [07:54:33]URL: /json_proto [07:54:33]Method is POST - this is cgi request [07:54:33]url: /json_proto [07:54:33]query_string will be loaded in cgi processing [07:54:33]execute_cgi json_proto POST (null) [07:54:33]execute_cgi path=json_proto method=POST [07:54:33]POST find Content-Length [07:54:33]Host: 172.17.43.195:8080 [07:54:33]Content-Length: 792 [07:54:33]Content-Type: application/json [07:54:33] [07:54:33]POST finish read [07:54:33]Found Content-Length = 792 [07:54:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:33]execute_script... [07:54:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951949", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:54:33]POST & json_proto [07:54:33]process_json_proto [07:54:33]json parsed OK: [07:54:33]protocol is kg_v1.0 [07:54:33]action value=close_receipt [07:54:33]process_action close_receipt [07:54:33]cmd_close_receipt [07:54:33]MH_GetDate [07:54:33]Write to MH i2c: F0 00 00 05 05 F9 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: F0 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: F0 09 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: F0 09 00 05 05 00 3B 43 1F 67 74 2C AD 66 B9 [07:54:33]GetLastDocTimeStamp 1730101793 [07:54:33]current date 1730102075 [07:54:33]FM_GetShiftState [07:54:33]SAM_PROTO_GetShiftState [07:54:33]wFMCommunicate request_size=4 [07:54:33]MH_SAM_APDU [07:54:33]CAPDU: 80 13 01 00 [07:54:33]Write to MH i2c: E2 08 00 06 05 80 13 01 00 00 00 00 00 88 [07:54:33]Write i2c OK [07:54:33]MH_I2C_Read... [07:54:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:33]Read from MH i2c: E2 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 [07:54:33]MH_I2C_Read... [07:54:33]Read from MH i2c: E2 0E 00 06 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F0 [07:54:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:54:33]wFMCommunicate OK [07:54:33]SAM_PROTO_GetShiftState done [07:54:33]FM_GetShiftState done [07:54:33]opened in 1730074113 [07:54:33]opened+sec_in_day 1730160513 [07:54:33]quantity*price = 0 [07:54:33]sum+1 = 1 [07:54:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 31 28.10.2024 07:54 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72503 ФПД: 90531088006118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075435&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72503&fm=90531088006118&tin=02508201610067®Number=0000000000091644&sum=0 [07:54:34]StoreToDocumentArchive [07:54:34]shift 554 fd 72503 [07:54:34]save to /storage/0554/doc_00072503 [07:54:34]save last doc name /storage/0554/doc_00072503 to /storage/kkm_last_doc_name [07:54:34]save OK [07:54:34]Clear old archive folders... [07:54:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:54:34]tlvbuf is 00D97870 [07:54:34]SAM_PROTO_ClearQueue [07:54:34]wFMCommunicate request_size=4 [07:54:34]MH_SAM_APDU [07:54:34]CAPDU: 80 09 00 00 [07:54:34]Write to MH i2c: E2 08 00 13 05 80 09 00 00 00 00 00 00 8A [07:54:34]Write i2c OK [07:54:34]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 13 05 00 90 00 8C [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]SAM_PROTO_ClearQueue done [07:54:35]KKMCreateOFDPacket [07:54:35]OFDProtocolAddRootSTLVToBuf [07:54:35]FM_MakeSignedData [07:54:35]FM_MakeSignedData [07:54:35]SAM_PROTO_SignData [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 01 02 [07:54:35]Write to MH i2c: E2 08 00 14 05 80 0D 01 02 00 00 00 00 92 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 14 05 00 90 00 8D [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]wFMCommunicate request_size=255 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3B 43 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1B 01 00 35 04 06 00 52 [07:54:35]Write to MH i2c: E2 02 01 15 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3B 43 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1B 01 00 35 04 06 00 52 00 00 D0 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 15 05 00 90 00 8E [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]wFMCommunicate request_size=10 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 02 02 05 56 69 57 7B E6 [07:54:35]Write to MH i2c: E2 0D 00 16 05 80 0D 02 02 05 00 56 69 57 7B E6 00 00 16 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 03 00 16 05 00 90 00 8F [07:54:35]RAPDU: 90 00 [07:54:35]wFMCommunicate OK [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 0D 03 02 [07:54:35]Write to MH i2c: E2 08 00 17 05 80 0D 03 02 00 00 00 00 97 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 0B 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 0B 00 17 05 00 60 C1 9F 28 C8 ED 82 8D 90 00 44 [07:54:35]RAPDU: 60 C1 9F 28 C8 ED 82 8D 90 00 [07:54:35]wFMCommunicate OK [07:54:35]SAM_PROTO_SignData done [07:54:35]FM_MakeSignedData done [07:54:35]CreateOFDProtocolMessage [07:54:35]wFMCommunicate request_size=4 [07:54:35]MH_SAM_APDU [07:54:35]CAPDU: 80 11 00 00 [07:54:35]Write to MH i2c: E2 08 00 18 05 80 11 00 00 00 00 00 00 97 [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:35]Read from MH i2c: E2 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 17 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: E2 17 00 18 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EB [07:54:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:54:35]wFMCommunicate OK [07:54:35]CreateOFDProtocolMessage done [07:54:35]OFDSenderStorePacket 72503 [07:54:35]StoreOFDPacket docnum=72503 [07:54:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 76 07 01 00 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3B 43 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1B 01 00 35 04 06 00 52 56 69 57 7B E6 60 C1 9F 28 C8 ED 82 8D [07:54:35]CheckFolder [07:54:35]dirname=/storage/ofd_packets [07:54:35]CheckFolder done [07:54:35]ProducePacketName [07:54:35]name=ofd_packets/00072503 [07:54:35]NVStorageSaveData ofd_packets/00072503 [07:54:35]File name is /storage/ofd_packets/00072503 [07:54:35]Write 301 bytes [07:54:35]NVStorageSaveData done [07:54:35]OFDSenderStorePacket done [07:54:35]KKMCreateOFDPacket done [07:54:35]NVStorageSaveData kkm_last_timestamp [07:54:35]File name is /storage/kkm_last_timestamp [07:54:35]Write 4 bytes [07:54:35]NVStorageSaveData done [07:54:35]OFD Sender: Processing packet 72503 [packets to send 272, broken 271] [07:54:35]ProducePacketName [07:54:35]name=ofd_packets/00072503 [07:54:35]OFD Sender: To server: pG, [07:54:35]CommunicateWithHost lk.salyk.kg:30040 [07:54:35]ConnectInit lk.salyk.kg [07:54:35]ExternCall_PrintAddStr [07:54:35]wPrintStart [07:54:35]Write to MH i2c: 01 00 00 19 05 1E [07:54:35]Write i2c OK [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 07 00 [07:54:35]MH_I2C_Read... [07:54:35]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 FF 0F 33 [07:54:35]RasterBufferAndPrint [07:54:35]line Счет N : (1)951949 [07:54:35]line ИНН: 02508201610067 [07:54:35]line Контрольно-Кассовый Чек [07:54:35]line ПРОДАЖА [07:54:35]line ТРК (МРК, ГНК) : 53 [07:54:35]line Товар: 2710124130 [07:54:35]line Аи-92-К-5 [07:54:35]line 29.900 * 0.00 [07:54:35]line = 0.00 [07:54:35]line НДС 12% НСП 1% [07:54:35]line > о реализуемом товаре [07:54:35]line ИТОГО: 0.00 [07:54:35]line НСП 1% : 0.00 [07:54:35]line НДС 12% : 0.00 [07:54:35]line Наличными: 0.00 [07:54:35]line Безнал.: 0.00 [07:54:35]line Место: АЗС № 113 "Партнер Нефть" [07:54:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [07:54:35]line СНО: Общий режим [07:54:35]line Чек 31 28.10.2024 07:54 [07:54:35]line Смена: 554 ФФД: 1.0 [07:54:35]line ЗНМ: 0300000087 [07:54:35]line РНМ: 0000000000091644 [07:54:35]line Версия ККМ: 001 [07:54:35]line Талоны: Топливная Карта [07:54:35]line 03047 [07:54:35]line ФМ: 0000000000874662 [07:54:35]line ФД: 72503 [07:54:35]line ФПД: 90531088006118 [07:54:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T075435&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72503&fm=90531088006118&tin=02508201610067®Number=0000000000091644&sum=0 [07:54:35]written 0, free lines is 4095 [07:54:36]Write to MH i2c: 01 00 00 43 05 48 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 07 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: 01 07 00 43 05 00 00 00 00 00 DA 0C 35 [07:54:36]RasterBufferAndPrint [07:54:36]line [07:54:36]line [07:54:36]line [07:54:36]line [07:54:36]line [07:54:36]written 0, free lines is 3296 [07:54:36]MH_Cut [07:54:36]Write to MH i2c: D1 01 00 4A 05 01 21 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: D1 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: D1 01 00 [07:54:36]MH_I2C_Read... [07:54:36]Read from MH i2c: D1 01 00 4A 05 00 20 [07:54:36]Write to MH i2c: 01 00 00 4B 05 50 [07:54:36]Write i2c OK [07:54:36]MH_I2C_Read... [07:54:37]*** Cut start [07:54:37]*** Partial cut [07:54:37]*** CUTSNS_PIN = 1 [07:54:37]*** CUTSNS_PIN = 0 [07:54:37]*** Brake cut motor [07:54:37]Read from MH i2c: 01 [07:54:37]MH_I2C_Read... [07:54:37]*** Stop cut motor [07:54:37]*** Cut end [07:54:37]Read from MH i2c: 01 07 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 FF 0F 65 [07:54:37]process_action close_receipt done [07:54:37]requested_data is exist [07:54:37]produce_requested_data [07:54:37]requested_item fm.sn is exist - process it [07:54:37]wFMCommunicate request_size=4 [07:54:37]MH_SAM_APDU [07:54:37]CAPDU: 80 11 00 00 [07:54:37]Write to MH i2c: E2 08 00 4C 05 80 11 00 00 00 00 00 00 CB [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:37]Read from MH i2c: E2 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 17 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 17 00 4C 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1F [07:54:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [07:54:37]wFMCommunicate OK [07:54:37]requested_item fd.num is exist - process it [07:54:37]SAM_PROTO_GetFieldsCounters [07:54:37]wFMCommunicate request_size=4 [07:54:37]MH_SAM_APDU [07:54:37]CAPDU: 80 13 00 00 [07:54:37]Write to MH i2c: E2 08 00 4D 05 80 13 00 00 00 00 00 00 CE [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:54:37]Read from MH i2c: E2 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 62 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 62 00 4D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 37 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [07:54:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 37 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:54:37]wFMCommunicate OK [07:54:37]SAM_PROTO_GetFieldsCounters done [07:54:37]requested_item shift.num is exist - process it [07:54:37]requested_item shift.opened is exist - process it [07:54:37]req_shift_opened [07:54:37]FM_GetShiftState [07:54:37]SAM_PROTO_GetShiftState [07:54:37]wFMCommunicate request_size=4 [07:54:37]MH_SAM_APDU [07:54:37]CAPDU: 80 13 01 00 [07:54:37]Write to MH i2c: E2 08 00 4E 05 80 13 01 00 00 00 00 00 D0 [07:54:37]Write i2c OK [07:54:37]MH_I2C_Read... [07:54:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:37]Read from MH i2c: E2 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 0E 00 [07:54:37]MH_I2C_Read... [07:54:37]Read from MH i2c: E2 0E 00 4E 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 38 [07:54:37]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [07:54:37]wFMCommunicate OK [07:54:37]SAM_PROTO_GetShiftState done [07:54:37]FM_GetShiftState done [07:54:37]req_shift_opened done [07:54:37]requested_item shift.open_date is exist - process it [07:54:37]req_shift_open_date [07:54:37]req_shift_open_date done [07:54:37]produce_requested_data done [07:54:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72503,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [07:54:37]process_action_free close_receipt [07:54:37]json_value_free [07:54:37]json_value_free done [07:54:37]process_json_proto returns [07:54:37]Send response to host [07:54:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72503,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [07:54:37]free response buf [07:54:37]execute_script done [07:54:37]execute_script returns [07:54:37]free content buf [07:54:37]Sock 9.Close socket [07:54:37]Sock 9.Thread stoped [07:54:41]recv_with_timeout no data received [07:54:51]recv_with_timeout no data received [07:56:48]ConnectInit Can't connect to host [07:56:48]CommunicateWithHost connect error [07:56:48]CommunicateWithHost err = -1 [07:56:48]OFD Sender: Server communicate error [07:56:53]OFD Sender: Processing packet 72503 [packets to send 272, broken 271] [07:56:53]ProducePacketName [07:56:53]name=ofd_packets/00072503 [07:56:53]OFD Sender: To server: pG, [07:56:53]CommunicateWithHost lk.salyk.kg:30040 [07:56:53]ConnectInit lk.salyk.kg [07:56:54]Connected sock=9 [07:56:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 76 07 01 00 F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 3B 43 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 37 1B 01 00 35 04 06 00 52 56 69 57 7B E6 60 C1 9F 28 C8 ED 82 8D [07:56:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 09 D7 47 00 94 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 34 36 36 32 10 04 04 00 37 1B 01 00 F4 03 04 00 85 EE 1E 67 B6 04 01 00 00 50 12 1E 70 44 94 24 51 [07:56:58]CommunicateWithHost err = 0 [07:56:58]CheckOFDResponse [07:56:58]1017 (14) - 77093643461234 [07:56:58]1041 (16) - 0000000000874662 [07:56:58]1040 (4) - 72503 [07:56:58]1012 (4) - 28.10.2024 01:53 [07:56:58]1206 (1) - 0 [07:56:58]OFD Sender: Remove packet 72503 [07:56:58]ProducePacketName [07:56:58]name=ofd_packets/00072503 [07:56:58]NVStorageDeleteData [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:06]recv_with_timeout no data received [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]recv_with_timeout no data received [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:05]recv_with_timeout no data received [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:50]recv_with_timeout no data received [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:21]recv_with_timeout no data received [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:32]recv_with_timeout no data received [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:20]recv_with_timeout no data received [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:46]recv_with_timeout no data received [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:53]recv_with_timeout no data received [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:05]recv_with_timeout no data received [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:47]recv_with_timeout no data received [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]accept exits with 8 [08:06:10]New connection [08:06:10]New thread 3067592036 created [08:06:10]Thread 3067448676 joined [08:06:10]Waiting for new connection... [08:06:10] Sock 8.Parse request [08:06:10]Sock 8.Check first char [08:06:10]Sock 8.First char is OK [08:06:10]request: POST /json_proto HTTP/1.0 [08:06:10]Method: POST [08:06:10]URL: /json_proto [08:06:10]Method is POST - this is cgi request [08:06:10]url: /json_proto [08:06:10]query_string will be loaded in cgi processing [08:06:10]execute_cgi json_proto POST (null) [08:06:10]execute_cgi path=json_proto method=POST [08:06:10]POST find Content-Length [08:06:10]Host: 172.17.43.195:8080 [08:06:10]Content-Length: 846 [08:06:10]Content-Type: application/json [08:06:10] [08:06:10]POST finish read [08:06:10]Found Content-Length = 846 [08:06:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:10]execute_script... [08:06:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951950", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:06:10]POST & json_proto [08:06:10]process_json_proto [08:06:10]json parsed OK: [08:06:10]protocol is kg_v1.0 [08:06:10]action value=close_receipt [08:06:10]process_action close_receipt [08:06:10]cmd_close_receipt [08:06:10]MH_GetDate [08:06:10]Write to MH i2c: F0 00 00 4F 05 43 [08:06:10]Write i2c OK [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 09 00 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: F0 09 00 4F 05 00 F3 45 1F 67 74 2C AD 66 BD [08:06:10]GetLastDocTimeStamp 1730102075 [08:06:10]current date 1730102771 [08:06:10]FM_GetShiftState [08:06:10]SAM_PROTO_GetShiftState [08:06:10]wFMCommunicate request_size=4 [08:06:10]MH_SAM_APDU [08:06:10]CAPDU: 80 13 01 00 [08:06:10]Write to MH i2c: E2 08 00 50 05 80 13 01 00 00 00 00 00 D2 [08:06:10]Write i2c OK [08:06:10]MH_I2C_Read... [08:06:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:10]Read from MH i2c: E2 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: E2 0E 00 [08:06:10]MH_I2C_Read... [08:06:10]Read from MH i2c: E2 0E 00 50 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 3A [08:06:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:06:10]wFMCommunicate OK [08:06:10]SAM_PROTO_GetShiftState done [08:06:10]FM_GetShiftState done [08:06:10]opened in 1730074113 [08:06:10]opened+sec_in_day 1730160513 [08:06:10]quantity*price = 150037 [08:06:10]sum+1 = 150038 [08:06:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.37 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.37 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 32 28.10.2024 08:06 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72504 ФПД: 28691563025740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72504&fm=28691563025740&tin=02508201610067®Number=0000000000091644&sum=150037 [08:06:11]StoreToDocumentArchive [08:06:11]shift 554 fd 72504 [08:06:11]save to /storage/0554/doc_00072504 [08:06:11]save last doc name /storage/0554/doc_00072504 to /storage/kkm_last_doc_name [08:06:11]save OK [08:06:11]Clear old archive folders... [08:06:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [08:06:11]tlvbuf is 00D99330 [08:06:11]SAM_PROTO_ClearQueue [08:06:11]wFMCommunicate request_size=4 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 09 00 00 [08:06:11]Write to MH i2c: E2 08 00 5D 05 80 09 00 00 00 00 00 00 D4 [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 5D 05 00 90 00 D6 [08:06:11]RAPDU: 90 00 [08:06:11]wFMCommunicate OK [08:06:11]SAM_PROTO_ClearQueue done [08:06:11]KKMCreateOFDPacket [08:06:11]OFDProtocolAddRootSTLVToBuf [08:06:11]FM_MakeSignedData [08:06:11]FM_MakeSignedData [08:06:11]SAM_PROTO_SignData [08:06:11]wFMCommunicate request_size=4 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 0D 01 02 [08:06:11]Write to MH i2c: E2 08 00 5E 05 80 0D 01 02 00 00 00 00 DC [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 5E 05 00 90 00 D7 [08:06:11]RAPDU: 90 00 [08:06:11]wFMCommunicate OK [08:06:11]wFMCommunicate request_size=255 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 45 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1B 01 00 35 04 06 00 1A 18 [08:06:11]Write to MH i2c: E2 02 01 5F 05 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 45 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1B 01 00 35 04 06 00 1A 18 00 00 6F [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 5F 05 00 90 00 D8 [08:06:11]RAPDU: 90 00 [08:06:11]wFMCommunicate OK [08:06:11]wFMCommunicate request_size=9 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 0D 02 02 04 46 6C 15 4C [08:06:11]Write to MH i2c: E2 0C 00 60 05 80 0D 02 02 04 00 46 6C 15 4C 00 00 FA [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 03 00 60 05 00 90 00 D9 [08:06:11]RAPDU: 90 00 [08:06:11]wFMCommunicate OK [08:06:11]wFMCommunicate request_size=4 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 0D 03 02 [08:06:11]Write to MH i2c: E2 08 00 61 05 80 0D 03 02 00 00 00 00 E1 [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 0B 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 0B 00 61 05 00 FC 3E D6 9F 59 AC 33 D2 90 00 9B [08:06:11]RAPDU: FC 3E D6 9F 59 AC 33 D2 90 00 [08:06:11]wFMCommunicate OK [08:06:11]SAM_PROTO_SignData done [08:06:11]FM_MakeSignedData done [08:06:11]CreateOFDProtocolMessage [08:06:11]wFMCommunicate request_size=4 [08:06:11]MH_SAM_APDU [08:06:11]CAPDU: 80 11 00 00 [08:06:11]Write to MH i2c: E2 08 00 62 05 80 11 00 00 00 00 00 00 E1 [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:11]Read from MH i2c: E2 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 17 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: E2 17 00 62 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 35 [08:06:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:06:11]wFMCommunicate OK [08:06:11]CreateOFDProtocolMessage done [08:06:11]OFDSenderStorePacket 72504 [08:06:11]StoreOFDPacket docnum=72504 [08:06:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C0 E3 06 01 60 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 45 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1B 01 00 35 04 06 00 1A 18 46 6C 15 4C FC 3E D6 9F 59 AC 33 D2 [08:06:11]CheckFolder [08:06:11]dirname=/storage/ofd_packets [08:06:11]CheckFolder done [08:06:11]ProducePacketName [08:06:11]name=ofd_packets/00072504 [08:06:11]NVStorageSaveData ofd_packets/00072504 [08:06:11]File name is /storage/ofd_packets/00072504 [08:06:11]Write 300 bytes [08:06:11]NVStorageSaveData done [08:06:11]OFDSenderStorePacket done [08:06:11]KKMCreateOFDPacket done [08:06:11]NVStorageSaveData kkm_last_timestamp [08:06:11]File name is /storage/kkm_last_timestamp [08:06:11]Write 4 bytes [08:06:11]NVStorageSaveData done [08:06:11]ExternCall_PrintAddStr [08:06:11]wPrintStart [08:06:11]Write to MH i2c: 01 00 00 63 05 68 [08:06:11]Write i2c OK [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: 01 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: 01 07 00 [08:06:11]MH_I2C_Read... [08:06:11]Read from MH i2c: 01 07 00 63 05 00 00 00 00 00 FF 0F 7D [08:06:11]RasterBufferAndPrint [08:06:11]line Счет N : (1)951950 [08:06:11]line ИНН: 02508201610067 [08:06:11]line Контрольно-Кассовый Чек [08:06:11]line ПРОДАЖА [08:06:11]line ТРК (МРК, ГНК) : 71 [08:06:11]line Товар: 2711190000 [08:06:11]line ГАЗ-К-3 [08:06:11]line 38.570 * 38.90 [08:06:11]line = 1500.37 [08:06:11]line НДС 12% НСП 1% [08:06:11]line > о реализуемом товаре [08:06:11]line ИТОГО: 1500.37 [08:06:11]line НСП 1% : 13.28 [08:06:11]line НДС 12% : 159.33 [08:06:11]line Наличными: 0.00 [08:06:11]line Безнал.: 1500.37 [08:06:11]line Место: АЗС № 113 "Партнер Нефть" [08:06:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:06:11]line СНО: Общий режим [08:06:11]line Чек 32 28.10.2024 08:06 [08:06:11]line Смена: 554 ФФД: 1.0 [08:06:11]line ЗНМ: 0300000087 [08:06:11]line РНМ: 0000000000091644 [08:06:11]line Версия ККМ: 001 [08:06:11]line Платежная система: АКБ Кыргызстан [08:06:11]line ФМ: 0000000000874662 [08:06:11]line ФД: 72504 [08:06:11]line ФПД: 28691563025740 [08:06:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T080611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72504&fm=28691563025740&tin=02508201610067®Number=0000000000091644&sum=150037 [08:06:11]written 0, free lines is 4095 [08:06:11]OFD Sender: Processing packet 72504 [packets to send 272, broken 271] [08:06:11]ProducePacketName [08:06:11]name=ofd_packets/00072504 [08:06:11]OFD Sender: To server: pG, [08:06:11]CommunicateWithHost lk.salyk.kg:30040 [08:06:11]ConnectInit lk.salyk.kg [08:06:12]Write to MH i2c: 01 00 00 8D 05 92 [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 07 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: 01 07 00 8D 05 00 00 00 00 00 E8 0C 8D [08:06:12]RasterBufferAndPrint [08:06:12]line [08:06:12]line [08:06:12]line [08:06:12]line [08:06:12]line [08:06:12]written 0, free lines is 3310 [08:06:12]MH_Cut [08:06:12]Write to MH i2c: D1 01 00 94 05 01 6B [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: D1 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: D1 01 00 [08:06:12]MH_I2C_Read... [08:06:12]Read from MH i2c: D1 01 00 94 05 00 6A [08:06:12]Write to MH i2c: 01 00 00 95 05 9A [08:06:12]Write i2c OK [08:06:12]MH_I2C_Read... [08:06:13]*** Cut start [08:06:13]*** Partial cut [08:06:13]*** CUTSNS_PIN = 1 [08:06:13]*** CUTSNS_PIN = 0 [08:06:13]*** Brake cut motor [08:06:13]Connected sock=10 [08:06:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C0 E3 06 01 60 F9 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 F3 45 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 38 1B 01 00 35 04 06 00 1A 18 46 6C 15 4C FC 3E D6 9F 59 AC 33 D2 [08:06:13]Read from MH i2c: 01 [08:06:13]MH_I2C_Read... [08:06:13]*** Stop cut motor [08:06:13]*** Cut end [08:06:13]Read from MH i2c: 01 07 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: 01 07 00 95 05 00 00 00 00 00 FF 0F AF [08:06:13]process_action close_receipt done [08:06:13]requested_data is exist [08:06:13]produce_requested_data [08:06:13]requested_item fm.sn is exist - process it [08:06:13]wFMCommunicate request_size=4 [08:06:13]MH_SAM_APDU [08:06:13]CAPDU: 80 11 00 00 [08:06:13]Write to MH i2c: E2 08 00 96 05 80 11 00 00 00 00 00 00 15 [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:06:13]Read from MH i2c: E2 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 17 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 17 00 96 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [08:06:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:06:13]wFMCommunicate OK [08:06:13]requested_item fd.num is exist - process it [08:06:13]SAM_PROTO_GetFieldsCounters [08:06:13]wFMCommunicate request_size=4 [08:06:13]MH_SAM_APDU [08:06:13]CAPDU: 80 13 00 00 [08:06:13]Write to MH i2c: E2 08 00 97 05 80 13 00 00 00 00 00 00 18 [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:06:13]Read from MH i2c: E2 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 62 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 62 00 97 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 38 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [08:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 38 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:06:13]wFMCommunicate OK [08:06:13]SAM_PROTO_GetFieldsCounters done [08:06:13]requested_item shift.num is exist - process it [08:06:13]requested_item shift.opened is exist - process it [08:06:13]req_shift_opened [08:06:13]FM_GetShiftState [08:06:13]SAM_PROTO_GetShiftState [08:06:13]wFMCommunicate request_size=4 [08:06:13]MH_SAM_APDU [08:06:13]CAPDU: 80 13 01 00 [08:06:13]Write to MH i2c: E2 08 00 98 05 80 13 01 00 00 00 00 00 1A [08:06:13]Write i2c OK [08:06:13]MH_I2C_Read... [08:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:06:13]Read from MH i2c: E2 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 0E 00 [08:06:13]MH_I2C_Read... [08:06:13]Read from MH i2c: E2 0E 00 98 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 82 [08:06:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:06:13]wFMCommunicate OK [08:06:13]SAM_PROTO_GetShiftState done [08:06:13]FM_GetShiftState done [08:06:13]req_shift_opened done [08:06:13]requested_item shift.open_date is exist - process it [08:06:13]req_shift_open_date [08:06:13]req_shift_open_date done [08:06:13]produce_requested_data done [08:06:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72504,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [08:06:13]process_action_free close_receipt [08:06:13]json_value_free [08:06:13]json_value_free done [08:06:13]process_json_proto returns [08:06:13]Send response to host [08:06:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72504,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [08:06:13]free response buf [08:06:13]execute_script done [08:06:13]execute_script returns [08:06:13]free content buf [08:06:13]Sock 8.Close socket [08:06:13]Sock 8.Thread stoped [08:06:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB 0F 47 00 E4 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 34 36 36 32 10 04 04 00 38 1B 01 00 F4 03 04 00 B4 F0 1E 67 B6 04 01 00 00 CD 5D D7 38 8E 75 34 00 [08:06:14]CommunicateWithHost err = 0 [08:06:14]CheckOFDResponse [08:06:14]1017 (14) - 77093643461234 [08:06:14]1041 (16) - 0000000000874662 [08:06:14]1040 (4) - 72504 [08:06:14]1012 (4) - 28.10.2024 02:02 [08:06:14]1206 (1) - 0 [08:06:14]OFD Sender: Remove packet 72504 [08:06:14]ProducePacketName [08:06:14]name=ofd_packets/00072504 [08:06:14]NVStorageDeleteData [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:38]recv_with_timeout no data received [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:54]OFD Sender: No OFD packet to send [08:07:59]recv_with_timeout no data received [08:07:59]OFD Sender: No OFD packet to send [08:08:04]OFD Sender: No OFD packet to send [08:08:09]OFD Sender: No OFD packet to send [08:08:14]OFD Sender: No OFD packet to send [08:08:19]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:34]recv_with_timeout no data received [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:19]recv_with_timeout no data received [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:39]recv_with_timeout no data received [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:54]recv_with_timeout no data received [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:23]recv_with_timeout no data received [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:45]recv_with_timeout no data received [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:27]recv_with_timeout no data received [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]recv_with_timeout no data received [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]recv_with_timeout no data received [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:43]recv_with_timeout no data received [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:54]recv_with_timeout no data received [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:12]recv_with_timeout no data received [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]recv_with_timeout no data received [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:03]recv_with_timeout no data received [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:21]recv_with_timeout no data received [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:24]recv_with_timeout no data received [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:35]recv_with_timeout no data received [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:11]OFD Sender: No OFD packet to send [08:19:16]OFD Sender: No OFD packet to send [08:19:21]OFD Sender: No OFD packet to send [08:19:26]OFD Sender: No OFD packet to send [08:19:31]OFD Sender: No OFD packet to send [08:19:36]OFD Sender: No OFD packet to send [08:19:41]OFD Sender: No OFD packet to send [08:19:46]OFD Sender: No OFD packet to send [08:19:51]OFD Sender: No OFD packet to send [08:19:56]OFD Sender: No OFD packet to send [08:20:00]accept exits with 9 [08:20:00]New connection [08:20:00]New thread 3067448676 created [08:20:00]Thread 3067592036 joined [08:20:00]Waiting for new connection... [08:20:00] Sock 9.Parse request [08:20:00]Sock 9.Check first char [08:20:00]Sock 9.First char is OK [08:20:00]request: POST /json_proto HTTP/1.0 [08:20:00]Method: POST [08:20:00]URL: /json_proto [08:20:00]Method is POST - this is cgi request [08:20:00]url: /json_proto [08:20:00]query_string will be loaded in cgi processing [08:20:00]execute_cgi json_proto POST (null) [08:20:00]execute_cgi path=json_proto method=POST [08:20:00]POST find Content-Length [08:20:00]Host: 172.17.43.195:8080 [08:20:00]Content-Length: 658 [08:20:00]Content-Type: application/json [08:20:00] [08:20:00]POST finish read [08:20:00]Found Content-Length = 658 [08:20:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 9.070, "sum" : 620.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:00]execute_script... [08:20: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)951951", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 9.070, "sum" : 620.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 620.00, "total" : 620.00, "payments": [ { "type": 0, "sum" : 620.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:00]POST & json_proto [08:20:00]process_json_proto [08:20:00]json parsed OK: [08:20:00]protocol is kg_v1.0 [08:20:00]action value=close_receipt [08:20:00]process_action close_receipt [08:20:00]cmd_close_receipt [08:20:00]MH_GetDate [08:20:00]Write to MH i2c: F0 00 00 99 05 8D [08:20:00]Write i2c OK [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 09 00 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: F0 09 00 99 05 00 31 49 1F 67 74 2C AD 66 49 [08:20:00]GetLastDocTimeStamp 1730102771 [08:20:00]current date 1730103601 [08:20:00]FM_GetShiftState [08:20:00]SAM_PROTO_GetShiftState [08:20:00]wFMCommunicate request_size=4 [08:20:00]MH_SAM_APDU [08:20:00]CAPDU: 80 13 01 00 [08:20:00]Write to MH i2c: E2 08 00 9A 05 80 13 01 00 00 00 00 00 1C [08:20:00]Write i2c OK [08:20:00]MH_I2C_Read... [08:20:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:00]Read from MH i2c: E2 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: E2 0E 00 [08:20:00]MH_I2C_Read... [08:20:00]Read from MH i2c: E2 0E 00 9A 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 84 [08:20:00]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:20:00]wFMCommunicate OK [08:20:00]SAM_PROTO_GetShiftState done [08:20:00]FM_GetShiftState done [08:20:00]opened in 1730074113 [08:20:00]opened+sec_in_day 1730160513 [08:20:00]quantity*price = 62038 [08:20:00]sum+1 = 62040 [08:20:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 620.00 Внесено: 620.00 СДАЧА: 0.00 НСП 1% : 5.49 НДС 12% : 65.88 Наличными: 620.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 33 28.10.2024 08:20 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72505 ФПД: 103084617918639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082001&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72505&fm=103084617918639&tin=02508201610067®Number=0000000000091644&sum=62000 [08:20:01]StoreToDocumentArchive [08:20:01]shift 554 fd 72505 [08:20:01]save to /storage/0554/doc_00072505 [08:20:01]save last doc name /storage/0554/doc_00072505 to /storage/kkm_last_doc_name [08:20:01]save OK [08:20:01]Clear old archive folders... [08:20:01]ProcessDocumentItem done err = 0, tmpTLVsize=244 [08:20:01]tlvbuf is 00DC05D0 [08:20:01]SAM_PROTO_ClearQueue [08:20:01]wFMCommunicate request_size=4 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 09 00 00 [08:20:01]Write to MH i2c: E2 08 00 A7 05 80 09 00 00 00 00 00 00 1E [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:01]Read from MH i2c: E2 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 A7 05 00 90 00 20 [08:20:01]RAPDU: 90 00 [08:20:01]wFMCommunicate OK [08:20:01]SAM_PROTO_ClearQueue done [08:20:01]KKMCreateOFDPacket [08:20:01]OFDProtocolAddRootSTLVToBuf [08:20:01]FM_MakeSignedData [08:20:01]FM_MakeSignedData [08:20:01]SAM_PROTO_SignData [08:20:01]wFMCommunicate request_size=4 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 0D 01 02 [08:20:01]Write to MH i2c: E2 08 00 A8 05 80 0D 01 02 00 00 00 00 26 [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:01]Read from MH i2c: E2 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 A8 05 00 90 00 21 [08:20:01]RAPDU: 90 00 [08:20:01]wFMCommunicate OK [08:20:01]wFMCommunicate request_size=253 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 57 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 31 49 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1B 01 00 35 04 06 00 5D C1 42 08 68 AF [08:20:01]Write to MH i2c: E2 00 01 A9 05 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 57 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 31 49 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1B 01 00 35 04 06 00 5D C1 42 08 68 AF 00 00 A6 [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:01]Read from MH i2c: E2 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 03 00 A9 05 00 90 00 22 [08:20:01]RAPDU: 90 00 [08:20:01]wFMCommunicate OK [08:20:01]wFMCommunicate request_size=4 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 0D 03 02 [08:20:01]Write to MH i2c: E2 08 00 AA 05 80 0D 03 02 00 00 00 00 2A [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:01]Read from MH i2c: E2 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 0B 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 0B 00 AA 05 00 48 5E 05 B3 85 04 1D 4B 90 00 7A [08:20:01]RAPDU: 48 5E 05 B3 85 04 1D 4B 90 00 [08:20:01]wFMCommunicate OK [08:20:01]SAM_PROTO_SignData done [08:20:01]FM_MakeSignedData done [08:20:01]CreateOFDProtocolMessage [08:20:01]wFMCommunicate request_size=4 [08:20:01]MH_SAM_APDU [08:20:01]CAPDU: 80 11 00 00 [08:20:01]Write to MH i2c: E2 08 00 AB 05 80 11 00 00 00 00 00 00 2A [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:01]Read from MH i2c: E2 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 17 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: E2 17 00 AB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7E [08:20:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:01]wFMCommunicate OK [08:20:01]CreateOFDProtocolMessage done [08:20:01]OFDSenderStorePacket 72505 [08:20:01]StoreOFDPacket docnum=72505 [08:20:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 1E 00 01 8B 81 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 57 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 31 49 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1B 01 00 35 04 06 00 5D C1 42 08 68 AF 48 5E 05 B3 85 04 1D 4B [08:20:01]CheckFolder [08:20:01]dirname=/storage/ofd_packets [08:20:01]CheckFolder done [08:20:01]ProducePacketName [08:20:01]name=ofd_packets/00072505 [08:20:01]NVStorageSaveData ofd_packets/00072505 [08:20:01]File name is /storage/ofd_packets/00072505 [08:20:01]Write 294 bytes [08:20:01]NVStorageSaveData done [08:20:01]OFDSenderStorePacket done [08:20:01]KKMCreateOFDPacket done [08:20:01]NVStorageSaveData kkm_last_timestamp [08:20:01]File name is /storage/kkm_last_timestamp [08:20:01]Write 4 bytes [08:20:01]NVStorageSaveData done [08:20:01]ExternCall_PrintAddStr [08:20:01]wPrintStart [08:20:01]Write to MH i2c: 01 00 00 AC 05 B1 [08:20:01]Write i2c OK [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: 01 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: 01 07 00 [08:20:01]MH_I2C_Read... [08:20:01]Read from MH i2c: 01 07 00 AC 05 00 00 00 00 00 FF 0F C6 [08:20:01]RasterBufferAndPrint [08:20:01]line Счет N : (1)951951 [08:20:01]line ИНН: 02508201610067 [08:20:01]line Контрольно-Кассовый Чек [08:20:01]line ПРОДАЖА [08:20:01]line ТРК (МРК, ГНК) : 51 [08:20:01]line Товар: 50.50.0 [08:20:01]line Super 92 [08:20:01]line 9.070 * 68.40 [08:20:01]line = 620.39 [08:20:01]line НДС 12% НСП 1% [08:20:01]line > о реализуемом товаре [08:20:01]line ОКРУГЛЕНИЕ: -0.39 [08:20:01]line ИТОГО: 620.00 [08:20:01]line Внесено: 620.00 [08:20:01]line СДАЧА: 0.00 [08:20:01]line НСП 1% : 5.49 [08:20:01]line НДС 12% : 65.88 [08:20:01]line Наличными: 620.00 [08:20:01]line Безнал.: 0.00 [08:20:01]line Место: АЗС № 113 "Партнер Нефть" [08:20:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:20:01]line СНО: Общий режим [08:20:01]line Чек 33 28.10.2024 08:20 [08:20:01]line Смена: 554 ФФД: 1.0 [08:20:01]line ЗНМ: 0300000087 [08:20:01]line РНМ: 0000000000091644 [08:20:01]line Версия ККМ: 001 [08:20:01]line ФМ: 0000000000874662 [08:20:01]line ФД: 72505 [08:20:01]line ФПД: 103084617918639 [08:20:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082001&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72505&fm=103084617918639&tin=02508201610067®Number=0000000000091644&sum=62000 [08:20:02]OFD Sender: Processing packet 72505 [packets to send 272, broken 271] [08:20:02]ProducePacketName [08:20:02]name=ofd_packets/00072505 [08:20:02]OFD Sender: To server: pG, [08:20:02]CommunicateWithHost lk.salyk.kg:30040 [08:20:02]ConnectInit lk.salyk.kg [08:20:02]written 0, free lines is 4095 [08:20:02]Write to MH i2c: 01 00 00 D7 05 DC [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 07 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: 01 07 00 D7 05 00 00 00 00 00 E2 0C D1 [08:20:02]RasterBufferAndPrint [08:20:02]line [08:20:02]line [08:20:02]line [08:20:02]line [08:20:02]line [08:20:02]written 0, free lines is 3303 [08:20:02]MH_Cut [08:20:02]Write to MH i2c: D1 01 00 DE 05 01 B5 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: D1 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: D1 01 00 [08:20:02]MH_I2C_Read... [08:20:02]Read from MH i2c: D1 01 00 DE 05 00 B4 [08:20:02]Write to MH i2c: 01 00 00 DF 05 E4 [08:20:02]Write i2c OK [08:20:02]MH_I2C_Read... [08:20:03]*** Cut start [08:20:03]*** Partial cut [08:20:03]*** CUTSNS_PIN = 1 [08:20:03]*** CUTSNS_PIN = 0 [08:20:03]*** Brake cut motor [08:20:03]Read from MH i2c: 01 [08:20:03]MH_I2C_Read... [08:20:03]*** Stop cut motor [08:20:03]*** Cut end [08:20:03]Read from MH i2c: 01 07 00 [08:20:03]MH_I2C_Read... [08:20:03]Read from MH i2c: 01 07 00 DF 05 00 00 00 00 00 FF 0F F9 [08:20:03]process_action close_receipt done [08:20:03]requested_data is exist [08:20:03]produce_requested_data [08:20:03]requested_item fm.sn is exist - process it [08:20:03]wFMCommunicate request_size=4 [08:20:03]MH_SAM_APDU [08:20:03]CAPDU: 80 11 00 00 [08:20:03]Write to MH i2c: E2 08 00 E0 05 80 11 00 00 00 00 00 00 5F [08:20:03]Write i2c OK [08:20:03]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 17 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 17 00 E0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [08:20:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:20:04]wFMCommunicate OK [08:20:04]requested_item fd.num is exist - process it [08:20:04]SAM_PROTO_GetFieldsCounters [08:20:04]wFMCommunicate request_size=4 [08:20:04]MH_SAM_APDU [08:20:04]CAPDU: 80 13 00 00 [08:20:04]Write to MH i2c: E2 08 00 E1 05 80 13 00 00 00 00 00 00 62 [08:20:04]Write i2c OK [08:20:04]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 62 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 62 00 E1 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 39 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [08:20: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 39 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:04]wFMCommunicate OK [08:20:04]SAM_PROTO_GetFieldsCounters done [08:20:04]requested_item shift.num is exist - process it [08:20:04]requested_item shift.opened is exist - process it [08:20:04]req_shift_opened [08:20:04]FM_GetShiftState [08:20:04]SAM_PROTO_GetShiftState [08:20:04]wFMCommunicate request_size=4 [08:20:04]MH_SAM_APDU [08:20:04]CAPDU: 80 13 01 00 [08:20:04]Write to MH i2c: E2 08 00 E2 05 80 13 01 00 00 00 00 00 64 [08:20:04]Write i2c OK [08:20:04]MH_I2C_Read... [08:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:04]Read from MH i2c: E2 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 0E 00 [08:20:04]MH_I2C_Read... [08:20:04]Read from MH i2c: E2 0E 00 E2 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 CC [08:20:04]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:20:04]wFMCommunicate OK [08:20:04]SAM_PROTO_GetShiftState done [08:20:04]FM_GetShiftState done [08:20:04]req_shift_opened done [08:20:04]requested_item shift.open_date is exist - process it [08:20:04]req_shift_open_date [08:20:04]req_shift_open_date done [08:20:04]produce_requested_data done [08:20:04]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72505,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [08:20:04]process_action_free close_receipt [08:20:04]json_value_free [08:20:04]json_value_free done [08:20:04]process_json_proto returns [08:20:04]Send response to host [08:20:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72505,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [08:20:04]free response buf [08:20:04]execute_script done [08:20:04]execute_script returns [08:20:04]free content buf [08:20:04]Sock 9.Close socket [08:20:04]Sock 9.Thread stoped [08:20:04]Connected sock=8 [08:20:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 1E 00 01 8B 81 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 57 F2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 F2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 25 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 19 00 00 00 00 07 04 06 00 30 F2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 31 49 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 39 1B 01 00 35 04 06 00 5D C1 42 08 68 AF 48 5E 05 B3 85 04 1D 4B [08:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 56 95 47 00 56 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 34 36 36 32 10 04 04 00 39 1B 01 00 F4 03 04 00 F2 F3 1E 67 B6 04 01 00 00 04 F9 FD 4A 89 6F 21 15 [08:20:06]CommunicateWithHost err = 0 [08:20:06]CheckOFDResponse [08:20:06]1017 (14) - 77093643461234 [08:20:06]1041 (16) - 0000000000874662 [08:20:06]1040 (4) - 72505 [08:20:06]1012 (4) - 28.10.2024 02:16 [08:20:06]1206 (1) - 0 [08:20:06]OFD Sender: Remove packet 72505 [08:20:06]ProducePacketName [08:20:06]name=ofd_packets/00072505 [08:20:06]NVStorageDeleteData [08:20:07]OFD Sender: No OFD packet to send [08:20:11]recv_with_timeout no data received [08:20:12]OFD Sender: No OFD packet to send [08:20:17]OFD Sender: No OFD packet to send [08:20:22]OFD Sender: No OFD packet to send [08:20:27]OFD Sender: No OFD packet to send [08:20:32]OFD Sender: No OFD packet to send [08:20:37]OFD Sender: No OFD packet to send [08:20:42]OFD Sender: No OFD packet to send [08:20:43]recv_with_timeout no data received [08:20:47]OFD Sender: No OFD packet to send [08:20:52]OFD Sender: No OFD packet to send [08:20:57]OFD Sender: No OFD packet to send [08:21:02]OFD Sender: No OFD packet to send [08:21:07]OFD Sender: No OFD packet to send [08:21:12]OFD Sender: No OFD packet to send [08:21:17]OFD Sender: No OFD packet to send [08:21:22]OFD Sender: No OFD packet to send [08:22:37]OFD Sender: No OFD packet to send [08:22:42]OFD Sender: No OFD packet to send [08:22:47]OFD Sender: No OFD packet to send [08:22:52]OFD Sender: No OFD packet to send [08:22:57]OFD Sender: No OFD packet to send [08:23:02]OFD Sender: No OFD packet to send [08:23:07]OFD Sender: No OFD packet to send [08:23:12]OFD Sender: No OFD packet to send [08:23:17]OFD Sender: No OFD packet to send [08:23:22]OFD Sender: No OFD packet to send [08:23:27]OFD Sender: No OFD packet to send [08:23:29]accept exits with 10 [08:23:29]New connection [08:23:29]New thread 3067592036 created [08:23:29]Thread 3067448676 joined [08:23:29]Waiting for new connection... [08:23:29] Sock 10.Parse request [08:23:29]Sock 10.Check first char [08:23:29]Sock 10.First char is OK [08:23:29]request: POST /json_proto HTTP/1.0 [08:23:29]Method: POST [08:23:29]URL: /json_proto [08:23:29]Method is POST - this is cgi request [08:23:29]url: /json_proto [08:23:29]query_string will be loaded in cgi processing [08:23:29]execute_cgi json_proto POST (null) [08:23:29]execute_cgi path=json_proto method=POST [08:23:29]POST find Content-Length [08:23:29]Host: 172.17.43.195:8080 [08:23:29]Content-Length: 792 [08:23:29]Content-Type: application/json [08:23:29] [08:23:29]POST finish read [08:23:29]Found Content-Length = 792 [08:23:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:29]execute_script... [08: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)951952", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:29]POST & json_proto [08:23:29]process_json_proto [08:23:29]json parsed OK: [08:23:29]protocol is kg_v1.0 [08:23:29]action value=close_receipt [08:23:29]process_action close_receipt [08:23:29]cmd_close_receipt [08:23:29]MH_GetDate [08:23:29]Write to MH i2c: F0 00 00 E3 05 D7 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: F0 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: F0 09 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: F0 09 00 E3 05 00 03 4A 1F 67 74 2C AD 66 66 [08:23:29]GetLastDocTimeStamp 1730103601 [08:23:29]current date 1730103811 [08:23:29]FM_GetShiftState [08:23:29]SAM_PROTO_GetShiftState [08:23:29]wFMCommunicate request_size=4 [08:23:29]MH_SAM_APDU [08:23:29]CAPDU: 80 13 01 00 [08:23:29]Write to MH i2c: E2 08 00 E4 05 80 13 01 00 00 00 00 00 66 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0E 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0E 00 E4 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 CE [08:23:29]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:23:29]wFMCommunicate OK [08:23:29]SAM_PROTO_GetShiftState done [08:23:29]FM_GetShiftState done [08:23:29]opened in 1730074113 [08:23:29]opened+sec_in_day 1730160513 [08:23:29]quantity*price = 0 [08:23:29]sum+1 = 1 [08:23:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 34 28.10.2024 08:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72506 ФПД: 20291737426711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082331&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72506&fm=20291737426711&tin=02508201610067®Number=0000000000091644&sum=0 [08:23:31]StoreToDocumentArchive [08:23:31]shift 554 fd 72506 [08:23:31]save to /storage/0554/doc_00072506 [08:23:31]save last doc name /storage/0554/doc_00072506 to /storage/kkm_last_doc_name [08:23:31]save OK [08:23:31]Clear old archive folders... [08:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:31]tlvbuf is 00D98CA0 [08:23:31]SAM_PROTO_ClearQueue [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 09 00 00 [08:23:31]Write to MH i2c: E2 08 00 F1 05 80 09 00 00 00 00 00 00 68 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 F1 05 00 90 00 6A [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_ClearQueue done [08:23:31]KKMCreateOFDPacket [08:23:31]OFDProtocolAddRootSTLVToBuf [08:23:31]FM_MakeSignedData [08:23:31]FM_MakeSignedData [08:23:31]SAM_PROTO_SignData [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 01 02 [08:23:31]Write to MH i2c: E2 08 00 F2 05 80 0D 01 02 00 00 00 00 70 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 F2 05 00 90 00 6B [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=255 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 03 4A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1B 01 00 35 04 06 00 12 [08:23:31]Write to MH i2c: E2 02 01 F3 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 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 00 00 00 F4 03 04 00 03 4A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1B 01 00 35 04 06 00 12 00 00 3A [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 F3 05 00 90 00 6C [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=10 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 02 02 05 74 89 CD 1B 17 [08:23:31]Write to MH i2c: E2 0D 00 F4 05 80 0D 02 02 05 00 74 89 CD 1B 17 00 00 79 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 03 00 F4 05 00 90 00 6D [08:23:31]RAPDU: 90 00 [08:23:31]wFMCommunicate OK [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 0D 03 02 [08:23:31]Write to MH i2c: E2 08 00 F5 05 80 0D 03 02 00 00 00 00 75 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0B 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0B 00 F5 05 00 6A D5 4A E4 17 16 0B 95 90 00 B0 [08:23:31]RAPDU: 6A D5 4A E4 17 16 0B 95 90 00 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_SignData done [08:23:31]FM_MakeSignedData done [08:23:31]CreateOFDProtocolMessage [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 11 00 00 [08:23:31]Write to MH i2c: E2 08 00 F6 05 80 11 00 00 00 00 00 00 75 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 F6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C9 [08:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:23:31]wFMCommunicate OK [08:23:31]CreateOFDProtocolMessage done [08:23:31]OFDSenderStorePacket 72506 [08:23:31]StoreOFDPacket docnum=72506 [08:23:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A 20 07 01 E7 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 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 00 00 00 F4 03 04 00 03 4A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1B 01 00 35 04 06 00 12 74 89 CD 1B 17 6A D5 4A E4 17 16 0B 95 [08:23:31]CheckFolder [08:23:31]dirname=/storage/ofd_packets [08:23:31]CheckFolder done [08:23:31]ProducePacketName [08:23:31]name=ofd_packets/00072506 [08:23:31]NVStorageSaveData ofd_packets/00072506 [08:23:31]File name is /storage/ofd_packets/00072506 [08:23:31]Write 301 bytes [08:23:31]NVStorageSaveData done [08:23:31]OFDSenderStorePacket done [08:23:31]KKMCreateOFDPacket done [08:23:31]NVStorageSaveData kkm_last_timestamp [08:23:31]File name is /storage/kkm_last_timestamp [08:23:31]Write 4 bytes [08:23:31]NVStorageSaveData done [08:23:31]ExternCall_PrintAddStr [08:23:31]wPrintStart [08:23:31]Write to MH i2c: 01 00 00 F7 05 FC [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 07 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 07 00 F7 05 00 00 00 00 00 FF 0F 11 [08:23:31]RasterBufferAndPrint [08:23:31]line Счет N : (1)951952 [08:23:31]line ИНН: 02508201610067 [08:23:31]line Контрольно-Кассовый Чек [08:23:31]line ПРОДАЖА [08:23:31]line ТРК (МРК, ГНК) : 63 [08:23:31]line Товар: 2710124130 [08:23:31]line Аи-92-К-5 [08:23:31]line 10.000 * 0.00 [08:23:31]line = 0.00 [08:23:31]line НДС 12% НСП 1% [08:23:31]line > о реализуемом товаре [08:23:31]line ИТОГО: 0.00 [08:23:31]line НСП 1% : 0.00 [08:23:31]line НДС 12% : 0.00 [08:23:31]line Наличными: 0.00 [08:23:31]line Безнал.: 0.00 [08:23:31]line Место: АЗС № 113 "Партнер Нефть" [08:23:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:23:31]line СНО: Общий режим [08:23:31]line Чек 34 28.10.2024 08:23 [08:23:31]line Смена: 554 ФФД: 1.0 [08:23:31]line ЗНМ: 0300000087 [08:23:31]line РНМ: 0000000000091644 [08:23:31]line Версия ККМ: 001 [08:23:31]line Талоны: Топливная Карта [08:23:31]line 03047 [08:23:31]line ФМ: 0000000000874662 [08:23:31]line ФД: 72506 [08:23:31]line ФПД: 20291737426711 [08:23:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082331&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72506&fm=20291737426711&tin=02508201610067®Number=0000000000091644&sum=0 [08:23:31]written 0, free lines is 4095 [08:23:31]OFD Sender: Processing packet 72506 [packets to send 272, broken 271] [08:23:31]ProducePacketName [08:23:31]name=ofd_packets/00072506 [08:23:31]OFD Sender: To server: pG, [08:23:31]CommunicateWithHost lk.salyk.kg:30040 [08:23:31]ConnectInit lk.salyk.kg [08:23:32]Write to MH i2c: 01 00 00 21 06 27 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: 01 07 00 21 06 00 00 00 00 00 DE 0C 18 [08:23:32]RasterBufferAndPrint [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]line [08:23:32]written 0, free lines is 3300 [08:23:32]MH_Cut [08:23:32]Write to MH i2c: D1 01 00 28 06 01 00 [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 01 00 [08:23:32]MH_I2C_Read... [08:23:32]Read from MH i2c: D1 01 00 28 06 00 FF [08:23:32]Write to MH i2c: 01 00 00 29 06 2F [08:23:32]Write i2c OK [08:23:32]MH_I2C_Read... [08:23:32]*** Cut start [08:23:32]*** Partial cut [08:23:32]*** CUTSNS_PIN = 1 [08:23:32]*** CUTSNS_PIN = 0 [08:23:32]Connected sock=11 [08:23:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A 20 07 01 E7 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 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 00 00 00 F4 03 04 00 03 4A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3A 1B 01 00 35 04 06 00 12 74 89 CD 1B 17 6A D5 4A E4 17 16 0B 95 [08:23:33]*** Brake cut motor [08:23:33]Read from MH i2c: 01 [08:23:33]MH_I2C_Read... [08:23:33]*** Stop cut motor [08:23:33]*** Cut end [08:23:33]Read from MH i2c: 01 07 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: 01 07 00 29 06 00 00 00 00 00 FF 0F 44 [08:23:33]process_action close_receipt done [08:23:33]requested_data is exist [08:23:33]produce_requested_data [08:23:33]requested_item fm.sn is exist - process it [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 11 00 00 [08:23:33]Write to MH i2c: E2 08 00 2A 06 80 11 00 00 00 00 00 00 AA [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0B 68 47 00 F0 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 34 36 36 32 10 04 04 00 3A 1B 01 00 F4 03 04 00 C3 F4 1E 67 B6 04 01 00 00 AD 73 46 CC 9F C4 0D C8 [08:23:33]CommunicateWithHost err = 0 [08:23:33]CheckOFDResponse [08:23:33]1017 (14) - 77093643461234 [08:23:33]1041 (16) - 0000000000874662 [08:23:33]1040 (4) - 72506 [08:23:33]1012 (4) - 28.10.2024 02:19 [08:23:33]1206 (1) - 0 [08:23:33]OFD Sender: Remove packet 72506 [08:23:33]ProducePacketName [08:23:33]name=ofd_packets/00072506 [08:23:33]NVStorageDeleteData [08:23:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 17 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 17 00 2A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [08:23:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:23:33]wFMCommunicate OK [08:23:33]requested_item fd.num is exist - process it [08:23:33]SAM_PROTO_GetFieldsCounters [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 00 00 [08:23:33]Write to MH i2c: E2 08 00 2B 06 80 13 00 00 00 00 00 00 AD [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 62 00 2B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetFieldsCounters done [08:23:33]requested_item shift.num is exist - process it [08:23:33]requested_item shift.opened is exist - process it [08:23:33]req_shift_opened [08:23:33]FM_GetShiftState [08:23:33]SAM_PROTO_GetShiftState [08:23:33]wFMCommunicate request_size=4 [08:23:33]MH_SAM_APDU [08:23:33]CAPDU: 80 13 01 00 [08:23:33]Write to MH i2c: E2 08 00 2C 06 80 13 01 00 00 00 00 00 AF [08:23:33]Write i2c OK [08:23:33]MH_I2C_Read... [08:23:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:33]Read from MH i2c: E2 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 [08:23:33]MH_I2C_Read... [08:23:33]Read from MH i2c: E2 0E 00 2C 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 17 [08:23:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:23:33]wFMCommunicate OK [08:23:33]SAM_PROTO_GetShiftState done [08:23:33]FM_GetShiftState done [08:23:33]req_shift_opened done [08:23:33]requested_item shift.open_date is exist - process it [08:23:33]req_shift_open_date [08:23:33]req_shift_open_date done [08:23:33]produce_requested_data done [08:23:33]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72506,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [08:23:33]process_action_free close_receipt [08:23:33]json_value_free [08:23:33]json_value_free done [08:23:33]process_json_proto returns [08:23:33]Send response to host [08:23:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72506,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [08:23:33]free response buf [08:23:33]execute_script done [08:23:33]execute_script returns [08:23:33]free content buf [08:23:33]Sock 10.Close socket [08:23:33]Sock 10.Thread stoped [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:48]ConnectInit Can't connect to host [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:58]recv_with_timeout no data received [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:14]OFD Sender: No OFD packet to send [08:25:17]recv_with_timeout no data received [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:34]OFD Sender: No OFD packet to send [08:26:39]OFD Sender: No OFD packet to send [08:26:44]OFD Sender: No OFD packet to send [08:26:49]OFD Sender: No OFD packet to send [08:26:54]OFD Sender: No OFD packet to send [08:26:59]OFD Sender: No OFD packet to send [08:27:04]OFD Sender: No OFD packet to send [08:27:09]OFD Sender: No OFD packet to send [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:18]recv_with_timeout no data received [08:28:19]OFD Sender: No OFD packet to send [08:28:20]accept exits with 9 [08:28:20]New connection [08:28:20]New thread 3067448676 created [08:28:20]Thread 3067592036 joined [08:28:20]Waiting for new connection... [08:28:20] Sock 9.Parse request [08:28:20]Sock 9.Check first char [08:28:20]Sock 9.First char is OK [08:28:20]request: POST /json_proto HTTP/1.0 [08:28:20]Method: POST [08:28:20]URL: /json_proto [08:28:20]Method is POST - this is cgi request [08:28:20]url: /json_proto [08:28:20]query_string will be loaded in cgi processing [08:28:20]execute_cgi json_proto POST (null) [08:28:20]execute_cgi path=json_proto method=POST [08:28:20]POST find Content-Length [08:28:20]Host: 172.17.43.195:8080 [08:28:20]Content-Length: 792 [08:28:20]Content-Type: application/json [08:28:20] [08:28:20]POST finish read [08:28:20]Found Content-Length = 792 [08:28:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:20]execute_script... [08:28:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951953", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:28:20]POST & json_proto [08:28:20]process_json_proto [08:28:20]json parsed OK: [08:28:20]protocol is kg_v1.0 [08:28:20]action value=close_receipt [08:28:20]process_action close_receipt [08:28:20]cmd_close_receipt [08:28:20]MH_GetDate [08:28:20]Write to MH i2c: F0 00 00 2D 06 22 [08:28:20]Write i2c OK [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: F0 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: F0 09 00 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: F0 09 00 2D 06 00 26 4B 1F 67 74 2C AD 66 D5 [08:28:20]GetLastDocTimeStamp 1730103811 [08:28:20]current date 1730104102 [08:28:20]FM_GetShiftState [08:28:20]SAM_PROTO_GetShiftState [08:28:20]wFMCommunicate request_size=4 [08:28:20]MH_SAM_APDU [08:28:20]CAPDU: 80 13 01 00 [08:28:20]Write to MH i2c: E2 08 00 2E 06 80 13 01 00 00 00 00 00 B1 [08:28:20]Write i2c OK [08:28:20]MH_I2C_Read... [08:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:20]Read from MH i2c: E2 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 0E 00 [08:28:20]MH_I2C_Read... [08:28:20]Read from MH i2c: E2 0E 00 2E 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 19 [08:28:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:28:20]wFMCommunicate OK [08:28:20]SAM_PROTO_GetShiftState done [08:28:20]FM_GetShiftState done [08:28:20]opened in 1730074113 [08:28:20]opened+sec_in_day 1730160513 [08:28:20]quantity*price = 0 [08:28:20]sum+1 = 1 [08:28:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 35 28.10.2024 08:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72507 ФПД: 146893875139068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72507&fm=146893875139068&tin=02508201610067®Number=0000000000091644&sum=0 [08:28:22]StoreToDocumentArchive [08:28:22]shift 554 fd 72507 [08:28:22]save to /storage/0554/doc_00072507 [08:28:22]save last doc name /storage/0554/doc_00072507 to /storage/kkm_last_doc_name [08:28:22]save OK [08:28:22]Clear old archive folders... [08:28:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:28:22]tlvbuf is 00D9DE80 [08:28:22]SAM_PROTO_ClearQueue [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 09 00 00 [08:28:22]Write to MH i2c: E2 08 00 3B 06 80 09 00 00 00 00 00 00 B3 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 3B 06 00 90 00 B5 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]SAM_PROTO_ClearQueue done [08:28:22]KKMCreateOFDPacket [08:28:22]OFDProtocolAddRootSTLVToBuf [08:28:22]FM_MakeSignedData [08:28:22]FM_MakeSignedData [08:28:22]SAM_PROTO_SignData [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 0D 01 02 [08:28:22]Write to MH i2c: E2 08 00 3C 06 80 0D 01 02 00 00 00 00 BB [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 3C 06 00 90 00 B6 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]wFMCommunicate request_size=255 [08:28:22]MH_SAM_APDU [08:28: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 26 4B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1B 01 00 35 04 06 00 85 [08:28:22]Write to MH i2c: E2 02 01 3D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 26 4B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1B 01 00 35 04 06 00 85 00 00 55 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 3D 06 00 90 00 B7 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]wFMCommunicate request_size=10 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 0D 02 02 05 99 65 3F 51 FC [08:28:22]Write to MH i2c: E2 0D 00 3E 06 80 0D 02 02 05 00 99 65 3F 51 FC 00 00 52 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 03 00 3E 06 00 90 00 B8 [08:28:22]RAPDU: 90 00 [08:28:22]wFMCommunicate OK [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 0D 03 02 [08:28:22]Write to MH i2c: E2 08 00 3F 06 80 0D 03 02 00 00 00 00 C0 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 0B 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 0B 00 3F 06 00 9E F7 3C BA A1 CB 94 F2 90 00 3E [08:28:22]RAPDU: 9E F7 3C BA A1 CB 94 F2 90 00 [08:28:22]wFMCommunicate OK [08:28:22]SAM_PROTO_SignData done [08:28:22]FM_MakeSignedData done [08:28:22]CreateOFDProtocolMessage [08:28:22]wFMCommunicate request_size=4 [08:28:22]MH_SAM_APDU [08:28:22]CAPDU: 80 11 00 00 [08:28:22]Write to MH i2c: E2 08 00 40 06 80 11 00 00 00 00 00 00 C0 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:22]Read from MH i2c: E2 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 17 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: E2 17 00 40 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 14 [08:28:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:28:22]wFMCommunicate OK [08:28:22]CreateOFDProtocolMessage done [08:28:22]OFDSenderStorePacket 72507 [08:28:22]StoreOFDPacket docnum=72507 [08:28:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4A 58 07 01 AE 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 26 4B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1B 01 00 35 04 06 00 85 99 65 3F 51 FC 9E F7 3C BA A1 CB 94 F2 [08:28:22]CheckFolder [08:28:22]dirname=/storage/ofd_packets [08:28:22]CheckFolder done [08:28:22]ProducePacketName [08:28:22]name=ofd_packets/00072507 [08:28:22]NVStorageSaveData ofd_packets/00072507 [08:28:22]File name is /storage/ofd_packets/00072507 [08:28:22]Write 301 bytes [08:28:22]NVStorageSaveData done [08:28:22]OFDSenderStorePacket done [08:28:22]KKMCreateOFDPacket done [08:28:22]NVStorageSaveData kkm_last_timestamp [08:28:22]File name is /storage/kkm_last_timestamp [08:28:22]Write 4 bytes [08:28:22]NVStorageSaveData done [08:28:22]ExternCall_PrintAddStr [08:28:22]wPrintStart [08:28:22]Write to MH i2c: 01 00 00 41 06 47 [08:28:22]Write i2c OK [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: 01 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: 01 07 00 [08:28:22]MH_I2C_Read... [08:28:22]Read from MH i2c: 01 07 00 41 06 00 00 00 00 00 FF 0F 5C [08:28:22]RasterBufferAndPrint [08:28:22]line Счет N : (1)951953 [08:28:22]line ИНН: 02508201610067 [08:28:22]line Контрольно-Кассовый Чек [08:28:22]line ПРОДАЖА [08:28:22]line ТРК (МРК, ГНК) : 63 [08:28:22]line Товар: 2710124130 [08:28:22]line Аи-92-К-5 [08:28:22]line 20.000 * 0.00 [08:28:22]line = 0.00 [08:28:22]line НДС 12% НСП 1% [08:28:22]line > о реализуемом товаре [08:28:22]line ИТОГО: 0.00 [08:28:22]line НСП 1% : 0.00 [08:28:22]line НДС 12% : 0.00 [08:28:22]line Наличными: 0.00 [08:28:22]line Безнал.: 0.00 [08:28:22]line Место: АЗС № 113 "Партнер Нефть" [08:28:22]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [08:28:22]line СНО: Общий режим [08:28:22]line Чек 35 28.10.2024 08:28 [08:28:22]line Смена: 554 ФФД: 1.0 [08:28:22]line ЗНМ: 0300000087 [08:28:22]line РНМ: 0000000000091644 [08:28:22]line Версия ККМ: 001 [08:28:22]line Талоны: Топливная Карта [08:28:22]line 02648 [08:28:22]line ФМ: 0000000000874662 [08:28:22]line ФД: 72507 [08:28:22]line ФПД: 146893875139068 [08:28:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T082822&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72507&fm=146893875139068&tin=02508201610067®Number=0000000000091644&sum=0 [08:28:22]written 0, free lines is 4095 [08:28:22]OFD Sender: Processing packet 72507 [packets to send 272, broken 271] [08:28:22]ProducePacketName [08:28:22]name=ofd_packets/00072507 [08:28:22]OFD Sender: To server: pG, [08:28:22]CommunicateWithHost lk.salyk.kg:30040 [08:28:22]ConnectInit lk.salyk.kg [08:28:23]Write to MH i2c: 01 00 00 6B 06 71 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 07 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: 01 07 00 6B 06 00 00 00 00 00 E1 0C 65 [08:28:23]RasterBufferAndPrint [08:28:23]line [08:28:23]line [08:28:23]line [08:28:23]line [08:28:23]line [08:28:23]written 0, free lines is 3303 [08:28:23]MH_Cut [08:28:23]Write to MH i2c: D1 01 00 72 06 01 4A [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: D1 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: D1 01 00 [08:28:23]MH_I2C_Read... [08:28:23]Read from MH i2c: D1 01 00 72 06 00 49 [08:28:23]Write to MH i2c: 01 00 00 73 06 79 [08:28:23]Write i2c OK [08:28:23]MH_I2C_Read... [08:28:23]Connected sock=10 [08:28:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4A 58 07 01 AE 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 26 4B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3B 1B 01 00 35 04 06 *** Cut start [08:28:23]00 85 99 65 3F 51 FC 9E F7 3C BA A1 CB *** Partial cut [08:28:23]94 F2 [08:28:23]*** CUTSNS_PIN = 1 [08:28:23]*** CUTSNS_PIN = 0 [08:28:24]*** Brake cut motor [08:28:24]Read from MH i2c: 01 [08:28:24]MH_I2C_Read... [08:28:24]*** Stop cut motor [08:28:24]*** Cut end [08:28:24]Read from MH i2c: 01 07 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: 01 07 00 73 06 00 00 00 00 00 FF 0F 8E [08:28:24]process_action close_receipt done [08:28:24]requested_data is exist [08:28:24]produce_requested_data [08:28:24]requested_item fm.sn is exist - process it [08:28:24]wFMCommunicate request_size=4 [08:28:24]MH_SAM_APDU [08:28:24]CAPDU: 80 11 00 00 [08:28:24]Write to MH i2c: E2 08 00 74 06 80 11 00 00 00 00 00 00 F4 [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:28:24]Read from MH i2c: E2 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 17 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 17 00 74 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [08:28:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [08:28:24]wFMCommunicate OK [08:28:24]requested_item fd.num is exist - process it [08:28:24]SAM_PROTO_GetFieldsCounters [08:28:24]wFMCommunicate request_size=4 [08:28:24]MH_SAM_APDU [08:28:24]CAPDU: 80 13 00 00 [08:28:24]Write to MH i2c: E2 08 00 75 06 80 13 00 00 00 00 00 00 F7 [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:28:24]Read from MH i2c: E2 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 62 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 62 00 75 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [08:28: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:28:24]wFMCommunicate OK [08:28:24]SAM_PROTO_GetFieldsCounters done [08:28:24]requested_item shift.num is exist - process it [08:28:24]requested_item shift.opened is exist - process it [08:28:24]req_shift_opened [08:28:24]FM_GetShiftState [08:28:24]SAM_PROTO_GetShiftState [08:28:24]wFMCommunicate request_size=4 [08:28:24]MH_SAM_APDU [08:28:24]CAPDU: 80 13 01 00 [08:28:24]Write to MH i2c: E2 08 00 76 06 80 13 01 00 00 00 00 00 F9 [08:28:24]Write i2c OK [08:28:24]MH_I2C_Read... [08:28:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:28:24]Read from MH i2c: E2 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 0E 00 [08:28:24]MH_I2C_Read... [08:28:24]Read from MH i2c: E2 0E 00 76 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 61 [08:28:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [08:28:24]wFMCommunicate OK [08:28:24]SAM_PROTO_GetShiftState done [08:28:24]FM_GetShiftState done [08:28:24]req_shift_opened done [08:28:24]requested_item shift.open_date is exist - process it [08:28:24]req_shift_open_date [08:28:24]req_shift_open_date done [08:28:24]produce_requested_data done [08:28:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72507,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [08:28:24]process_action_free close_receipt [08:28:24]json_value_free [08:28:24]json_value_free done [08:28:24]process_json_proto returns [08:28:24]Send response to host [08:28:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72507,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [08:28:24]free response buf [08:28:24]execute_script done [08:28:24]execute_script returns [08:28:24]free content buf [08:28:24]Sock 9.Close socket [08:28:24]Sock 9.Thread stoped [08:28:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 82 55 47 00 A3 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 34 36 36 32 10 04 04 00 3B 1B 01 00 F4 03 04 00 E6 F5 1E 67 B6 04 01 00 00 06 01 20 4C 6E 7B 80 DC [08:28:26]CommunicateWithHost err = 0 [08:28:26]CheckOFDResponse [08:28:26]1017 (14) - 77093643461234 [08:28:26]1041 (16) - 0000000000874662 [08:28:26]1040 (4) - 72507 [08:28:26]1012 (4) - 28.10.2024 02:24 [08:28:26]1206 (1) - 0 [08:28:26]OFD Sender: Remove packet 72507 [08:28:26]ProducePacketName [08:28:26]name=ofd_packets/00072507 [08:28:26]NVStorageDeleteData [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:39]recv_with_timeout no data received [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:23]recv_with_timeout no data received [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:44]recv_with_timeout no data received [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:17]recv_with_timeout no data received [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:42]OFD Sender: No OFD packet to send [08:31:47]OFD Sender: No OFD packet to send [08:31:52]OFD Sender: No OFD packet to send [08:31:57]OFD Sender: No OFD packet to send [08:32:02]OFD Sender: No OFD packet to send [08:32:07]OFD Sender: No OFD packet to send [08:32:10]recv_with_timeout no data received [08:32:12]OFD Sender: No OFD packet to send [08:32:17]OFD Sender: No OFD packet to send [08:32:22]OFD Sender: No OFD packet to send [08:32:27]OFD Sender: No OFD packet to send [08:32:32]OFD Sender: No OFD packet to send [08:32:37]OFD Sender: No OFD packet to send [08:32:42]OFD Sender: No OFD packet to send [08:32:47]OFD Sender: No OFD packet to send [08:32:52]OFD Sender: No OFD packet to send [08:32:52]recv_with_timeout no data received [08:32:57]OFD Sender: No OFD packet to send [08:33:02]OFD Sender: No OFD packet to send [08:33:07]OFD Sender: No OFD packet to send [08:33:12]OFD Sender: No OFD packet to send [08:33:17]OFD Sender: No OFD packet to send [08:33:22]OFD Sender: No OFD packet to send [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:10]recv_with_timeout no data received [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:31]recv_with_timeout no data received [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:17]OFD Sender: No OFD packet to send [08:35:22]OFD Sender: No OFD packet to send [08:35:27]OFD Sender: No OFD packet to send [08:35:32]OFD Sender: No OFD packet to send [08:35:37]OFD Sender: No OFD packet to send [08:35:42]OFD Sender: No OFD packet to send [08:35:47]OFD Sender: No OFD packet to send [08:35:52]OFD Sender: No OFD packet to send [08:35:57]OFD Sender: No OFD packet to send [08:36:02]OFD Sender: No OFD packet to send [08:36:07]OFD Sender: No OFD packet to send [08:36:12]OFD Sender: No OFD packet to send [08:36:17]OFD Sender: No OFD packet to send [08:36:22]OFD Sender: No OFD packet to send [08:36:27]OFD Sender: No OFD packet to send [08:36:30]recv_with_timeout no data received [08:36:32]OFD Sender: No OFD packet to send [08:36:37]OFD Sender: No OFD packet to send [08:36:42]OFD Sender: No OFD packet to send [08:36:47]OFD Sender: No OFD packet to send [08:36:52]OFD Sender: No OFD packet to send [08:36:57]OFD Sender: No OFD packet to send [08:37:02]OFD Sender: No OFD packet to send [08:37:07]OFD Sender: No OFD packet to send [08:37:12]OFD Sender: No OFD packet to send [08:37:17]OFD Sender: No OFD packet to send [08:37:22]OFD Sender: No OFD packet to send [08:37:26]recv_with_timeout no data received [08:37:27]OFD Sender: No OFD packet to send [08:37:32]OFD Sender: No OFD packet to send [08:37:37]OFD Sender: No OFD packet to send [08:37:42]OFD Sender: No OFD packet to send [08:37:47]OFD Sender: No OFD packet to send [08:37:52]OFD Sender: No OFD packet to send [08:37:57]OFD Sender: No OFD packet to send [08:38:02]OFD Sender: No OFD packet to send [08:38:07]OFD Sender: No OFD packet to send [08:38:10]recv_with_timeout no data received [08:38:12]OFD Sender: No OFD packet to send [08:38:17]OFD Sender: No OFD packet to send [08:38:22]OFD Sender: No OFD packet to send [08:38:27]OFD Sender: No OFD packet to send [08:38:32]OFD Sender: No OFD packet to send [08:38:37]OFD Sender: No OFD packet to send [08:38:42]OFD Sender: No OFD packet to send [08:38:47]OFD Sender: No OFD packet to send [08:38:51]recv_with_timeout no data received [08:38:52]OFD Sender: No OFD packet to send [08:38:57]OFD Sender: No OFD packet to send [08:39:02]OFD Sender: No OFD packet to send [08:39:07]OFD Sender: No OFD packet to send [08:39:12]OFD Sender: No OFD packet to send [08:39:17]OFD Sender: No OFD packet to send [08:39:22]OFD Sender: No OFD packet to send [08:39:27]OFD Sender: No OFD packet to send [08:39:32]OFD Sender: No OFD packet to send [08:39:37]OFD Sender: No OFD packet to send [08:39:42]OFD Sender: No OFD packet to send [08:39:43]recv_with_timeout no data received [08:39:47]OFD Sender: No OFD packet to send [08:39:52]OFD Sender: No OFD packet to send [08:39:57]OFD Sender: No OFD packet to send [08:40:02]OFD Sender: No OFD packet to send [08:40:07]OFD Sender: No OFD packet to send [08:40:12]OFD Sender: No OFD packet to send [08:40:17]OFD Sender: No OFD packet to send [08:40:21]recv_with_timeout no data received [08:40:22]OFD Sender: No OFD packet to send [08:40:27]OFD Sender: No OFD packet to send [08:40:32]OFD Sender: No OFD packet to send [08:40:37]OFD Sender: No OFD packet to send [08:40:42]OFD Sender: No OFD packet to send [09:07:32]ConnectInit Can't connect to host [09:07:32]OFD Sender: Processing packet 72508 [packets to send 273, broken 271] [09:07:32]ProducePacketName [09:07:32]name=ofd_packets/00072508 [09:07:32]OFD Sender: To server: pG, [09:07:32]CommunicateWithHost lk.salyk.kg:30040 [09:07:32]ConnectInit lk.salyk.kg [09:07:37]ConnectInit Can't take IP for lk.salyk.kg [09:07:37]CommunicateWithHost connect error [09:07:37]CommunicateWithHost err = -1 [09:07:37]OFD Sender: Server communicate error [09:07:42]OFD Sender: Processing packet 72508 [packets to send 273, broken 271] [09:07:42]ProducePacketName [09:07:42]name=ofd_packets/00072508 [09:07:42]OFD Sender: To server: pG, [09:07:42]CommunicateWithHost lk.salyk.kg:30040 [09:07:42]ConnectInit lk.salyk.kg [09:07:46]Connected sock=9 [09:07:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 9E 07 01 F2 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 24 00 00 00 F4 03 04 00 85 4F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3C 1B 01 00 35 04 06 00 D3 75 33 00 6E A6 A6 97 78 28 EA 5E 3D 46 [09:07:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7D B4 47 00 18 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 34 36 36 32 10 04 04 00 3C 1B 01 00 F4 03 04 00 21 FF 1E 67 B6 04 01 00 00 A7 CF EA 14 78 B3 33 36 [09:07:47]CommunicateWithHost err = 0 [09:07:47]CheckOFDResponse [09:07:47]1017 (14) - 77093643461234 [09:07:47]1041 (16) - 0000000000874662 [09:07:47]1040 (4) - 72508 [09:07:47]1012 (4) - 28.10.2024 03:04 [09:07:47]1206 (1) - 0 [09:07:47]OFD Sender: Remove packet 72508 [09:07:47]ProducePacketName [09:07:47]name=ofd_packets/00072508 [09:07:47]NVStorageDeleteData [09:07:48]OFD Sender: Processing packet 72509 [packets to send 272, broken 271] [09:07:48]ProducePacketName [09:07:48]name=ofd_packets/00072509 [09:07:48]OFD Sender: To server: pG, [09:07:48]CommunicateWithHost lk.salyk.kg:30040 [09:07:48]ConnectInit lk.salyk.kg [09:07:51]Connected sock=9 [09:07:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 21 00 07 01 F0 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 25 00 00 00 F4 03 04 00 38 50 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3D 1B 01 00 35 04 06 00 A3 57 DA 80 16 E3 C4 CF F7 4D AB 37 05 DA [09:07:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8D 3C 47 00 0F 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 34 36 36 32 10 04 04 00 3D 1B 01 00 F4 03 04 00 26 FF 1E 67 B6 04 01 00 00 2C 3A C4 5A ED 8D C2 E2 [09:07:52]CommunicateWithHost err = 0 [09:07:52]CheckOFDResponse [09:07:52]1017 (14) - 77093643461234 [09:07:52]1041 (16) - 0000000000874662 [09:07:52]1040 (4) - 72509 [09:07:52]1012 (4) - 28.10.2024 03:04 [09:07:52]1206 (1) - 0 [09:07:52]OFD Sender: Remove packet 72509 [09:07:52]ProducePacketName [09:07:52]name=ofd_packets/00072509 [09:07:52]NVStorageDeleteData [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]recv_with_timeout no data received [09:08:12]OFD Sender: No OFD packet to send [09:08:17]OFD Sender: No OFD packet to send [09:08:22]OFD Sender: No OFD packet to send [09:08:27]OFD Sender: No OFD packet to send [09:08:32]OFD Sender: No OFD packet to send [09:08:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [09:09:17]OFD Sender: No OFD packet to send [09:09:22]OFD Sender: No OFD packet to send [09:09:27]OFD Sender: No OFD packet to send [09:09:32]OFD Sender: No OFD packet to send [09:09:37]OFD Sender: No OFD packet to send [09:09:42]OFD Sender: No OFD packet to send [09:09:47]OFD Sender: No OFD packet to send [09:09:52]OFD Sender: No OFD packet to send [09:09:57]OFD Sender: No OFD packet to send [09:10:02]OFD Sender: No OFD packet to send [09:10:07]OFD Sender: No OFD packet to send [09:10:12]OFD Sender: No OFD packet to send [09:10:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:25]recv_with_timeout no data received [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:56]recv_with_timeout no data received [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:38]OFD Sender: No OFD packet to send [09:12:43]OFD Sender: No OFD packet to send [09:12:48]OFD Sender: No OFD packet to send [09:12:53]OFD Sender: No OFD packet to send [09:12:58]OFD Sender: No OFD packet to send [09:13:03]OFD Sender: No OFD packet to send [09:13:08]OFD Sender: No OFD packet to send [09:13:10]recv_with_timeout no data received [09:13:13]OFD Sender: No OFD packet to send [09:13:18]OFD Sender: No OFD packet to send [09:13:23]OFD Sender: No OFD packet to send [09:13:28]OFD Sender: No OFD packet to send [09:13:33]OFD Sender: No OFD packet to send [09:13:33]accept exits with 8 [09:13:33]New connection [09:13:33]New thread 3067592036 created [09:13:33]Thread 3067448676 joined [09:13:33]Waiting for new connection... [09:13:33] Sock 8.Parse request [09:13:33]Sock 8.Check first char [09:13:33]Sock 8.First char is OK [09:13:33]request: POST /json_proto HTTP/1.0 [09:13:33]Method: POST [09:13:33]URL: /json_proto [09:13:33]Method is POST - this is cgi request [09:13:33]url: /json_proto [09:13:33]query_string will be loaded in cgi processing [09:13:33]execute_cgi json_proto POST (null) [09:13:33]execute_cgi path=json_proto method=POST [09:13:33]POST find Content-Length [09:13:33]Host: 172.17.43.195:8080 [09:13:33]Content-Length: 792 [09:13:33]Content-Type: application/json [09:13:33] [09:13:33]POST finish read [09:13:33]Found Content-Length = 792 [09:13:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:33]execute_script... [09:13:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:13:33]POST & json_proto [09:13:33]process_json_proto [09:13:33]json parsed OK: [09:13:33]protocol is kg_v1.0 [09:13:33]action value=close_receipt [09:13:33]process_action close_receipt [09:13:33]cmd_close_receipt [09:13:33]MH_GetDate [09:13:33]Write to MH i2c: F0 00 00 0C 07 02 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: F0 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: F0 09 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: F0 09 00 0C 07 00 BF 55 1F 67 74 2C AD 66 58 [09:13:33]GetLastDocTimeStamp 1730105400 [09:13:33]current date 1730106815 [09:13:33]FM_GetShiftState [09:13:33]SAM_PROTO_GetShiftState [09:13:33]wFMCommunicate request_size=4 [09:13:33]MH_SAM_APDU [09:13:33]CAPDU: 80 13 01 00 [09:13:33]Write to MH i2c: E2 08 00 0D 07 80 13 01 00 00 00 00 00 91 [09:13:33]Write i2c OK [09:13:33]MH_I2C_Read... [09:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:13:33]Read from MH i2c: E2 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0E 00 [09:13:33]MH_I2C_Read... [09:13:33]Read from MH i2c: E2 0E 00 0D 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F9 [09:13:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:13:33]wFMCommunicate OK [09:13:33]SAM_PROTO_GetShiftState done [09:13:33]FM_GetShiftState done [09:13:33]opened in 1730074113 [09:13:33]opened+sec_in_day 1730160513 [09:13:33]quantity*price = 0 [09:13:33]sum+1 = 1 [09:13:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 39 28.10.2024 09:15 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 68895 ФМ: 0000000000874662 ФД: 72511 ФПД: 162317685516836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091530&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72511&fm=162317685516836&tin=02508201610067®Number=0000000000091644&sum=0 [09:15:31]StoreToDocumentArchive [09:15:31]shift 554 fd 72511 [09:15:31]save to /storage/0554/doc_00072511 [09:15:31]save last doc name /storage/0554/doc_00072511 to /storage/kkm_last_doc_name [09:15:31]save OK [09:15:31]Clear old archive folders... [09:15:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:31]tlvbuf is 01D174E0 [09:15:31]SAM_PROTO_ClearQueue [09:15:31]wFMCommunicate request_size=4 [09:15:31]MH_SAM_APDU [09:15:31]CAPDU: 80 09 00 00 [09:15:31]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:31]Read from MH i2c: E2 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:15:31]RAPDU: 90 00 [09:15:31]wFMCommunicate OK [09:15:31]SAM_PROTO_ClearQueue done [09:15:31]KKMCreateOFDPacket [09:15:31]OFDProtocolAddRootSTLVToBuf [09:15:31]FM_MakeSignedData [09:15:31]FM_MakeSignedData [09:15:31]SAM_PROTO_SignData [09:15:31]wFMCommunicate request_size=4 [09:15:31]MH_SAM_APDU [09:15:31]CAPDU: 80 0D 01 02 [09:15:31]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:31]Read from MH i2c: E2 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 [09:15:31]MH_I2C_Read... [09:15:31]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:15:31]RAPDU: 90 00 [09:15:31]wFMCommunicate OK [09:15:31]wFMCommunicate request_size=255 [09:15:31]MH_SAM_APDU [09:15:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 32 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1B 01 00 35 04 06 00 93 [09:15:31]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 32 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1B 01 00 35 04 06 00 93 00 00 37 [09:15:31]Write i2c OK [09:15:31]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:15:32]RAPDU: 90 00 [09:15:32]wFMCommunicate OK [09:15:32]wFMCommunicate request_size=10 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 0D 02 02 05 A0 87 FC 6A 24 [09:15:32]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 A0 87 FC 6A 24 00 00 63 [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:15:32]RAPDU: 90 00 [09:15:32]wFMCommunicate OK [09:15:32]wFMCommunicate request_size=4 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 0D 03 02 [09:15:32]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]OFD Sender: No OFD packet to send [09:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 0B 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 0B 00 2F 00 00 40 4E FA 35 E9 F5 78 F3 90 00 B1 [09:15:32]RAPDU: 40 4E FA 35 E9 F5 78 F3 90 00 [09:15:32]wFMCommunicate OK [09:15:32]SAM_PROTO_SignData done [09:15:32]FM_MakeSignedData done [09:15:32]CreateOFDProtocolMessage [09:15:32]wFMCommunicate request_size=4 [09:15:32]MH_SAM_APDU [09:15:32]CAPDU: 80 11 00 00 [09:15:32]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 [09:15:32]MH_I2C_Read... [09:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:32]Read from MH i2c: E2 17 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FE [09:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:15:32]wFMCommunicate OK [09:15:32]CreateOFDProtocolMessage done [09:15:32]OFDSenderStorePacket 72511 [09:15:32]StoreOFDPacket docnum=72511 [09:15:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 65 A6 07 01 D2 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 32 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1B 01 00 35 04 06 00 93 A0 87 FC 6A 24 40 4E FA 35 E9 F5 78 F3 [09:15:32]CheckFolder [09:15:32]dirname=/storage/ofd_packets [09:15:32]CheckFolder done [09:15:32]ProducePacketName [09:15:32]name=ofd_packets/00072511 [09:15:32]NVStorageSaveData ofd_packets/00072511 [09:15:32]File name is /storage/ofd_packets/00072511 [09:15:32]Write 301 bytes [09:15:32]NVStorageSaveData done [09:15:32]OFDSenderStorePacket done [09:15:32]KKMCreateOFDPacket done [09:15:32]NVStorageSaveData kkm_last_timestamp [09:15:32]File name is /storage/kkm_last_timestamp [09:15:32]Write 4 bytes [09:15:32]NVStorageSaveData done [09:15:32]ExternCall_PrintAddStr [09:15:32]wPrintStart [09:15:32]Write to MH i2c: 01 00 00 31 00 31 [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 07 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:15:32]RasterBufferAndPrint [09:15:32]line Счет N : (1)951958 [09:15:32]line ИНН: 02508201610067 [09:15:32]line Контрольно-Кассовый Чек [09:15:32]line ПРОДАЖА [09:15:32]line ТРК (МРК, ГНК) : 62 [09:15:32]line Товар: 2710124500 [09:15:32]line Аи-95-К-3 [09:15:32]line 10.000 * 0.00 [09:15:32]line = 0.00 [09:15:32]line НДС 12% НСП 1% [09:15:32]line > о реализуемом товаре [09:15:32]line ИТОГО: 0.00 [09:15:32]line НСП 1% : 0.00 [09:15:32]line НДС 12% : 0.00 [09:15:32]line Наличными: 0.00 [09:15:32]line Безнал.: 0.00 [09:15:32]line Место: АЗС № 113 "Партнер Нефть" [09:15:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:15:32]line СНО: Общий режим [09:15:32]line Чек 39 28.10.2024 09:15 [09:15:32]line Смена: 554 ФФД: 1.0 [09:15:32]line ЗНМ: 0300000087 [09:15:32]line РНМ: 0000000000091644 [09:15:32]line Версия ККМ: 001 [09:15:32]line Талоны: Топливная Карта [09:15:32]line 68895 [09:15:32]line ФМ: 0000000000874662 [09:15:32]line ФД: 72511 [09:15:32]line ФПД: 162317685516836 [09:15:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091530&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72511&fm=162317685516836&tin=02508201610067®Number=0000000000091644&sum=0 [09:15:32]written 0, free lines is 4095 [09:15:32]OFD Sender: Processing packet 72511 [packets to send 272, broken 271] [09:15:32]ProducePacketName [09:15:32]name=ofd_packets/00072511 [09:15:32]OFD Sender: To server: pG, [09:15:32]CommunicateWithHost lk.salyk.kg:30040 [09:15:32]ConnectInit lk.salyk.kg [09:15:32]int [09:15:32]Write to MH i2c: 01 00 00 38 00 38 [09:15:32]*** FLAG_PRN_PAP1 set [09:15:32]*** FLAG_PRN_PAP1 reset [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]Write i2c OK [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: DD [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: DD [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: DD 05 00 [09:15:32]MH_I2C_Read... [09:15:32]Read from MH i2c: DD 05 00 [09:15:32]answer for other command [DD] [09:15:32]MH Int Process stopped [09:15:32]Read from MH i2c: DD 05 00 38 00 00 1E 00 E1 0F 27 [09:15:32]answer with wrong packet_num 0038 - expected 0039 [09:15:32]process_action_free close_receipt [09:15:32]json_value_free [09:15:32]json_value_free done [09:15:32]process_json_proto returns [09:15:32]Send response to host [09:15:32]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [09:15:32]free response buf [09:15:32]execute_script done [09:15:32]execute_script returns [09:15:32]free content buf [09:15:32]Sock 9.Close socket [09:15:32]Sock 9.Thread stoped [09:15:35]*** FLAG_PRN_PAP1 set [09:15:35]*** FLAG_PRN_PAP2 set [09:15:36]Connected sock=6 [09:15:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 65 A6 07 01 D2 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 27 00 00 00 F4 03 04 00 32 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1B 01 00 35 04 06 00 93 A0 87 FC 6A 24 40 4E FA 35 E9 F5 78 F3 [09:15:37]*** FLAG_PRN_PAP2 reset [09:15:37]*** FLAG_PRN_PAP1 reset [09:15:37]*** FLAG_PRN_PAP1 set [09:15:37]*** FLAG_PRN_PAP1 reset [09:15:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 A9 47 00 69 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 3F 1B 01 00 F4 03 04 00 F6 00 1F 67 B6 04 01 00 00 FC 2F FE 0C 4B 97 23 00 [09:15:39]CommunicateWithHost err = 0 [09:15:39]CheckOFDResponse [09:15:39]1017 (14) - 77093643461234 [09:15:39]1041 (16) - 0000000000874662 [09:15:39]1040 (4) - 72511 [09:15:39]1012 (4) - 28.10.2024 03:11 [09:15:39]1206 (1) - 0 [09:15:39]OFD Sender: Remove packet 72511 [09:15:39]ProducePacketName [09:15:39]name=ofd_packets/00072511 [09:15:39]NVStorageDeleteData [09:15:39]OFD Sender: No OFD packet to send [09:15:40]accept exits with 10 [09:15:40]New connection [09:15:40]New thread 3066793316 created [09:15:40]Thread 3066936676 joined [09:15:40]Waiting for new connection... [09:15:40] Sock 10.Parse request [09:15:40]Sock 10.Check first char [09:15:40]Sock 10.First char is OK [09:15:40]request: POST /json_proto HTTP/1.0 [09:15:40]Method: POST [09:15:40]URL: /json_proto [09:15:40]Method is POST - this is cgi request [09:15:40]url: /json_proto [09:15:40]query_string will be loaded in cgi processing [09:15:40]execute_cgi json_proto POST (null) [09:15:40]execute_cgi path=json_proto method=POST [09:15:40]POST find Content-Length [09:15:40]Host: 172.17.43.195:8080 [09:15:40]Content-Length: 215 [09:15:40]Content-Type: application/json [09:15:40] [09:15:40]POST finish read [09:15:40]Found Content-Length = 215 [09:15:40]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" ] } } [09:15:40]execute_script... [09:15:40]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" ] } } [09:15:40]POST & json_proto [09:15:40]process_json_proto [09:15:40]json parsed OK: [09:15:40]protocol is kg_v1.0 [09:15:40]action value=get_value [09:15:40]process_action get_value [09:15:40]cmd_get_value [09:15:40]process_action get_value done [09:15:40]requested_data is exist [09:15:40]produce_requested_data [09:15:40]requested_item kkm.sn is exist - process it [09:15:40]requested_item kkm.ver is exist - process it [09:15:40]requested_item fm.sn is exist - process it [09:15:40]wFMCommunicate request_size=4 [09:15:40]MH_SAM_APDU [09:15:40]CAPDU: 80 11 00 00 [09:15:40]Write to MH i2c: E2 08 00 3A 00 80 11 00 00 00 00 00 00 B4 [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:40]Read from MH i2c: E2 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 17 00 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 17 00 3A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [09:15:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:15:40]wFMCommunicate OK [09:15:40]requested_item fd.num is exist - process it [09:15:40]SAM_PROTO_GetFieldsCounters [09:15:40]wFMCommunicate request_size=4 [09:15:40]MH_SAM_APDU [09:15:40]CAPDU: 80 13 00 00 [09:15:40]Write to MH i2c: E2 08 00 3B 00 80 13 00 00 00 00 00 00 B7 [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:40]Read from MH i2c: E2 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 62 00 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 62 00 3B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [09:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 3F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:40]wFMCommunicate OK [09:15:40]SAM_PROTO_GetFieldsCounters done [09:15:40]requested_item shift.num is exist - process it [09:15:40]requested_item shift.opened is exist - process it [09:15:40]req_shift_opened [09:15:40]FM_GetShiftState [09:15:40]SAM_PROTO_GetShiftState [09:15:40]wFMCommunicate request_size=4 [09:15:40]MH_SAM_APDU [09:15:40]CAPDU: 80 13 01 00 [09:15:40]Write to MH i2c: E2 08 00 3C 00 80 13 01 00 00 00 00 00 B9 [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:40]Read from MH i2c: E2 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 0E 00 [09:15:40]MH_I2C_Read... [09:15:40]Read from MH i2c: E2 0E 00 3C 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 21 [09:15:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:15:40]wFMCommunicate OK [09:15:40]SAM_PROTO_GetShiftState done [09:15:40]FM_GetShiftState done [09:15:40]req_shift_opened done [09:15:40]requested_item shift.open_date is exist - process it [09:15:40]req_shift_open_date [09:15:40]req_shift_open_date done [09:15:40]produce_requested_data done [09:15:40]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72511,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:15:40]process_action_free get_value [09:15:40]json_value_free [09:15:40]json_value_free done [09:15:40]process_json_proto returns [09:15:40]Send response to host [09:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72511,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:15:40]free response buf [09:15:40]execute_script done [09:15:40]execute_script returns [09:15:40]free content buf [09:15:40]Sock 10.Close socket [09:15:40]Sock 10.Thread stoped [09:15:40]accept exits with 5 [09:15:40]New connection [09:15:40]New thread 3066936676 created [09:15:40]Thread 3066793316 joined [09:15:40]Waiting for new connection... [09:15:40] Sock 5.Parse request [09:15:40]Sock 5.Check first char [09:15:40]Sock 5.First char is OK [09:15:40]request: POST /json_proto HTTP/1.0 [09:15:40]Method: POST [09:15:40]URL: /json_proto [09:15:40]Method is POST - this is cgi request [09:15:40]url: /json_proto [09:15:40]query_string will be loaded in cgi processing [09:15:40]execute_cgi json_proto POST (null) [09:15:40]execute_cgi path=json_proto method=POST [09:15:40]POST find Content-Length [09:15:40]Host: 172.17.43.195:8080 [09:15:40]Content-Length: 331 [09:15:40]Content-Type: application/json [09:15:40] [09:15:40]POST finish read [09:15:40]Found Content-Length = 331 [09:15:40]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" ] } } [09:15:40]execute_script... [09:15:40]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" ] } } [09:15:40]POST & json_proto [09:15:40]process_json_proto [09:15:40]json parsed OK: [09:15:40]protocol is kg_v1.0 [09:15:40]action value=get_value [09:15:40]process_action get_value [09:15:40]cmd_get_value [09:15:40]process_action get_value done [09:15:40]requested_data is exist [09:15:40]produce_requested_data [09:15:40]requested_item fm.sale.total is exist - process it [09:15:40]SAM_PROTO_GetFMData [09:15:40]wFMCommunicate request_size=4 [09:15:40]MH_SAM_APDU [09:15:40]CAPDU: 80 13 03 00 [09:15:40]Write to MH i2c: E2 08 00 3D 00 80 13 03 00 00 00 00 00 BC [09:15:40]Write i2c OK [09:15:40]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 3D 00 00 C4 04 85 04 C0 04 6E 04 04 00 EB 16 01 00 69 04 A3 00 6F 04 04 00 FC 15 01 00 B1 04 05 00 61 9C B6 A2 01 70 04 05 00 94 11 D9 57 01 72 04 04 00 CD 8A DD 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B E1 79 2C 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 DE C0 B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 AF [09:15:41]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 EB 16 01 00 69 04 A3 00 6F 04 04 00 FC 15 01 00 B1 04 05 00 61 9C B6 A2 01 70 04 05 00 94 11 D9 57 01 72 04 04 00 CD 8A DD 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5B E1 79 2C 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 DE C0 B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [09:15:41]wFMCommunicate OK [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 17 00 00 [09:15:41]Write to MH i2c: E2 08 00 3E 00 80 17 00 00 00 00 00 00 BE [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 3E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 F4 [09:15:41]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:15:41]wFMCommunicate OK [09:15:41]wFMCommunicate request_size=4 [09:15:41]MH_SAM_APDU [09:15:41]CAPDU: 80 17 00 00 [09:15:41]Write to MH i2c: E2 08 00 3F 00 80 17 00 00 00 00 00 00 BF [09:15:41]Write i2c OK [09:15:41]MH_I2C_Read... [09:15:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:41]Read from MH i2c: E2 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 [09:15:41]MH_I2C_Read... [09:15:41]Read from MH i2c: E2 FD 00 3F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 D4 [09:15:42]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:15:42]wFMCommunicate OK [09:15:42]wFMCommunicate request_size=4 [09:15:42]MH_SAM_APDU [09:15:42]CAPDU: 80 17 00 00 [09:15:42]Write to MH i2c: E2 08 00 40 00 80 17 00 00 00 00 00 00 C0 [09:15:42]Write i2c OK [09:15:42]MH_I2C_Read... [09:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:42]Read from MH i2c: E2 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 FD 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 FD 00 40 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 38 [09:15:42]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:15:42]wFMCommunicate OK [09:15:42]wFMCommunicate request_size=4 [09:15:42]MH_SAM_APDU [09:15:42]CAPDU: 80 17 00 00 [09:15:42]Write to MH i2c: E2 08 00 41 00 80 17 00 00 00 00 00 00 C1 [09:15:42]Write i2c OK [09:15:42]MH_I2C_Read... [09:15:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:15:42]Read from MH i2c: E2 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 E1 00 [09:15:42]MH_I2C_Read... [09:15:42]Read from MH i2c: E2 E1 00 41 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AF [09:15:43]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:15:43]wFMCommunicate OK [09:15:43]SAM_PROTO_GetFMData done [09:15:43]requested_item fm.sale_refund.total is exist - process it [09:15:43]requested_item fm.buy.total is exist - process it [09:15:43]requested_item shift.sale.total is exist - process it [09:15:43]SAM_PROTO_GetShiftData [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 13 02 00 [09:15:43]Write to MH i2c: E2 08 00 42 00 80 13 02 00 00 00 00 00 C0 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:15:43]Read from MH i2c: E2 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 FD 00 [09:15:43]MH_I2C_Read... [09:15:43]Read from MH i2c: E2 FD 00 42 00 00 AE 04 AA 04 AA 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 27 00 00 00 B1 04 03 00 CF 84 20 70 04 03 00 60 96 0E 72 04 03 00 6F EE 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 74 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 49 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 44 [09:15:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 27 00 00 00 69 04 9B 00 6F 04 04 00 27 00 00 00 B1 04 03 00 CF 84 20 70 04 03 00 60 96 0E 72 04 03 00 6F EE 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 23 74 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AD 49 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:15:43]wFMCommunicate OK [09:15:43]wFMCommunicate request_size=4 [09:15:43]MH_SAM_APDU [09:15:43]CAPDU: 80 17 00 00 [09:15:43]Write to MH i2c: E2 08 00 43 00 80 17 00 00 00 00 00 00 C3 [09:15:43]Write i2c OK [09:15:43]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 FD 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 FD 00 43 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [09:15:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 17 00 00 [09:15:44]Write to MH i2c: E2 08 00 44 00 80 17 00 00 00 00 00 00 C4 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:44]Read from MH i2c: E2 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 FD 00 [09:15:44]MH_I2C_Read... [09:15:44]Read from MH i2c: E2 FD 00 44 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7B [09:15:44]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:15:44]wFMCommunicate OK [09:15:44]wFMCommunicate request_size=4 [09:15:44]MH_SAM_APDU [09:15:44]CAPDU: 80 17 00 00 [09:15:44]Write to MH i2c: E2 08 00 45 00 80 17 00 00 00 00 00 00 C5 [09:15:44]Write i2c OK [09:15:44]MH_I2C_Read... [09:15:44]OFD Sender: No OFD packet to send [09:15:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 FD 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 FD 00 45 00 00 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 90 00 37 [09:15:45]RAPDU: 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 90 00 [09:15:45]wFMCommunicate OK [09:15:45]wFMCommunicate request_size=4 [09:15:45]MH_SAM_APDU [09:15:45]CAPDU: 80 17 00 00 [09:15:45]Write to MH i2c: E2 08 00 46 00 80 17 00 00 00 00 00 00 C6 [09:15:45]Write i2c OK [09:15:45]MH_I2C_Read... [09:15:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:15:45]Read from MH i2c: E2 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 CB 00 [09:15:45]MH_I2C_Read... [09:15:45]Read from MH i2c: E2 CB 00 46 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AF [09:15:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:15:45]wFMCommunicate OK [09:15:45]SAM_PROTO_GetShiftData done [09:15:45]requested_item shift.sale.total_cash is exist - process it [09:15:45]requested_item shift.sale_refund.total is exist - process it [09:15:45]requested_item shift.sale_refund.total_cash is exist - process it [09:15:45]requested_item shift.buy.total is exist - process it [09:15:45]requested_item shift.buy.total_cash is exist - process it [09:15:45]produce_requested_data done [09:15:45]produce_requested_data return {"fm.sale.total":70248438.73,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":21311.51,"shift.sale.total_cash":9560.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} [09:15:45]process_action_free get_value [09:15:45]json_value_free [09:15:45]json_value_free done [09:15:45]process_json_proto returns [09:15:45]Send response to host [09:15:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70248438.73,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":21311.51,"shift.sale.total_cash":9560.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}}} [09:15:45]free response buf [09:15:45]execute_script done [09:15:45]execute_script returns [09:15:45]free content buf [09:15:45]Sock 5.Close socket [09:15:45]Sock 5.Thread stoped [09:15:46]accept exits with 6 [09:15:46]New connection [09:15:46]New thread 3066793316 created [09:15:46]Thread 3066936676 joined [09:15:46]Waiting for new connection... [09:15:46] Sock 6.Parse request [09:15:46]Sock 6.Check first char [09:15:46]Sock 6.First char is OK [09:15:46]request: POST /json_proto HTTP/1.0 [09:15:46]Method: POST [09:15:46]URL: /json_proto [09:15:46]Method is POST - this is cgi request [09:15:46]url: /json_proto [09:15:46]query_string will be loaded in cgi processing [09:15:46]execute_cgi json_proto POST (null) [09:15:46]execute_cgi path=json_proto method=POST [09:15:46]POST find Content-Length [09:15:46]Host: 172.17.43.195:8080 [09:15:46]Content-Length: 792 [09:15:46]Content-Type: application/json [09:15:46] [09:15:46]POST finish read [09:15:46]Found Content-Length = 792 [09:15:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]execute_script... [09:15: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)951958", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A68895", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:15:46]POST & json_proto [09:15:46]process_json_proto [09:15:46]json parsed OK: [09:15:46]protocol is kg_v1.0 [09:15:46]action value=close_receipt [09:15:46]process_action close_receipt [09:15:46]cmd_close_receipt [09:15:46]MH_GetDate [09:15:46]Write to MH i2c: F0 00 00 47 00 36 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: F0 09 00 47 00 00 42 56 1F 67 74 2C AD 66 10 [09:15:46]GetLastDocTimeStamp 1730106930 [09:15:46]current date 1730106946 [09:15:46]FM_GetShiftState [09:15:46]SAM_PROTO_GetShiftState [09:15:46]wFMCommunicate request_size=4 [09:15:46]MH_SAM_APDU [09:15:46]CAPDU: 80 13 01 00 [09:15:46]Write to MH i2c: E2 08 00 48 00 80 13 01 00 00 00 00 00 C5 [09:15:46]Write i2c OK [09:15:46]MH_I2C_Read... [09:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:46]Read from MH i2c: E2 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 [09:15:46]MH_I2C_Read... [09:15:46]Read from MH i2c: E2 0E 00 48 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2D [09:15:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:15:46]wFMCommunicate OK [09:15:46]SAM_PROTO_GetShiftState done [09:15:46]FM_GetShiftState done [09:15:46]opened in 1730074113 [09:15:46]opened+sec_in_day 1730160513 [09:15:46]quantity*price = 0 [09:15:46]sum+1 = 1 [09:15:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 40 28.10.2024 09:15 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 68895 ФМ: 0000000000874662 ФД: 72512 ФПД: 161811522523943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091546&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72512&fm=161811522523943&tin=02508201610067®Number=0000000000091644&sum=0 [09:15:47]StoreToDocumentArchive [09:15:47]shift 554 fd 72512 [09:15:47]save to /storage/0554/doc_00072512 [09:15:47]save last doc name /storage/0554/doc_00072512 to /storage/kkm_last_doc_name [09:15:47]save OK [09:15:47]Clear old archive folders... [09:15:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:15:47]tlvbuf is 01D173B0 [09:15:47]SAM_PROTO_ClearQueue [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 09 00 00 [09:15:47]Write to MH i2c: E2 08 00 55 00 80 09 00 00 00 00 00 00 C7 [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:15:47]Read from MH i2c: E2 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 [09:15:47]MH_I2C_Read... [09:15:47]Read from MH i2c: E2 03 00 55 00 00 90 00 C9 [09:15:47]RAPDU: 90 00 [09:15:47]wFMCommunicate OK [09:15:47]SAM_PROTO_ClearQueue done [09:15:47]KKMCreateOFDPacket [09:15:47]OFDProtocolAddRootSTLVToBuf [09:15:47]FM_MakeSignedData [09:15:47]FM_MakeSignedData [09:15:47]SAM_PROTO_SignData [09:15:47]wFMCommunicate request_size=4 [09:15:47]MH_SAM_APDU [09:15:47]CAPDU: 80 0D 01 02 [09:15:47]Write to MH i2c: E2 08 00 56 00 80 0D 01 02 00 00 00 00 CF [09:15:47]Write i2c OK [09:15:47]MH_I2C_Read... [09:15:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 56 00 00 90 00 CA [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=255 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 42 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1B 01 00 35 04 06 00 93 [09:15:48]Write to MH i2c: E2 02 01 57 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 42 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1B 01 00 35 04 06 00 93 00 00 73 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 57 00 00 90 00 CB [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=10 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 02 02 05 2A AE 52 13 27 [09:15:48]Write to MH i2c: E2 0D 00 58 00 80 0D 02 02 05 00 2A AE 52 13 27 00 00 40 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 03 00 58 00 00 90 00 CC [09:15:48]RAPDU: 90 00 [09:15:48]wFMCommunicate OK [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 0D 03 02 [09:15:48]Write to MH i2c: E2 08 00 59 00 80 0D 03 02 00 00 00 00 D4 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0B 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 0B 00 59 00 00 2A 82 1D AC 08 2E CB FB 90 00 46 [09:15:48]RAPDU: 2A 82 1D AC 08 2E CB FB 90 00 [09:15:48]wFMCommunicate OK [09:15:48]SAM_PROTO_SignData done [09:15:48]FM_MakeSignedData done [09:15:48]CreateOFDProtocolMessage [09:15:48]wFMCommunicate request_size=4 [09:15:48]MH_SAM_APDU [09:15:48]CAPDU: 80 11 00 00 [09:15:48]Write to MH i2c: E2 08 00 5A 00 80 11 00 00 00 00 00 00 D4 [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:48]Read from MH i2c: E2 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 17 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: E2 17 00 5A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 28 [09:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:15:48]wFMCommunicate OK [09:15:48]CreateOFDProtocolMessage done [09:15:48]OFDSenderStorePacket 72512 [09:15:48]StoreOFDPacket docnum=72512 [09:15:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 4B 07 01 1C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 42 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1B 01 00 35 04 06 00 93 2A AE 52 13 27 2A 82 1D AC 08 2E CB FB [09:15:48]CheckFolder [09:15:48]dirname=/storage/ofd_packets [09:15:48]CheckFolder done [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00072512 [09:15:48]NVStorageSaveData ofd_packets/00072512 [09:15:48]File name is /storage/ofd_packets/00072512 [09:15:48]Write 301 bytes [09:15:48]NVStorageSaveData done [09:15:48]OFDSenderStorePacket done [09:15:48]KKMCreateOFDPacket done [09:15:48]NVStorageSaveData kkm_last_timestamp [09:15:48]File name is /storage/kkm_last_timestamp [09:15:48]Write 4 bytes [09:15:48]NVStorageSaveData done [09:15:48]ExternCall_PrintAddStr [09:15:48]wPrintStart [09:15:48]Write to MH i2c: 01 00 00 5B 00 5B [09:15:48]Write i2c OK [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 [09:15:48]MH_I2C_Read... [09:15:48]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FF 0F 70 [09:15:48]RasterBufferAndPrint [09:15:48]line Счет N : (1)951958 [09:15:48]line ИНН: 02508201610067 [09:15:48]line Контрольно-Кассовый Чек [09:15:48]line ПРОДАЖА [09:15:48]line ТРК (МРК, ГНК) : 62 [09:15:48]line Товар: 2710124500 [09:15:48]line Аи-95-К-3 [09:15:48]line 10.000 * 0.00 [09:15:48]line = 0.00 [09:15:48]line НДС 12% НСП 1% [09:15:48]line > о реализуемом товаре [09:15:48]line ИТОГО: 0.00 [09:15:48]line НСП 1% : 0.00 [09:15:48]line НДС 12% : 0.00 [09:15:48]line Наличными: 0.00 [09:15:48]line Безнал.: 0.00 [09:15:48]line Место: АЗС № 113 "Партнер Нефть" [09:15:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:15:48]line СНО: Общий режим [09:15:48]line Чек 40 28.10.2024 09:15 [09:15:48]line Смена: 554 ФФД: 1.0 [09:15:48]line ЗНМ: 0300000087 [09:15:48]line РНМ: 0000000000091644 [09:15:48]line Версия ККМ: 001 [09:15:48]line Талоны: Топливная Карта [09:15:48]line 68895 [09:15:48]line ФМ: 0000000000874662 [09:15:48]line ФД: 72512 [09:15:48]line ФПД: 161811522523943 [09:15:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091546&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72512&fm=161811522523943&tin=02508201610067®Number=0000000000091644&sum=0 [09:15:48]written 0, free lines is 4095 [09:15:48]OFD Sender: Processing packet 72512 [packets to send 272, broken 271] [09:15:48]ProducePacketName [09:15:48]name=ofd_packets/00072512 [09:15:48]OFD Sender: To server: pG, [09:15:48]CommunicateWithHost lk.salyk.kg:30040 [09:15:48]ConnectInit lk.salyk.kg [09:15:49]Write to MH i2c: 01 00 00 85 00 85 [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: 01 07 00 85 00 00 00 00 00 00 E3 0C 7B [09:15:49]RasterBufferAndPrint [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]line [09:15:49]written 0, free lines is 3336 [09:15:49]MH_Cut [09:15:49]Write to MH i2c: D1 01 00 8C 00 01 5E [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 01 00 [09:15:49]MH_I2C_Read... [09:15:49]Read from MH i2c: D1 01 00 8C 00 00 5D [09:15:49]Write to MH i2c: 01 00 00 8D 00 8D [09:15:49]Write i2c OK [09:15:49]MH_I2C_Read... [09:15:50]*** Cut start [09:15:50]*** Partial cut [09:15:50]*** CUTSNS_PIN = 1 [09:15:50]*** CUTSNS_PIN = 0 [09:15:50]*** Brake cut motor [09:15:50]Read from MH i2c: 01 [09:15:50]MH_I2C_Read... [09:15:50]*** Stop cut motor [09:15:50]*** Cut end [09:15:50]Read from MH i2c: 01 07 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: 01 07 00 8D 00 00 00 00 00 00 FF 0F A2 [09:15:50]process_action close_receipt done [09:15:50]requested_data is exist [09:15:50]produce_requested_data [09:15:50]requested_item fm.sn is exist - process it [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 11 00 00 [09:15:50]Write to MH i2c: E2 08 00 8E 00 80 11 00 00 00 00 00 00 08 [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 [09:15:50]MH_I2C_Read... [09:15:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:15:50]Read from MH i2c: E2 17 00 [09:15:50]MH_I2C_Read... [09:15:50]Read from MH i2c: E2 17 00 8E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [09:15:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:15:50]wFMCommunicate OK [09:15:50]requested_item fd.num is exist - process it [09:15:50]SAM_PROTO_GetFieldsCounters [09:15:50]wFMCommunicate request_size=4 [09:15:50]MH_SAM_APDU [09:15:50]CAPDU: 80 13 00 00 [09:15:50]Write to MH i2c: E2 08 00 8F 00 80 13 00 00 00 00 00 00 0B [09:15:50]Write i2c OK [09:15:50]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 62 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 62 00 8F 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 40 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [09:15: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 40 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetFieldsCounters done [09:15:51]requested_item shift.num is exist - process it [09:15:51]requested_item shift.opened is exist - process it [09:15:51]req_shift_opened [09:15:51]FM_GetShiftState [09:15:51]SAM_PROTO_GetShiftState [09:15:51]wFMCommunicate request_size=4 [09:15:51]MH_SAM_APDU [09:15:51]CAPDU: 80 13 01 00 [09:15:51]Write to MH i2c: E2 08 00 90 00 80 13 01 00 00 00 00 00 0D [09:15:51]Write i2c OK [09:15:51]MH_I2C_Read... [09:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:15:51]Read from MH i2c: E2 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 [09:15:51]MH_I2C_Read... [09:15:51]Read from MH i2c: E2 0E 00 90 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 75 [09:15:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:15:51]wFMCommunicate OK [09:15:51]SAM_PROTO_GetShiftState done [09:15:51]FM_GetShiftState done [09:15:51]req_shift_opened done [09:15:51]requested_item shift.open_date is exist - process it [09:15:51]req_shift_open_date [09:15:51]req_shift_open_date done [09:15:51]produce_requested_data done [09:15:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72512,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:15:51]process_action_free close_receipt [09:15:51]json_value_free [09:15:51]json_value_free done [09:15:51]process_json_proto returns [09:15:51]Send response to host [09:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72512,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:15:51]free response buf [09:15:51]execute_script done [09:15:51]execute_script returns [09:15:51]free content buf [09:15:51]Sock 6.Close socket [09:15:51]Sock 6.Thread stoped [09:15:52]Connected sock=7 [09:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 4B 07 01 1C 85 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 28 00 00 00 F4 03 04 00 42 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 40 1B 01 00 35 04 06 00 93 2A AE 52 13 27 2A 82 1D AC 08 2E CB FB [09:15:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 0D 16 47 00 F8 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 34 36 36 32 10 04 04 00 40 1B 01 00 F4 03 04 00 05 01 1F 67 B6 04 01 00 00 77 48 1B 04 DC D9 D1 17 [09:15:54]CommunicateWithHost err = 0 [09:15:54]CheckOFDResponse [09:15:54]1017 (14) - 77093643461234 [09:15:54]1041 (16) - 0000000000874662 [09:15:54]1040 (4) - 72512 [09:15:54]1012 (4) - 28.10.2024 03:12 [09:15:54]1206 (1) - 0 [09:15:54]OFD Sender: Remove packet 72512 [09:15:54]ProducePacketName [09:15:54]name=ofd_packets/00072512 [09:15:54]NVStorageDeleteData [09:15:55]OFD Sender: No OFD packet to send [09:16:00]recv_with_timeout no data received [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:11]recv_with_timeout no data received [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:31]recv_with_timeout no data received [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:42]recv_with_timeout no data received [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:53]accept exits with 5 [09:16:53]New connection [09:16:53]New thread 3066936676 created [09:16:53]Thread 3066793316 joined [09:16:53]Waiting for new connection... [09:16:53] Sock 5.Parse request [09:16:53]Sock 5.Check first char [09:16:53]Sock 5.First char is OK [09:16:53]request: POST /json_proto HTTP/1.0 [09:16:53]Method: POST [09:16:53]URL: /json_proto [09:16:53]Method is POST - this is cgi request [09:16:53]url: /json_proto [09:16:53]query_string will be loaded in cgi processing [09:16:53]execute_cgi json_proto POST (null) [09:16:53]execute_cgi path=json_proto method=POST [09:16:53]POST find Content-Length [09:16:53]Host: 172.17.43.195:8080 [09:16:53]Content-Length: 792 [09:16:53]Content-Type: application/json [09:16:53] [09:16:53]POST finish read [09:16:53]Found Content-Length = 792 [09:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]execute_script... [09: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)951959", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:53]POST & json_proto [09:16:53]process_json_proto [09:16:53]json parsed OK: [09:16:53]protocol is kg_v1.0 [09:16:53]action value=close_receipt [09:16:53]process_action close_receipt [09:16:53]cmd_close_receipt [09:16:53]MH_GetDate [09:16:53]Write to MH i2c: F0 00 00 91 00 80 [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: F0 09 00 91 00 00 85 56 1F 67 74 2C AD 66 9D [09:16:53]GetLastDocTimeStamp 1730106946 [09:16:53]current date 1730107013 [09:16:53]FM_GetShiftState [09:16:53]SAM_PROTO_GetShiftState [09:16:53]wFMCommunicate request_size=4 [09:16:53]MH_SAM_APDU [09:16:53]CAPDU: 80 13 01 00 [09:16:53]Write to MH i2c: E2 08 00 92 00 80 13 01 00 00 00 00 00 0F [09:16:53]Write i2c OK [09:16:53]MH_I2C_Read... [09:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:53]Read from MH i2c: E2 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 [09:16:53]MH_I2C_Read... [09:16:53]Read from MH i2c: E2 0E 00 92 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 77 [09:16:53]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:16:53]wFMCommunicate OK [09:16:53]SAM_PROTO_GetShiftState done [09:16:53]FM_GetShiftState done [09:16:53]opened in 1730074113 [09:16:53]opened+sec_in_day 1730160513 [09:16:53]quantity*price = 0 [09:16:53]sum+1 = 1 [09:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 41 28.10.2024 09:16 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72513 ФПД: 42070856460697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091653&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72513&fm=42070856460697&tin=02508201610067®Number=0000000000091644&sum=0 [09:16:54]StoreToDocumentArchive [09:16:54]shift 554 fd 72513 [09:16:54]save to /storage/0554/doc_00072513 [09:16:54]save last doc name /storage/0554/doc_00072513 to /storage/kkm_last_doc_name [09:16:54]save OK [09:16:54]Clear old archive folders... [09:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:16:54]tlvbuf is 01D60EB0 [09:16:54]SAM_PROTO_ClearQueue [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 09 00 00 [09:16:54]Write to MH i2c: E2 08 00 9F 00 80 09 00 00 00 00 00 00 11 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 9F 00 00 90 00 13 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]SAM_PROTO_ClearQueue done [09:16:54]KKMCreateOFDPacket [09:16:54]OFDProtocolAddRootSTLVToBuf [09:16:54]FM_MakeSignedData [09:16:54]FM_MakeSignedData [09:16:54]SAM_PROTO_SignData [09:16:54]wFMCommunicate request_size=4 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 01 02 [09:16:54]Write to MH i2c: E2 08 00 A0 00 80 0D 01 02 00 00 00 00 19 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 A0 00 00 90 00 14 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=255 [09:16:54]MH_SAM_APDU [09: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 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 29 00 00 00 F4 03 04 00 85 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 35 04 06 00 26 [09:16:54]Write to MH i2c: E2 02 01 A1 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 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 29 00 00 00 F4 03 04 00 85 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 35 04 06 00 26 00 00 CA [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:54]Read from MH i2c: E2 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 [09:16:54]MH_I2C_Read... [09:16:54]Read from MH i2c: E2 03 00 A1 00 00 90 00 15 [09:16:54]RAPDU: 90 00 [09:16:54]wFMCommunicate OK [09:16:54]wFMCommunicate request_size=10 [09:16:54]MH_SAM_APDU [09:16:54]CAPDU: 80 0D 02 02 05 43 62 74 69 99 [09:16:54]Write to MH i2c: E2 0D 00 A2 00 80 0D 02 02 05 00 43 62 74 69 99 00 00 41 [09:16:54]Write i2c OK [09:16:54]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 03 00 A2 00 00 90 00 16 [09:16:55]RAPDU: 90 00 [09:16:55]wFMCommunicate OK [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 0D 03 02 [09:16:55]Write to MH i2c: E2 08 00 A3 00 80 0D 03 02 00 00 00 00 1E [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 0B 00 A3 00 00 82 15 99 35 F8 31 18 B1 90 00 76 [09:16:55]RAPDU: 82 15 99 35 F8 31 18 B1 90 00 [09:16:55]wFMCommunicate OK [09:16:55]SAM_PROTO_SignData done [09:16:55]FM_MakeSignedData done [09:16:55]CreateOFDProtocolMessage [09:16:55]wFMCommunicate request_size=4 [09:16:55]MH_SAM_APDU [09:16:55]CAPDU: 80 11 00 00 [09:16:55]Write to MH i2c: E2 08 00 A4 00 80 11 00 00 00 00 00 00 1E [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:55]Read from MH i2c: E2 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: E2 17 00 A4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [09:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:16:55]wFMCommunicate OK [09:16:55]CreateOFDProtocolMessage done [09:16:55]OFDSenderStorePacket 72513 [09:16:55]StoreOFDPacket docnum=72513 [09:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BE 41 07 01 AB 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 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 29 00 00 00 F4 03 04 00 85 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 35 04 06 00 26 43 62 74 69 99 82 15 99 35 F8 31 18 B1 [09:16:55]CheckFolder [09:16:55]dirname=/storage/ofd_packets [09:16:55]CheckFolder done [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00072513 [09:16:55]NVStorageSaveData ofd_packets/00072513 [09:16:55]File name is /storage/ofd_packets/00072513 [09:16:55]Write 301 bytes [09:16:55]NVStorageSaveData done [09:16:55]OFDSenderStorePacket done [09:16:55]KKMCreateOFDPacket done [09:16:55]NVStorageSaveData kkm_last_timestamp [09:16:55]File name is /storage/kkm_last_timestamp [09:16:55]Write 4 bytes [09:16:55]NVStorageSaveData done [09:16:55]ExternCall_PrintAddStr [09:16:55]wPrintStart [09:16:55]Write to MH i2c: 01 00 00 A5 00 A5 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 FF 0F BA [09:16:55]RasterBufferAndPrint [09:16:55]line Счет N : (1)951959 [09:16:55]line ИНН: 02508201610067 [09:16:55]line Контрольно-Кассовый Чек [09:16:55]line ПРОДАЖА [09:16:55]line ТРК (МРК, ГНК) : 63 [09:16:55]line Товар: 2710124130 [09:16:55]line Аи-92-К-5 [09:16:55]line 20.000 * 0.00 [09:16:55]line = 0.00 [09:16:55]line НДС 12% НСП 1% [09:16:55]line > о реализуемом товаре [09:16:55]line ИТОГО: 0.00 [09:16:55]line НСП 1% : 0.00 [09:16:55]line НДС 12% : 0.00 [09:16:55]line Наличными: 0.00 [09:16:55]line Безнал.: 0.00 [09:16:55]line Место: АЗС № 113 "Партнер Нефть" [09:16:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:16:55]line СНО: Общий режим [09:16:55]line Чек 41 28.10.2024 09:16 [09:16:55]line Смена: 554 ФФД: 1.0 [09:16:55]line ЗНМ: 0300000087 [09:16:55]line РНМ: 0000000000091644 [09:16:55]line Версия ККМ: 001 [09:16:55]line Талоны: Топливная Карта [09:16:55]line 53623 [09:16:55]line ФМ: 0000000000874662 [09:16:55]line ФД: 72513 [09:16:55]line ФПД: 42070856460697 [09:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091653&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72513&fm=42070856460697&tin=02508201610067®Number=0000000000091644&sum=0 [09:16:55]written 0, free lines is 4095 [09:16:55]OFD Sender: Processing packet 72513 [packets to send 272, broken 271] [09:16:55]ProducePacketName [09:16:55]name=ofd_packets/00072513 [09:16:55]OFD Sender: To server: pG, [09:16:55]CommunicateWithHost lk.salyk.kg:30040 [09:16:55]ConnectInit lk.salyk.kg [09:16:55]Write to MH i2c: 01 00 00 CF 00 CF [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: 01 07 00 CF 00 00 00 00 00 00 E1 0C C3 [09:16:55]RasterBufferAndPrint [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]line [09:16:55]written 0, free lines is 3321 [09:16:55]MH_Cut [09:16:55]Write to MH i2c: D1 01 00 D6 00 01 A8 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 [09:16:55]MH_I2C_Read... [09:16:55]Read from MH i2c: D1 01 00 D6 00 00 A7 [09:16:55]Write to MH i2c: 01 00 00 D7 00 D7 [09:16:55]Write i2c OK [09:16:55]MH_I2C_Read... [09:16:56]*** Cut start [09:16:56]*** Partial cut [09:16:56]*** CUTSNS_PIN = 1 [09:16:56]*** CUTSNS_PIN = 0 [09:16:56]*** Brake cut motor [09:16:57]Read from MH i2c: 01 [09:16:57]MH_I2C_Read... [09:16:57]*** Stop cut motor [09:16:57]*** Cut end [09:16:57]Read from MH i2c: 01 07 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: 01 07 00 D7 00 00 00 00 00 00 FF 0F EC [09:16:57]process_action close_receipt done [09:16:57]requested_data is exist [09:16:57]produce_requested_data [09:16:57]requested_item fm.sn is exist - process it [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 11 00 00 [09:16:57]Write to MH i2c: E2 08 00 D8 00 80 11 00 00 00 00 00 00 52 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 17 00 D8 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [09:16:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:16:57]wFMCommunicate OK [09:16:57]requested_item fd.num is exist - process it [09:16:57]SAM_PROTO_GetFieldsCounters [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 00 00 [09:16:57]Write to MH i2c: E2 08 00 D9 00 80 13 00 00 00 00 00 00 55 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 62 00 D9 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 41 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [09: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 41 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetFieldsCounters done [09:16:57]requested_item shift.num is exist - process it [09:16:57]requested_item shift.opened is exist - process it [09:16:57]req_shift_opened [09:16:57]FM_GetShiftState [09:16:57]SAM_PROTO_GetShiftState [09:16:57]wFMCommunicate request_size=4 [09:16:57]MH_SAM_APDU [09:16:57]CAPDU: 80 13 01 00 [09:16:57]Write to MH i2c: E2 08 00 DA 00 80 13 01 00 00 00 00 00 57 [09:16:57]Write i2c OK [09:16:57]MH_I2C_Read... [09:16:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:57]Read from MH i2c: E2 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 [09:16:57]MH_I2C_Read... [09:16:57]Read from MH i2c: E2 0E 00 DA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BF [09:16:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:16:57]wFMCommunicate OK [09:16:57]SAM_PROTO_GetShiftState done [09:16:57]FM_GetShiftState done [09:16:57]req_shift_opened done [09:16:57]requested_item shift.open_date is exist - process it [09:16:57]req_shift_open_date [09:16:57]req_shift_open_date done [09:16:57]produce_requested_data done [09:16:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72513,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:16:57]process_action_free close_receipt [09:16:57]json_value_free [09:16:57]json_value_free done [09:16:57]process_json_proto returns [09:16:57]Send response to host [09:16:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72513,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:16:57]free response buf [09:16:57]execute_script done [09:16:57]execute_script returns [09:16:57]free content buf [09:16:57]Sock 5.Close socket [09:16:57]Sock 5.Thread stoped [09:17:03]recv_with_timeout no data received [09:17:11]Connected sock=9 [09:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BE 41 07 01 AB 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 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 29 00 00 00 F4 03 04 00 85 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 35 04 06 00 26 43 62 74 69 99 82 15 99 35 F8 31 18 B1 [09:17:16]recv_with_timeout no data received [09:17:16]recv_with_timeout no data received [09:17:16]CommunicateWithHost answer receiving error [09:17:16]CommunicateWithHost err = -3 [09:17:16]OFD Sender: Server communicate error [09:17:21]OFD Sender: Processing packet 72513 [packets to send 272, broken 271] [09:17:21]ProducePacketName [09:17:21]name=ofd_packets/00072513 [09:17:21]OFD Sender: To server: pG, [09:17:21]CommunicateWithHost lk.salyk.kg:30040 [09:17:21]ConnectInit lk.salyk.kg [09:17:29]recv_with_timeout no data received [09:17:37]Connected sock=6 [09:17:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BE 41 07 01 AB 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 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 29 00 00 00 F4 03 04 00 85 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 35 04 06 00 26 43 62 74 69 99 82 15 99 35 F8 31 18 B1 [09:17:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F3 DD 47 00 FE 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 41 1B 01 00 F4 03 04 00 6F 01 1F 67 B6 04 01 00 00 42 1F E9 1B 69 E0 A5 C9 [09:17:39]CommunicateWithHost err = 0 [09:17:39]CheckOFDResponse [09:17:39]1017 (14) - 77093643461234 [09:17:39]1041 (16) - 0000000000874662 [09:17:39]1040 (4) - 72513 [09:17:39]1012 (4) - 28.10.2024 03:13 [09:17:39]1206 (1) - 0 [09:17:39]OFD Sender: Remove packet 72513 [09:17:39]ProducePacketName [09:17:39]name=ofd_packets/00072513 [09:17:39]NVStorageDeleteData [09:17:39]accept exits with 7 [09:17:39]New connection [09:17:39]New thread 3066793316 created [09:17:39]Thread 3066936676 joined [09:17:39]Waiting for new connection... [09:17:39] Sock 7.Parse request [09:17:39]Sock 7.Check first char [09:17:39]Sock 7.First char is OK [09:17:39]request: POST /json_proto HTTP/1.0 [09:17:39]Method: POST [09:17:39]URL: /json_proto [09:17:39]Method is POST - this is cgi request [09:17:39]url: /json_proto [09:17:39]query_string will be loaded in cgi processing [09:17:39]execute_cgi json_proto POST (null) [09:17:39]execute_cgi path=json_proto method=POST [09:17:39]POST find Content-Length [09:17:39]Host: 172.17.43.195:8080 [09:17:39]Content-Length: 678 [09:17:39]Content-Type: application/json [09:17:39] [09:17:39]POST finish read [09:17:39]Found Content-Length = 678 [09:17:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.050, "sum" : 471.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 471.00, "payments": [ { "type": 0, "sum" : 471.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:39]execute_script... [09:17: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)951960", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.050, "sum" : 471.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 471.00, "payments": [ { "type": 0, "sum" : 471.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:17:39]POST & json_proto [09:17:39]process_json_proto [09:17:39]json parsed OK: [09:17:39]protocol is kg_v1.0 [09:17:39]action value=close_receipt [09:17:39]process_action close_receipt [09:17:39]cmd_close_receipt [09:17:39]MH_GetDate [09:17:39]Write to MH i2c: F0 00 00 DB 00 CA [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 09 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: F0 09 00 DB 00 00 B3 56 1F 67 74 2C AD 66 15 [09:17:39]GetLastDocTimeStamp 1730107013 [09:17:39]current date 1730107059 [09:17:39]FM_GetShiftState [09:17:39]SAM_PROTO_GetShiftState [09:17:39]wFMCommunicate request_size=4 [09:17:39]MH_SAM_APDU [09:17:39]CAPDU: 80 13 01 00 [09:17:39]Write to MH i2c: E2 08 00 DC 00 80 13 01 00 00 00 00 00 59 [09:17:39]Write i2c OK [09:17:39]MH_I2C_Read... [09:17:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:39]Read from MH i2c: E2 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 [09:17:39]MH_I2C_Read... [09:17:39]Read from MH i2c: E2 0E 00 DC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C1 [09:17:39]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:17:39]wFMCommunicate OK [09:17:39]SAM_PROTO_GetShiftState done [09:17:39]FM_GetShiftState done [09:17:39]opened in 1730074113 [09:17:39]opened+sec_in_day 1730160513 [09:17:39]quantity*price = 47164 [09:17:39]sum+1 = 47166 [09:17:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 471.00 Внесено: 5000.00 СДАЧА: 4529.00 НСП 1% : 4.17 НДС 12% : 50.09 Наличными: 471.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 42 28.10.2024 09:17 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72514 ФПД: 240933486060223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72514&fm=240933486060223&tin=02508201610067®Number=0000000000091644&sum=47100 [09:17:40]StoreToDocumentArchive [09:17:40]shift 554 fd 72514 [09:17:40]save to /storage/0554/doc_00072514 [09:17:40]save last doc name /storage/0554/doc_00072514 to /storage/kkm_last_doc_name [09:17:40]save OK [09:17:40]Clear old archive folders... [09:17:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:17:40]tlvbuf is 01D57020 [09:17:40]SAM_PROTO_ClearQueue [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 09 00 00 [09:17:40]Write to MH i2c: E2 08 00 E9 00 80 09 00 00 00 00 00 00 5B [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 E9 00 00 90 00 5D [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]SAM_PROTO_ClearQueue done [09:17:40]KKMCreateOFDPacket [09:17:40]OFDProtocolAddRootSTLVToBuf [09:17:40]FM_MakeSignedData [09:17:40]FM_MakeSignedData [09:17:40]SAM_PROTO_SignData [09:17:40]wFMCommunicate request_size=4 [09:17:40]MH_SAM_APDU [09:17:40]CAPDU: 80 0D 01 02 [09:17:40]Write to MH i2c: E2 08 00 EA 00 80 0D 01 02 00 00 00 00 63 [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:17:40]Read from MH i2c: E2 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 [09:17:40]MH_I2C_Read... [09:17:40]Read from MH i2c: E2 03 00 EA 00 00 90 00 5E [09:17:40]RAPDU: 90 00 [09:17:40]wFMCommunicate OK [09:17:40]wFMCommunicate request_size=255 [09:17:40]MH_SAM_APDU [09:17: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 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1B 01 00 35 04 06 00 DB [09:17:40]Write to MH i2c: E2 02 01 EB 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 8A 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1B 01 00 35 04 06 00 DB 00 00 0D [09:17:40]Write i2c OK [09:17:40]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 EB 00 00 90 00 5F [09:17:41]RAPDU: 90 00 [09:17:41]wFMCommunicate OK [09:17:41]wFMCommunicate request_size=10 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 0D 02 02 05 20 B2 D9 E2 BF [09:17:41]Write to MH i2c: E2 0D 00 EC 00 80 0D 02 02 05 00 20 B2 D9 E2 BF 00 00 BC [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 03 00 EC 00 00 90 00 60 [09:17:41]RAPDU: 90 00 [09:17:41]wFMCommunicate OK [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 0D 03 02 [09:17:41]Write to MH i2c: E2 08 00 ED 00 80 0D 03 02 00 00 00 00 68 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 0B 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 0B 00 ED 00 00 D8 31 D7 36 6A E2 D3 D7 90 00 75 [09:17:41]RAPDU: D8 31 D7 36 6A E2 D3 D7 90 00 [09:17:41]wFMCommunicate OK [09:17:41]SAM_PROTO_SignData done [09:17:41]FM_MakeSignedData done [09:17:41]CreateOFDProtocolMessage [09:17:41]wFMCommunicate request_size=4 [09:17:41]MH_SAM_APDU [09:17:41]CAPDU: 80 11 00 00 [09:17:41]Write to MH i2c: E2 08 00 EE 00 80 11 00 00 00 00 00 00 68 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:41]Read from MH i2c: E2 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: E2 17 00 EE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [09:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:17:41]wFMCommunicate OK [09:17:41]CreateOFDProtocolMessage done [09:17:41]OFDSenderStorePacket 72514 [09:17:41]StoreOFDPacket docnum=72514 [09:17:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 57 07 01 DB 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1B 01 00 35 04 06 00 DB 20 B2 D9 E2 BF D8 31 D7 36 6A E2 D3 D7 [09:17:41]CheckFolder [09:17:41]dirname=/storage/ofd_packets [09:17:41]CheckFolder done [09:17:41]ProducePacketName [09:17:41]name=ofd_packets/00072514 [09:17:41]NVStorageSaveData ofd_packets/00072514 [09:17:41]File name is /storage/ofd_packets/00072514 [09:17:41]Write 301 bytes [09:17:41]NVStorageSaveData done [09:17:41]OFDSenderStorePacket done [09:17:41]KKMCreateOFDPacket done [09:17:41]NVStorageSaveData kkm_last_timestamp [09:17:41]File name is /storage/kkm_last_timestamp [09:17:41]Write 4 bytes [09:17:41]NVStorageSaveData done [09:17:41]ExternCall_PrintAddStr [09:17:41]wPrintStart [09:17:41]Write to MH i2c: 01 00 00 EF 00 EF [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 FF 0F 04 [09:17:41]RasterBufferAndPrint [09:17:41]line Счет N : (1)951960 [09:17:41]line ИНН: 02508201610067 [09:17:41]line Контрольно-Кассовый Чек [09:17:41]line ПРОДАЖА [09:17:41]line ТРК (МРК, ГНК) : 63 [09:17:41]line Товар: 2710124130 [09:17:41]line Аи-92-К-5 [09:17:41]line 7.050 * 66.90 [09:17:41]line = 471.65 [09:17:41]line НДС 12% НСП 1% [09:17:41]line > о реализуемом товаре [09:17:41]line ОКРУГЛЕНИЕ: -0.65 [09:17:41]line ИТОГО: 471.00 [09:17:41]line Внесено: 5000.00 [09:17:41]line СДАЧА: 4529.00 [09:17:41]line НСП 1% : 4.17 [09:17:41]line НДС 12% : 50.09 [09:17:41]line Наличными: 471.00 [09:17:41]line Безнал.: 0.00 [09:17:41]line Место: АЗС № 113 "Партнер Нефть" [09:17:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:17:41]line СНО: Общий режим [09:17:41]line Чек 42 28.10.2024 09:17 [09:17:41]line Смена: 554 ФФД: 1.0 [09:17:41]line ЗНМ: 0300000087 [09:17:41]line РНМ: 0000000000091644 [09:17:41]line Версия ККМ: 001 [09:17:41]line ФМ: 0000000000874662 [09:17:41]line ФД: 72514 [09:17:41]line ФПД: 240933486060223 [09:17:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T091739&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72514&fm=240933486060223&tin=02508201610067®Number=0000000000091644&sum=47100 [09:17:41]written 0, free lines is 4095 [09:17:41]OFD Sender: Processing packet 72514 [packets to send 272, broken 271] [09:17:41]ProducePacketName [09:17:41]name=ofd_packets/00072514 [09:17:41]OFD Sender: To server: pG, [09:17:41]CommunicateWithHost lk.salyk.kg:30040 [09:17:41]ConnectInit lk.salyk.kg [09:17:41]Write to MH i2c: 01 00 00 1A 01 1B [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: 01 07 00 1A 01 00 00 00 00 00 CD 0C FB [09:17:41]RasterBufferAndPrint [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]line [09:17:41]written 0, free lines is 3299 [09:17:41]MH_Cut [09:17:41]Write to MH i2c: D1 01 00 21 01 01 F4 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 01 00 [09:17:41]MH_I2C_Read... [09:17:41]Read from MH i2c: D1 01 00 21 01 00 F3 [09:17:41]Write to MH i2c: 01 00 00 22 01 23 [09:17:41]Write i2c OK [09:17:41]MH_I2C_Read... [09:17:42]*** Cut start [09:17:42]*** Partial cut [09:17:42]*** CUTSNS_PIN = 1 [09:17:42]*** CUTSNS_PIN = 0 [09:17:42]*** Brake cut motor [09:17:43]Read from MH i2c: 01 [09:17:43]MH_I2C_Read... [09:17:43]*** Stop cut motor [09:17:43]*** Cut end [09:17:43]Read from MH i2c: 01 07 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: 01 07 00 22 01 00 00 00 00 00 FF 0F 38 [09:17:43]process_action close_receipt done [09:17:43]requested_data is exist [09:17:43]produce_requested_data [09:17:43]requested_item fm.sn is exist - process it [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 11 00 00 [09:17:43]Write to MH i2c: E2 08 00 23 01 80 11 00 00 00 00 00 00 9E [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 17 00 23 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [09:17:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:17:43]wFMCommunicate OK [09:17:43]requested_item fd.num is exist - process it [09:17:43]SAM_PROTO_GetFieldsCounters [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 13 00 00 [09:17:43]Write to MH i2c: E2 08 00 24 01 80 13 00 00 00 00 00 00 A1 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 62 00 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 62 00 24 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [09:17: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 42 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_GetFieldsCounters done [09:17:43]requested_item shift.num is exist - process it [09:17:43]requested_item shift.opened is exist - process it [09:17:43]req_shift_opened [09:17:43]FM_GetShiftState [09:17:43]SAM_PROTO_GetShiftState [09:17:43]wFMCommunicate request_size=4 [09:17:43]MH_SAM_APDU [09:17:43]CAPDU: 80 13 01 00 [09:17:43]Write to MH i2c: E2 08 00 25 01 80 13 01 00 00 00 00 00 A3 [09:17:43]Write i2c OK [09:17:43]MH_I2C_Read... [09:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:17:43]Read from MH i2c: E2 [09:17:43]MH_I2C_Read... [09:17:43]Read from MH i2c: E2 0E 00 [09:17:43]MH_I2C_Read... [09:17:43]recv_with_timeout no data received [09:17:43]Read from MH i2c: E2 0E 00 25 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0B [09:17:43]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:17:43]wFMCommunicate OK [09:17:43]SAM_PROTO_GetShiftState done [09:17:43]FM_GetShiftState done [09:17:43]req_shift_opened done [09:17:43]requested_item shift.open_date is exist - process it [09:17:43]req_shift_open_date [09:17:43]req_shift_open_date done [09:17:43]produce_requested_data done [09:17:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72514,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:17:43]process_action_free close_receipt [09:17:43]json_value_free [09:17:43]json_value_free done [09:17:43]process_json_proto returns [09:17:43]Send response to host [09:17:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72514,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:17:43]free response buf [09:17:43]execute_script done [09:17:43]execute_script returns [09:17:43]free content buf [09:17:43]Sock 7.Close socket [09:17:43]Sock 7.Thread stoped [09:17:46]ConnectInit Can't take IP for lk.salyk.kg [09:17:46]CommunicateWithHost connect error [09:17:46]CommunicateWithHost err = -1 [09:17:46]OFD Sender: Server communicate error [09:17:51]OFD Sender: Processing packet 72514 [packets to send 272, broken 271] [09:17:51]ProducePacketName [09:17:51]name=ofd_packets/00072514 [09:17:51]OFD Sender: To server: pG, [09:17:51]CommunicateWithHost lk.salyk.kg:30040 [09:17:51]ConnectInit lk.salyk.kg [09:17:59]recv_with_timeout no data received [09:18:07]Connected sock=7 [09:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D5 57 07 01 DB 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3D B8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 13 00 00 00 00 07 04 06 00 FC B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 B3 56 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 42 1B 01 00 35 04 06 00 DB 20 B2 D9 E2 BF D8 31 D7 36 6A E2 D3 D7 [09:18:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DC C4 47 00 07 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 34 36 36 32 10 04 04 00 42 1B 01 00 F4 03 04 00 8E 01 1F 67 B6 04 01 00 00 E3 05 24 F7 55 EE 60 0C [09:18:10]CommunicateWithHost err = 0 [09:18:10]CheckOFDResponse [09:18:10]1017 (14) - 77093643461234 [09:18:10]1041 (16) - 0000000000874662 [09:18:10]1040 (4) - 72514 [09:18:10]1012 (4) - 28.10.2024 03:14 [09:18:10]1206 (1) - 0 [09:18:10]OFD Sender: Remove packet 72514 [09:18:10]ProducePacketName [09:18:10]name=ofd_packets/00072514 [09:18:10]NVStorageDeleteData [09:18:11]OFD Sender: No OFD packet to send [09:18:13]recv_with_timeout no data received [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:29]recv_with_timeout no data received [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:41]recv_with_timeout no data received [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:54]recv_with_timeout no data received [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]recv_with_timeout no data received [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:20]recv_with_timeout no data received [09:19:21]OFD Sender: No OFD packet to send [09:19:26]OFD Sender: No OFD packet to send [09:19:31]OFD Sender: No OFD packet to send [09:19:33]recv_with_timeout no data received [09:19:36]OFD Sender: No OFD packet to send [09:19:41]OFD Sender: No OFD packet to send [09:19:46]OFD Sender: No OFD packet to send [09:19:51]OFD Sender: No OFD packet to send [09:19:56]OFD Sender: No OFD packet to send [09:20:01]OFD Sender: No OFD packet to send [09:20:06]OFD Sender: No OFD packet to send [09:20:10]recv_with_timeout no data received [09:20:11]OFD Sender: No OFD packet to send [09:20:16]OFD Sender: No OFD packet to send [09:20:21]OFD Sender: No OFD packet to send [09:20:26]OFD Sender: No OFD packet to send [09:20:27]recv_with_timeout no data received [09:20:31]OFD Sender: No OFD packet to send [09:20:36]OFD Sender: No OFD packet to send [09:20:41]OFD Sender: No OFD packet to send [09:20:45]recv_with_timeout no data received [09:20:46]OFD Sender: No OFD packet to send [09:20:51]OFD Sender: No OFD packet to send [09:20:56]OFD Sender: No OFD packet to send [09:21:01]OFD Sender: No OFD packet to send [09:21:06]OFD Sender: No OFD packet to send [09:21:09]recv_with_timeout no data received [09:21:11]OFD Sender: No OFD packet to send [09:21:16]OFD Sender: No OFD packet to send [09:21:21]OFD Sender: No OFD packet to send [09:21:26]OFD Sender: No OFD packet to send [09:21:31]OFD Sender: No OFD packet to send [09:21:36]OFD Sender: No OFD packet to send [09:21:41]OFD Sender: No OFD packet to send [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:09]accept exits with 6 [09:22:09]New connection [09:22:09]New thread 3066936676 created [09:22:09]Thread 3066793316 joined [09:22:09]Waiting for new connection... [09:22:09] Sock 6.Parse request [09:22:09]Sock 6.Check first char [09:22:09]Sock 6.First char is OK [09:22:09]request: POST /json_proto HTTP/1.0 [09:22:09]Method: POST [09:22:09]URL: /json_proto [09:22:09]Method is POST - this is cgi request [09:22:09]url: /json_proto [09:22:09]query_string will be loaded in cgi processing [09:22:09]execute_cgi json_proto POST (null) [09:22:09]execute_cgi path=json_proto method=POST [09:22:09]POST find Content-Length [09:22:09]Host: 172.17.43.195:8080 [09:22:09]Content-Length: 797 [09:22:09]Content-Type: application/json [09:22:09] [09:22:09]POST finish read [09:22:09]Found Content-Length = 797 [09:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 80.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:09]execute_script... [09:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951961", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 80.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:22:09]POST & json_proto [09:22:09]process_json_proto [09:22:09]json parsed OK: [09:22:09]protocol is kg_v1.0 [09:22:09]action value=close_receipt [09:22:09]process_action close_receipt [09:22:09]cmd_close_receipt [09:22:09]MH_GetDate [09:22:09]Write to MH i2c: F0 00 00 26 01 16 [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: F0 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: F0 09 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: F0 09 00 26 01 00 C1 57 1F 67 74 2C AD 66 70 [09:22:09]GetLastDocTimeStamp 1730107059 [09:22:09]current date 1730107329 [09:22:09]FM_GetShiftState [09:22:09]SAM_PROTO_GetShiftState [09:22:09]wFMCommunicate request_size=4 [09:22:09]MH_SAM_APDU [09:22:09]CAPDU: 80 13 01 00 [09:22:09]Write to MH i2c: E2 08 00 27 01 80 13 01 00 00 00 00 00 A5 [09:22:09]Write i2c OK [09:22:09]MH_I2C_Read... [09:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:09]Read from MH i2c: E2 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 0E 00 [09:22:09]MH_I2C_Read... [09:22:09]Read from MH i2c: E2 0E 00 27 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0D [09:22:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:22:09]wFMCommunicate OK [09:22:09]SAM_PROTO_GetShiftState done [09:22:09]FM_GetShiftState done [09:22:09]opened in 1730074113 [09:22:09]opened+sec_in_day 1730160513 [09:22:09]quantity*price = 0 [09:22:09]sum+1 = 1 [09:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 43 28.10.2024 09:22 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72515 ФПД: 248857120423616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092209&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72515&fm=248857120423616&tin=02508201610067®Number=0000000000091644&sum=0 [09:22:10]StoreToDocumentArchive [09:22:10]shift 554 fd 72515 [09:22:10]save to /storage/0554/doc_00072515 [09:22:10]save last doc name /storage/0554/doc_00072515 to /storage/kkm_last_doc_name [09:22:10]save OK [09:22:10]Clear old archive folders... [09:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:22:10]tlvbuf is 01D7D420 [09:22:10]SAM_PROTO_ClearQueue [09:22:10]wFMCommunicate request_size=4 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 09 00 00 [09:22:10]Write to MH i2c: E2 08 00 34 01 80 09 00 00 00 00 00 00 A7 [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [09:22:10]RAPDU: 90 00 [09:22:10]wFMCommunicate OK [09:22:10]SAM_PROTO_ClearQueue done [09:22:10]KKMCreateOFDPacket [09:22:10]OFDProtocolAddRootSTLVToBuf [09:22:10]FM_MakeSignedData [09:22:10]FM_MakeSignedData [09:22:10]SAM_PROTO_SignData [09:22:10]wFMCommunicate request_size=4 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 0D 01 02 [09:22:10]Write to MH i2c: E2 08 00 35 01 80 0D 01 02 00 00 00 00 AF [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 35 01 00 90 00 AA [09:22:10]RAPDU: 90 00 [09:22:10]wFMCommunicate OK [09:22:10]wFMCommunicate request_size=255 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C1 57 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1B 01 00 35 04 06 00 [09:22:10]Write to MH i2c: E2 02 01 36 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C1 57 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1B 01 00 35 04 06 00 00 00 01 [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 36 01 00 90 00 AB [09:22:10]RAPDU: 90 00 [09:22:10]wFMCommunicate OK [09:22:10]wFMCommunicate request_size=11 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 0D 02 02 06 E2 55 90 43 3E C0 [09:22:10]Write to MH i2c: E2 0E 00 37 01 80 0D 02 02 06 00 E2 55 90 43 3E C0 00 00 C6 [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [09:22:10]RAPDU: 90 00 [09:22:10]wFMCommunicate OK [09:22:10]wFMCommunicate request_size=4 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 0D 03 02 [09:22:10]Write to MH i2c: E2 08 00 38 01 80 0D 03 02 00 00 00 00 B4 [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 0B 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 0B 00 38 01 00 13 0F 4B 0E 90 58 DC F8 90 00 EC [09:22:10]RAPDU: 13 0F 4B 0E 90 58 DC F8 90 00 [09:22:10]wFMCommunicate OK [09:22:10]SAM_PROTO_SignData done [09:22:10]FM_MakeSignedData done [09:22:10]CreateOFDProtocolMessage [09:22:10]wFMCommunicate request_size=4 [09:22:10]MH_SAM_APDU [09:22:10]CAPDU: 80 11 00 00 [09:22:10]Write to MH i2c: E2 08 00 39 01 80 11 00 00 00 00 00 00 B4 [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:10]Read from MH i2c: E2 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 17 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: E2 17 00 39 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [09:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:10]wFMCommunicate OK [09:22:10]CreateOFDProtocolMessage done [09:22:10]OFDSenderStorePacket 72515 [09:22:10]StoreOFDPacket docnum=72515 [09:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F4 3C 08 01 0F 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C1 57 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1B 01 00 35 04 06 00 E2 55 90 43 3E C0 13 0F 4B 0E 90 58 DC F8 [09:22:10]CheckFolder [09:22:10]dirname=/storage/ofd_packets [09:22:10]CheckFolder done [09:22:10]ProducePacketName [09:22:10]name=ofd_packets/00072515 [09:22:10]NVStorageSaveData ofd_packets/00072515 [09:22:10]File name is /storage/ofd_packets/00072515 [09:22:10]Write 302 bytes [09:22:10]NVStorageSaveData done [09:22:10]OFDSenderStorePacket done [09:22:10]KKMCreateOFDPacket done [09:22:10]NVStorageSaveData kkm_last_timestamp [09:22:10]File name is /storage/kkm_last_timestamp [09:22:10]Write 4 bytes [09:22:10]NVStorageSaveData done [09:22:10]ExternCall_PrintAddStr [09:22:10]wPrintStart [09:22:10]Write to MH i2c: 01 00 00 3A 01 3B [09:22:10]Write i2c OK [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: 01 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: 01 07 00 [09:22:10]MH_I2C_Read... [09:22:10]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 FF 0F 50 [09:22:10]RasterBufferAndPrint [09:22:10]line Счет N : (1)951961 [09:22:10]line ИНН: 02508201610067 [09:22:10]line Контрольно-Кассовый Чек [09:22:10]line ПРОДАЖА [09:22:10]line ТРК (МРК, ГНК) : 22 [09:22:10]line Товар: 2710194210 [09:22:10]line ДТ(л)-К-5 [09:22:10]line 80.000 * 0.00 [09:22:10]line = 0.00 [09:22:10]line НДС 12% НСП 1% [09:22:10]line > о реализуемом товаре [09:22:10]line ИТОГО: 0.00 [09:22:10]line НСП 1% : 0.00 [09:22:10]line НДС 12% : 0.00 [09:22:10]line Наличными: 0.00 [09:22:10]line Безнал.: 0.00 [09:22:10]line Место: АЗС № 113 "Партнер Нефть" [09:22:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:22:10]line СНО: Общий режим [09:22:10]line Чек 43 28.10.2024 09:22 [09:22:10]line Смена: 554 ФФД: 1.0 [09:22:10]line ЗНМ: 0300000087 [09:22:10]line РНМ: 0000000000091644 [09:22:10]line Версия ККМ: 001 [09:22:10]line Талоны: Топливная Карта [09:22:10]line 53623 [09:22:10]line ФМ: 0000000000874662 [09:22:10]line ФД: 72515 [09:22:10]line ФПД: 248857120423616 [09:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092209&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72515&fm=248857120423616&tin=02508201610067®Number=0000000000091644&sum=0 [09:22:11]written 0, free lines is 4095 [09:22:11]OFD Sender: Processing packet 72515 [packets to send 272, broken 271] [09:22:11]ProducePacketName [09:22:11]name=ofd_packets/00072515 [09:22:11]OFD Sender: To server: pG, [09:22:11]CommunicateWithHost lk.salyk.kg:30040 [09:22:11]ConnectInit lk.salyk.kg [09:22:11]Write to MH i2c: 01 00 00 64 01 65 [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: 01 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: 01 07 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: 01 07 00 64 01 00 00 00 00 00 DB 0C 53 [09:22:11]RasterBufferAndPrint [09:22:11]line [09:22:11]line [09:22:11]line [09:22:11]line [09:22:11]line [09:22:11]written 0, free lines is 3297 [09:22:11]MH_Cut [09:22:11]Write to MH i2c: D1 01 00 6B 01 01 3E [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: D1 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: D1 01 00 [09:22:11]MH_I2C_Read... [09:22:11]Read from MH i2c: D1 01 00 6B 01 00 3D [09:22:11]Write to MH i2c: 01 00 00 6C 01 6D [09:22:11]Write i2c OK [09:22:11]MH_I2C_Read... [09:22:12]*** Cut start [09:22:12]*** Partial cut [09:22:12]*** CUTSNS_PIN = 1 [09:22:12]*** CUTSNS_PIN = 0 [09:22:12]*** Brake cut motor [09:22:12]Read from MH i2c: 01 [09:22:12]MH_I2C_Read... [09:22:13]*** Stop cut motor [09:22:13]*** Cut end [09:22:13]Read from MH i2c: 01 07 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: 01 07 00 6C 01 00 00 00 00 00 FF 0F 82 [09:22:13]process_action close_receipt done [09:22:13]requested_data is exist [09:22:13]produce_requested_data [09:22:13]requested_item fm.sn is exist - process it [09:22:13]wFMCommunicate request_size=4 [09:22:13]MH_SAM_APDU [09:22:13]CAPDU: 80 11 00 00 [09:22:13]Write to MH i2c: E2 08 00 6D 01 80 11 00 00 00 00 00 00 E8 [09:22:13]Write i2c OK [09:22:13]MH_I2C_Read... [09:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:22:13]Read from MH i2c: E2 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 17 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 17 00 6D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [09:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:22:13]wFMCommunicate OK [09:22:13]requested_item fd.num is exist - process it [09:22:13]SAM_PROTO_GetFieldsCounters [09:22:13]wFMCommunicate request_size=4 [09:22:13]MH_SAM_APDU [09:22:13]CAPDU: 80 13 00 00 [09:22:13]Write to MH i2c: E2 08 00 6E 01 80 13 00 00 00 00 00 00 EB [09:22:13]Write i2c OK [09:22:13]MH_I2C_Read... [09:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:22:13]Read from MH i2c: E2 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 62 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 62 00 6E 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [09:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 43 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:22:13]wFMCommunicate OK [09:22:13]SAM_PROTO_GetFieldsCounters done [09:22:13]requested_item shift.num is exist - process it [09:22:13]requested_item shift.opened is exist - process it [09:22:13]req_shift_opened [09:22:13]FM_GetShiftState [09:22:13]SAM_PROTO_GetShiftState [09:22:13]wFMCommunicate request_size=4 [09:22:13]MH_SAM_APDU [09:22:13]CAPDU: 80 13 01 00 [09:22:13]Write to MH i2c: E2 08 00 6F 01 80 13 01 00 00 00 00 00 ED [09:22:13]Write i2c OK [09:22:13]MH_I2C_Read... [09:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:22:13]Read from MH i2c: E2 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 0E 00 [09:22:13]MH_I2C_Read... [09:22:13]Read from MH i2c: E2 0E 00 6F 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 55 [09:22:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:22:13]wFMCommunicate OK [09:22:13]SAM_PROTO_GetShiftState done [09:22:13]FM_GetShiftState done [09:22:13]req_shift_opened done [09:22:13]requested_item shift.open_date is exist - process it [09:22:13]req_shift_open_date [09:22:13]req_shift_open_date done [09:22:13]produce_requested_data done [09:22:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72515,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:22:13]process_action_free close_receipt [09:22:13]json_value_free [09:22:13]json_value_free done [09:22:13]process_json_proto returns [09:22:13]Send response to host [09:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72515,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:22:13]free response buf [09:22:13]execute_script done [09:22:13]execute_script returns [09:22:13]free content buf [09:22:13]Sock 6.Close socket [09:22:13]Sock 6.Thread stoped [09:22:15]recv_with_timeout no data received [09:22:16]ConnectInit Can't take IP for lk.salyk.kg [09:22:16]CommunicateWithHost connect error [09:22:16]CommunicateWithHost err = -1 [09:22:16]OFD Sender: Server communicate error [09:22:21]OFD Sender: Processing packet 72515 [packets to send 272, broken 271] [09:22:21]ProducePacketName [09:22:21]name=ofd_packets/00072515 [09:22:21]OFD Sender: To server: pG, [09:22:21]CommunicateWithHost lk.salyk.kg:30040 [09:22:21]ConnectInit lk.salyk.kg [09:22:25]recv_with_timeout no data received [09:22:26]ConnectInit Can't take IP for lk.salyk.kg [09:22:26]CommunicateWithHost connect error [09:22:26]CommunicateWithHost err = -1 [09:22:26]OFD Sender: Server communicate error [09:22:31]OFD Sender: Processing packet 72515 [packets to send 272, broken 271] [09:22:31]ProducePacketName [09:22:31]name=ofd_packets/00072515 [09:22:31]OFD Sender: To server: pG, [09:22:31]CommunicateWithHost lk.salyk.kg:30040 [09:22:31]ConnectInit lk.salyk.kg [09:22:41]recv_with_timeout no data received [09:22:50]Connected sock=7 [09:22:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F4 3C 08 01 0F 18 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 38 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 C1 57 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1B 01 00 35 04 06 00 E2 55 90 43 3E C0 13 0F 4B 0E 90 58 DC F8 [09:22:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 93 F0 47 00 60 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 43 1B 01 00 F4 03 04 00 A8 02 1F 67 B6 04 01 00 00 1B DD E3 82 38 D5 74 3C [09:22:51]CommunicateWithHost err = 0 [09:22:51]CheckOFDResponse [09:22:51]1017 (14) - 77093643461234 [09:22:51]1041 (16) - 0000000000874662 [09:22:51]1040 (4) - 72515 [09:22:51]1012 (4) - 28.10.2024 03:19 [09:22:51]1206 (1) - 0 [09:22:51]OFD Sender: Remove packet 72515 [09:22:51]ProducePacketName [09:22:51]name=ofd_packets/00072515 [09:22:51]NVStorageDeleteData [09:22:52]OFD Sender: No OFD packet to send [09:22:55]recv_with_timeout no data received [09:22:57]OFD Sender: No OFD packet to send [09:23:02]OFD Sender: No OFD packet to send [09:23:07]OFD Sender: No OFD packet to send [09:23:12]OFD Sender: No OFD packet to send [09:23:17]OFD Sender: No OFD packet to send [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:30]recv_with_timeout no data received [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:27]recv_with_timeout no data received [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:29]accept exits with 5 [09:25:29]New connection [09:25:29]New thread 3066793316 created [09:25:29]Thread 3066936676 joined [09:25:29]Waiting for new connection... [09:25:29] Sock 5.Parse request [09:25:29]Sock 5.Check first char [09:25:29]Sock 5.First char is OK [09:25:29]request: POST /json_proto HTTP/1.0 [09:25:29]Method: POST [09:25:29]URL: /json_proto [09:25:29]Method is POST - this is cgi request [09:25:29]url: /json_proto [09:25:29]query_string will be loaded in cgi processing [09:25:29]execute_cgi json_proto POST (null) [09:25:29]execute_cgi path=json_proto method=POST [09:25:29]POST find Content-Length [09:25:29]Host: 172.17.43.195:8080 [09:25:29]Content-Length: 797 [09:25:29]Content-Type: application/json [09:25:29] [09:25:29]POST finish read [09:25:29]Found Content-Length = 797 [09:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:29]execute_script... [09:25: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)951962", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:25:29]POST & json_proto [09:25:29]process_json_proto [09:25:29]json parsed OK: [09:25:29]protocol is kg_v1.0 [09:25:29]action value=close_receipt [09:25:29]process_action close_receipt [09:25:29]cmd_close_receipt [09:25:29]MH_GetDate [09:25:29]Write to MH i2c: F0 00 00 70 01 60 [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 09 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: F0 09 00 70 01 00 8A 58 1F 67 74 2C AD 66 84 [09:25:29]GetLastDocTimeStamp 1730107329 [09:25:29]current date 1730107530 [09:25:29]FM_GetShiftState [09:25:29]SAM_PROTO_GetShiftState [09:25:29]wFMCommunicate request_size=4 [09:25:29]MH_SAM_APDU [09:25:29]CAPDU: 80 13 01 00 [09:25:29]Write to MH i2c: E2 08 00 71 01 80 13 01 00 00 00 00 00 EF [09:25:29]Write i2c OK [09:25:29]MH_I2C_Read... [09:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:29]Read from MH i2c: E2 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 [09:25:29]MH_I2C_Read... [09:25:29]Read from MH i2c: E2 0E 00 71 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 57 [09:25:29]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:25:29]wFMCommunicate OK [09:25:29]SAM_PROTO_GetShiftState done [09:25:29]FM_GetShiftState done [09:25:29]opened in 1730074113 [09:25:29]opened+sec_in_day 1730160513 [09:25:29]quantity*price = 0 [09:25:29]sum+1 = 1 [09:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 44 28.10.2024 09:25 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72516 ФПД: 182826451700938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092530&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72516&fm=182826451700938&tin=02508201610067®Number=0000000000091644&sum=0 [09:25:31]StoreToDocumentArchive [09:25:31]shift 554 fd 72516 [09:25:31]save to /storage/0554/doc_00072516 [09:25:31]save last doc name /storage/0554/doc_00072516 to /storage/kkm_last_doc_name [09:25:31]save OK [09:25:31]Clear old archive folders... [09:25:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:25:31]tlvbuf is 01D7B500 [09:25:31]SAM_PROTO_ClearQueue [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 09 00 00 [09:25:31]Write to MH i2c: E2 08 00 7E 01 80 09 00 00 00 00 00 00 F1 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 7E 01 00 90 00 F3 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_ClearQueue done [09:25:31]KKMCreateOFDPacket [09:25:31]OFDProtocolAddRootSTLVToBuf [09:25:31]FM_MakeSignedData [09:25:31]FM_MakeSignedData [09:25:31]SAM_PROTO_SignData [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 01 02 [09:25:31]Write to MH i2c: E2 08 00 7F 01 80 0D 01 02 00 00 00 00 F9 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 7F 01 00 90 00 F4 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=255 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 10 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 2C 00 00 00 F4 03 04 00 8A 58 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1B 01 00 35 04 06 00 [09:25:31]Write to MH i2c: E2 02 01 80 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 8A 58 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1B 01 00 35 04 06 00 00 00 95 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 80 01 00 90 00 F5 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=11 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 02 02 06 A6 47 99 B5 8C CA [09:25:31]Write to MH i2c: E2 0E 00 81 01 80 0D 02 02 06 00 A6 47 99 B5 8C CA 00 00 99 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 03 00 81 01 00 90 00 F6 [09:25:31]RAPDU: 90 00 [09:25:31]wFMCommunicate OK [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 0D 03 02 [09:25:31]Write to MH i2c: E2 08 00 82 01 80 0D 03 02 00 00 00 00 FE [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 0B 00 82 01 00 47 31 1C 48 EA 64 86 F9 90 00 A8 [09:25:31]RAPDU: 47 31 1C 48 EA 64 86 F9 90 00 [09:25:31]wFMCommunicate OK [09:25:31]SAM_PROTO_SignData done [09:25:31]FM_MakeSignedData done [09:25:31]CreateOFDProtocolMessage [09:25:31]wFMCommunicate request_size=4 [09:25:31]MH_SAM_APDU [09:25:31]CAPDU: 80 11 00 00 [09:25:31]Write to MH i2c: E2 08 00 83 01 80 11 00 00 00 00 00 00 FE [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:31]Read from MH i2c: E2 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: E2 17 00 83 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [09:25:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:25:31]wFMCommunicate OK [09:25:31]CreateOFDProtocolMessage done [09:25:31]OFDSenderStorePacket 72516 [09:25:31]StoreOFDPacket docnum=72516 [09:25:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EB 70 08 01 8F FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 8A 58 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1B 01 00 35 04 06 00 A6 47 99 B5 8C CA 47 31 1C 48 EA 64 86 F9 [09:25:31]CheckFolder [09:25:31]dirname=/storage/ofd_packets [09:25:31]CheckFolder done [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00072516 [09:25:31]NVStorageSaveData ofd_packets/00072516 [09:25:31]File name is /storage/ofd_packets/00072516 [09:25:31]Write 302 bytes [09:25:31]NVStorageSaveData done [09:25:31]OFDSenderStorePacket done [09:25:31]KKMCreateOFDPacket done [09:25:31]NVStorageSaveData kkm_last_timestamp [09:25:31]File name is /storage/kkm_last_timestamp [09:25:31]Write 4 bytes [09:25:31]NVStorageSaveData done [09:25:31]ExternCall_PrintAddStr [09:25:31]wPrintStart [09:25:31]Write to MH i2c: 01 00 00 84 01 85 [09:25:31]Write i2c OK [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 [09:25:31]MH_I2C_Read... [09:25:31]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 FF 0F 9A [09:25:31]RasterBufferAndPrint [09:25:31]line Счет N : (1)951962 [09:25:31]line ИНН: 02508201610067 [09:25:31]line Контрольно-Кассовый Чек [09:25:31]line ПРОДАЖА [09:25:31]line ТРК (МРК, ГНК) : 43 [09:25:31]line Товар: 2710194210 [09:25:31]line ДТ(л)-К-5 [09:25:31]line 10.000 * 0.00 [09:25:31]line = 0.00 [09:25:31]line НДС 12% НСП 1% [09:25:31]line > о реализуемом товаре [09:25:31]line ИТОГО: 0.00 [09:25:31]line НСП 1% : 0.00 [09:25:31]line НДС 12% : 0.00 [09:25:31]line Наличными: 0.00 [09:25:31]line Безнал.: 0.00 [09:25:31]line Место: АЗС № 113 "Партнер Нефть" [09:25:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:25:31]line СНО: Общий режим [09:25:31]line Чек 44 28.10.2024 09:25 [09:25:31]line Смена: 554 ФФД: 1.0 [09:25:31]line ЗНМ: 0300000087 [09:25:31]line РНМ: 0000000000091644 [09:25:31]line Версия ККМ: 001 [09:25:31]line Талоны: Топливная Карта [09:25:31]line 02083 [09:25:31]line ФМ: 0000000000874662 [09:25:31]line ФД: 72516 [09:25:31]line ФПД: 182826451700938 [09:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092530&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72516&fm=182826451700938&tin=02508201610067®Number=0000000000091644&sum=0 [09:25:31]written 0, free lines is 4095 [09:25:31]OFD Sender: Processing packet 72516 [packets to send 272, broken 271] [09:25:31]ProducePacketName [09:25:31]name=ofd_packets/00072516 [09:25:31]OFD Sender: To server: pG, [09:25:31]CommunicateWithHost lk.salyk.kg:30040 [09:25:31]ConnectInit lk.salyk.kg [09:25:32]Write to MH i2c: 01 00 00 AE 01 AF [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: 01 07 00 AE 01 00 00 00 00 00 DA 0C 9C [09:25:32]RasterBufferAndPrint [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]line [09:25:32]written 0, free lines is 3296 [09:25:32]MH_Cut [09:25:32]Write to MH i2c: D1 01 00 B5 01 01 88 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 01 00 [09:25:32]MH_I2C_Read... [09:25:32]Read from MH i2c: D1 01 00 B5 01 00 87 [09:25:32]Write to MH i2c: 01 00 00 B6 01 B7 [09:25:32]Write i2c OK [09:25:32]MH_I2C_Read... [09:25:33]Connected sock=9 [09:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EB 70 08 01 8F FB 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 2C 00 00 00 F4 03 04 00 8A 58 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 44 1B 01 00 35 04 06 00 A6 47 99 B5 8C CA 47 31 1C 48 EA 64 86 F9 [09:25:33]*** Cut start [09:25:33]*** Partial cut [09:25:33]*** CUTSNS_PIN = 1 [09:25:33]*** CUTSNS_PIN = 0 [09:25:33]*** Brake cut motor [09:25:33]Read from MH i2c: 01 [09:25:33]MH_I2C_Read... [09:25:33]*** Stop cut motor [09:25:33]*** Cut end [09:25:33]Read from MH i2c: 01 07 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: 01 07 00 B6 01 00 00 00 00 00 FF 0F CC [09:25:33]process_action close_receipt done [09:25:33]requested_data is exist [09:25:33]produce_requested_data [09:25:33]requested_item fm.sn is exist - process it [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 11 00 00 [09:25:33]Write to MH i2c: E2 08 00 B7 01 80 11 00 00 00 00 00 00 32 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 17 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 17 00 B7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [09:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:25:33]wFMCommunicate OK [09:25:33]requested_item fd.num is exist - process it [09:25:33]SAM_PROTO_GetFieldsCounters [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 13 00 00 [09:25:33]Write to MH i2c: E2 08 00 B8 01 80 13 00 00 00 00 00 00 35 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:25:33]Read from MH i2c: E2 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 62 00 [09:25:33]MH_I2C_Read... [09:25:33]Read from MH i2c: E2 62 00 B8 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:25: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 44 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:25:33]wFMCommunicate OK [09:25:33]SAM_PROTO_GetFieldsCounters done [09:25:33]requested_item shift.num is exist - process it [09:25:33]requested_item shift.opened is exist - process it [09:25:33]req_shift_opened [09:25:33]FM_GetShiftState [09:25:33]SAM_PROTO_GetShiftState [09:25:33]wFMCommunicate request_size=4 [09:25:33]MH_SAM_APDU [09:25:33]CAPDU: 80 13 01 00 [09:25:33]Write to MH i2c: E2 08 00 B9 01 80 13 01 00 00 00 00 00 37 [09:25:33]Write i2c OK [09:25:33]MH_I2C_Read... [09:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:25:34]Read from MH i2c: E2 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0E 00 [09:25:34]MH_I2C_Read... [09:25:34]Read from MH i2c: E2 0E 00 B9 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9F [09:25:34]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:25:34]wFMCommunicate OK [09:25:34]SAM_PROTO_GetShiftState done [09:25:34]FM_GetShiftState done [09:25:34]req_shift_opened done [09:25:34]requested_item shift.open_date is exist - process it [09:25:34]req_shift_open_date [09:25:34]req_shift_open_date done [09:25:34]produce_requested_data done [09:25:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72516,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:25:34]process_action_free close_receipt [09:25:34]json_value_free [09:25:34]json_value_free done [09:25:34]process_json_proto returns [09:25:34]Send response to host [09:25:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72516,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:25:34]free response buf [09:25:34]execute_script done [09:25:34]execute_script returns [09:25:34]free content buf [09:25:34]Sock 5.Close socket [09:25:34]Sock 5.Thread stoped [09:25:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 5D 8C 47 00 CF 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 34 36 36 32 10 04 04 00 44 1B 01 00 F4 03 04 00 4D 03 1F 67 B6 04 01 00 00 F3 40 8A B5 B6 2A A8 58 [09:25:37]CommunicateWithHost err = 0 [09:25:37]CheckOFDResponse [09:25:37]1017 (14) - 77093643461234 [09:25:37]1041 (16) - 0000000000874662 [09:25:37]1040 (4) - 72516 [09:25:37]1012 (4) - 28.10.2024 03:21 [09:25:37]1206 (1) - 0 [09:25:37]OFD Sender: Remove packet 72516 [09:25:37]ProducePacketName [09:25:37]name=ofd_packets/00072516 [09:25:37]NVStorageDeleteData [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:48]recv_with_timeout no data received [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:25:59]recv_with_timeout no data received [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:03]recv_with_timeout no data received [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:25]recv_with_timeout no data received [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:48]accept exits with 6 [09:28:48]New connection [09:28:48]New thread 3066936676 created [09:28:48]Thread 3066793316 joined [09:28:48]Waiting for new connection... [09:28:48] Sock 6.Parse request [09:28:48]Sock 6.Check first char [09:28:48]Sock 6.First char is OK [09:28:48]request: POST /json_proto HTTP/1.0 [09:28:48]Method: POST [09:28:48]URL: /json_proto [09:28:48]Method is POST - this is cgi request [09:28:48]url: /json_proto [09:28:48]query_string will be loaded in cgi processing [09:28:48]execute_cgi json_proto POST (null) [09:28:48]execute_cgi path=json_proto method=POST [09:28:48]POST find Content-Length [09:28:48]Host: 172.17.43.195:8080 [09:28:48]Content-Length: 797 [09:28:48]Content-Type: application/json [09:28:48] [09:28:48]POST finish read [09:28:48]Found Content-Length = 797 [09:28:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:48]execute_script... [09:28:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951963", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:28:48]POST & json_proto [09:28:48]process_json_proto [09:28:48]json parsed OK: [09:28:48]protocol is kg_v1.0 [09:28:48]action value=close_receipt [09:28:48]process_action close_receipt [09:28:48]cmd_close_receipt [09:28:48]MH_GetDate [09:28:48]Write to MH i2c: F0 00 00 BA 01 AA [09:28:48]Write i2c OK [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 09 00 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: F0 09 00 BA 01 00 50 59 1F 67 74 2C AD 66 95 [09:28:48]GetLastDocTimeStamp 1730107530 [09:28:48]current date 1730107728 [09:28:48]FM_GetShiftState [09:28:48]SAM_PROTO_GetShiftState [09:28:48]wFMCommunicate request_size=4 [09:28:48]MH_SAM_APDU [09:28:48]CAPDU: 80 13 01 00 [09:28:48]Write to MH i2c: E2 08 00 BB 01 80 13 01 00 00 00 00 00 39 [09:28:48]Write i2c OK [09:28:48]MH_I2C_Read... [09:28:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:48]Read from MH i2c: E2 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: E2 0E 00 [09:28:48]MH_I2C_Read... [09:28:48]Read from MH i2c: E2 0E 00 BB 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A1 [09:28:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:28:48]wFMCommunicate OK [09:28:48]SAM_PROTO_GetShiftState done [09:28:48]FM_GetShiftState done [09:28:48]opened in 1730074113 [09:28:48]opened+sec_in_day 1730160513 [09:28:48]quantity*price = 0 [09:28:48]sum+1 = 1 [09:28:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 45 28.10.2024 09:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72517 ФПД: 116232781850162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092848&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72517&fm=116232781850162&tin=02508201610067®Number=0000000000091644&sum=0 [09:28:49]StoreToDocumentArchive [09:28:49]shift 554 fd 72517 [09:28:49]save to /storage/0554/doc_00072517 [09:28:49]save last doc name /storage/0554/doc_00072517 to /storage/kkm_last_doc_name [09:28:49]save OK [09:28:49]Clear old archive folders... [09:28:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:28:49]tlvbuf is 01CA88F0 [09:28:49]SAM_PROTO_ClearQueue [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 09 00 00 [09:28:49]Write to MH i2c: E2 08 00 C8 01 80 09 00 00 00 00 00 00 3B [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 C8 01 00 90 00 3D [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]SAM_PROTO_ClearQueue done [09:28:49]KKMCreateOFDPacket [09:28:49]OFDProtocolAddRootSTLVToBuf [09:28:49]FM_MakeSignedData [09:28:49]FM_MakeSignedData [09:28:49]SAM_PROTO_SignData [09:28:49]wFMCommunicate request_size=4 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 0D 01 02 [09:28:49]Write to MH i2c: E2 08 00 C9 01 80 0D 01 02 00 00 00 00 43 [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:28:49]Read from MH i2c: E2 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 [09:28:49]MH_I2C_Read... [09:28:49]Read from MH i2c: E2 03 00 C9 01 00 90 00 3E [09:28:49]RAPDU: 90 00 [09:28:49]wFMCommunicate OK [09:28:49]wFMCommunicate request_size=255 [09:28:49]MH_SAM_APDU [09:28:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 50 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1B 01 00 35 04 06 00 [09:28:49]Write to MH i2c: E2 02 01 CA 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 50 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1B 01 00 35 04 06 00 00 00 7F [09:28:49]Write i2c OK [09:28:49]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 CA 01 00 90 00 3F [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]wFMCommunicate request_size=11 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 02 02 06 69 B6 8D AC 66 32 [09:28:50]Write to MH i2c: E2 0E 00 CB 01 80 0D 02 02 06 00 69 B6 8D AC 66 32 00 00 42 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 03 00 CB 01 00 90 00 40 [09:28:50]RAPDU: 90 00 [09:28:50]wFMCommunicate OK [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 0D 03 02 [09:28:50]Write to MH i2c: E2 08 00 CC 01 80 0D 03 02 00 00 00 00 48 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 0B 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 0B 00 CC 01 00 B1 E6 3E 06 C8 37 8C 0F 90 00 BE [09:28:50]RAPDU: B1 E6 3E 06 C8 37 8C 0F 90 00 [09:28:50]wFMCommunicate OK [09:28:50]SAM_PROTO_SignData done [09:28:50]FM_MakeSignedData done [09:28:50]CreateOFDProtocolMessage [09:28:50]wFMCommunicate request_size=4 [09:28:50]MH_SAM_APDU [09:28:50]CAPDU: 80 11 00 00 [09:28:50]Write to MH i2c: E2 08 00 CD 01 80 11 00 00 00 00 00 00 48 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:50]Read from MH i2c: E2 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 17 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: E2 17 00 CD 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [09:28:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:50]wFMCommunicate OK [09:28:50]CreateOFDProtocolMessage done [09:28:50]OFDSenderStorePacket 72517 [09:28:50]StoreOFDPacket docnum=72517 [09:28:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 47 2C 08 01 3A 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 50 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1B 01 00 35 04 06 00 69 B6 8D AC 66 32 B1 E6 3E 06 C8 37 8C 0F [09:28:50]CheckFolder [09:28:50]dirname=/storage/ofd_packets [09:28:50]CheckFolder done [09:28:50]ProducePacketName [09:28:50]name=ofd_packets/00072517 [09:28:50]NVStorageSaveData ofd_packets/00072517 [09:28:50]File name is /storage/ofd_packets/00072517 [09:28:50]Write 302 bytes [09:28:50]NVStorageSaveData done [09:28:50]OFDSenderStorePacket done [09:28:50]KKMCreateOFDPacket done [09:28:50]NVStorageSaveData kkm_last_timestamp [09:28:50]File name is /storage/kkm_last_timestamp [09:28:50]Write 4 bytes [09:28:50]NVStorageSaveData done [09:28:50]ExternCall_PrintAddStr [09:28:50]wPrintStart [09:28:50]Write to MH i2c: 01 00 00 CE 01 CF [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FF 0F E4 [09:28:50]RasterBufferAndPrint [09:28:50]line Счет N : (1)951963 [09:28:50]line ИНН: 02508201610067 [09:28:50]line Контрольно-Кассовый Чек [09:28:50]line ПРОДАЖА [09:28:50]line ТРК (МРК, ГНК) : 33 [09:28:50]line Товар: 2710194210 [09:28:50]line ДТ(л)-К-5 [09:28:50]line 12.000 * 0.00 [09:28:50]line = 0.00 [09:28:50]line НДС 12% НСП 1% [09:28:50]line > о реализуемом товаре [09:28:50]line ИТОГО: 0.00 [09:28:50]line НСП 1% : 0.00 [09:28:50]line НДС 12% : 0.00 [09:28:50]line Наличными: 0.00 [09:28:50]line Безнал.: 0.00 [09:28:50]line Место: АЗС № 113 "Партнер Нефть" [09:28:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:28:50]line СНО: Общий режим [09:28:50]line Чек 45 28.10.2024 09:28 [09:28:50]line Смена: 554 ФФД: 1.0 [09:28:50]line ЗНМ: 0300000087 [09:28:50]line РНМ: 0000000000091644 [09:28:50]line Версия ККМ: 001 [09:28:50]line Талоны: Топливная Карта [09:28:50]line 02083 [09:28:50]line ФМ: 0000000000874662 [09:28:50]line ФД: 72517 [09:28:50]line ФПД: 116232781850162 [09:28:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T092848&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72517&fm=116232781850162&tin=02508201610067®Number=0000000000091644&sum=0 [09:28:50]written 0, free lines is 4095 [09:28:50]OFD Sender: Processing packet 72517 [packets to send 272, broken 271] [09:28:50]ProducePacketName [09:28:50]name=ofd_packets/00072517 [09:28:50]OFD Sender: To server: pG, [09:28:50]CommunicateWithHost lk.salyk.kg:30040 [09:28:50]ConnectInit lk.salyk.kg [09:28:50]Write to MH i2c: 01 00 00 F8 01 F9 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: 01 07 00 F8 01 00 00 00 00 00 DA 0C E6 [09:28:50]RasterBufferAndPrint [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]line [09:28:50]written 0, free lines is 3296 [09:28:50]MH_Cut [09:28:50]Write to MH i2c: D1 01 00 FF 01 01 D2 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 01 00 [09:28:50]MH_I2C_Read... [09:28:50]Read from MH i2c: D1 01 00 FF 01 00 D1 [09:28:50]Write to MH i2c: 01 00 00 00 02 02 [09:28:50]Write i2c OK [09:28:50]MH_I2C_Read... [09:28:51]*** Cut start [09:28:51]*** Partial cut [09:28:51]*** CUTSNS_PIN = 1 [09:28:51]*** CUTSNS_PIN = 0 [09:28:52]*** Brake cut motor [09:28:52]Read from MH i2c: 01 [09:28:52]MH_I2C_Read... [09:28:52]*** Stop cut motor [09:28:52]*** Cut end [09:28:52]Read from MH i2c: 01 07 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: 01 07 00 00 02 00 00 00 00 00 FF 0F 17 [09:28:52]process_action close_receipt done [09:28:52]requested_data is exist [09:28:52]produce_requested_data [09:28:52]requested_item fm.sn is exist - process it [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 11 00 00 [09:28:52]Write to MH i2c: E2 08 00 01 02 80 11 00 00 00 00 00 00 7D [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 17 00 01 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [09:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:28:52]wFMCommunicate OK [09:28:52]requested_item fd.num is exist - process it [09:28:52]SAM_PROTO_GetFieldsCounters [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 00 00 [09:28:52]Write to MH i2c: E2 08 00 02 02 80 13 00 00 00 00 00 00 80 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 62 00 02 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:28: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 45 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetFieldsCounters done [09:28:52]requested_item shift.num is exist - process it [09:28:52]requested_item shift.opened is exist - process it [09:28:52]req_shift_opened [09:28:52]FM_GetShiftState [09:28:52]SAM_PROTO_GetShiftState [09:28:52]wFMCommunicate request_size=4 [09:28:52]MH_SAM_APDU [09:28:52]CAPDU: 80 13 01 00 [09:28:52]Write to MH i2c: E2 08 00 03 02 80 13 01 00 00 00 00 00 82 [09:28:52]Write i2c OK [09:28:52]MH_I2C_Read... [09:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:28:52]Read from MH i2c: E2 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 [09:28:52]MH_I2C_Read... [09:28:52]Read from MH i2c: E2 0E 00 03 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EA [09:28:52]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:28:52]wFMCommunicate OK [09:28:52]SAM_PROTO_GetShiftState done [09:28:52]FM_GetShiftState done [09:28:52]req_shift_opened done [09:28:52]requested_item shift.open_date is exist - process it [09:28:52]req_shift_open_date [09:28:52]req_shift_open_date done [09:28:52]produce_requested_data done [09:28:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72517,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:28:52]process_action_free close_receipt [09:28:52]json_value_free [09:28:52]json_value_free done [09:28:52]process_json_proto returns [09:28:52]Send response to host [09:28:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72517,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:28:52]free response buf [09:28:52]execute_script done [09:28:52]execute_script returns [09:28:52]free content buf [09:28:52]Sock 6.Close socket [09:28:52]Sock 6.Thread stoped [09:28:54]Connected sock=9 [09:28:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 47 2C 08 01 3A 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 2E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 50 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1B 01 00 35 04 06 00 69 B6 8D AC 66 32 B1 E6 3E 06 C8 37 8C 0F [09:28:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 64 64 47 00 40 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 45 1B 01 00 F4 03 04 00 15 04 1F 67 B6 04 01 00 00 59 C4 FF D1 66 98 59 6B [09:28:56]CommunicateWithHost err = 0 [09:28:56]CheckOFDResponse [09:28:56]1017 (14) - 77093643461234 [09:28:56]1041 (16) - 0000000000874662 [09:28:56]1040 (4) - 72517 [09:28:56]1012 (4) - 28.10.2024 03:25 [09:28:56]1206 (1) - 0 [09:28:56]OFD Sender: Remove packet 72517 [09:28:56]ProducePacketName [09:28:56]name=ofd_packets/00072517 [09:28:56]NVStorageDeleteData [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:06]recv_with_timeout no data received [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:07]recv_with_timeout no data received [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:25]recv_with_timeout no data received [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:44]accept exits with 5 [09:30:44]New connection [09:30:44]New thread 3066793316 created [09:30:44]Thread 3066936676 joined [09:30:44]Waiting for new connection... [09:30:44] Sock 5.Parse request [09:30:44]Sock 5.Check first char [09:30:44]Sock 5.First char is OK [09:30:44]request: POST /json_proto HTTP/1.0 [09:30:44]Method: POST [09:30:44]URL: /json_proto [09:30:44]Method is POST - this is cgi request [09:30:44]url: /json_proto [09:30:44]query_string will be loaded in cgi processing [09:30:44]execute_cgi json_proto POST (null) [09:30:44]execute_cgi path=json_proto method=POST [09:30:44]POST find Content-Length [09:30:44]Host: 172.17.43.195:8080 [09:30:44]Content-Length: 797 [09:30:44]Content-Type: application/json [09:30:44] [09:30:44]POST finish read [09:30:44]Found Content-Length = 797 [09:30:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 48.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:44]execute_script... [09:30: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)951965", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 48.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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:44]POST & json_proto [09:30:44]process_json_proto [09:30:44]json parsed OK: [09:30:44]protocol is kg_v1.0 [09:30:44]action value=close_receipt [09:30:44]process_action close_receipt [09:30:44]cmd_close_receipt [09:30:44]MH_GetDate [09:30:44]Write to MH i2c: F0 00 00 04 02 F5 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 09 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: F0 09 00 04 02 00 C5 59 1F 67 74 2C AD 66 55 [09:30:44]GetLastDocTimeStamp 1730107728 [09:30:44]current date 1730107845 [09:30:44]FM_GetShiftState [09:30:44]SAM_PROTO_GetShiftState [09:30:44]wFMCommunicate request_size=4 [09:30:44]MH_SAM_APDU [09:30:44]CAPDU: 80 13 01 00 [09:30:44]Write to MH i2c: E2 08 00 05 02 80 13 01 00 00 00 00 00 84 [09:30:44]Write i2c OK [09:30:44]MH_I2C_Read... [09:30:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:44]Read from MH i2c: E2 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 [09:30:44]MH_I2C_Read... [09:30:44]Read from MH i2c: E2 0E 00 05 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EC [09:30:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:30:44]wFMCommunicate OK [09:30:44]SAM_PROTO_GetShiftState done [09:30:44]FM_GetShiftState done [09:30:44]opened in 1730074113 [09:30:44]opened+sec_in_day 1730160513 [09:30:44]quantity*price = 0 [09:30:44]sum+1 = 1 [09:30:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 46 28.10.2024 09:30 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72518 ФПД: 17495063413459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093045&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72518&fm=17495063413459&tin=02508201610067®Number=0000000000091644&sum=0 [09:30:45]StoreToDocumentArchive [09:30:45]shift 554 fd 72518 [09:30:45]save to /storage/0554/doc_00072518 [09:30:46]save last doc name /storage/0554/doc_00072518 to /storage/kkm_last_doc_name [09:30:46]save OK [09:30:46]Clear old archive folders... [09:30:46]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:30:46]tlvbuf is 01CAA480 [09:30:46]SAM_PROTO_ClearQueue [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 09 00 00 [09:30:46]Write to MH i2c: E2 08 00 12 02 80 09 00 00 00 00 00 00 86 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 12 02 00 90 00 88 [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]SAM_PROTO_ClearQueue done [09:30:46]KKMCreateOFDPacket [09:30:46]OFDProtocolAddRootSTLVToBuf [09:30:46]FM_MakeSignedData [09:30:46]FM_MakeSignedData [09:30:46]SAM_PROTO_SignData [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 01 02 [09:30:46]Write to MH i2c: E2 08 00 13 02 80 0D 01 02 00 00 00 00 8E [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 13 02 00 90 00 89 [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=255 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 BB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C5 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1B 01 00 35 04 06 00 [09:30:46]Write to MH i2c: E2 02 01 14 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 BB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C5 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1B 01 00 35 04 06 00 00 00 6E [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 14 02 00 90 00 8A [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=11 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 02 02 06 0F E9 63 0A 42 D3 [09:30:46]Write to MH i2c: E2 0E 00 15 02 80 0D 02 02 06 00 0F E9 63 0A 42 D3 00 00 17 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 03 00 15 02 00 90 00 8B [09:30:46]RAPDU: 90 00 [09:30:46]wFMCommunicate OK [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 0D 03 02 [09:30:46]Write to MH i2c: E2 08 00 16 02 80 0D 03 02 00 00 00 00 93 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 0B 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 0B 00 16 02 00 31 79 0E 43 52 75 C7 2A 90 00 47 [09:30:46]RAPDU: 31 79 0E 43 52 75 C7 2A 90 00 [09:30:46]wFMCommunicate OK [09:30:46]SAM_PROTO_SignData done [09:30:46]FM_MakeSignedData done [09:30:46]CreateOFDProtocolMessage [09:30:46]wFMCommunicate request_size=4 [09:30:46]MH_SAM_APDU [09:30:46]CAPDU: 80 11 00 00 [09:30:46]Write to MH i2c: E2 08 00 17 02 80 11 00 00 00 00 00 00 93 [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:46]Read from MH i2c: E2 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 17 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: E2 17 00 17 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [09:30:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:30:46]wFMCommunicate OK [09:30:46]CreateOFDProtocolMessage done [09:30:46]OFDSenderStorePacket 72518 [09:30:46]StoreOFDPacket docnum=72518 [09:30:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 14 0D 08 01 D6 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 BB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C5 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1B 01 00 35 04 06 00 0F E9 63 0A 42 D3 31 79 0E 43 52 75 C7 2A [09:30:46]CheckFolder [09:30:46]dirname=/storage/ofd_packets [09:30:46]CheckFolder done [09:30:46]ProducePacketName [09:30:46]name=ofd_packets/00072518 [09:30:46]NVStorageSaveData ofd_packets/00072518 [09:30:46]File name is /storage/ofd_packets/00072518 [09:30:46]Write 302 bytes [09:30:46]NVStorageSaveData done [09:30:46]OFDSenderStorePacket done [09:30:46]KKMCreateOFDPacket done [09:30:46]NVStorageSaveData kkm_last_timestamp [09:30:46]File name is /storage/kkm_last_timestamp [09:30:46]Write 4 bytes [09:30:46]NVStorageSaveData done [09:30:46]ExternCall_PrintAddStr [09:30:46]wPrintStart [09:30:46]Write to MH i2c: 01 00 00 18 02 1A [09:30:46]Write i2c OK [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 07 00 [09:30:46]MH_I2C_Read... [09:30:46]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 FF 0F 2F [09:30:46]RasterBufferAndPrint [09:30:46]line Счет N : (1)951965 [09:30:46]line ИНН: 02508201610067 [09:30:46]line Контрольно-Кассовый Чек [09:30:46]line ПРОДАЖА [09:30:46]line ТРК (МРК, ГНК) : 33 [09:30:46]line Товар: 2710194210 [09:30:46]line ДТ(л)-К-5 [09:30:46]line 48.000 * 0.00 [09:30:46]line = 0.00 [09:30:46]line НДС 12% НСП 1% [09:30:46]line > о реализуемом товаре [09:30:46]line ИТОГО: 0.00 [09:30:46]line НСП 1% : 0.00 [09:30:46]line НДС 12% : 0.00 [09:30:46]line Наличными: 0.00 [09:30:46]line Безнал.: 0.00 [09:30:46]line Место: АЗС № 113 "Партнер Нефть" [09:30:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:30:46]line СНО: Общий режим [09:30:46]line Чек 46 28.10.2024 09:30 [09:30:46]line Смена: 554 ФФД: 1.0 [09:30:46]line ЗНМ: 0300000087 [09:30:46]line РНМ: 0000000000091644 [09:30:46]line Версия ККМ: 001 [09:30:46]line Талоны: Топливная Карта [09:30:46]line 53623 [09:30:46]line ФМ: 0000000000874662 [09:30:46]line ФД: 72518 [09:30:46]line ФПД: 17495063413459 [09:30:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093045&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72518&fm=17495063413459&tin=02508201610067®Number=0000000000091644&sum=0 [09:30:46]written 0, free lines is 4095 [09:30:46]OFD Sender: Processing packet 72518 [packets to send 272, broken 271] [09:30:46]ProducePacketName [09:30:46]name=ofd_packets/00072518 [09:30:46]OFD Sender: To server: pG, [09:30:46]CommunicateWithHost lk.salyk.kg:30040 [09:30:46]ConnectInit lk.salyk.kg [09:30:47]Write to MH i2c: 01 00 00 42 02 44 [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 07 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: 01 07 00 42 02 00 00 00 00 00 D8 0C 2F [09:30:47]RasterBufferAndPrint [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]line [09:30:47]written 0, free lines is 3294 [09:30:47]MH_Cut [09:30:47]Write to MH i2c: D1 01 00 49 02 01 1D [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 01 00 [09:30:47]MH_I2C_Read... [09:30:47]Read from MH i2c: D1 01 00 49 02 00 1C [09:30:47]Write to MH i2c: 01 00 00 4A 02 4C [09:30:47]Write i2c OK [09:30:47]MH_I2C_Read... [09:30:48]*** Cut start [09:30:48]*** Partial cut [09:30:48]*** CUTSNS_PIN = 1 [09:30:48]*** CUTSNS_PIN = 0 [09:30:48]*** Brake cut motor [09:30:48]Read from MH i2c: 01 [09:30:48]MH_I2C_Read... [09:30:48]*** Stop cut motor [09:30:48]*** Cut end [09:30:48]Read from MH i2c: 01 07 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: 01 07 00 4A 02 00 00 00 00 00 FF 0F 61 [09:30:48]process_action close_receipt done [09:30:48]requested_data is exist [09:30:48]produce_requested_data [09:30:48]requested_item fm.sn is exist - process it [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 11 00 00 [09:30:48]Write to MH i2c: E2 08 00 4B 02 80 11 00 00 00 00 00 00 C7 [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 17 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 17 00 4B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [09:30:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:30:48]wFMCommunicate OK [09:30:48]requested_item fd.num is exist - process it [09:30:48]SAM_PROTO_GetFieldsCounters [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 13 00 00 [09:30:48]Write to MH i2c: E2 08 00 4C 02 80 13 00 00 00 00 00 00 CA [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 62 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 62 00 4C 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [09:30: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 46 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:30:48]wFMCommunicate OK [09:30:48]SAM_PROTO_GetFieldsCounters done [09:30:48]requested_item shift.num is exist - process it [09:30:48]requested_item shift.opened is exist - process it [09:30:48]req_shift_opened [09:30:48]FM_GetShiftState [09:30:48]SAM_PROTO_GetShiftState [09:30:48]wFMCommunicate request_size=4 [09:30:48]MH_SAM_APDU [09:30:48]CAPDU: 80 13 01 00 [09:30:48]Write to MH i2c: E2 08 00 4D 02 80 13 01 00 00 00 00 00 CC [09:30:48]Write i2c OK [09:30:48]MH_I2C_Read... [09:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:48]Read from MH i2c: E2 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 0E 00 [09:30:48]MH_I2C_Read... [09:30:48]Read from MH i2c: E2 0E 00 4D 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 34 [09:30:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:30:48]wFMCommunicate OK [09:30:48]SAM_PROTO_GetShiftState done [09:30:48]FM_GetShiftState done [09:30:48]req_shift_opened done [09:30:48]requested_item shift.open_date is exist - process it [09:30:48]req_shift_open_date [09:30:48]req_shift_open_date done [09:30:48]produce_requested_data done [09:30:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72518,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:30:48]process_action_free close_receipt [09:30:48]json_value_free [09:30:48]json_value_free done [09:30:48]process_json_proto returns [09:30:48]Send response to host [09:30:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72518,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:30:48]free response buf [09:30:48]execute_script done [09:30:48]execute_script returns [09:30:48]free content buf [09:30:48]Sock 5.Close socket [09:30:48]Sock 5.Thread stoped [09:30:51]ConnectInit Can't take IP for lk.salyk.kg [09:30:51]CommunicateWithHost connect error [09:30:51]CommunicateWithHost err = -1 [09:30:51]OFD Sender: Server communicate error [09:30:56]OFD Sender: Processing packet 72518 [packets to send 272, broken 271] [09:30:56]ProducePacketName [09:30:56]name=ofd_packets/00072518 [09:30:56]OFD Sender: To server: pG, [09:30:56]CommunicateWithHost lk.salyk.kg:30040 [09:30:56]ConnectInit lk.salyk.kg [09:31:01]ConnectInit Can't take IP for lk.salyk.kg [09:31:01]CommunicateWithHost connect error [09:31:01]CommunicateWithHost err = -1 [09:31:01]OFD Sender: Server communicate error [09:31:06]OFD Sender: Processing packet 72518 [packets to send 272, broken 271] [09:31:06]ProducePacketName [09:31:06]name=ofd_packets/00072518 [09:31:06]OFD Sender: To server: pG, [09:31:06]CommunicateWithHost lk.salyk.kg:30040 [09:31:06]ConnectInit lk.salyk.kg [09:31:07]Connected sock=5 [09:31:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 14 0D 08 01 D6 2B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 80 BB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 C5 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1B 01 00 35 04 06 00 0F E9 63 0A 42 D3 31 79 0E 43 52 75 C7 2A [09:31:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 17 78 47 00 D7 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 46 1B 01 00 F4 03 04 00 99 04 1F 67 B6 04 01 00 00 D5 B3 8B 5A 96 A4 59 5B [09:31:08]CommunicateWithHost err = 0 [09:31:08]CheckOFDResponse [09:31:08]1017 (14) - 77093643461234 [09:31:08]1041 (16) - 0000000000874662 [09:31:08]1040 (4) - 72518 [09:31:08]1012 (4) - 28.10.2024 03:27 [09:31:08]1206 (1) - 0 [09:31:08]OFD Sender: Remove packet 72518 [09:31:08]ProducePacketName [09:31:08]name=ofd_packets/00072518 [09:31:08]NVStorageDeleteData [09:31:09]OFD Sender: No OFD packet to send [09:31:14]OFD Sender: No OFD packet to send [09:31:19]OFD Sender: No OFD packet to send [09:31:23]recv_with_timeout no data received [09:31:24]OFD Sender: No OFD packet to send [09:31:29]OFD Sender: No OFD packet to send [09:31:34]OFD Sender: No OFD packet to send [09:31:39]OFD Sender: No OFD packet to send [09:31:40]accept exits with 7 [09:31:40]New connection [09:31:40]New thread 3066936676 created [09:31:40]Thread 3066793316 joined [09:31:40]Waiting for new connection... [09:31:40] Sock 7.Parse request [09:31:40]Sock 7.Check first char [09:31:40]Sock 7.First char is OK [09:31:40]request: POST /json_proto HTTP/1.0 [09:31:40]Method: POST [09:31:40]URL: /json_proto [09:31:40]Method is POST - this is cgi request [09:31:40]url: /json_proto [09:31:40]query_string will be loaded in cgi processing [09:31:40]execute_cgi json_proto POST (null) [09:31:40]execute_cgi path=json_proto method=POST [09:31:40]POST find Content-Length [09:31:40]Host: 172.17.43.195:8080 [09:31:40]Content-Length: 685 [09:31:40]Content-Type: application/json [09:31:40] [09:31:40]POST finish read [09:31:40]Found Content-Length = 685 [09:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:40]execute_script... [09:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951964", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:31:40]POST & json_proto [09:31:40]process_json_proto [09:31:40]json parsed OK: [09:31:40]protocol is kg_v1.0 [09:31:40]action value=close_receipt [09:31:40]process_action close_receipt [09:31:40]cmd_close_receipt [09:31:40]MH_GetDate [09:31:40]Write to MH i2c: F0 00 00 4E 02 3F [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: F0 09 00 4E 02 00 FD 59 1F 67 74 2C AD 66 D7 [09:31:40]GetLastDocTimeStamp 1730107845 [09:31:40]current date 1730107901 [09:31:40]FM_GetShiftState [09:31:40]SAM_PROTO_GetShiftState [09:31:40]wFMCommunicate request_size=4 [09:31:40]MH_SAM_APDU [09:31:40]CAPDU: 80 13 01 00 [09:31:40]Write to MH i2c: E2 08 00 4F 02 80 13 01 00 00 00 00 00 CE [09:31:40]Write i2c OK [09:31:40]MH_I2C_Read... [09:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:40]Read from MH i2c: E2 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 [09:31:40]MH_I2C_Read... [09:31:40]Read from MH i2c: E2 0E 00 4F 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 36 [09:31:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:31:40]wFMCommunicate OK [09:31:40]SAM_PROTO_GetShiftState done [09:31:40]FM_GetShiftState done [09:31:40]opened in 1730074113 [09:31:40]opened+sec_in_day 1730160513 [09:31:40]quantity*price = 200023 [09:31:40]sum+1 = 200025 [09:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 47 28.10.2024 09:31 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72519 ФПД: 211206514278239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093141&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72519&fm=211206514278239&tin=02508201610067®Number=0000000000091644&sum=200000 [09:31:42]StoreToDocumentArchive [09:31:42]shift 554 fd 72519 [09:31:42]save to /storage/0554/doc_00072519 [09:31:42]save last doc name /storage/0554/doc_00072519 to /storage/kkm_last_doc_name [09:31:42]save OK [09:31:42]Clear old archive folders... [09:31:42]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:31:42]tlvbuf is 01CAD690 [09:31:42]SAM_PROTO_ClearQueue [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 09 00 00 [09:31:42]Write to MH i2c: E2 08 00 5C 02 80 09 00 00 00 00 00 00 D0 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 5C 02 00 90 00 D2 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_ClearQueue done [09:31:42]KKMCreateOFDPacket [09:31:42]OFDProtocolAddRootSTLVToBuf [09:31:42]FM_MakeSignedData [09:31:42]FM_MakeSignedData [09:31:42]SAM_PROTO_SignData [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 01 02 [09:31:42]Write to MH i2c: E2 08 00 5D 02 80 0D 01 02 00 00 00 00 D8 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 5D 02 00 90 00 D3 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=255 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 FD 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1B 01 00 35 04 06 00 C0 17 [09:31:42]Write to MH i2c: E2 02 01 5E 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 FD 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1B 01 00 35 04 06 00 C0 17 00 00 20 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 5E 02 00 90 00 D4 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=9 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 02 02 04 59 41 FF 5F [09:31:42]Write to MH i2c: E2 0C 00 5F 02 80 0D 02 02 04 00 59 41 FF 5F 00 00 DB [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 03 00 5F 02 00 90 00 D5 [09:31:42]RAPDU: 90 00 [09:31:42]wFMCommunicate OK [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 0D 03 02 [09:31:42]Write to MH i2c: E2 08 00 60 02 80 0D 03 02 00 00 00 00 DD [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 0B 00 60 02 00 BE 79 07 94 D7 01 B3 C3 90 00 FE [09:31:42]RAPDU: BE 79 07 94 D7 01 B3 C3 90 00 [09:31:42]wFMCommunicate OK [09:31:42]SAM_PROTO_SignData done [09:31:42]FM_MakeSignedData done [09:31:42]CreateOFDProtocolMessage [09:31:42]wFMCommunicate request_size=4 [09:31:42]MH_SAM_APDU [09:31:42]CAPDU: 80 11 00 00 [09:31:42]Write to MH i2c: E2 08 00 61 02 80 11 00 00 00 00 00 00 DD [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:42]Read from MH i2c: E2 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: E2 17 00 61 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [09:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:31:42]wFMCommunicate OK [09:31:42]CreateOFDProtocolMessage done [09:31:42]OFDSenderStorePacket 72519 [09:31:42]StoreOFDPacket docnum=72519 [09:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 1B C4 06 01 9A 94 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 FD 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1B 01 00 35 04 06 00 C0 17 59 41 FF 5F BE 79 07 94 D7 01 B3 C3 [09:31:42]CheckFolder [09:31:42]dirname=/storage/ofd_packets [09:31:42]CheckFolder done [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00072519 [09:31:42]NVStorageSaveData ofd_packets/00072519 [09:31:42]File name is /storage/ofd_packets/00072519 [09:31:42]Write 300 bytes [09:31:42]NVStorageSaveData done [09:31:42]OFDSenderStorePacket done [09:31:42]KKMCreateOFDPacket done [09:31:42]NVStorageSaveData kkm_last_timestamp [09:31:42]File name is /storage/kkm_last_timestamp [09:31:42]Write 4 bytes [09:31:42]NVStorageSaveData done [09:31:42]ExternCall_PrintAddStr [09:31:42]wPrintStart [09:31:42]Write to MH i2c: 01 00 00 62 02 64 [09:31:42]Write i2c OK [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 [09:31:42]MH_I2C_Read... [09:31:42]Read from MH i2c: 01 07 00 62 02 00 00 00 00 00 FF 0F 79 [09:31:42]RasterBufferAndPrint [09:31:42]line Счет N : (1)951964 [09:31:42]line ИНН: 02508201610067 [09:31:42]line Контрольно-Кассовый Чек [09:31:42]line ПРОДАЖА [09:31:42]line ТРК (МРК, ГНК) : 71 [09:31:42]line Товар: 2711190000 [09:31:42]line ГАЗ-К-3 [09:31:42]line 51.420 * 38.90 [09:31:42]line = 2000.24 [09:31:42]line НДС 12% НСП 1% [09:31:42]line > о реализуемом товаре [09:31:42]line ОКРУГЛЕНИЕ: -0.24 [09:31:42]line ИТОГО: 2000.00 [09:31:42]line Внесено: 2000.00 [09:31:42]line СДАЧА: 0.00 [09:31:42]line НСП 1% : 17.70 [09:31:42]line НДС 12% : 212.41 [09:31:42]line Наличными: 2000.00 [09:31:42]line Безнал.: 0.00 [09:31:42]line Место: АЗС № 113 "Партнер Нефть" [09:31:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:31:42]line СНО: Общий режим [09:31:42]line Чек 47 28.10.2024 09:31 [09:31:42]line Смена: 554 ФФД: 1.0 [09:31:42]line ЗНМ: 0300000087 [09:31:42]line РНМ: 0000000000091644 [09:31:42]line Версия ККМ: 001 [09:31:42]line ФМ: 0000000000874662 [09:31:42]line ФД: 72519 [09:31:42]line ФПД: 211206514278239 [09:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093141&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72519&fm=211206514278239&tin=02508201610067®Number=0000000000091644&sum=200000 [09:31:42]written 0, free lines is 4095 [09:31:42]OFD Sender: Processing packet 72519 [packets to send 272, broken 271] [09:31:42]ProducePacketName [09:31:42]name=ofd_packets/00072519 [09:31:42]OFD Sender: To server: pG, [09:31:42]CommunicateWithHost lk.salyk.kg:30040 [09:31:42]ConnectInit lk.salyk.kg [09:31:43]Write to MH i2c: 01 00 00 8D 02 8F [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: 01 07 00 8D 02 00 00 00 00 00 C8 0C 6A [09:31:43]RasterBufferAndPrint [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]line [09:31:43]written 0, free lines is 3278 [09:31:43]MH_Cut [09:31:43]Write to MH i2c: D1 01 00 94 02 01 68 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 [09:31:43]MH_I2C_Read... [09:31:43]Read from MH i2c: D1 01 00 94 02 00 67 [09:31:43]Write to MH i2c: 01 00 00 95 02 97 [09:31:43]Write i2c OK [09:31:43]MH_I2C_Read... [09:31:43]*** Cut start [09:31:43]*** Partial cut [09:31:43]*** CUTSNS_PIN = 1 [09:31:43]*** CUTSNS_PIN = 0 [09:31:44]*** Brake cut motor [09:31:44]Read from MH i2c: 01 [09:31:44]MH_I2C_Read... [09:31:44]*** Stop cut motor [09:31:44]*** Cut end [09:31:44]Read from MH i2c: 01 07 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: 01 07 00 95 02 00 00 00 00 00 FF 0F AC [09:31:44]process_action close_receipt done [09:31:44]requested_data is exist [09:31:44]produce_requested_data [09:31:44]requested_item fm.sn is exist - process it [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 11 00 00 [09:31:44]Write to MH i2c: E2 08 00 96 02 80 11 00 00 00 00 00 00 12 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 17 00 96 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [09:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:31:44]wFMCommunicate OK [09:31:44]requested_item fd.num is exist - process it [09:31:44]SAM_PROTO_GetFieldsCounters [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 00 00 [09:31:44]Write to MH i2c: E2 08 00 97 02 80 13 00 00 00 00 00 00 15 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 62 00 97 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:31:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 47 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetFieldsCounters done [09:31:44]requested_item shift.num is exist - process it [09:31:44]requested_item shift.opened is exist - process it [09:31:44]req_shift_opened [09:31:44]FM_GetShiftState [09:31:44]SAM_PROTO_GetShiftState [09:31:44]wFMCommunicate request_size=4 [09:31:44]MH_SAM_APDU [09:31:44]CAPDU: 80 13 01 00 [09:31:44]Write to MH i2c: E2 08 00 98 02 80 13 01 00 00 00 00 00 17 [09:31:44]Write i2c OK [09:31:44]MH_I2C_Read... [09:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:44]Read from MH i2c: E2 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 [09:31:44]MH_I2C_Read... [09:31:44]Read from MH i2c: E2 0E 00 98 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7F [09:31:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:31:44]wFMCommunicate OK [09:31:44]SAM_PROTO_GetShiftState done [09:31:44]FM_GetShiftState done [09:31:44]req_shift_opened done [09:31:44]requested_item shift.open_date is exist - process it [09:31:44]req_shift_open_date [09:31:44]req_shift_open_date done [09:31:44]produce_requested_data done [09:31:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72519,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:31:44]process_action_free close_receipt [09:31:44]json_value_free [09:31:44]json_value_free done [09:31:44]process_json_proto returns [09:31:44]Send response to host [09:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72519,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:31:44]free response buf [09:31:44]execute_script done [09:31:44]execute_script returns [09:31:44]free content buf [09:31:44]Sock 7.Close socket [09:31:44]Sock 7.Thread stoped [09:31:44]Connected sock=9 [09:31:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 1B C4 06 01 9A 94 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 FD 59 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1B 01 00 35 04 06 00 C0 17 59 41 FF 5F BE 79 07 94 D7 01 B3 C3 [09:31:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B7 2E 47 00 4D 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 47 1B 01 00 F4 03 04 00 BD 04 1F 67 B6 04 01 00 00 F9 AD 8E 24 0B 0B 3F 23 [09:31:45]CommunicateWithHost err = 0 [09:31:45]CheckOFDResponse [09:31:45]1017 (14) - 77093643461234 [09:31:45]1041 (16) - 0000000000874662 [09:31:45]1040 (4) - 72519 [09:31:45]1012 (4) - 28.10.2024 03:27 [09:31:45]1206 (1) - 0 [09:31:45]OFD Sender: Remove packet 72519 [09:31:45]ProducePacketName [09:31:45]name=ofd_packets/00072519 [09:31:45]NVStorageDeleteData [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:02]recv_with_timeout no data received [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:31]accept exits with 6 [09:32:31]New connection [09:32:31]New thread 3066793316 created [09:32:31]Thread 3066936676 joined [09:32:31]Waiting for new connection... [09:32:31] Sock 6.Parse request [09:32:31]Sock 6.Check first char [09:32:31]Sock 6.First char is OK [09:32:31]request: POST /json_proto HTTP/1.0 [09:32:31]Method: POST [09:32:31]URL: /json_proto [09:32:31]Method is POST - this is cgi request [09:32:31]url: /json_proto [09:32:31]query_string will be loaded in cgi processing [09:32:31]execute_cgi json_proto POST (null) [09:32:31]execute_cgi path=json_proto method=POST [09:32:31]POST find Content-Length [09:32:31]Host: 172.17.43.195:8080 [09:32:31]Content-Length: 797 [09:32:31]Content-Type: application/json [09:32:31] [09:32:31]POST finish read [09:32:31]Found Content-Length = 797 [09:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:31]execute_script... [09:32: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)951967", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:31]POST & json_proto [09:32:31]process_json_proto [09:32:31]json parsed OK: [09:32:31]protocol is kg_v1.0 [09:32:31]action value=close_receipt [09:32:31]process_action close_receipt [09:32:31]cmd_close_receipt [09:32:31]MH_GetDate [09:32:31]Write to MH i2c: F0 00 00 99 02 8A [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: F0 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: F0 09 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: F0 09 00 99 02 00 2F 5A 1F 67 74 2C AD 66 55 [09:32:31]GetLastDocTimeStamp 1730107901 [09:32:31]current date 1730107951 [09:32:31]FM_GetShiftState [09:32:31]SAM_PROTO_GetShiftState [09:32:31]wFMCommunicate request_size=4 [09:32:31]MH_SAM_APDU [09:32:31]CAPDU: 80 13 01 00 [09:32:31]Write to MH i2c: E2 08 00 9A 02 80 13 01 00 00 00 00 00 19 [09:32:31]Write i2c OK [09:32:31]MH_I2C_Read... [09:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:31]Read from MH i2c: E2 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 0E 00 [09:32:31]MH_I2C_Read... [09:32:31]Read from MH i2c: E2 0E 00 9A 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 81 [09:32:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:32:31]wFMCommunicate OK [09:32:31]SAM_PROTO_GetShiftState done [09:32:31]FM_GetShiftState done [09:32:31]opened in 1730074113 [09:32:31]opened+sec_in_day 1730160513 [09:32:31]quantity*price = 0 [09:32:31]sum+1 = 1 [09:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 48 28.10.2024 09:32 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72520 ФПД: 246306853220632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093231&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72520&fm=246306853220632&tin=02508201610067®Number=0000000000091644&sum=0 [09:32:32]StoreToDocumentArchive [09:32:32]shift 554 fd 72520 [09:32:32]save to /storage/0554/doc_00072520 [09:32:32]save last doc name /storage/0554/doc_00072520 to /storage/kkm_last_doc_name [09:32:32]save OK [09:32:32]Clear old archive folders... [09:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=252 [09:32:32]tlvbuf is 01CAEFF0 [09:32:32]SAM_PROTO_ClearQueue [09:32:32]wFMCommunicate request_size=4 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 09 00 00 [09:32:32]Write to MH i2c: E2 08 00 A7 02 80 09 00 00 00 00 00 00 1B [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:32]Read from MH i2c: E2 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 03 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 03 00 A7 02 00 90 00 1D [09:32:32]RAPDU: 90 00 [09:32:32]wFMCommunicate OK [09:32:32]SAM_PROTO_ClearQueue done [09:32:32]KKMCreateOFDPacket [09:32:32]OFDProtocolAddRootSTLVToBuf [09:32:32]FM_MakeSignedData [09:32:32]FM_MakeSignedData [09:32:32]SAM_PROTO_SignData [09:32:32]wFMCommunicate request_size=4 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 0D 01 02 [09:32:32]Write to MH i2c: E2 08 00 A8 02 80 0D 01 02 00 00 00 00 23 [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:32]Read from MH i2c: E2 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 03 00 [09:32:32]MH_I2C_Read... [09:32:32]Read from MH i2c: E2 03 00 A8 02 00 90 00 1E [09:32:32]RAPDU: 90 00 [09:32:32]wFMCommunicate OK [09:32:32]wFMCommunicate request_size=255 [09:32:32]MH_SAM_APDU [09:32:32]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2F 5A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1B 01 00 35 04 06 00 [09:32:32]Write to MH i2c: E2 02 01 A9 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2F 5A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1B 01 00 35 04 06 00 00 00 13 [09:32:32]Write i2c OK [09:32:32]MH_I2C_Read... [09:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:33]Read from MH i2c: E2 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 03 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 03 00 A9 02 00 90 00 1F [09:32:33]RAPDU: 90 00 [09:32:33]wFMCommunicate OK [09:32:33]wFMCommunicate request_size=11 [09:32:33]MH_SAM_APDU [09:32:33]CAPDU: 80 0D 02 02 06 E0 03 C8 7D F1 18 [09:32:33]Write to MH i2c: E2 0E 00 AA 02 80 0D 02 02 06 00 E0 03 C8 7D F1 18 00 00 63 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:33]Read from MH i2c: E2 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 03 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 03 00 AA 02 00 90 00 20 [09:32:33]RAPDU: 90 00 [09:32:33]wFMCommunicate OK [09:32:33]wFMCommunicate request_size=4 [09:32:33]MH_SAM_APDU [09:32:33]CAPDU: 80 0D 03 02 [09:32:33]Write to MH i2c: E2 08 00 AB 02 80 0D 03 02 00 00 00 00 28 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:33]Read from MH i2c: E2 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 0B 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 0B 00 AB 02 00 B3 B7 52 34 4D E5 79 A8 90 00 6C [09:32:33]RAPDU: B3 B7 52 34 4D E5 79 A8 90 00 [09:32:33]wFMCommunicate OK [09:32:33]SAM_PROTO_SignData done [09:32:33]FM_MakeSignedData done [09:32:33]CreateOFDProtocolMessage [09:32:33]wFMCommunicate request_size=4 [09:32:33]MH_SAM_APDU [09:32:33]CAPDU: 80 11 00 00 [09:32:33]Write to MH i2c: E2 08 00 AC 02 80 11 00 00 00 00 00 00 28 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:33]Read from MH i2c: E2 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 17 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: E2 17 00 AC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [09:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:32:33]wFMCommunicate OK [09:32:33]CreateOFDProtocolMessage done [09:32:33]OFDSenderStorePacket 72520 [09:32:33]StoreOFDPacket docnum=72520 [09:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F3 67 08 01 39 AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2F 5A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1B 01 00 35 04 06 00 E0 03 C8 7D F1 18 B3 B7 52 34 4D E5 79 A8 [09:32:33]CheckFolder [09:32:33]dirname=/storage/ofd_packets [09:32:33]CheckFolder done [09:32:33]ProducePacketName [09:32:33]name=ofd_packets/00072520 [09:32:33]NVStorageSaveData ofd_packets/00072520 [09:32:33]File name is /storage/ofd_packets/00072520 [09:32:33]Write 302 bytes [09:32:33]NVStorageSaveData done [09:32:33]OFDSenderStorePacket done [09:32:33]KKMCreateOFDPacket done [09:32:33]NVStorageSaveData kkm_last_timestamp [09:32:33]File name is /storage/kkm_last_timestamp [09:32:33]Write 4 bytes [09:32:33]NVStorageSaveData done [09:32:33]ExternCall_PrintAddStr [09:32:33]wPrintStart [09:32:33]Write to MH i2c: 01 00 00 AD 02 AF [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 07 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 FF 0F C4 [09:32:33]RasterBufferAndPrint [09:32:33]line Счет N : (1)951967 [09:32:33]line ИНН: 02508201610067 [09:32:33]line Контрольно-Кассовый Чек [09:32:33]line ПРОДАЖА [09:32:33]line ТРК (МРК, ГНК) : 22 [09:32:33]line Товар: 2710194210 [09:32:33]line ДТ(л)-К-5 [09:32:33]line 40.000 * 0.00 [09:32:33]line = 0.00 [09:32:33]line НДС 12% НСП 1% [09:32:33]line > о реализуемом товаре [09:32:33]line ИТОГО: 0.00 [09:32:33]line НСП 1% : 0.00 [09:32:33]line НДС 12% : 0.00 [09:32:33]line Наличными: 0.00 [09:32:33]line Безнал.: 0.00 [09:32:33]line Место: АЗС № 113 "Партнер Нефть" [09:32:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:32:33]line СНО: Общий режим [09:32:33]line Чек 48 28.10.2024 09:32 [09:32:33]line Смена: 554 ФФД: 1.0 [09:32:33]line ЗНМ: 0300000087 [09:32:33]line РНМ: 0000000000091644 [09:32:33]line Версия ККМ: 001 [09:32:33]line Талоны: Топливная Карта [09:32:33]line 53623 [09:32:33]line ФМ: 0000000000874662 [09:32:33]line ФД: 72520 [09:32:33]line ФПД: 246306853220632 [09:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093231&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72520&fm=246306853220632&tin=02508201610067®Number=0000000000091644&sum=0 [09:32:33]written 0, free lines is 4095 [09:32:33]OFD Sender: Processing packet 72520 [packets to send 272, broken 271] [09:32:33]ProducePacketName [09:32:33]name=ofd_packets/00072520 [09:32:33]OFD Sender: To server: pG, [09:32:33]CommunicateWithHost lk.salyk.kg:30040 [09:32:33]ConnectInit lk.salyk.kg [09:32:33]Write to MH i2c: 01 00 00 D7 02 D9 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 07 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: 01 07 00 D7 02 00 00 00 00 00 DE 0C CA [09:32:33]RasterBufferAndPrint [09:32:33]line [09:32:33]line [09:32:33]line [09:32:33]line [09:32:33]line [09:32:33]written 0, free lines is 3300 [09:32:33]MH_Cut [09:32:33]Write to MH i2c: D1 01 00 DE 02 01 B2 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: D1 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: D1 01 00 [09:32:33]MH_I2C_Read... [09:32:33]Read from MH i2c: D1 01 00 DE 02 00 B1 [09:32:33]Write to MH i2c: 01 00 00 DF 02 E1 [09:32:33]Write i2c OK [09:32:33]MH_I2C_Read... [09:32:34]Connected sock=7 [09:32:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 F3 67 08 01 39 AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 2F 5A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 48 1B 01 00 35 04 06 00 E0 03 C8 7D F1 18 B3 B7 52 34 4D E5 79 A8 [09:32:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 63 AA 47 00 67 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 34 36 36 32 10 04 04 00 48 1B 01 00 F4 03 04 00 EF 04 1F 67 B6 04 01 00 00 15 FD 7B 13 68 A2 0A D5 [09:32:34]CommunicateWithHost err = 0 [09:32:34]CheckOFDResponse [09:32:34]1017 (14) - 77093643461234 [09:32:34]1041 (16) - 0000000000874662 [09:32:34]1040 (4) - 72520 [09:32:34]1012 (4) - 28.10.2024 03:28 [09:32:34]1206 (1) - 0 [09:32:34]OFD Sender: Remove packet 72520 [09:32:34]ProducePacketName [09:32:34]name=ofd_packets/00072520 [09:32:34]NVStorageDeleteData [09:32:34]*** Cut start [09:32:34]*** Partial cut [09:32:34]*** CUTSNS_PIN = 1 [09:32:34]*** CUTSNS_PIN = 0 [09:32:35]*** Brake cut motor [09:32:35]OFD Sender: No OFD packet to send [09:32:35]Read from MH i2c: 01 [09:32:35]MH_I2C_Read... [09:32:35]*** Stop cut motor [09:32:35]*** Cut end [09:32:35]Read from MH i2c: 01 07 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: 01 07 00 DF 02 00 00 00 00 00 FF 0F F6 [09:32:35]process_action close_receipt done [09:32:35]requested_data is exist [09:32:35]produce_requested_data [09:32:35]requested_item fm.sn is exist - process it [09:32:35]wFMCommunicate request_size=4 [09:32:35]MH_SAM_APDU [09:32:35]CAPDU: 80 11 00 00 [09:32:35]Write to MH i2c: E2 08 00 E0 02 80 11 00 00 00 00 00 00 5C [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 17 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 17 00 E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B0 [09:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:32:35]wFMCommunicate OK [09:32:35]requested_item fd.num is exist - process it [09:32:35]SAM_PROTO_GetFieldsCounters [09:32:35]wFMCommunicate request_size=4 [09:32:35]MH_SAM_APDU [09:32:35]CAPDU: 80 13 00 00 [09:32:35]Write to MH i2c: E2 08 00 E1 02 80 13 00 00 00 00 00 00 5F [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 62 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 62 00 E1 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [09:32: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:35]wFMCommunicate OK [09:32:35]SAM_PROTO_GetFieldsCounters done [09:32:35]requested_item shift.num is exist - process it [09:32:35]requested_item shift.opened is exist - process it [09:32:35]req_shift_opened [09:32:35]FM_GetShiftState [09:32:35]SAM_PROTO_GetShiftState [09:32:35]wFMCommunicate request_size=4 [09:32:35]MH_SAM_APDU [09:32:35]CAPDU: 80 13 01 00 [09:32:35]Write to MH i2c: E2 08 00 E2 02 80 13 01 00 00 00 00 00 61 [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 0E 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 0E 00 E2 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C9 [09:32:35]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:32:35]wFMCommunicate OK [09:32:35]SAM_PROTO_GetShiftState done [09:32:35]FM_GetShiftState done [09:32:35]req_shift_opened done [09:32:35]requested_item shift.open_date is exist - process it [09:32:35]req_shift_open_date [09:32:35]req_shift_open_date done [09:32:35]produce_requested_data done [09:32:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72520,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:32:35]process_action_free close_receipt [09:32:35]json_value_free [09:32:35]json_value_free done [09:32:35]process_json_proto returns [09:32:35]Send response to host [09:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72520,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:32:35]free response buf [09:32:35]execute_script done [09:32:35]execute_script returns [09:32:35]free content buf [09:32:35]Sock 6.Close socket [09:32:35]Sock 6.Thread stoped [09:32:40]OFD Sender: No OFD packet to send [09:32:40]recv_with_timeout no data received [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:32:59]recv_with_timeout no data received [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:24]recv_with_timeout no data received [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:27]recv_with_timeout no data received [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:47]recv_with_timeout no data received [09:34:50]OFD Sender: No OFD packet to send [09:34:51]*** FLAG_PRN_PAP1 set [09:34:51]*** FLAG_PRN_PAP1 reset [09:34:51]*** FLAG_PRN_PAP1 set [09:34:51]*** FLAG_PRN_PAP1 reset [09:34:51]*** FLAG_PRN_PAP1 set [09:34:51]*** FLAG_PRN_PAP2 set [09:34:52]*** FLAG_PRN_PAP2 reset [09:34:52]*** FLAG_PRN_PAP2 set [09:34:55]OFD Sender: No OFD packet to send [09:34:56]*** FLAG_PRN_PAP2 reset [09:34:56]*** FLAG_PRN_PAP1 reset [09:34:59]accept exits with 5 [09:34:59]New connection [09:34:59]New thread 3066936676 created [09:34:59]Thread 3066793316 joined [09:34:59]Waiting for new connection... [09:34:59] Sock 5.Parse request [09:34:59]Sock 5.Check first char [09:34:59]Sock 5.First char is OK [09:34:59]request: POST /json_proto HTTP/1.0 [09:34:59]Method: POST [09:34:59]URL: /json_proto [09:34:59]Method is POST - this is cgi request [09:34:59]url: /json_proto [09:34:59]query_string will be loaded in cgi processing [09:34:59]execute_cgi json_proto POST (null) [09:34:59]execute_cgi path=json_proto method=POST [09:34:59]POST find Content-Length [09:34:59]Host: 172.17.43.195:8080 [09:34:59]Content-Length: 215 [09:34:59]Content-Type: application/json [09:34:59] [09:34:59]POST finish read [09:34:59]Found Content-Length = 215 [09:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]execute_script... [09:34:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:59]POST & json_proto [09:34:59]process_json_proto [09:34:59]json parsed OK: [09:34:59]protocol is kg_v1.0 [09:34:59]action value=get_value [09:34:59]process_action get_value [09:34:59]cmd_get_value [09:34:59]process_action get_value done [09:34:59]requested_data is exist [09:34:59]produce_requested_data [09:34:59]requested_item kkm.sn is exist - process it [09:34:59]requested_item kkm.ver is exist - process it [09:34:59]requested_item fm.sn is exist - process it [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 11 00 00 [09:34:59]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 17 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B3 [09:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:34:59]wFMCommunicate OK [09:34:59]requested_item fd.num is exist - process it [09:34:59]SAM_PROTO_GetFieldsCounters [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 13 00 00 [09:34:59]Write to MH i2c: E2 08 00 E4 02 80 13 00 00 00 00 00 00 62 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 62 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 62 00 E4 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [09:34: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 48 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_GetFieldsCounters done [09:34:59]requested_item shift.num is exist - process it [09:34:59]requested_item shift.opened is exist - process it [09:34:59]req_shift_opened [09:34:59]FM_GetShiftState [09:34:59]SAM_PROTO_GetShiftState [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 13 01 00 [09:34:59]Write to MH i2c: E2 08 00 E5 02 80 13 01 00 00 00 00 00 64 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0E 00 E5 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 CC [09:34:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_GetShiftState done [09:34:59]FM_GetShiftState done [09:34:59]req_shift_opened done [09:34:59]requested_item shift.open_date is exist - process it [09:34:59]req_shift_open_date [09:34:59]req_shift_open_date done [09:34:59]produce_requested_data done [09:34:59]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72520,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:34:59]process_action_free get_value [09:34:59]json_value_free [09:34:59]json_value_free done [09:34:59]process_json_proto returns [09:34:59]Send response to host [09:34:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72520,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:34:59]free response buf [09:34:59]execute_script done [09:34:59]execute_script returns [09:34:59]free content buf [09:34:59]Sock 5.Close socket [09:34:59]Sock 5.Thread stoped [09:34:59]accept exits with 7 [09:34:59]New connection [09:34:59]New thread 3066793316 created [09:34:59]Thread 3066936676 joined [09:34:59]Waiting for new connection... [09:34:59] Sock 7.Parse request [09:34:59]Sock 7.Check first char [09:34:59]Sock 7.First char is OK [09:34:59]request: POST /json_proto HTTP/1.0 [09:34:59]Method: POST [09:34:59]URL: /json_proto [09:34:59]Method is POST - this is cgi request [09:34:59]url: /json_proto [09:34:59]query_string will be loaded in cgi processing [09:34:59]execute_cgi json_proto POST (null) [09:34:59]execute_cgi path=json_proto method=POST [09:34:59]POST find Content-Length [09:34:59]Host: 172.17.43.195:8080 [09:34:59]Content-Length: 331 [09:34:59]Content-Type: application/json [09:34:59] [09:34:59]POST finish read [09:34:59]Found Content-Length = 331 [09:34:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:34:59]execute_script... [09:34:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:34:59]POST & json_proto [09:34:59]process_json_proto [09:34:59]json parsed OK: [09:34:59]protocol is kg_v1.0 [09:34:59]action value=get_value [09:34:59]process_action get_value [09:34:59]cmd_get_value [09:34:59]process_action get_value done [09:34:59]requested_data is exist [09:34:59]produce_requested_data [09:34:59]requested_item fm.sale.total is exist - process it [09:34:59]SAM_PROTO_GetFMData [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 13 03 00 [09:34:59]Write to MH i2c: E2 08 00 E6 02 80 13 03 00 00 00 00 00 67 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 E6 02 00 C4 04 85 04 C0 04 6E 04 04 00 F4 16 01 00 69 04 A3 00 6F 04 04 00 05 16 01 00 B1 04 05 00 9D 61 BA A2 01 70 04 05 00 D0 D6 DC 57 01 72 04 04 00 CD 8A DD 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E5 47 7A 2C 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 69 C9 B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 FB [09:35:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 F4 16 01 00 69 04 A3 00 6F 04 04 00 05 16 01 00 B1 04 05 00 9D 61 BA A2 01 70 04 05 00 D0 D6 DC 57 01 72 04 04 00 CD 8A DD 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 E5 47 7A 2C 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 69 C9 B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 17 00 00 [09:35:00]Write to MH i2c: E2 08 00 E7 02 80 17 00 00 00 00 00 00 69 [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]OFD Sender: No OFD packet to send [09:35:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 E7 02 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 9F [09:35:00]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 17 00 00 [09:35:00]Write to MH i2c: E2 08 00 E8 02 80 17 00 00 00 00 00 00 6A [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:00]Read from MH i2c: E2 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 [09:35:00]MH_I2C_Read... [09:35:00]Read from MH i2c: E2 FD 00 E8 02 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 7F [09:35:00]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [09:35:00]wFMCommunicate OK [09:35:00]wFMCommunicate request_size=4 [09:35:00]MH_SAM_APDU [09:35:00]CAPDU: 80 17 00 00 [09:35:00]Write to MH i2c: E2 08 00 E9 02 80 17 00 00 00 00 00 00 6B [09:35:00]Write i2c OK [09:35:00]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 FD 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 FD 00 E9 02 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 E3 [09:35:01]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 17 00 00 [09:35:01]Write to MH i2c: E2 08 00 EA 02 80 17 00 00 00 00 00 00 6C [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 E1 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 E1 00 EA 02 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 5A [09:35:01]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_GetFMData done [09:35:01]requested_item fm.sale_refund.total is exist - process it [09:35:01]requested_item fm.buy.total is exist - process it [09:35:01]requested_item shift.sale.total is exist - process it [09:35:01]SAM_PROTO_GetShiftData [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 13 02 00 [09:35:01]Write to MH i2c: E2 08 00 EB 02 80 13 02 00 00 00 00 00 6B [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 FD 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 FD 00 EB 02 00 AE 04 AA 04 AA 04 6E 04 04 00 30 00 00 00 69 04 9B 00 6F 04 04 00 30 00 00 00 B1 04 03 00 0B 4A 24 70 04 03 00 9C 5B 12 72 04 03 00 6F EE 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AD DA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 38 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [09:35:01]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 30 00 00 00 69 04 9B 00 6F 04 04 00 30 00 00 00 B1 04 03 00 0B 4A 24 70 04 03 00 9C 5B 12 72 04 03 00 6F EE 11 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 AD DA 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 38 52 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:35:01]wFMCommunicate OK [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 17 00 00 [09:35:01]Write to MH i2c: E2 08 00 EC 02 80 17 00 00 00 00 00 00 6E [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 EC 02 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 90 [09:35:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:35:02]wFMCommunicate OK [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 17 00 00 [09:35:02]Write to MH i2c: E2 08 00 ED 02 80 17 00 00 00 00 00 00 6F [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 ED 02 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [09:35:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:35:02]wFMCommunicate OK [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 17 00 00 [09:35:02]Write to MH i2c: E2 08 00 EE 02 80 17 00 00 00 00 00 00 70 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 FD 00 EE 02 00 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 90 00 E2 [09:35:02]RAPDU: 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 90 00 [09:35:02]wFMCommunicate OK [09:35:02]wFMCommunicate request_size=4 [09:35:02]MH_SAM_APDU [09:35:02]CAPDU: 80 17 00 00 [09:35:02]Write to MH i2c: E2 08 00 EF 02 80 17 00 00 00 00 00 00 71 [09:35:02]Write i2c OK [09:35:02]MH_I2C_Read... [09:35:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [09:35:02]Read from MH i2c: E2 [09:35:02]MH_I2C_Read... [09:35:02]Read from MH i2c: E2 CB 00 [09:35:02]MH_I2C_Read... [09:35:03]Read from MH i2c: E2 CB 00 EF 02 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5A [09:35:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [09:35:03]wFMCommunicate OK [09:35:03]SAM_PROTO_GetShiftData done [09:35:03]requested_item shift.sale.total_cash is exist - process it [09:35:03]requested_item shift.sale_refund.total is exist - process it [09:35:03]requested_item shift.sale_refund.total_cash is exist - process it [09:35:03]requested_item shift.buy.total is exist - process it [09:35:03]requested_item shift.buy.total_cash is exist - process it [09:35:03]produce_requested_data done [09:35:03]produce_requested_data return {"fm.sale.total":70250909.73,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":23782.51,"shift.sale.total_cash":12031.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} [09:35:03]process_action_free get_value [09:35:03]json_value_free [09:35:03]json_value_free done [09:35:03]process_json_proto returns [09:35:03]Send response to host [09:35:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70250909.73,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":23782.51,"shift.sale.total_cash":12031.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}}} [09:35:03]free response buf [09:35:03]execute_script done [09:35:03]execute_script returns [09:35:03]free content buf [09:35:03]Sock 7.Close socket [09:35:03]Sock 7.Thread stoped [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:14]recv_with_timeout no data received [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:31]recv_with_timeout no data received [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:44]recv_with_timeout no data received [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:10]accept exits with 5 [09:36:10]New connection [09:36:10]New thread 3066936676 created [09:36:10]Thread 3066793316 joined [09:36:10]Waiting for new connection... [09:36:10] Sock 5.Parse request [09:36:10]Sock 5.Check first char [09:36:10]Sock 5.First char is OK [09:36:10]request: POST /json_proto HTTP/1.0 [09:36:10]Method: POST [09:36:10]URL: /json_proto [09:36:10]Method is POST - this is cgi request [09:36:10]url: /json_proto [09:36:10]query_string will be loaded in cgi processing [09:36:10]execute_cgi json_proto POST (null) [09:36:10]execute_cgi path=json_proto method=POST [09:36:10]POST find Content-Length [09:36:10]Host: 172.17.43.195:8080 [09:36:10]Content-Length: 791 [09:36:10]Content-Type: application/json [09:36:10] [09:36:10]POST finish read [09:36:10]Found Content-Length = 791 [09:36:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:10]execute_script... [09:36: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)951969", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:10]POST & json_proto [09:36:10]process_json_proto [09:36:10]json parsed OK: [09:36:10]protocol is kg_v1.0 [09:36:10]action value=close_receipt [09:36:10]process_action close_receipt [09:36:10]cmd_close_receipt [09:36:10]MH_GetDate [09:36:10]Write to MH i2c: F0 00 00 F0 02 E1 [09:36:10]Write i2c OK [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 09 00 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: F0 09 00 F0 02 00 0B 5B 1F 67 74 2C AD 66 89 [09:36:10]GetLastDocTimeStamp 1730107951 [09:36:10]current date 1730108171 [09:36:10]FM_GetShiftState [09:36:10]SAM_PROTO_GetShiftState [09:36:10]wFMCommunicate request_size=4 [09:36:10]MH_SAM_APDU [09:36:10]CAPDU: 80 13 01 00 [09:36:10]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [09:36:10]Write i2c OK [09:36:10]MH_I2C_Read... [09:36:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:10]Read from MH i2c: E2 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: E2 0E 00 [09:36:10]MH_I2C_Read... [09:36:10]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 D8 [09:36:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:36:10]wFMCommunicate OK [09:36:10]SAM_PROTO_GetShiftState done [09:36:10]FM_GetShiftState done [09:36:10]opened in 1730074113 [09:36:10]opened+sec_in_day 1730160513 [09:36:10]quantity*price = 0 [09:36:10]sum+1 = 1 [09:36:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 49 28.10.2024 09:36 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72521 ФПД: 11186842469818 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72521&fm=11186842469818&tin=02508201610067®Number=0000000000091644&sum=0 [09:36:12]StoreToDocumentArchive [09:36:12]shift 554 fd 72521 [09:36:12]save to /storage/0554/doc_00072521 [09:36:12]save last doc name /storage/0554/doc_00072521 to /storage/kkm_last_doc_name [09:36:12]save OK [09:36:12]Clear old archive folders... [09:36:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:12]tlvbuf is 01D7DD00 [09:36:12]SAM_PROTO_ClearQueue [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 09 00 00 [09:36:12]Write to MH i2c: E2 08 00 FE 02 80 09 00 00 00 00 00 00 72 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_ClearQueue done [09:36:12]KKMCreateOFDPacket [09:36:12]OFDProtocolAddRootSTLVToBuf [09:36:12]FM_MakeSignedData [09:36:12]FM_MakeSignedData [09:36:12]SAM_PROTO_SignData [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 01 02 [09:36:12]Write to MH i2c: E2 08 00 FF 02 80 0D 01 02 00 00 00 00 7A [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=255 [09:36:12]MH_SAM_APDU [09:36: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0B 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1B 01 00 35 04 06 00 0A [09:36:12]Write to MH i2c: E2 02 01 00 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0B 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1B 01 00 35 04 06 00 0A 00 00 D8 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=10 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 02 02 05 2C A3 C5 85 BA [09:36:12]Write to MH i2c: E2 0D 00 01 03 80 0D 02 02 05 00 2C A3 C5 85 BA 00 00 5B [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [09:36:12]RAPDU: 90 00 [09:36:12]wFMCommunicate OK [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 0D 03 02 [09:36:12]Write to MH i2c: E2 08 00 02 03 80 0D 03 02 00 00 00 00 80 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 0B 00 02 03 00 A1 DE 02 2A 66 9F B9 2B 90 00 15 [09:36:12]RAPDU: A1 DE 02 2A 66 9F B9 2B 90 00 [09:36:12]wFMCommunicate OK [09:36:12]SAM_PROTO_SignData done [09:36:12]FM_MakeSignedData done [09:36:12]CreateOFDProtocolMessage [09:36:12]wFMCommunicate request_size=4 [09:36:12]MH_SAM_APDU [09:36:12]CAPDU: 80 11 00 00 [09:36:12]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:12]Read from MH i2c: E2 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D4 [09:36:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:12]wFMCommunicate OK [09:36:12]CreateOFDProtocolMessage done [09:36:12]OFDSenderStorePacket 72521 [09:36:12]StoreOFDPacket docnum=72521 [09:36:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 58 37 07 01 5F 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0B 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1B 01 00 35 04 06 00 0A 2C A3 C5 85 BA A1 DE 02 2A 66 9F B9 2B [09:36:12]CheckFolder [09:36:12]dirname=/storage/ofd_packets [09:36:12]CheckFolder done [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00072521 [09:36:12]NVStorageSaveData ofd_packets/00072521 [09:36:12]File name is /storage/ofd_packets/00072521 [09:36:12]Write 301 bytes [09:36:12]NVStorageSaveData done [09:36:12]OFDSenderStorePacket done [09:36:12]KKMCreateOFDPacket done [09:36:12]NVStorageSaveData kkm_last_timestamp [09:36:12]File name is /storage/kkm_last_timestamp [09:36:12]Write 4 bytes [09:36:12]NVStorageSaveData done [09:36:12]ExternCall_PrintAddStr [09:36:12]wPrintStart [09:36:12]Write to MH i2c: 01 00 00 04 03 07 [09:36:12]Write i2c OK [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 [09:36:12]MH_I2C_Read... [09:36:12]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [09:36:12]RasterBufferAndPrint [09:36:12]line Счет N : (1)951969 [09:36:12]line ИНН: 02508201610067 [09:36:12]line Контрольно-Кассовый Чек [09:36:12]line ПРОДАЖА [09:36:12]line ТРК (МРК, ГНК) : 63 [09:36:12]line Товар: 2710124130 [09:36:12]line Аи-92-К-5 [09:36:12]line 5.000 * 0.00 [09:36:12]line = 0.00 [09:36:12]line НДС 12% НСП 1% [09:36:12]line > о реализуемом товаре [09:36:12]line ИТОГО: 0.00 [09:36:12]line НСП 1% : 0.00 [09:36:12]line НДС 12% : 0.00 [09:36:12]line Наличными: 0.00 [09:36:12]line Безнал.: 0.00 [09:36:12]line Место: АЗС № 113 "Партнер Нефть" [09:36:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:36:12]line СНО: Общий режим [09:36:12]line Чек 49 28.10.2024 09:36 [09:36:12]line Смена: 554 ФФД: 1.0 [09:36:12]line ЗНМ: 0300000087 [09:36:12]line РНМ: 0000000000091644 [09:36:12]line Версия ККМ: 001 [09:36:12]line Талоны: Топливная Карта [09:36:12]line 03047 [09:36:12]line ФМ: 0000000000874662 [09:36:12]line ФД: 72521 [09:36:12]line ФПД: 11186842469818 [09:36:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093611&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72521&fm=11186842469818&tin=02508201610067®Number=0000000000091644&sum=0 [09:36:12]written 0, free lines is 4095 [09:36:12]OFD Sender: Processing packet 72521 [packets to send 272, broken 271] [09:36:12]ProducePacketName [09:36:12]name=ofd_packets/00072521 [09:36:12]OFD Sender: To server: pG, [09:36:12]CommunicateWithHost lk.salyk.kg:30040 [09:36:12]ConnectInit lk.salyk.kg [09:36:13]Write to MH i2c: 01 00 00 2E 03 31 [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 07 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 DA 0C 1E [09:36:13]RasterBufferAndPrint [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]line [09:36:13]written 0, free lines is 3296 [09:36:13]MH_Cut [09:36:13]Write to MH i2c: D1 01 00 35 03 01 0A [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 01 00 [09:36:13]MH_I2C_Read... [09:36:13]Read from MH i2c: D1 01 00 35 03 00 09 [09:36:13]Write to MH i2c: 01 00 00 36 03 39 [09:36:13]Write i2c OK [09:36:13]MH_I2C_Read... [09:36:13]Connected sock=7 [09:36:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 58 37 07 01 5F 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 0B 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 49 1B 01 00 35 04 06 00 0A 2C A3 C5 85 BA A1 DE 02 2A 66 9F B9 2B [09:36:13]*** Cut start [09:36:13]*** Partial cut [09:36:13]*** CUTSNS_PIN = 1 [09:36:13]*** CUTSNS_PIN = 0 [09:36:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2A 16 47 00 1F 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 34 36 36 32 10 04 04 00 49 1B 01 00 F4 03 04 00 CA 05 1F 67 B6 04 01 00 00 88 0A E5 05 34 90 A4 BB [09:36:14]CommunicateWithHost err = 0 [09:36:14]CheckOFDResponse [09:36:14]1017 (14) - 77093643461234 [09:36:14]1041 (16) - 0000000000874662 [09:36:14]1040 (4) - 72521 [09:36:14]1012 (4) - 28.10.2024 03:32 [09:36:14]1206 (1) - 0 [09:36:14]OFD Sender: Remove packet 72521 [09:36:14]ProducePacketName [09:36:14]name=ofd_packets/00072521 [09:36:14]NVStorageDeleteData [09:36:14]*** Brake cut motor [09:36:14]Read from MH i2c: 01 [09:36:14]MH_I2C_Read... [09:36:14]*** Stop cut motor [09:36:14]*** Cut end [09:36:14]Read from MH i2c: 01 07 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: 01 07 00 36 03 00 00 00 00 00 FF 0F 4E [09:36:14]process_action close_receipt done [09:36:14]requested_data is exist [09:36:14]produce_requested_data [09:36:14]requested_item fm.sn is exist - process it [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 11 00 00 [09:36:14]Write to MH i2c: E2 08 00 37 03 80 11 00 00 00 00 00 00 B4 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 17 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 17 00 37 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [09:36:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:14]wFMCommunicate OK [09:36:14]requested_item fd.num is exist - process it [09:36:14]SAM_PROTO_GetFieldsCounters [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 13 00 00 [09:36:14]Write to MH i2c: E2 08 00 38 03 80 13 00 00 00 00 00 00 B7 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]OFD Sender: No OFD packet to send [09:36:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 62 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 62 00 38 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:36:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 49 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:14]wFMCommunicate OK [09:36:14]SAM_PROTO_GetFieldsCounters done [09:36:14]requested_item shift.num is exist - process it [09:36:14]requested_item shift.opened is exist - process it [09:36:14]req_shift_opened [09:36:14]FM_GetShiftState [09:36:14]SAM_PROTO_GetShiftState [09:36:14]wFMCommunicate request_size=4 [09:36:14]MH_SAM_APDU [09:36:14]CAPDU: 80 13 01 00 [09:36:14]Write to MH i2c: E2 08 00 39 03 80 13 01 00 00 00 00 00 B9 [09:36:14]Write i2c OK [09:36:14]MH_I2C_Read... [09:36:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:14]Read from MH i2c: E2 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 [09:36:14]MH_I2C_Read... [09:36:14]Read from MH i2c: E2 0E 00 39 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 21 [09:36:14]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:36:14]wFMCommunicate OK [09:36:14]SAM_PROTO_GetShiftState done [09:36:14]FM_GetShiftState done [09:36:14]req_shift_opened done [09:36:14]requested_item shift.open_date is exist - process it [09:36:14]req_shift_open_date [09:36:14]req_shift_open_date done [09:36:14]produce_requested_data done [09:36:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72521,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:36:14]process_action_free close_receipt [09:36:14]json_value_free [09:36:14]json_value_free done [09:36:14]process_json_proto returns [09:36:14]Send response to host [09:36:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72521,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:36:14]free response buf [09:36:14]execute_script done [09:36:14]execute_script returns [09:36:14]free content buf [09:36:14]Sock 5.Close socket [09:36:14]Sock 5.Thread stoped [09:36:19]OFD Sender: No OFD packet to send [09:36:24]OFD Sender: No OFD packet to send [09:36:29]recv_with_timeout no data received [09:36:29]OFD Sender: No OFD packet to send [09:36:34]OFD Sender: No OFD packet to send [09:36:39]OFD Sender: No OFD packet to send [09:36:44]OFD Sender: No OFD packet to send [09:36:46]accept exits with 6 [09:36:46]New connection [09:36:46]New thread 3066793316 created [09:36:46]Thread 3066936676 joined [09:36:46]Waiting for new connection... [09:36:46] Sock 6.Parse request [09:36:46]Sock 6.Check first char [09:36:46]Sock 6.First char is OK [09:36:46]request: POST /json_proto HTTP/1.0 [09:36:46]Method: POST [09:36:46]URL: /json_proto [09:36:46]Method is POST - this is cgi request [09:36:46]url: /json_proto [09:36:46]query_string will be loaded in cgi processing [09:36:46]execute_cgi json_proto POST (null) [09:36:46]execute_cgi path=json_proto method=POST [09:36:46]POST find Content-Length [09:36:46]Host: 172.17.43.195:8080 [09:36:46]Content-Length: 685 [09:36:46]Content-Type: application/json [09:36:46] [09:36:46]POST finish read [09:36:46]Found Content-Length = 685 [09:36:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.350, "sum" : 1997.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1997.00, "payments": [ { "type": 0, "sum" : 1997.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:46]execute_script... [09:36: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)951968", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.350, "sum" : 1997.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 1997.00, "payments": [ { "type": 0, "sum" : 1997.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:36:46]POST & json_proto [09:36:46]process_json_proto [09:36:46]json parsed OK: [09:36:46]protocol is kg_v1.0 [09:36:46]action value=close_receipt [09:36:46]process_action close_receipt [09:36:46]cmd_close_receipt [09:36:46]MH_GetDate [09:36:46]Write to MH i2c: F0 00 00 3A 03 2C [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: F0 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: F0 09 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: F0 09 00 3A 03 00 2E 5B 1F 67 74 2C AD 66 F7 [09:36:46]GetLastDocTimeStamp 1730108171 [09:36:46]current date 1730108206 [09:36:46]FM_GetShiftState [09:36:46]SAM_PROTO_GetShiftState [09:36:46]wFMCommunicate request_size=4 [09:36:46]MH_SAM_APDU [09:36:46]CAPDU: 80 13 01 00 [09:36:46]Write to MH i2c: E2 08 00 3B 03 80 13 01 00 00 00 00 00 BB [09:36:46]Write i2c OK [09:36:46]MH_I2C_Read... [09:36:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:46]Read from MH i2c: E2 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0E 00 [09:36:46]MH_I2C_Read... [09:36:46]Read from MH i2c: E2 0E 00 3B 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 23 [09:36:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:36:46]wFMCommunicate OK [09:36:46]SAM_PROTO_GetShiftState done [09:36:46]FM_GetShiftState done [09:36:46]opened in 1730074113 [09:36:46]opened+sec_in_day 1730160513 [09:36:46]quantity*price = 199751 [09:36:46]sum+1 = 199753 [09:36:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 1997.00 Внесено: 2500.00 СДАЧА: 503.00 НСП 1% : 17.68 НДС 12% : 212.13 Наличными: 1997.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 50 28.10.2024 09:36 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72522 ФПД: 255442025456809 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093646&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72522&fm=255442025456809&tin=02508201610067®Number=0000000000091644&sum=199700 [09:36:47]StoreToDocumentArchive [09:36:47]shift 554 fd 72522 [09:36:47]save to /storage/0554/doc_00072522 [09:36:47]save last doc name /storage/0554/doc_00072522 to /storage/kkm_last_doc_name [09:36:47]save OK [09:36:47]Clear old archive folders... [09:36:47]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:36:47]tlvbuf is 01D6ABC0 [09:36:47]SAM_PROTO_ClearQueue [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 09 00 00 [09:36:47]Write to MH i2c: E2 08 00 48 03 80 09 00 00 00 00 00 00 BD [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 48 03 00 90 00 BF [09:36:47]RAPDU: 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_ClearQueue done [09:36:47]KKMCreateOFDPacket [09:36:47]OFDProtocolAddRootSTLVToBuf [09:36:47]FM_MakeSignedData [09:36:47]FM_MakeSignedData [09:36:47]SAM_PROTO_SignData [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 0D 01 02 [09:36:47]Write to MH i2c: E2 08 00 49 03 80 0D 01 02 00 00 00 00 C5 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [09:36:47]RAPDU: 90 00 [09:36:47]wFMCommunicate OK [09:36:47]wFMCommunicate request_size=255 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 48 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 52 00 00 00 00 07 04 06 00 14 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2E 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1B 01 00 35 04 06 00 E8 52 [09:36:47]Write to MH i2c: E2 02 01 4A 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 48 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 52 00 00 00 00 07 04 06 00 14 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2E 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1B 01 00 35 04 06 00 E8 52 00 00 DA [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [09:36:47]RAPDU: 90 00 [09:36:47]wFMCommunicate OK [09:36:47]wFMCommunicate request_size=9 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 0D 02 02 04 BB 30 24 A9 [09:36:47]Write to MH i2c: E2 0C 00 4B 03 80 0D 02 02 04 00 BB 30 24 A9 00 00 88 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [09:36:47]RAPDU: 90 00 [09:36:47]wFMCommunicate OK [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 0D 03 02 [09:36:47]Write to MH i2c: E2 08 00 4C 03 80 0D 03 02 00 00 00 00 CA [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0B 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 0B 00 4C 03 00 48 6C 00 AA C9 BB 3D 50 90 00 3A [09:36:47]RAPDU: 48 6C 00 AA C9 BB 3D 50 90 00 [09:36:47]wFMCommunicate OK [09:36:47]SAM_PROTO_SignData done [09:36:47]FM_MakeSignedData done [09:36:47]CreateOFDProtocolMessage [09:36:47]wFMCommunicate request_size=4 [09:36:47]MH_SAM_APDU [09:36:47]CAPDU: 80 11 00 00 [09:36:47]Write to MH i2c: E2 08 00 4D 03 80 11 00 00 00 00 00 00 CA [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:47]Read from MH i2c: E2 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: E2 17 00 4D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1E [09:36:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:47]wFMCommunicate OK [09:36:47]CreateOFDProtocolMessage done [09:36:47]OFDSenderStorePacket 72522 [09:36:47]StoreOFDPacket docnum=72522 [09:36:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C4 3A 06 01 98 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 48 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 52 00 00 00 00 07 04 06 00 14 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2E 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1B 01 00 35 04 06 00 E8 52 BB 30 24 A9 48 6C 00 AA C9 BB 3D 50 [09:36:47]CheckFolder [09:36:47]dirname=/storage/ofd_packets [09:36:47]CheckFolder done [09:36:47]ProducePacketName [09:36:47]name=ofd_packets/00072522 [09:36:47]NVStorageSaveData ofd_packets/00072522 [09:36:47]File name is /storage/ofd_packets/00072522 [09:36:47]Write 300 bytes [09:36:47]NVStorageSaveData done [09:36:47]OFDSenderStorePacket done [09:36:47]KKMCreateOFDPacket done [09:36:47]NVStorageSaveData kkm_last_timestamp [09:36:47]File name is /storage/kkm_last_timestamp [09:36:47]Write 4 bytes [09:36:47]NVStorageSaveData done [09:36:47]ExternCall_PrintAddStr [09:36:47]wPrintStart [09:36:47]Write to MH i2c: 01 00 00 4E 03 51 [09:36:47]Write i2c OK [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 07 00 [09:36:47]MH_I2C_Read... [09:36:47]Read from MH i2c: 01 07 00 4E 03 00 00 00 00 00 FF 0F 66 [09:36:47]RasterBufferAndPrint [09:36:47]line Счет N : (1)951968 [09:36:47]line ИНН: 02508201610067 [09:36:47]line Контрольно-Кассовый Чек [09:36:47]line ПРОДАЖА [09:36:47]line ТРК (МРК, ГНК) : 71 [09:36:47]line Товар: 2711190000 [09:36:47]line ГАЗ-К-3 [09:36:47]line 51.350 * 38.90 [09:36:47]line = 1997.52 [09:36:47]line НДС 12% НСП 1% [09:36:47]line > о реализуемом товаре [09:36:47]line ОКРУГЛЕНИЕ: -0.52 [09:36:47]line ИТОГО: 1997.00 [09:36:47]line Внесено: 2500.00 [09:36:47]line СДАЧА: 503.00 [09:36:47]line НСП 1% : 17.68 [09:36:47]line НДС 12% : 212.13 [09:36:47]line Наличными: 1997.00 [09:36:47]line Безнал.: 0.00 [09:36:47]line Место: АЗС № 113 "Партнер Нефть" [09:36:47]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:36:47]line СНО: Общий режим [09:36:47]line Чек 50 28.10.2024 09:36 [09:36:47]line Смена: 554 ФФД: 1.0 [09:36:47]line ЗНМ: 0300000087 [09:36:47]line РНМ: 0000000000091644 [09:36:47]line Версия ККМ: 001 [09:36:47]line ФМ: 0000000000874662 [09:36:47]line ФД: 72522 [09:36:47]line ФПД: 255442025456809 [09:36:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093646&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72522&fm=255442025456809&tin=02508201610067®Number=0000000000091644&sum=199700 [09:36:47]written 0, free lines is 4095 [09:36:47]OFD Sender: Processing packet 72522 [packets to send 272, broken 271] [09:36:47]ProducePacketName [09:36:48]name=ofd_packets/00072522 [09:36:48]OFD Sender: To server: pG, [09:36:48]CommunicateWithHost lk.salyk.kg:30040 [09:36:48]ConnectInit lk.salyk.kg [09:36:48]Write to MH i2c: 01 00 00 79 03 7C [09:36:48]Write i2c OK [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: 01 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: 01 07 00 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 D4 0C 63 [09:36:48]RasterBufferAndPrint [09:36:48]line [09:36:48]line [09:36:48]line [09:36:48]line [09:36:48]line [09:36:48]written 0, free lines is 3288 [09:36:48]MH_Cut [09:36:48]Write to MH i2c: D1 01 00 80 03 01 55 [09:36:48]Write i2c OK [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: D1 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: D1 01 00 [09:36:48]MH_I2C_Read... [09:36:48]Read from MH i2c: D1 01 00 80 03 00 54 [09:36:48]Write to MH i2c: 01 00 00 81 03 84 [09:36:48]Write i2c OK [09:36:48]MH_I2C_Read... [09:36:49]*** Cut start [09:36:49]*** Partial cut [09:36:49]*** CUTSNS_PIN = 1 [09:36:49]*** CUTSNS_PIN = 0 [09:36:49]*** Brake cut motor [09:36:49]Read from MH i2c: 01 [09:36:49]MH_I2C_Read... [09:36:49]*** Stop cut motor [09:36:49]*** Cut end [09:36:49]Read from MH i2c: 01 07 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [09:36:49]process_action close_receipt done [09:36:49]requested_data is exist [09:36:49]produce_requested_data [09:36:49]requested_item fm.sn is exist - process it [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 11 00 00 [09:36:49]Write to MH i2c: E2 08 00 82 03 80 11 00 00 00 00 00 00 FF [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 17 00 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 17 00 82 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 53 [09:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:36:49]wFMCommunicate OK [09:36:49]requested_item fd.num is exist - process it [09:36:49]SAM_PROTO_GetFieldsCounters [09:36:49]wFMCommunicate request_size=4 [09:36:49]MH_SAM_APDU [09:36:49]CAPDU: 80 13 00 00 [09:36:49]Write to MH i2c: E2 08 00 83 03 80 13 00 00 00 00 00 00 02 [09:36:49]Write i2c OK [09:36:49]MH_I2C_Read... [09:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:49]Read from MH i2c: E2 [09:36:49]MH_I2C_Read... [09:36:49]Read from MH i2c: E2 62 00 [09:36:49]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 62 00 83 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [09:36: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_GetFieldsCounters done [09:36:50]requested_item shift.num is exist - process it [09:36:50]requested_item shift.opened is exist - process it [09:36:50]req_shift_opened [09:36:50]FM_GetShiftState [09:36:50]SAM_PROTO_GetShiftState [09:36:50]wFMCommunicate request_size=4 [09:36:50]MH_SAM_APDU [09:36:50]CAPDU: 80 13 01 00 [09:36:50]Write to MH i2c: E2 08 00 84 03 80 13 01 00 00 00 00 00 04 [09:36:50]Write i2c OK [09:36:50]MH_I2C_Read... [09:36:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:50]Read from MH i2c: E2 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0E 00 [09:36:50]MH_I2C_Read... [09:36:50]Read from MH i2c: E2 0E 00 84 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 6C [09:36:50]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:36:50]wFMCommunicate OK [09:36:50]SAM_PROTO_GetShiftState done [09:36:50]FM_GetShiftState done [09:36:50]req_shift_opened done [09:36:50]requested_item shift.open_date is exist - process it [09:36:50]req_shift_open_date [09:36:50]req_shift_open_date done [09:36:50]produce_requested_data done [09:36:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72522,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:36:50]process_action_free close_receipt [09:36:50]json_value_free [09:36:50]json_value_free done [09:36:50]process_json_proto returns [09:36:50]Send response to host [09:36:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72522,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:36:50]free response buf [09:36:50]execute_script done [09:36:50]execute_script returns [09:36:50]free content buf [09:36:50]Sock 6.Close socket [09:36:50]Sock 6.Thread stoped [09:36:50]Connected sock=9 [09:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 C4 3A 06 01 98 E2 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 96 C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 48 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 0C 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 52 00 00 00 00 07 04 06 00 14 0C 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 2E 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4A 1B 01 00 35 04 06 00 E8 52 BB 30 24 A9 48 6C 00 AA C9 BB 3D 50 [09:36:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F6 2D 47 00 88 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 34 36 36 32 10 04 04 00 4A 1B 01 00 F4 03 04 00 EF 05 1F 67 B6 04 01 00 00 D3 F1 E3 99 05 25 1D 6E [09:36:52]CommunicateWithHost err = 0 [09:36:52]CheckOFDResponse [09:36:52]1017 (14) - 77093643461234 [09:36:52]1041 (16) - 0000000000874662 [09:36:52]1040 (4) - 72522 [09:36:52]1012 (4) - 28.10.2024 03:33 [09:36:52]1206 (1) - 0 [09:36:52]OFD Sender: Remove packet 72522 [09:36:52]ProducePacketName [09:36:52]name=ofd_packets/00072522 [09:36:52]NVStorageDeleteData [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:03]OFD Sender: No OFD packet to send [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:33]OFD Sender: No OFD packet to send [09:38:38]OFD Sender: No OFD packet to send [09:38:42]accept exits with 5 [09:38:42]New connection [09:38:42]New thread 3066936676 created [09:38:42]Thread 3066793316 joined [09:38:42]Waiting for new connection... [09:38:42] Sock 5.Parse request [09:38:42]Sock 5.Check first char [09:38:42]Sock 5.First char is OK [09:38:42]request: POST /json_proto HTTP/1.0 [09:38:42]Method: POST [09:38:42]URL: /json_proto [09:38:42]Method is POST - this is cgi request [09:38:42]url: /json_proto [09:38:42]query_string will be loaded in cgi processing [09:38:42]execute_cgi json_proto POST (null) [09:38:42]execute_cgi path=json_proto method=POST [09:38:42]POST find Content-Length [09:38:42]Host: 172.17.43.195:8080 [09:38:42]Content-Length: 677 [09:38:42]Content-Type: application/json [09:38:42] [09:38:42]POST finish read [09:38:42]Found Content-Length = 677 [09:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [09:38:42]execute_script... [09:38: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)951971", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [09:38:42]POST & json_proto [09:38:42]process_json_proto [09:38:42]json parsed OK: [09:38:42]protocol is kg_v1.0 [09:38:42]action value=close_receipt [09:38:42]process_action close_receipt [09:38:42]cmd_close_receipt [09:38:42]MH_GetDate [09:38:42]Write to MH i2c: F0 00 00 85 03 77 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 09 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: F0 09 00 85 03 00 A3 5B 1F 67 74 2C AD 66 B7 [09:38:42]GetLastDocTimeStamp 1730108206 [09:38:42]current date 1730108323 [09:38:42]FM_GetShiftState [09:38:42]SAM_PROTO_GetShiftState [09:38:42]wFMCommunicate request_size=4 [09:38:42]MH_SAM_APDU [09:38:42]CAPDU: 80 13 01 00 [09:38:42]Write to MH i2c: E2 08 00 86 03 80 13 01 00 00 00 00 00 06 [09:38:42]Write i2c OK [09:38:42]MH_I2C_Read... [09:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:42]Read from MH i2c: E2 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 [09:38:42]MH_I2C_Read... [09:38:42]Read from MH i2c: E2 0E 00 86 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 6E [09:38:42]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:38:42]wFMCommunicate OK [09:38:42]SAM_PROTO_GetShiftState done [09:38:42]FM_GetShiftState done [09:38:42]opened in 1730074113 [09:38:42]opened+sec_in_day 1730160513 [09:38:42]quantity*price = 50041 [09:38:42]sum+1 = 50042 [09:38: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 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 51 28.10.2024 09:38 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72523 ФПД: 28436982393067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72523&fm=28436982393067&tin=02508201610067®Number=0000000000091644&sum=50000 [09:38:43]StoreToDocumentArchive [09:38:43]shift 554 fd 72523 [09:38:43]save to /storage/0554/doc_00072523 [09:38:43]save last doc name /storage/0554/doc_00072523 to /storage/kkm_last_doc_name [09:38:43]save OK [09:38:43]Clear old archive folders... [09:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:43]tlvbuf is 01D6C2F0 [09:38:43]SAM_PROTO_ClearQueue [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 09 00 00 [09:38:43]Write to MH i2c: E2 08 00 93 03 80 09 00 00 00 00 00 00 08 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:43]Read from MH i2c: E2 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 [09:38:43]MH_I2C_Read... [09:38:43]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [09:38:43]RAPDU: 90 00 [09:38:43]wFMCommunicate OK [09:38:43]SAM_PROTO_ClearQueue done [09:38:43]KKMCreateOFDPacket [09:38:43]OFDProtocolAddRootSTLVToBuf [09:38:43]FM_MakeSignedData [09:38:43]FM_MakeSignedData [09:38:43]SAM_PROTO_SignData [09:38:43]wFMCommunicate request_size=4 [09:38:43]MH_SAM_APDU [09:38:43]CAPDU: 80 0D 01 02 [09:38:43]Write to MH i2c: E2 08 00 94 03 80 0D 01 02 00 00 00 00 10 [09:38:43]Write i2c OK [09:38:43]MH_I2C_Read... [09:38:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [09:38:44]RAPDU: 90 00 [09:38:44]wFMCommunicate OK [09:38:44]wFMCommunicate request_size=255 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A3 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1B 01 00 35 04 06 00 19 [09:38:44]Write to MH i2c: E2 02 01 95 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A3 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1B 01 00 35 04 06 00 19 00 00 02 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [09:38:44]RAPDU: 90 00 [09:38:44]wFMCommunicate OK [09:38:44]wFMCommunicate request_size=10 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 0D 02 02 05 DD 00 3B E8 EB [09:38:44]Write to MH i2c: E2 0D 00 96 03 80 0D 02 02 05 00 DD 00 3B E8 EB 00 00 08 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 03 00 96 03 00 90 00 0D [09:38:44]RAPDU: 90 00 [09:38:44]wFMCommunicate OK [09:38:44]wFMCommunicate request_size=4 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 0D 03 02 [09:38:44]Write to MH i2c: E2 08 00 97 03 80 0D 03 02 00 00 00 00 15 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0B 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 0B 00 97 03 00 A0 CA FD C8 5D B2 41 D6 90 00 6B [09:38:44]RAPDU: A0 CA FD C8 5D B2 41 D6 90 00 [09:38:44]wFMCommunicate OK [09:38:44]SAM_PROTO_SignData done [09:38:44]FM_MakeSignedData done [09:38:44]CreateOFDProtocolMessage [09:38:44]wFMCommunicate request_size=4 [09:38:44]MH_SAM_APDU [09:38:44]CAPDU: 80 11 00 00 [09:38:44]Write to MH i2c: E2 08 00 98 03 80 11 00 00 00 00 00 00 15 [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:44]Read from MH i2c: E2 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 17 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: E2 17 00 98 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 69 [09:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:38:44]wFMCommunicate OK [09:38:44]CreateOFDProtocolMessage done [09:38:44]OFDSenderStorePacket 72523 [09:38:44]StoreOFDPacket docnum=72523 [09:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6C 95 07 01 43 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A3 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1B 01 00 35 04 06 00 19 DD 00 3B E8 EB A0 CA FD C8 5D B2 41 D6 [09:38:44]CheckFolder [09:38:44]dirname=/storage/ofd_packets [09:38:44]CheckFolder done [09:38:44]ProducePacketName [09:38:44]name=ofd_packets/00072523 [09:38:44]NVStorageSaveData ofd_packets/00072523 [09:38:44]File name is /storage/ofd_packets/00072523 [09:38:44]Write 301 bytes [09:38:44]NVStorageSaveData done [09:38:44]OFDSenderStorePacket done [09:38:44]KKMCreateOFDPacket done [09:38:44]NVStorageSaveData kkm_last_timestamp [09:38:44]File name is /storage/kkm_last_timestamp [09:38:44]Write 4 bytes [09:38:44]NVStorageSaveData done [09:38:44]ExternCall_PrintAddStr [09:38:44]wPrintStart [09:38:44]Write to MH i2c: 01 00 00 99 03 9C [09:38:44]Write i2c OK [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 07 00 [09:38:44]MH_I2C_Read... [09:38:44]Read from MH i2c: 01 07 00 99 03 00 00 00 00 00 FF 0F B1 [09:38:44]RasterBufferAndPrint [09:38:44]line Счет N : (1)951971 [09:38:44]line ИНН: 02508201610067 [09:38:44]line Контрольно-Кассовый Чек [09:38:44]line ПРОДАЖА [09:38:44]line ТРК (МРК, ГНК) : 53 [09:38:44]line Товар: 2710124130 [09:38:44]line Аи-92-К-5 [09:38:44]line 7.480 * 66.90 [09:38:44]line = 500.41 [09:38:44]line НДС 12% НСП 1% [09:38:44]line > о реализуемом товаре [09:38:44]line ОКРУГЛЕНИЕ: -0.41 [09:38:44]line ИТОГО: 500.00 [09:38:44]line Внесено: 500.00 [09:38:44]line СДАЧА: 0.00 [09:38:44]line НСП 1% : 4.43 [09:38:44]line НДС 12% : 53.14 [09:38:44]line Наличными: 500.00 [09:38:44]line Безнал.: 0.00 [09:38:44]line Место: АЗС № 113 "Партнер Нефть" [09:38:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:38:44]line СНО: Общий режим [09:38:44]line Чек 51 28.10.2024 09:38 [09:38:44]line Смена: 554 ФФД: 1.0 [09:38:44]line ЗНМ: 0300000087 [09:38:44]line РНМ: 0000000000091644 [09:38:44]line Версия ККМ: 001 [09:38:44]line ФМ: 0000000000874662 [09:38:44]line ФД: 72523 [09:38:44]line ФПД: 28436982393067 [09:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T093843&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72523&fm=28436982393067&tin=02508201610067®Number=0000000000091644&sum=50000 [09:38:44]OFD Sender: Processing packet 72523 [packets to send 272, broken 271] [09:38:44]ProducePacketName [09:38:44]name=ofd_packets/00072523 [09:38:44]OFD Sender: To server: pG, [09:38:44]CommunicateWithHost lk.salyk.kg:30040 [09:38:44]ConnectInit lk.salyk.kg [09:38:44]written 0, free lines is 4095 [09:38:45]Write to MH i2c: 01 00 00 C4 03 C7 [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 07 00 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 D0 0C AA [09:38:45]RasterBufferAndPrint [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]line [09:38:45]written 0, free lines is 3287 [09:38:45]MH_Cut [09:38:45]Write to MH i2c: D1 01 00 CB 03 01 A0 [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 01 00 [09:38:45]MH_I2C_Read... [09:38:45]Read from MH i2c: D1 01 00 CB 03 00 9F [09:38:45]Write to MH i2c: 01 00 00 CC 03 CF [09:38:45]Write i2c OK [09:38:45]MH_I2C_Read... [09:38:45]Connected sock=6 [09:38:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6C 95 07 01 43 2C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 A3 5B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4B 1B 01 00 35 04 06 00 19 DD 00 3B E8 EB A0 CA FD C8 5D B2 41 D6 [09:38:46]*** Cut start [09:38:46]*** Partial cut [09:38:46]*** CUTSNS_PIN = 1 [09:38:46]*** CUTSNS_PIN = 0 [09:38:46]*** Brake cut motor [09:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E5 10 47 00 FF 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 34 36 36 32 10 04 04 00 4B 1B 01 00 F4 03 04 00 62 06 1F 67 B6 04 01 00 00 06 F5 E0 3C D8 E3 E3 06 [09:38:46]CommunicateWithHost err = 0 [09:38:46]CheckOFDResponse [09:38:46]1017 (14) - 77093643461234 [09:38:46]1041 (16) - 0000000000874662 [09:38:46]1040 (4) - 72523 [09:38:46]1012 (4) - 28.10.2024 03:34 [09:38:46]1206 (1) - 0 [09:38:46]OFD Sender: Remove packet 72523 [09:38:46]ProducePacketName [09:38:46]name=ofd_packets/00072523 [09:38:46]NVStorageDeleteData [09:38:46]Read from MH i2c: 01 [09:38:46]MH_I2C_Read... [09:38:46]*** Stop cut motor [09:38:46]*** Cut end [09:38:46]Read from MH i2c: 01 07 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: 01 07 00 CC 03 00 00 00 00 00 FF 0F E4 [09:38:46]process_action close_receipt done [09:38:46]requested_data is exist [09:38:46]produce_requested_data [09:38:46]requested_item fm.sn is exist - process it [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 11 00 00 [09:38:46]Write to MH i2c: E2 08 00 CD 03 80 11 00 00 00 00 00 00 4A [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 17 00 CD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9E [09:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:38:46]wFMCommunicate OK [09:38:46]requested_item fd.num is exist - process it [09:38:46]SAM_PROTO_GetFieldsCounters [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 00 00 [09:38:46]Write to MH i2c: E2 08 00 CE 03 80 13 00 00 00 00 00 00 4D [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 62 00 CE 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 9A [09:38: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetFieldsCounters done [09:38:46]requested_item shift.num is exist - process it [09:38:46]requested_item shift.opened is exist - process it [09:38:46]req_shift_opened [09:38:46]FM_GetShiftState [09:38:46]SAM_PROTO_GetShiftState [09:38:46]wFMCommunicate request_size=4 [09:38:46]MH_SAM_APDU [09:38:46]CAPDU: 80 13 01 00 [09:38:46]Write to MH i2c: E2 08 00 CF 03 80 13 01 00 00 00 00 00 4F [09:38:46]Write i2c OK [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 [09:38:46]MH_I2C_Read... [09:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:46]Read from MH i2c: E2 0E 00 [09:38:46]MH_I2C_Read... [09:38:46]Read from MH i2c: E2 0E 00 CF 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 B7 [09:38:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:38:46]wFMCommunicate OK [09:38:46]SAM_PROTO_GetShiftState done [09:38:46]FM_GetShiftState done [09:38:46]req_shift_opened done [09:38:46]requested_item shift.open_date is exist - process it [09:38:46]req_shift_open_date [09:38:46]req_shift_open_date done [09:38:46]produce_requested_data done [09:38:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72523,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:38:46]process_action_free close_receipt [09:38:46]json_value_free [09:38:46]json_value_free done [09:38:46]process_json_proto returns [09:38:46]Send response to host [09:38:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72523,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:38:46]free response buf [09:38:46]execute_script done [09:38:46]execute_script returns [09:38:46]free content buf [09:38:46]Sock 5.Close socket [09:38:46]Sock 5.Thread stoped [09:38:46]OFD Sender: No OFD packet to send [09:38:51]OFD Sender: No OFD packet to send [09:38:53]recv_with_timeout no data received [09:38:56]OFD Sender: No OFD packet to send [09:39:01]OFD Sender: No OFD packet to send [09:39:06]OFD Sender: No OFD packet to send [09:39:07]recv_with_timeout no data received [09:39:11]OFD Sender: No OFD packet to send [09:39:16]OFD Sender: No OFD packet to send [09:39:20]recv_with_timeout no data received [09:39:21]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:42]recv_with_timeout no data received [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:24]recv_with_timeout no data received [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:05]accept exits with 7 [09:41:05]New connection [09:41:05]New thread 3066793316 created [09:41:05]Thread 3066936676 joined [09:41:05]Waiting for new connection... [09:41:05] Sock 7.Parse request [09:41:05]Sock 7.Check first char [09:41:05]Sock 7.First char is OK [09:41:05]request: POST /json_proto HTTP/1.0 [09:41:05]Method: POST [09:41:05]URL: /json_proto [09:41:05]Method is POST - this is cgi request [09:41:05]url: /json_proto [09:41:05]query_string will be loaded in cgi processing [09:41:05]execute_cgi json_proto POST (null) [09:41:05]execute_cgi path=json_proto method=POST [09:41:05]POST find Content-Length [09:41:05]Host: 172.17.43.195:8080 [09:41:05]Content-Length: 685 [09:41:05]Content-Type: application/json [09:41:05] [09:41:05]POST finish read [09:41:05]Found Content-Length = 685 [09:41:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:05]execute_script... [09:41: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)951970", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:05]POST & json_proto [09:41:05]process_json_proto [09:41:05]json parsed OK: [09:41:05]protocol is kg_v1.0 [09:41:05]action value=close_receipt [09:41:05]process_action close_receipt [09:41:05]cmd_close_receipt [09:41:05]MH_GetDate [09:41:05]Write to MH i2c: F0 00 00 D0 03 C2 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 09 00 [09:41:05]MH_I2C_Read... [09:41:05]Read from MH i2c: F0 09 00 D0 03 00 32 5C 1F 67 74 2C AD 66 92 [09:41:05]GetLastDocTimeStamp 1730108323 [09:41:05]current date 1730108466 [09:41:05]FM_GetShiftState [09:41:05]SAM_PROTO_GetShiftState [09:41:05]wFMCommunicate request_size=4 [09:41:05]MH_SAM_APDU [09:41:05]CAPDU: 80 13 01 00 [09:41:05]Write to MH i2c: E2 08 00 D1 03 80 13 01 00 00 00 00 00 51 [09:41:05]Write i2c OK [09:41:05]MH_I2C_Read... [09:41:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:06]Read from MH i2c: E2 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 0E 00 [09:41:06]MH_I2C_Read... [09:41:06]Read from MH i2c: E2 0E 00 D1 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 B9 [09:41:06]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:41:06]wFMCommunicate OK [09:41:06]SAM_PROTO_GetShiftState done [09:41:06]FM_GetShiftState done [09:41:06]opened in 1730074113 [09:41:06]opened+sec_in_day 1730160513 [09:41:06]quantity*price = 200023 [09:41:06]sum+1 = 200025 [09:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 52 28.10.2024 09:41 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72524 ФПД: 190163852607644 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094106&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72524&fm=190163852607644&tin=02508201610067®Number=0000000000091644&sum=200000 [09:41:07]StoreToDocumentArchive [09:41:07]shift 554 fd 72524 [09:41:07]save to /storage/0554/doc_00072524 [09:41:07]save last doc name /storage/0554/doc_00072524 to /storage/kkm_last_doc_name [09:41:07]save OK [09:41:07]Clear old archive folders... [09:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:41:07]tlvbuf is 01D6B460 [09:41:07]SAM_PROTO_ClearQueue [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 09 00 00 [09:41:07]Write to MH i2c: E2 08 00 DE 03 80 09 00 00 00 00 00 00 53 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_ClearQueue done [09:41:07]KKMCreateOFDPacket [09:41:07]OFDProtocolAddRootSTLVToBuf [09:41:07]FM_MakeSignedData [09:41:07]FM_MakeSignedData [09:41:07]SAM_PROTO_SignData [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 01 02 [09:41:07]Write to MH i2c: E2 08 00 DF 03 80 0D 01 02 00 00 00 00 5B [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]OFD Sender: No OFD packet to send [09:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]wFMCommunicate request_size=255 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 32 5C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1B 01 00 35 04 06 00 AC F3 [09:41:07]Write to MH i2c: E2 02 01 E0 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 32 5C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1B 01 00 35 04 06 00 AC F3 00 00 AD [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]wFMCommunicate request_size=9 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 02 02 04 F8 E2 40 9C [09:41:07]Write to MH i2c: E2 0C 00 E1 03 80 0D 02 02 04 00 F8 E2 40 9C 00 00 1C [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:07]Read from MH i2c: E2 03 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 03 00 E1 03 00 90 00 58 [09:41:07]RAPDU: 90 00 [09:41:07]wFMCommunicate OK [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 0D 03 02 [09:41:07]Write to MH i2c: E2 08 00 E2 03 80 0D 03 02 00 00 00 00 60 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0B 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 0B 00 E2 03 00 E3 AD 4F E1 8B 36 D3 22 90 00 D7 [09:41:07]RAPDU: E3 AD 4F E1 8B 36 D3 22 90 00 [09:41:07]wFMCommunicate OK [09:41:07]SAM_PROTO_SignData done [09:41:07]FM_MakeSignedData done [09:41:07]CreateOFDProtocolMessage [09:41:07]wFMCommunicate request_size=4 [09:41:07]MH_SAM_APDU [09:41:07]CAPDU: 80 11 00 00 [09:41:07]Write to MH i2c: E2 08 00 E3 03 80 11 00 00 00 00 00 00 60 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:07]Read from MH i2c: E2 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 17 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: E2 17 00 E3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B4 [09:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:41:07]wFMCommunicate OK [09:41:07]CreateOFDProtocolMessage done [09:41:07]OFDSenderStorePacket 72524 [09:41:07]StoreOFDPacket docnum=72524 [09:41:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 00 83 06 01 2C E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 32 5C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1B 01 00 35 04 06 00 AC F3 F8 E2 40 9C E3 AD 4F E1 8B 36 D3 22 [09:41:07]CheckFolder [09:41:07]dirname=/storage/ofd_packets [09:41:07]CheckFolder done [09:41:07]ProducePacketName [09:41:07]name=ofd_packets/00072524 [09:41:07]NVStorageSaveData ofd_packets/00072524 [09:41:07]File name is /storage/ofd_packets/00072524 [09:41:07]Write 300 bytes [09:41:07]NVStorageSaveData done [09:41:07]OFDSenderStorePacket done [09:41:07]KKMCreateOFDPacket done [09:41:07]NVStorageSaveData kkm_last_timestamp [09:41:07]File name is /storage/kkm_last_timestamp [09:41:07]Write 4 bytes [09:41:07]NVStorageSaveData done [09:41:07]ExternCall_PrintAddStr [09:41:07]wPrintStart [09:41:07]Write to MH i2c: 01 00 00 E4 03 E7 [09:41:07]Write i2c OK [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 [09:41:07]MH_I2C_Read... [09:41:07]Read from MH i2c: 01 07 00 E4 03 00 00 00 00 00 FF 0F FC [09:41:07]RasterBufferAndPrint [09:41:07]line Счет N : (1)951970 [09:41:07]line ИНН: 02508201610067 [09:41:07]line Контрольно-Кассовый Чек [09:41:07]line ПРОДАЖА [09:41:07]line ТРК (МРК, ГНК) : 71 [09:41:07]line Товар: 2711190000 [09:41:07]line ГАЗ-К-3 [09:41:07]line 51.420 * 38.90 [09:41:07]line = 2000.24 [09:41:07]line НДС 12% НСП 1% [09:41:07]line > о реализуемом товаре [09:41:07]line ОКРУГЛЕНИЕ: -0.24 [09:41:07]line ИТОГО: 2000.00 [09:41:07]line Внесено: 2000.00 [09:41:07]line СДАЧА: 0.00 [09:41:07]line НСП 1% : 17.70 [09:41:07]line НДС 12% : 212.41 [09:41:07]line Наличными: 2000.00 [09:41:07]line Безнал.: 0.00 [09:41:07]line Место: АЗС № 113 "Партнер Нефть" [09:41:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:41:07]line СНО: Общий режим [09:41:07]line Чек 52 28.10.2024 09:41 [09:41:07]line Смена: 554 ФФД: 1.0 [09:41:07]line ЗНМ: 0300000087 [09:41:07]line РНМ: 0000000000091644 [09:41:07]line Версия ККМ: 001 [09:41:07]line ФМ: 0000000000874662 [09:41:07]line ФД: 72524 [09:41:07]line ФПД: 190163852607644 [09:41:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T094106&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72524&fm=190163852607644&tin=02508201610067®Number=0000000000091644&sum=200000 [09:41:07]OFD Sender: Processing packet 72524 [packets to send 272, broken 271] [09:41:07]ProducePacketName [09:41:07]name=ofd_packets/00072524 [09:41:07]OFD Sender: To server: pG, [09:41:07]CommunicateWithHost lk.salyk.kg:30040 [09:41:07]ConnectInit lk.salyk.kg [09:41:07]written 0, free lines is 4095 [09:41:08]Write to MH i2c: 01 00 00 0F 04 13 [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: 01 07 00 0F 04 00 00 00 00 00 CC 0C F2 [09:41:08]RasterBufferAndPrint [09:41:08]line [09:41:08]line [09:41:08]line [09:41:08]line [09:41:08]line [09:41:08]written 0, free lines is 3283 [09:41:08]MH_Cut [09:41:08]Write to MH i2c: D1 01 00 16 04 01 EC [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: D1 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: D1 01 00 [09:41:08]MH_I2C_Read... [09:41:08]Read from MH i2c: D1 01 00 16 04 00 EB [09:41:08]Write to MH i2c: 01 00 00 17 04 1B [09:41:08]Write i2c OK [09:41:08]MH_I2C_Read... [09:41:09]*** Cut start [09:41:09]*** Partial cut [09:41:09]*** CUTSNS_PIN = 1 [09:41:09]*** CUTSNS_PIN = 0 [09:41:09]*** Brake cut motor [09:41:09]Read from MH i2c: 01 [09:41:09]MH_I2C_Read... [09:41:09]*** Stop cut motor [09:41:09]*** Cut end [09:41:09]Read from MH i2c: 01 07 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: 01 07 00 17 04 00 00 00 00 00 FF 0F 30 [09:41:09]process_action close_receipt done [09:41:09]requested_data is exist [09:41:09]produce_requested_data [09:41:09]requested_item fm.sn is exist - process it [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 11 00 00 [09:41:09]Write to MH i2c: E2 08 00 18 04 80 11 00 00 00 00 00 00 96 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 17 00 18 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EA [09:41:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:41:09]wFMCommunicate OK [09:41:09]requested_item fd.num is exist - process it [09:41:09]SAM_PROTO_GetFieldsCounters [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 00 00 [09:41:09]Write to MH i2c: E2 08 00 19 04 80 13 00 00 00 00 00 00 99 [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:09]Read from MH i2c: E2 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 62 00 [09:41:09]MH_I2C_Read... [09:41:09]Read from MH i2c: E2 62 00 19 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [09:41: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:09]wFMCommunicate OK [09:41:09]SAM_PROTO_GetFieldsCounters done [09:41:09]requested_item shift.num is exist - process it [09:41:09]requested_item shift.opened is exist - process it [09:41:09]req_shift_opened [09:41:09]FM_GetShiftState [09:41:09]SAM_PROTO_GetShiftState [09:41:09]wFMCommunicate request_size=4 [09:41:09]MH_SAM_APDU [09:41:09]CAPDU: 80 13 01 00 [09:41:09]Write to MH i2c: E2 08 00 1A 04 80 13 01 00 00 00 00 00 9B [09:41:09]Write i2c OK [09:41:09]MH_I2C_Read... [09:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:10]Read from MH i2c: E2 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 [09:41:10]MH_I2C_Read... [09:41:10]Read from MH i2c: E2 0E 00 1A 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 03 [09:41:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:41:10]wFMCommunicate OK [09:41:10]SAM_PROTO_GetShiftState done [09:41:10]FM_GetShiftState done [09:41:10]req_shift_opened done [09:41:10]requested_item shift.open_date is exist - process it [09:41:10]req_shift_open_date [09:41:10]req_shift_open_date done [09:41:10]produce_requested_data done [09:41:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72524,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:41:10]process_action_free close_receipt [09:41:10]json_value_free [09:41:10]json_value_free done [09:41:10]process_json_proto returns [09:41:10]Send response to host [09:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72524,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:41:10]free response buf [09:41:10]execute_script done [09:41:10]execute_script returns [09:41:10]free content buf [09:41:10]Sock 7.Close socket [09:41:10]Sock 7.Thread stoped [09:41:12]ConnectInit Can't take IP for lk.salyk.kg [09:41:12]CommunicateWithHost connect error [09:41:12]CommunicateWithHost err = -1 [09:41:12]OFD Sender: Server communicate error [09:41:17]OFD Sender: Processing packet 72524 [packets to send 272, broken 271] [09:41:17]ProducePacketName [09:41:17]name=ofd_packets/00072524 [09:41:17]OFD Sender: To server: pG, [09:41:17]CommunicateWithHost lk.salyk.kg:30040 [09:41:17]ConnectInit lk.salyk.kg [09:41:19]recv_with_timeout no data received [09:41:22]ConnectInit Can't take IP for lk.salyk.kg [09:41:22]CommunicateWithHost connect error [09:41:22]CommunicateWithHost err = -1 [09:41:22]OFD Sender: Server communicate error [09:41:27]OFD Sender: Processing packet 72524 [packets to send 272, broken 271] [09:41:27]ProducePacketName [09:41:27]name=ofd_packets/00072524 [09:41:27]OFD Sender: To server: pG, [09:41:27]CommunicateWithHost lk.salyk.kg:30040 [09:41:27]ConnectInit lk.salyk.kg [09:41:32]ConnectInit Can't take IP for lk.salyk.kg [09:41:32]CommunicateWithHost connect error [09:41:32]CommunicateWithHost err = -1 [09:41:32]OFD Sender: Server communicate error [09:41:38]OFD Sender: Processing packet 72524 [packets to send 272, broken 271] [09:41:38]ProducePacketName [09:41:38]name=ofd_packets/00072524 [09:41:38]OFD Sender: To server: pG, [09:41:38]CommunicateWithHost lk.salyk.kg:30040 [09:41:38]ConnectInit lk.salyk.kg [09:41:38]recv_with_timeout no data received [09:41:43]ConnectInit Can't take IP for lk.salyk.kg [09:41:43]CommunicateWithHost connect error [09:41:43]CommunicateWithHost err = -1 [09:41:43]OFD Sender: Server communicate error [09:41:48]OFD Sender: Processing packet 72524 [packets to send 272, broken 271] [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00072524 [09:41:48]OFD Sender: To server: pG, [09:41:48]CommunicateWithHost lk.salyk.kg:30040 [09:41:48]ConnectInit lk.salyk.kg [09:41:53]recv_with_timeout no data received [09:42:01]Connected sock=7 [09:42:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 00 83 06 01 2C E8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 32 5C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4C 1B 01 00 35 04 06 00 AC F3 F8 E2 40 9C E3 AD 4F E1 8B 36 D3 22 [09:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FC 3A 47 00 AB 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 34 36 36 32 10 04 04 00 4C 1B 01 00 F4 03 04 00 28 07 1F 67 B6 04 01 00 00 DA 8D FA 39 97 B2 5B A6 [09:42:03]CommunicateWithHost err = 0 [09:42:03]CheckOFDResponse [09:42:03]1017 (14) - 77093643461234 [09:42:03]1041 (16) - 0000000000874662 [09:42:03]1040 (4) - 72524 [09:42:03]1012 (4) - 28.10.2024 03:38 [09:42:03]1206 (1) - 0 [09:42:03]OFD Sender: Remove packet 72524 [09:42:03]ProducePacketName [09:42:03]name=ofd_packets/00072524 [09:42:03]NVStorageDeleteData [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:34]OFD Sender: No OFD packet to send [09:42:39]OFD Sender: No OFD packet to send [09:42:44]OFD Sender: No OFD packet to send [09:42:46]recv_with_timeout no data received [09:42:49]OFD Sender: No OFD packet to send [09:42:54]OFD Sender: No OFD packet to send [09:42:56]recv_with_timeout no data received [09:42:59]OFD Sender: No OFD packet to send [09:43:04]OFD Sender: No OFD packet to send [09:43:09]OFD Sender: No OFD packet to send [09:43:14]OFD Sender: No OFD packet to send [09:43:19]OFD Sender: No OFD packet to send [09:43:24]OFD Sender: No OFD packet to send [09:43:29]OFD Sender: No OFD packet to send [09:43:34]OFD Sender: No OFD packet to send [09:43:39]OFD Sender: No OFD packet to send [09:43:44]OFD Sender: No OFD packet to send [09:43:49]OFD Sender: No OFD packet to send [09:43:54]OFD Sender: No OFD packet to send [09:43:59]OFD Sender: No OFD packet to send [09:44:04]OFD Sender: No OFD packet to send [09:44:07]recv_with_timeout no data received [09:44:09]OFD Sender: No OFD packet to send [09:44:14]OFD Sender: No OFD packet to send [09:44:19]OFD Sender: No OFD packet to send [09:44:24]OFD Sender: No OFD packet to send [09:44:29]OFD Sender: No OFD packet to send [09:44:34]OFD Sender: No OFD packet to send [09:44:39]OFD Sender: No OFD packet to send [09:44:44]OFD Sender: No OFD packet to send [09:44:49]OFD Sender: No OFD packet to send [09:44:54]OFD Sender: No OFD packet to send [09:44:59]OFD Sender: No OFD packet to send [09:45:04]OFD Sender: No OFD packet to send [09:45:09]OFD Sender: No OFD packet to send [09:45:14]OFD Sender: No OFD packet to send [09:45:19]OFD Sender: No OFD packet to send [09:45:24]OFD Sender: No OFD packet to send [09:45:29]OFD Sender: No OFD packet to send [09:45:33]recv_with_timeout no data received [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:52]recv_with_timeout no data received [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:39]recv_with_timeout no data received [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:13]recv_with_timeout no data received [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:29]accept exits with 5 [09:49:29]New connection [09:49:29]New thread 3066936676 created [09:49:29]Thread 3066793316 joined [09:49:29]Waiting for new connection... [09:49:29] Sock 5.Parse request [09:49:29]Sock 5.Check first char [09:49:29]Sock 5.First char is OK [09:49:29]request: POST /json_proto HTTP/1.0 [09:49:29]Method: POST [09:49:29]URL: /json_proto [09:49:29]Method is POST - this is cgi request [09:49:29]url: /json_proto [09:49:29]query_string will be loaded in cgi processing [09:49:29]execute_cgi json_proto POST (null) [09:49:29]execute_cgi path=json_proto method=POST [09:49:29]POST find Content-Length [09:49:29]Host: 172.17.43.195:8080 [09:49:29]Content-Length: 792 [09:49:29]Content-Type: application/json [09:49:29] [09:49:29]POST finish read [09:49:29]Found Content-Length = 792 [09:49:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:29]execute_script... [09:49: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)951972", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:29]POST & json_proto [09:49:29]process_json_proto [09:49:29]json parsed OK: [09:49:29]protocol is kg_v1.0 [09:49:29]action value=close_receipt [09:49:29]process_action close_receipt [09:49:29]cmd_close_receipt [09:49:29]MH_GetDate [09:49:29]Write to MH i2c: F0 00 00 1B 04 0E [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: F0 09 00 1B 04 00 2A 5E 1F 67 74 2C AD 66 D8 [09:49:29]GetLastDocTimeStamp 1730108466 [09:49:29]current date 1730108970 [09:49:29]FM_GetShiftState [09:49:29]SAM_PROTO_GetShiftState [09:49:29]wFMCommunicate request_size=4 [09:49:29]MH_SAM_APDU [09:49:29]CAPDU: 80 13 01 00 [09:49:29]Write to MH i2c: E2 08 00 1C 04 80 13 01 00 00 00 00 00 9D [09:49:29]Write i2c OK [09:49:29]MH_I2C_Read... [09:49:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:29]Read from MH i2c: E2 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 [09:49:29]MH_I2C_Read... [09:49:29]Read from MH i2c: E2 0E 00 1C 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 05 [09:49:29]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:49:29]wFMCommunicate OK [09:49:29]SAM_PROTO_GetShiftState done [09:49:29]FM_GetShiftState done [09:49:29]opened in 1730074113 [09:49:29]opened+sec_in_day 1730160513 [09:49:29]quantity*price = 0 [09:49:29]sum+1 = 1 [09:49:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 54 28.10.2024 09:50 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72526 ФПД: 135144839368851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095017&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72526&fm=135144839368851&tin=02508201610067®Number=0000000000091644&sum=0 [09:50:17]StoreToDocumentArchive [09:50:17]shift 554 fd 72526 [09:50:17]save to /storage/0554/doc_00072526 [09:50:17]save last doc name /storage/0554/doc_00072526 to /storage/kkm_last_doc_name [09:50:17]save OK [09:50:17]Clear old archive folders... [09:50:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:17]tlvbuf is 01FAA980 [09:50:17]SAM_PROTO_ClearQueue [09:50:17]wFMCommunicate request_size=4 [09:50:17]MH_SAM_APDU [09:50:17]CAPDU: 80 09 00 00 [09:50:17]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:17]Read from MH i2c: E2 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 03 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [09:50:17]RAPDU: 90 00 [09:50:17]wFMCommunicate OK [09:50:17]SAM_PROTO_ClearQueue done [09:50:17]KKMCreateOFDPacket [09:50:17]OFDProtocolAddRootSTLVToBuf [09:50:17]FM_MakeSignedData [09:50:17]FM_MakeSignedData [09:50:17]SAM_PROTO_SignData [09:50:17]wFMCommunicate request_size=4 [09:50:17]MH_SAM_APDU [09:50:17]CAPDU: 80 0D 01 02 [09:50:17]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [09:50:17]Write i2c OK [09:50:17]MH_I2C_Read... [09:50:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:17]Read from MH i2c: E2 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 03 00 [09:50:17]MH_I2C_Read... [09:50:17]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [09:50:17]RAPDU: 90 00 [09:50:17]wFMCommunicate OK [09:50:17]wFMCommunicate request_size=255 [09:50:17]MH_SAM_APDU [09:50: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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1B 01 00 35 04 06 00 7A [09:50:17]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1B 01 00 35 04 06 00 7A 00 00 72 [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:18]Read from MH i2c: E2 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 03 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [09:50:18]RAPDU: 90 00 [09:50:18]wFMCommunicate OK [09:50:18]wFMCommunicate request_size=10 [09:50:18]MH_SAM_APDU [09:50:18]CAPDU: 80 0D 02 02 05 E9 DC 24 D0 93 [09:50:18]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 E9 DC 24 D0 93 00 00 FE [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:18]Read from MH i2c: E2 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 03 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [09:50:18]RAPDU: 90 00 [09:50:18]wFMCommunicate OK [09:50:18]wFMCommunicate request_size=4 [09:50:18]MH_SAM_APDU [09:50:18]CAPDU: 80 0D 03 02 [09:50:18]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:18]Read from MH i2c: E2 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 0B 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 0B 00 2F 00 00 4A 33 D4 81 65 22 EE DC 90 00 CE [09:50:18]RAPDU: 4A 33 D4 81 65 22 EE DC 90 00 [09:50:18]wFMCommunicate OK [09:50:18]SAM_PROTO_SignData done [09:50:18]FM_MakeSignedData done [09:50:18]CreateOFDProtocolMessage [09:50:18]wFMCommunicate request_size=4 [09:50:18]MH_SAM_APDU [09:50:18]CAPDU: 80 11 00 00 [09:50:18]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:18]Read from MH i2c: E2 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: E2 17 00 [09:50:18]MH_I2C_Read... [09:50:18]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 34 36 36 32 90 00 FE [09:50:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:50:18]wFMCommunicate OK [09:50:18]CreateOFDProtocolMessage done [09:50:18]OFDSenderStorePacket 72526 [09:50:18]StoreOFDPacket docnum=72526 [09:50:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8D 5A 07 01 20 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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1B 01 00 35 04 06 00 7A E9 DC 24 D0 93 4A 33 D4 81 65 22 EE DC [09:50:18]CheckFolder [09:50:18]dirname=/storage/ofd_packets [09:50:18]CheckFolder done [09:50:18]ProducePacketName [09:50:18]name=ofd_packets/00072526 [09:50:18]NVStorageSaveData ofd_packets/00072526 [09:50:18]File name is /storage/ofd_packets/00072526 [09:50:18]Write 301 bytes [09:50:18]NVStorageSaveData done [09:50:18]OFDSenderStorePacket done [09:50:18]KKMCreateOFDPacket done [09:50:18]NVStorageSaveData kkm_last_timestamp [09:50:18]File name is /storage/kkm_last_timestamp [09:50:18]Write 4 bytes [09:50:18]NVStorageSaveData done [09:50:18]ExternCall_PrintAddStr [09:50:18]wPrintStart [09:50:18]Write to MH i2c: 01 00 00 31 00 31 [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: 01 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: 01 07 00 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [09:50:18]RasterBufferAndPrint [09:50:18]line Счет N : (1)951972 [09:50:18]line ИНН: 02508201610067 [09:50:18]line Контрольно-Кассовый Чек [09:50:18]line ПРОДАЖА [09:50:18]line ТРК (МРК, ГНК) : 53 [09:50:18]line Товар: 2710124130 [09:50:18]line Аи-92-К-5 [09:50:18]line 35.000 * 0.00 [09:50:18]line = 0.00 [09:50:18]line НДС 12% НСП 1% [09:50:18]line > о реализуемом товаре [09:50:18]line ИТОГО: 0.00 [09:50:18]line НСП 1% : 0.00 [09:50:18]line НДС 12% : 0.00 [09:50:18]line Наличными: 0.00 [09:50:18]line Безнал.: 0.00 [09:50:18]line Место: АЗС № 113 "Партнер Нефть" [09:50:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:50:18]line СНО: Общий режим [09:50:18]line Чек 54 28.10.2024 09:50 [09:50:18]line Смена: 554 ФФД: 1.0 [09:50:18]line ЗНМ: 0300000087 [09:50:18]line РНМ: 0000000000091644 [09:50:18]line Версия ККМ: 001 [09:50:18]line Талоны: Топливная Карта [09:50:18]line 03047 [09:50:18]line ФМ: 0000000000874662 [09:50:18]line ФД: 72526 [09:50:18]line ФПД: 135144839368851 [09:50:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095017&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72526&fm=135144839368851&tin=02508201610067®Number=0000000000091644&sum=0 [09:50:18]written 0, free lines is 4095 [09:50:18]OFD Sender: Processing packet 72526 [packets to send 273, broken 272] [09:50:18]ProducePacketName [09:50:18]name=ofd_packets/00072526 [09:50:18]OFD Sender: To server: pG, [09:50:18]CommunicateWithHost lk.salyk.kg:30040 [09:50:18]ConnectInit lk.salyk.kg [09:50:19]Write to MH i2c: 01 00 00 5B 00 5B [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 ED 0C 5B [09:50:19]RasterBufferAndPrint [09:50:19]line [09:50:19]line [09:50:19]line [09:50:19]line [09:50:19]line [09:50:19]written 0, free lines is 3330 [09:50:19]MH_Cut [09:50:19]Write to MH i2c: D1 01 00 62 00 01 34 [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]Connected sock=11 [09:50:19]Read from MH i2c: Data to sent: D1 87 [09:50:19]95 MH_I2C_Read... [09:50:19]F6 Read from MH i2c: 70 D1 47 2C 01 01 00 00 [09:50:19]30 MH_I2C_Read... [09:50:19]30 Read from MH i2c: 30 D1 30 01 30 00 30 62 30 00 30 00 33 [09:50:19]Write to MH i2c: 01 00 00 63 00 63 [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]30 30 38 37 34 36 36 32 0F 01 00 00 8D 5A 07 01 20 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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 59 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4E 1B 01 00 35 04 06 00 7A E9 DC 24 D0 93 4A 33 D4 81 65 22 EE DC [09:50:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FB CB 47 00 2C 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 34 36 36 32 10 04 04 00 4E 1B 01 00 F4 03 04 00 18 09 1F 67 B6 04 01 00 00 22 7C 80 CE 8B 79 38 60 [09:50:20]CommunicateWithHost err = 0 [09:50:20]CheckOFDResponse [09:50:20]1017 (14) - 77093643461234 [09:50:20]1041 (16) - 0000000000874662 [09:50:20]1040 (4) - 72526 [09:50:20]1012 (4) - 28.10.2024 03:46 [09:50:20]1206 (1) - 0 [09:50:20]OFD Sender: Remove packet 72526 [09:50:20]ProducePacketName [09:50:20]name=ofd_packets/00072526 [09:50:20]NVStorageDeleteData [09:50:20]*** Cut start [09:50:20]*** Partial cut [09:50:20]*** CUTSNS_PIN = 1 [09:50:20]*** CUTSNS_PIN = 0 [09:50:20]*** Brake cut motor [09:50:20]OFD Sender: No OFD packet to send [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]*** Stop cut motor [09:50:20]*** Cut end [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [09:50:20]process_action close_receipt done [09:50:20]requested_data is exist [09:50:20]produce_requested_data [09:50:20]requested_item fm.sn is exist - process it [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 11 00 00 [09:50:20]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:20]Read from MH i2c: E2 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 17 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [09:50:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:50:20]wFMCommunicate OK [09:50:20]requested_item fd.num is exist - process it [09:50:20]SAM_PROTO_GetFieldsCounters [09:50:20]wFMCommunicate request_size=4 [09:50:20]MH_SAM_APDU [09:50:20]CAPDU: 80 13 00 00 [09:50:20]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:21]Read from MH i2c: E2 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 62 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [09:50: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:21]wFMCommunicate OK [09:50:21]SAM_PROTO_GetFieldsCounters done [09:50:21]requested_item shift.num is exist - process it [09:50:21]requested_item shift.opened is exist - process it [09:50:21]req_shift_opened [09:50:21]FM_GetShiftState [09:50:21]SAM_PROTO_GetShiftState [09:50:21]wFMCommunicate request_size=4 [09:50:21]MH_SAM_APDU [09:50:21]CAPDU: 80 13 01 00 [09:50:21]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [09:50:21]Write i2c OK [09:50:21]MH_I2C_Read... [09:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:21]Read from MH i2c: E2 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 0E 00 [09:50:21]MH_I2C_Read... [09:50:21]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [09:50:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:50:21]wFMCommunicate OK [09:50:21]SAM_PROTO_GetShiftState done [09:50:21]FM_GetShiftState done [09:50:21]req_shift_opened done [09:50:21]requested_item shift.open_date is exist - process it [09:50:21]req_shift_open_date [09:50:21]req_shift_open_date done [09:50:21]produce_requested_data done [09:50:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72526,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:50:21]process_action_free close_receipt [09:50:21]json_value_free [09:50:21]json_value_free done [09:50:21]process_json_proto returns [09:50:21]Send response to host [09:50:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72526,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:50:21]free response buf [09:50:21]execute_script done [09:50:21]execute_script returns [09:50:21]free content buf [09:50:21]Sock 9.Close socket [09:50:21]Sock 9.Thread stoped [09:50:25]OFD Sender: No OFD packet to send [09:50:30]OFD Sender: No OFD packet to send [09:50:35]OFD Sender: No OFD packet to send [09:50:40]OFD Sender: No OFD packet to send [09:50:45]OFD Sender: No OFD packet to send [09:50:46]recv_with_timeout no data received [09:50:50]OFD Sender: No OFD packet to send [09:50:55]OFD Sender: No OFD packet to send [09:50:59]recv_with_timeout no data received [09:51:00]OFD Sender: No OFD packet to send [09:51:05]OFD Sender: No OFD packet to send [09:51:10]OFD Sender: No OFD packet to send [09:51:11]recv_with_timeout no data received [09:51:15]OFD Sender: No OFD packet to send [09:51:17]accept exits with 7 [09:51:17]New connection [09:51:17]New thread 3067428196 created [09:51:17]Thread 3067571556 joined [09:51:17]Waiting for new connection... [09:51:17] Sock 7.Parse request [09:51:17]Sock 7.Check first char [09:51:17]Sock 7.First char is OK [09:51:17]request: POST /json_proto HTTP/1.0 [09:51:17]Method: POST [09:51:17]URL: /json_proto [09:51:17]Method is POST - this is cgi request [09:51:17]url: /json_proto [09:51:17]query_string will be loaded in cgi processing [09:51:17]execute_cgi json_proto POST (null) [09:51:17]execute_cgi path=json_proto method=POST [09:51:17]POST find Content-Length [09:51:17]Host: 172.17.43.195:8080 [09:51:17]Content-Length: 792 [09:51:17]Content-Type: application/json [09:51:17] [09:51:17]POST finish read [09:51:17]Found Content-Length = 792 [09:51:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:17]execute_script... [09:51:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951974", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:17]POST & json_proto [09:51:17]process_json_proto [09:51:17]json parsed OK: [09:51:17]protocol is kg_v1.0 [09:51:17]action value=close_receipt [09:51:17]process_action close_receipt [09:51:17]cmd_close_receipt [09:51:17]MH_GetDate [09:51:17]Write to MH i2c: F0 00 00 67 00 56 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 09 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: F0 09 00 67 00 00 95 5E 1F 67 74 2C AD 66 8B [09:51:17]GetLastDocTimeStamp 1730109017 [09:51:17]current date 1730109077 [09:51:17]FM_GetShiftState [09:51:17]SAM_PROTO_GetShiftState [09:51:17]wFMCommunicate request_size=4 [09:51:17]MH_SAM_APDU [09:51:17]CAPDU: 80 13 01 00 [09:51:17]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [09:51:17]Write i2c OK [09:51:17]MH_I2C_Read... [09:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:17]Read from MH i2c: E2 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 [09:51:17]MH_I2C_Read... [09:51:17]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [09:51:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:51:17]wFMCommunicate OK [09:51:17]SAM_PROTO_GetShiftState done [09:51:17]FM_GetShiftState done [09:51:17]opened in 1730074113 [09:51:17]opened+sec_in_day 1730160513 [09:51:17]quantity*price = 0 [09:51:17]sum+1 = 1 [09:51:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 55 28.10.2024 09:51 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72527 ФПД: 130294890006329 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72527&fm=130294890006329&tin=02508201610067®Number=0000000000091644&sum=0 [09:51:18]StoreToDocumentArchive [09:51:18]shift 554 fd 72527 [09:51:18]save to /storage/0554/doc_00072527 [09:51:18]save last doc name /storage/0554/doc_00072527 to /storage/kkm_last_doc_name [09:51:18]save OK [09:51:18]Clear old archive folders... [09:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:18]tlvbuf is 01FAA560 [09:51:18]SAM_PROTO_ClearQueue [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 09 00 00 [09:51:18]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 03 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [09:51:18]RAPDU: 90 00 [09:51:18]wFMCommunicate OK [09:51:18]SAM_PROTO_ClearQueue done [09:51:18]KKMCreateOFDPacket [09:51:18]OFDProtocolAddRootSTLVToBuf [09:51:18]FM_MakeSignedData [09:51:18]FM_MakeSignedData [09:51:18]SAM_PROTO_SignData [09:51:18]wFMCommunicate request_size=4 [09:51:18]MH_SAM_APDU [09:51:18]CAPDU: 80 0D 01 02 [09:51:18]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:18]Read from MH i2c: E2 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 03 00 [09:51:18]MH_I2C_Read... [09:51:18]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [09:51:18]RAPDU: 90 00 [09:51:18]wFMCommunicate OK [09:51:18]wFMCommunicate request_size=255 [09:51:18]MH_SAM_APDU [09: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 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 37 00 00 00 F4 03 04 00 95 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1B 01 00 35 04 06 00 76 [09:51:18]Write to MH i2c: E2 02 01 77 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 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 37 00 00 00 F4 03 04 00 95 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1B 01 00 35 04 06 00 76 00 00 24 [09:51:18]Write i2c OK [09:51:18]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]wFMCommunicate request_size=10 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 02 02 05 80 A4 A2 87 39 [09:51:19]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 80 A4 A2 87 39 00 00 82 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [09:51:19]RAPDU: 90 00 [09:51:19]wFMCommunicate OK [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 0D 03 02 [09:51:19]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0B 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 0B 00 79 00 00 ED 07 23 A3 0C 34 B5 C9 90 00 6D [09:51:19]RAPDU: ED 07 23 A3 0C 34 B5 C9 90 00 [09:51:19]wFMCommunicate OK [09:51:19]SAM_PROTO_SignData done [09:51:19]FM_MakeSignedData done [09:51:19]CreateOFDProtocolMessage [09:51:19]wFMCommunicate request_size=4 [09:51:19]MH_SAM_APDU [09:51:19]CAPDU: 80 11 00 00 [09:51:19]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:19]Read from MH i2c: E2 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 17 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [09:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:51:19]wFMCommunicate OK [09:51:19]CreateOFDProtocolMessage done [09:51:19]OFDSenderStorePacket 72527 [09:51:19]StoreOFDPacket docnum=72527 [09:51:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1D 48 07 01 5D 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 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 37 00 00 00 F4 03 04 00 95 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1B 01 00 35 04 06 00 76 80 A4 A2 87 39 ED 07 23 A3 0C 34 B5 C9 [09:51:19]CheckFolder [09:51:19]dirname=/storage/ofd_packets [09:51:19]CheckFolder done [09:51:19]ProducePacketName [09:51:19]name=ofd_packets/00072527 [09:51:19]NVStorageSaveData ofd_packets/00072527 [09:51:19]File name is /storage/ofd_packets/00072527 [09:51:19]Write 301 bytes [09:51:19]NVStorageSaveData done [09:51:19]OFDSenderStorePacket done [09:51:19]KKMCreateOFDPacket done [09:51:19]NVStorageSaveData kkm_last_timestamp [09:51:19]File name is /storage/kkm_last_timestamp [09:51:19]Write 4 bytes [09:51:19]NVStorageSaveData done [09:51:19]ExternCall_PrintAddStr [09:51:19]wPrintStart [09:51:19]Write to MH i2c: 01 00 00 7B 00 7B [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [09:51:19]RasterBufferAndPrint [09:51:19]line Счет N : (1)951974 [09:51:19]line ИНН: 02508201610067 [09:51:19]line Контрольно-Кассовый Чек [09:51:19]line ПРОДАЖА [09:51:19]line ТРК (МРК, ГНК) : 63 [09:51:19]line Товар: 2710124130 [09:51:19]line Аи-92-К-5 [09:51:19]line 20.000 * 0.00 [09:51:19]line = 0.00 [09:51:19]line НДС 12% НСП 1% [09:51:19]line > о реализуемом товаре [09:51:19]line ИТОГО: 0.00 [09:51:19]line НСП 1% : 0.00 [09:51:19]line НДС 12% : 0.00 [09:51:19]line Наличными: 0.00 [09:51:19]line Безнал.: 0.00 [09:51:19]line Место: АЗС № 113 "Партнер Нефть" [09:51:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:51:19]line СНО: Общий режим [09:51:19]line Чек 55 28.10.2024 09:51 [09:51:19]line Смена: 554 ФФД: 1.0 [09:51:19]line ЗНМ: 0300000087 [09:51:19]line РНМ: 0000000000091644 [09:51:19]line Версия ККМ: 001 [09:51:19]line Талоны: Топливная Карта [09:51:19]line 03047 [09:51:19]line ФМ: 0000000000874662 [09:51:19]line ФД: 72527 [09:51:19]line ФПД: 130294890006329 [09:51:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72527&fm=130294890006329&tin=02508201610067®Number=0000000000091644&sum=0 [09:51:19]written 0, free lines is 4095 [09:51:19]OFD Sender: Processing packet 72527 [packets to send 273, broken 272] [09:51:19]ProducePacketName [09:51:19]name=ofd_packets/00072527 [09:51:19]OFD Sender: To server: pG, [09:51:19]CommunicateWithHost lk.salyk.kg:30040 [09:51:19]ConnectInit lk.salyk.kg [09:51:19]Write to MH i2c: 01 00 00 A5 00 A5 [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 ED 0C A5 [09:51:19]RasterBufferAndPrint [09:51:19]line [09:51:19]line [09:51:19]line [09:51:19]line [09:51:19]line [09:51:19]written 0, free lines is 3315 [09:51:19]MH_Cut [09:51:19]Write to MH i2c: D1 01 00 AC 00 01 7E [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: D1 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: D1 01 00 [09:51:19]MH_I2C_Read... [09:51:19]Read from MH i2c: D1 01 00 AC 00 00 7D [09:51:19]Write to MH i2c: 01 00 00 AD 00 AD [09:51:19]Write i2c OK [09:51:19]MH_I2C_Read... [09:51:20]*** Cut start [09:51:20]*** Partial cut [09:51:20]*** CUTSNS_PIN = 1 [09:51:20]*** CUTSNS_PIN = 0 [09:51:20]*** Brake cut motor [09:51:21]Read from MH i2c: 01 [09:51:21]MH_I2C_Read... [09:51:21]*** Stop cut motor [09:51:21]*** Cut end [09:51:21]Read from MH i2c: 01 07 00 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [09:51:21]process_action close_receipt done [09:51:21]requested_data is exist [09:51:21]produce_requested_data [09:51:21]requested_item fm.sn is exist - process it [09:51:21]wFMCommunicate request_size=4 [09:51:21]MH_SAM_APDU [09:51:21]CAPDU: 80 11 00 00 [09:51:21]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [09:51:21]Write i2c OK [09:51:21]MH_I2C_Read... [09:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:21]Read from MH i2c: E2 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 17 00 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [09:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:51:21]wFMCommunicate OK [09:51:21]requested_item fd.num is exist - process it [09:51:21]SAM_PROTO_GetFieldsCounters [09:51:21]wFMCommunicate request_size=4 [09:51:21]MH_SAM_APDU [09:51:21]CAPDU: 80 13 00 00 [09:51:21]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [09:51:21]Write i2c OK [09:51:21]MH_I2C_Read... [09:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:21]Read from MH i2c: E2 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 62 00 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [09: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 4F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:21]wFMCommunicate OK [09:51:21]SAM_PROTO_GetFieldsCounters done [09:51:21]requested_item shift.num is exist - process it [09:51:21]requested_item shift.opened is exist - process it [09:51:21]req_shift_opened [09:51:21]FM_GetShiftState [09:51:21]SAM_PROTO_GetShiftState [09:51:21]wFMCommunicate request_size=4 [09:51:21]MH_SAM_APDU [09:51:21]CAPDU: 80 13 01 00 [09:51:21]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [09:51:21]Write i2c OK [09:51:21]MH_I2C_Read... [09:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:21]Read from MH i2c: E2 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 0E 00 [09:51:21]MH_I2C_Read... [09:51:21]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [09:51:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:51:21]wFMCommunicate OK [09:51:21]SAM_PROTO_GetShiftState done [09:51:21]FM_GetShiftState done [09:51:21]req_shift_opened done [09:51:21]requested_item shift.open_date is exist - process it [09:51:21]req_shift_open_date [09:51:21]req_shift_open_date done [09:51:21]produce_requested_data done [09:51:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72527,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:51:21]process_action_free close_receipt [09:51:21]json_value_free [09:51:21]json_value_free done [09:51:21]process_json_proto returns [09:51:21]Send response to host [09:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72527,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:51:21]free response buf [09:51:21]execute_script done [09:51:21]execute_script returns [09:51:21]free content buf [09:51:21]Sock 7.Close socket [09:51:21]Sock 7.Thread stoped [09:51:25]recv_with_timeout no data received [09:51:36]Connected sock=11 [09:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1D 48 07 01 5D 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 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 37 00 00 00 F4 03 04 00 95 5E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1B 01 00 35 04 06 00 76 80 A4 A2 87 39 ED 07 23 A3 0C 34 B5 C9 [09:51:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C0 A3 47 00 21 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 4F 1B 01 00 F4 03 04 00 66 09 1F 67 B6 04 01 00 00 F9 9D 31 B2 07 48 B6 8D [09:51:40]CommunicateWithHost err = 0 [09:51:40]CheckOFDResponse [09:51:40]1017 (14) - 77093643461234 [09:51:40]1041 (16) - 0000000000874662 [09:51:40]1040 (4) - 72527 [09:51:40]1012 (4) - 28.10.2024 03:47 [09:51:40]1206 (1) - 0 [09:51:40]OFD Sender: Remove packet 72527 [09:51:40]ProducePacketName [09:51:40]name=ofd_packets/00072527 [09:51:40]NVStorageDeleteData [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:56]OFD Sender: No OFD packet to send [09:52:01]OFD Sender: No OFD packet to send [09:52:03]recv_with_timeout no data received [09:52:06]OFD Sender: No OFD packet to send [09:52:11]OFD Sender: No OFD packet to send [09:52:16]OFD Sender: No OFD packet to send [09:52:21]OFD Sender: No OFD packet to send [09:52:23]recv_with_timeout no data received [09:52:26]OFD Sender: No OFD packet to send [09:52:31]OFD Sender: No OFD packet to send [09:52:36]OFD Sender: No OFD packet to send [09:52:41]OFD Sender: No OFD packet to send [09:52:46]OFD Sender: No OFD packet to send [09:52:51]OFD Sender: No OFD packet to send [09:52:56]OFD Sender: No OFD packet to send [09:53:01]OFD Sender: No OFD packet to send [09:53:06]OFD Sender: No OFD packet to send [09:53:11]OFD Sender: No OFD packet to send [09:53:16]OFD Sender: No OFD packet to send [09:53:21]OFD Sender: No OFD packet to send [09:53:26]OFD Sender: No OFD packet to send [09:53:31]OFD Sender: No OFD packet to send [09:53:36]OFD Sender: No OFD packet to send [09:53:38]recv_with_timeout no data received [09:53:41]OFD Sender: No OFD packet to send [09:53:46]OFD Sender: No OFD packet to send [09:53:51]OFD Sender: No OFD packet to send [09:53:55]recv_with_timeout no data received [09:53:56]OFD Sender: No OFD packet to send [09:54:01]OFD Sender: No OFD packet to send [09:54:06]OFD Sender: No OFD packet to send [09:54:11]OFD Sender: No OFD packet to send [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:34]recv_with_timeout no data received [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:05]recv_with_timeout no data received [09:55:06]OFD Sender: No OFD packet to send [09:55:11]OFD Sender: No OFD packet to send [09:55:16]OFD Sender: No OFD packet to send [09:55:21]OFD Sender: No OFD packet to send [09:55:26]OFD Sender: No OFD packet to send [09:55:31]OFD Sender: No OFD packet to send [09:55:36]OFD Sender: No OFD packet to send [09:55:41]OFD Sender: No OFD packet to send [09:55:46]OFD Sender: No OFD packet to send [09:55:51]OFD Sender: No OFD packet to send [09:55:56]OFD Sender: No OFD packet to send [09:56:01]OFD Sender: No OFD packet to send [09:56:06]OFD Sender: No OFD packet to send [09:56:11]OFD Sender: No OFD packet to send [09:56:16]OFD Sender: No OFD packet to send [09:56:21]OFD Sender: No OFD packet to send [09:56:26]recv_with_timeout no data received [09:56:26]OFD Sender: No OFD packet to send [09:56:31]OFD Sender: No OFD packet to send [09:56:36]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:23]recv_with_timeout no data received [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:04]accept exits with 10 [09:58:04]New connection [09:58:04]New thread 3067571556 created [09:58:04]Thread 3067428196 joined [09:58:04]Waiting for new connection... [09:58:04] Sock 10.Parse request [09:58:04]Sock 10.Check first char [09:58:04]Sock 10.First char is OK [09:58:04]request: POST /json_proto HTTP/1.0 [09:58:04]Method: POST [09:58:04]URL: /json_proto [09:58:04]Method is POST - this is cgi request [09:58:04]url: /json_proto [09:58:04]query_string will be loaded in cgi processing [09:58:04]execute_cgi json_proto POST (null) [09:58:04]execute_cgi path=json_proto method=POST [09:58:04]POST find Content-Length [09:58:04]Host: 172.17.43.195:8080 [09:58:04]Content-Length: 806 [09:58:04]Content-Type: application/json [09:58:04] [09:58:04]POST finish read [09:58:04]Found Content-Length = 806 [09:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:04]execute_script... [09:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:58:04]POST & json_proto [09:58:04]process_json_proto [09:58:04]json parsed OK: [09:58:04]protocol is kg_v1.0 [09:58:04]action value=close_receipt [09:58:04]process_action close_receipt [09:58:04]cmd_close_receipt [09:58:04]MH_GetDate [09:58:04]Write to MH i2c: F0 00 00 B1 00 A0 [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: F0 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: F0 09 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: F0 09 00 B1 00 00 2D 60 1F 67 74 2C AD 66 6F [09:58:04]GetLastDocTimeStamp 1730109077 [09:58:04]current date 1730109485 [09:58:04]FM_GetShiftState [09:58:04]SAM_PROTO_GetShiftState [09:58:04]wFMCommunicate request_size=4 [09:58:04]MH_SAM_APDU [09:58:04]CAPDU: 80 13 01 00 [09:58:04]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [09:58:04]Write i2c OK [09:58:04]MH_I2C_Read... [09:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:04]Read from MH i2c: E2 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0E 00 [09:58:04]MH_I2C_Read... [09:58:04]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [09:58:04]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:58:04]wFMCommunicate OK [09:58:04]SAM_PROTO_GetShiftState done [09:58:04]FM_GetShiftState done [09:58:04]opened in 1730074113 [09:58:04]opened+sec_in_day 1730160513 [09:58:04]quantity*price = 150037 [09:58:04]sum+1 = 150038 [09:58:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.37 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.37 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 56 28.10.2024 09:58 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72528 ФПД: 5305931835395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72528&fm=5305931835395&tin=02508201610067®Number=0000000000091644&sum=150037 [09:58:06]StoreToDocumentArchive [09:58:06]shift 554 fd 72528 [09:58:06]save to /storage/0554/doc_00072528 [09:58:06]save last doc name /storage/0554/doc_00072528 to /storage/kkm_last_doc_name [09:58:06]save OK [09:58:06]Clear old archive folders... [09:58:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [09:58:06]tlvbuf is B6F71E80 [09:58:06]SAM_PROTO_ClearQueue [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 09 00 00 [09:58:06]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [09:58:06]RAPDU: 90 00 [09:58:06]wFMCommunicate OK [09:58:06]SAM_PROTO_ClearQueue done [09:58:06]KKMCreateOFDPacket [09:58:06]OFDProtocolAddRootSTLVToBuf [09:58:06]FM_MakeSignedData [09:58:06]FM_MakeSignedData [09:58:06]SAM_PROTO_SignData [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 0D 01 02 [09:58:06]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [09:58:06]RAPDU: 90 00 [09:58:06]wFMCommunicate OK [09:58:06]wFMCommunicate request_size=255 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2D 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1B 01 00 35 04 06 00 04 D3 [09:58:06]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2D 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1B 01 00 35 04 06 00 04 D3 00 00 F6 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [09:58:06]RAPDU: 90 00 [09:58:06]wFMCommunicate OK [09:58:06]wFMCommunicate request_size=9 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 0D 02 02 04 62 2E A8 03 [09:58:06]Write to MH i2c: E2 0C 00 C2 00 80 0D 02 02 04 00 62 2E A8 03 00 00 7F [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [09:58:06]RAPDU: 90 00 [09:58:06]wFMCommunicate OK [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 0D 03 02 [09:58:06]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 0B 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 0B 00 C3 00 00 03 DD 19 E6 7D 5C E9 38 90 00 18 [09:58:06]RAPDU: 03 DD 19 E6 7D 5C E9 38 90 00 [09:58:06]wFMCommunicate OK [09:58:06]SAM_PROTO_SignData done [09:58:06]FM_MakeSignedData done [09:58:06]CreateOFDProtocolMessage [09:58:06]wFMCommunicate request_size=4 [09:58:06]MH_SAM_APDU [09:58:06]CAPDU: 80 11 00 00 [09:58:06]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:06]Read from MH i2c: E2 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 17 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [09:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:58:06]wFMCommunicate OK [09:58:06]CreateOFDProtocolMessage done [09:58:06]OFDSenderStorePacket 72528 [09:58:06]StoreOFDPacket docnum=72528 [09:58:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 87 C1 06 01 04 F8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2D 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1B 01 00 35 04 06 00 04 D3 62 2E A8 03 03 DD 19 E6 7D 5C E9 38 [09:58:06]CheckFolder [09:58:06]dirname=/storage/ofd_packets [09:58:06]CheckFolder done [09:58:06]ProducePacketName [09:58:06]name=ofd_packets/00072528 [09:58:06]NVStorageSaveData ofd_packets/00072528 [09:58:06]File name is /storage/ofd_packets/00072528 [09:58:06]Write 300 bytes [09:58:06]NVStorageSaveData done [09:58:06]OFDSenderStorePacket done [09:58:06]KKMCreateOFDPacket done [09:58:06]NVStorageSaveData kkm_last_timestamp [09:58:06]File name is /storage/kkm_last_timestamp [09:58:06]Write 4 bytes [09:58:06]NVStorageSaveData done [09:58:06]ExternCall_PrintAddStr [09:58:06]wPrintStart [09:58:06]Write to MH i2c: 01 00 00 C5 00 C5 [09:58:06]Write i2c OK [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: 01 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: 01 07 00 [09:58:06]MH_I2C_Read... [09:58:06]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [09:58:06]RasterBufferAndPrint [09:58:06]line Счет N : (1)951975 [09:58:06]line ИНН: 02508201610067 [09:58:06]line Контрольно-Кассовый Чек [09:58:06]line ПРОДАЖА [09:58:06]line ТРК (МРК, ГНК) : 71 [09:58:06]line Товар: 2711190000 [09:58:06]line ГАЗ-К-3 [09:58:06]line 38.570 * 38.90 [09:58:06]line = 1500.37 [09:58:06]line НДС 12% НСП 1% [09:58:06]line > о реализуемом товаре [09:58:06]line ИТОГО: 1500.37 [09:58:06]line НСП 1% : 13.28 [09:58:06]line НДС 12% : 159.33 [09:58:06]line Наличными: 0.00 [09:58:06]line Безнал.: 1500.37 [09:58:06]line Место: АЗС № 113 "Партнер Нефть" [09:58:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [09:58:06]line СНО: Общий режим [09:58:06]line Чек 56 28.10.2024 09:58 [09:58:06]line Смена: 554 ФФД: 1.0 [09:58:06]line ЗНМ: 0300000087 [09:58:06]line РНМ: 0000000000091644 [09:58:06]line Версия ККМ: 001 [09:58:06]line Платежная система: O! деньги [09:58:06]line ФМ: 0000000000874662 [09:58:06]line ФД: 72528 [09:58:06]line ФПД: 5305931835395 [09:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T095805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72528&fm=5305931835395&tin=02508201610067®Number=0000000000091644&sum=150037 [09:58:06]OFD Sender: Processing packet 72528 [packets to send 273, broken 272] [09:58:06]ProducePacketName [09:58:06]name=ofd_packets/00072528 [09:58:06]OFD Sender: To server: pG, [09:58:06]CommunicateWithHost lk.salyk.kg:30040 [09:58:06]ConnectInit lk.salyk.kg [09:58:06]written 0, free lines is 4095 [09:58:07]Write to MH i2c: 01 00 00 EF 00 EF [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: 01 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: 01 07 00 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 E5 0C E7 [09:58:07]RasterBufferAndPrint [09:58:07]line [09:58:07]line [09:58:07]line [09:58:07]line [09:58:07]line [09:58:07]written 0, free lines is 3307 [09:58:07]MH_Cut [09:58:07]Write to MH i2c: D1 01 00 F6 00 01 C8 [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: D1 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: D1 01 00 [09:58:07]MH_I2C_Read... [09:58:07]Read from MH i2c: D1 01 00 F6 00 00 C7 [09:58:07]Write to MH i2c: 01 00 00 F7 00 F7 [09:58:07]Write i2c OK [09:58:07]MH_I2C_Read... [09:58:08]*** Cut start [09:58:08]*** Partial cut [09:58:08]*** CUTSNS_PIN = 1 [09:58:08]*** CUTSNS_PIN = 0 [09:58:08]*** Brake cut motor [09:58:08]Read from MH i2c: 01 [09:58:08]MH_I2C_Read... [09:58:08]*** Stop cut motor [09:58:08]*** Cut end [09:58:08]Read from MH i2c: 01 07 00 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [09:58:08]process_action close_receipt done [09:58:08]requested_data is exist [09:58:08]produce_requested_data [09:58:08]requested_item fm.sn is exist - process it [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 11 00 00 [09:58:08]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 17 00 [09:58:08]MH_I2C_Read... [09:58:08]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 34 36 36 32 90 00 C6 [09:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [09:58:08]wFMCommunicate OK [09:58:08]requested_item fd.num is exist - process it [09:58:08]SAM_PROTO_GetFieldsCounters [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 13 00 00 [09:58:08]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:58:08]Read from MH i2c: E2 [09:58:08]MH_I2C_Read... [09:58:08]Read from MH i2c: E2 62 00 [09:58:08]MH_I2C_Read... [09:58:08]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 50 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:58:08]wFMCommunicate OK [09:58:08]SAM_PROTO_GetFieldsCounters done [09:58:08]requested_item shift.num is exist - process it [09:58:08]requested_item shift.opened is exist - process it [09:58:08]req_shift_opened [09:58:08]FM_GetShiftState [09:58:08]SAM_PROTO_GetShiftState [09:58:08]wFMCommunicate request_size=4 [09:58:08]MH_SAM_APDU [09:58:08]CAPDU: 80 13 01 00 [09:58:08]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [09:58:08]Write i2c OK [09:58:08]MH_I2C_Read... [09:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:58:09]Read from MH i2c: E2 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 [09:58:09]MH_I2C_Read... [09:58:09]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [09:58:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [09:58:09]wFMCommunicate OK [09:58:09]SAM_PROTO_GetShiftState done [09:58:09]FM_GetShiftState done [09:58:09]req_shift_opened done [09:58:09]requested_item shift.open_date is exist - process it [09:58:09]req_shift_open_date [09:58:09]req_shift_open_date done [09:58:09]produce_requested_data done [09:58:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72528,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [09:58:09]process_action_free close_receipt [09:58:09]json_value_free [09:58:09]json_value_free done [09:58:09]process_json_proto returns [09:58:09]Send response to host [09:58:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72528,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [09:58:09]free response buf [09:58:09]execute_script done [09:58:09]execute_script returns [09:58:09]free content buf [09:58:09]Sock 10.Close socket [09:58:09]Sock 10.Thread stoped [09:58:12]recv_with_timeout no data received [09:58:12]Connected sock=11 [09:58:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 87 C1 06 01 04 F8 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 15 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 15 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 2D 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1B 01 00 35 04 06 00 04 D3 62 2E A8 03 03 DD 19 E6 7D 5C E9 38 [09:58:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 12 22 47 00 7C DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 50 1B 01 00 F4 03 04 00 F1 0A 1F 67 B6 04 01 00 00 81 A9 63 A4 81 BD F0 AC [09:58:12]CommunicateWithHost err = 0 [09:58:12]CheckOFDResponse [09:58:12]1017 (14) - 77093643461234 [09:58:12]1041 (16) - 0000000000874662 [09:58:12]1040 (4) - 72528 [09:58:12]1012 (4) - 28.10.2024 03:54 [09:58:12]1206 (1) - 0 [09:58:12]OFD Sender: Remove packet 72528 [09:58:12]ProducePacketName [09:58:12]name=ofd_packets/00072528 [09:58:12]NVStorageDeleteData [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:23]recv_with_timeout no data received [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:53]recv_with_timeout no data received [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:49]recv_with_timeout no data received [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:14]recv_with_timeout no data received [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:04]recv_with_timeout no data received [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:14]recv_with_timeout no data received [10:01:18]OFD Sender: No OFD packet to send [10:01:23]accept exits with 7 [10:01:23]New connection [10:01:23]New thread 3067428196 created [10:01:23]Thread 3067571556 joined [10:01:23]Waiting for new connection... [10:01:23] Sock 7.Parse request [10:01:23]Sock 7.Check first char [10:01:23]Sock 7.First char is OK [10:01:23]request: POST /json_proto HTTP/1.0 [10:01:23]Method: POST [10:01:23]URL: /json_proto [10:01:23]Method is POST - this is cgi request [10:01:23]url: /json_proto [10:01:23]query_string will be loaded in cgi processing [10:01:23]execute_cgi json_proto POST (null) [10:01:23]execute_cgi path=json_proto method=POST [10:01:23]POST find Content-Length [10:01:23]Host: 172.17.43.195:8080 [10:01:23]Content-Length: 792 [10:01:23]Content-Type: application/json [10:01:23] [10:01:23]POST finish read [10:01:23]Found Content-Length = 792 [10:01:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:23]execute_script... [10:01: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)951976", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:23]POST & json_proto [10:01:23]process_json_proto [10:01:23]json parsed OK: [10:01:23]protocol is kg_v1.0 [10:01:23]action value=close_receipt [10:01:23]process_action close_receipt [10:01:23]cmd_close_receipt [10:01:23]MH_GetDate [10:01:23]Write to MH i2c: F0 00 00 FB 00 EA [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: F0 09 00 FB 00 00 F3 60 1F 67 74 2C AD 66 7F [10:01:23]GetLastDocTimeStamp 1730109485 [10:01:23]current date 1730109683 [10:01:23]FM_GetShiftState [10:01:23]SAM_PROTO_GetShiftState [10:01:23]wFMCommunicate request_size=4 [10:01:23]MH_SAM_APDU [10:01:23]CAPDU: 80 13 01 00 [10:01:23]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [10:01:23]Write i2c OK [10:01:23]MH_I2C_Read... [10:01:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:23]Read from MH i2c: E2 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 [10:01:23]MH_I2C_Read... [10:01:23]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [10:01:23]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:01:23]wFMCommunicate OK [10:01:23]SAM_PROTO_GetShiftState done [10:01:23]FM_GetShiftState done [10:01:23]opened in 1730074113 [10:01:23]opened+sec_in_day 1730160513 [10:01:23]quantity*price = 0 [10:01:23]sum+1 = 1 [10:01:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 57 28.10.2024 10:01 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72529 ФПД: 200703191202947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100123&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72529&fm=200703191202947&tin=02508201610067®Number=0000000000091644&sum=0 [10:01:24]StoreToDocumentArchive [10:01:24]shift 554 fd 72529 [10:01:24]save to /storage/0554/doc_00072529 [10:01:24]save last doc name /storage/0554/doc_00072529 to /storage/kkm_last_doc_name [10:01:24]save OK [10:01:24]Clear old archive folders... [10:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:24]tlvbuf is B6FEC630 [10:01:24]SAM_PROTO_ClearQueue [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 09 00 00 [10:01:24]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]SAM_PROTO_ClearQueue done [10:01:24]KKMCreateOFDPacket [10:01:24]OFDProtocolAddRootSTLVToBuf [10:01:24]FM_MakeSignedData [10:01:24]FM_MakeSignedData [10:01:24]SAM_PROTO_SignData [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 0D 01 02 [10:01:24]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]wFMCommunicate request_size=255 [10:01:24]MH_SAM_APDU [10:01: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 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 39 00 00 00 F4 03 04 00 F3 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1B 01 00 35 04 06 00 B6 [10:01:24]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 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 39 00 00 00 F4 03 04 00 F3 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1B 01 00 35 04 06 00 B6 00 00 26 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]wFMCommunicate request_size=10 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 0D 02 02 05 89 DA 6A BC 83 [10:01:24]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 89 DA 6A BC 83 00 00 9D [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:24]Read from MH i2c: E2 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 [10:01:24]MH_I2C_Read... [10:01:24]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [10:01:24]RAPDU: 90 00 [10:01:24]wFMCommunicate OK [10:01:24]wFMCommunicate request_size=4 [10:01:24]MH_SAM_APDU [10:01:24]CAPDU: 80 0D 03 02 [10:01:24]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [10:01:24]Write i2c OK [10:01:24]MH_I2C_Read... [10:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 0B 00 0D 01 00 7C A9 B8 1D 72 C3 BC 70 90 00 E5 [10:01:25]RAPDU: 7C A9 B8 1D 72 C3 BC 70 90 00 [10:01:25]wFMCommunicate OK [10:01:25]SAM_PROTO_SignData done [10:01:25]FM_MakeSignedData done [10:01:25]CreateOFDProtocolMessage [10:01:25]wFMCommunicate request_size=4 [10:01:25]MH_SAM_APDU [10:01:25]CAPDU: 80 11 00 00 [10:01:25]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:25]Read from MH i2c: E2 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: E2 17 00 [10:01:25]MH_I2C_Read... [10:01:25]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 34 36 36 32 90 00 DD [10:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:01:25]wFMCommunicate OK [10:01:25]CreateOFDProtocolMessage done [10:01:25]OFDSenderStorePacket 72529 [10:01:25]StoreOFDPacket docnum=72529 [10:01:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5D 3B 07 01 08 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 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 39 00 00 00 F4 03 04 00 F3 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1B 01 00 35 04 06 00 B6 89 DA 6A BC 83 7C A9 B8 1D 72 C3 BC 70 [10:01:25]CheckFolder [10:01:25]dirname=/storage/ofd_packets [10:01:25]CheckFolder done [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00072529 [10:01:25]NVStorageSaveData ofd_packets/00072529 [10:01:25]File name is /storage/ofd_packets/00072529 [10:01:25]Write 301 bytes [10:01:25]NVStorageSaveData done [10:01:25]OFDSenderStorePacket done [10:01:25]KKMCreateOFDPacket done [10:01:25]NVStorageSaveData kkm_last_timestamp [10:01:25]File name is /storage/kkm_last_timestamp [10:01:25]Write 4 bytes [10:01:25]NVStorageSaveData done [10:01:25]ExternCall_PrintAddStr [10:01:25]wPrintStart [10:01:25]Write to MH i2c: 01 00 00 0F 01 10 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [10:01:25]RasterBufferAndPrint [10:01:25]line Счет N : (1)951976 [10:01:25]line ИНН: 02508201610067 [10:01:25]line Контрольно-Кассовый Чек [10:01:25]line ПРОДАЖА [10:01:25]line ТРК (МРК, ГНК) : 63 [10:01:25]line Товар: 2710124130 [10:01:25]line Аи-92-К-5 [10:01:25]line 10.000 * 0.00 [10:01:25]line = 0.00 [10:01:25]line НДС 12% НСП 1% [10:01:25]line > о реализуемом товаре [10:01:25]line ИТОГО: 0.00 [10:01:25]line НСП 1% : 0.00 [10:01:25]line НДС 12% : 0.00 [10:01:25]line Наличными: 0.00 [10:01:25]line Безнал.: 0.00 [10:01:25]line Место: АЗС № 113 "Партнер Нефть" [10:01:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:01:25]line СНО: Общий режим [10:01:25]line Чек 57 28.10.2024 10:01 [10:01:25]line Смена: 554 ФФД: 1.0 [10:01:25]line ЗНМ: 0300000087 [10:01:25]line РНМ: 0000000000091644 [10:01:25]line Версия ККМ: 001 [10:01:25]line Талоны: Топливная Карта [10:01:25]line 03047 [10:01:25]line ФМ: 0000000000874662 [10:01:25]line ФД: 72529 [10:01:25]line ФПД: 200703191202947 [10:01:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100123&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72529&fm=200703191202947&tin=02508201610067®Number=0000000000091644&sum=0 [10:01:25]written 0, free lines is 4095 [10:01:25]OFD Sender: Processing packet 72529 [packets to send 273, broken 272] [10:01:25]ProducePacketName [10:01:25]name=ofd_packets/00072529 [10:01:25]OFD Sender: To server: pG, [10:01:25]CommunicateWithHost lk.salyk.kg:30040 [10:01:25]ConnectInit lk.salyk.kg [10:01:25]Write to MH i2c: 01 00 00 39 01 3A [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 E1 0C 2E [10:01:25]RasterBufferAndPrint [10:01:25]line [10:01:25]line [10:01:25]line [10:01:25]line [10:01:25]line [10:01:25]written 0, free lines is 3303 [10:01:25]MH_Cut [10:01:25]Write to MH i2c: D1 01 00 40 01 01 13 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: D1 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: D1 01 00 [10:01:25]MH_I2C_Read... [10:01:25]Read from MH i2c: D1 01 00 40 01 00 12 [10:01:25]Write to MH i2c: 01 00 00 41 01 42 [10:01:25]Write i2c OK [10:01:25]MH_I2C_Read... [10:01:26]*** Cut start [10:01:26]*** Partial cut [10:01:26]*** CUTSNS_PIN = 1 [10:01:26]*** CUTSNS_PIN = 0 [10:01:26]*** Brake cut motor [10:01:26]Read from MH i2c: 01 [10:01:26]MH_I2C_Read... [10:01:26]Connected sock=10 [10:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 5D 3B 07 01 08 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 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 39 00 00 00 F4 03 04 00 F3 60 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 51 1B 01 00 35 04 06 00 B6 89 DA 6A BC 83 7C A9 B8 1D 72 C3 BC 70 [10:01:26]*** Stop cut motor [10:01:26]*** Cut end [10:01:26]Read from MH i2c: 01 07 00 [10:01:26]MH_I2C_Read... [10:01:26]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [10:01:26]process_action close_receipt done [10:01:26]requested_data is exist [10:01:26]produce_requested_data [10:01:26]requested_item fm.sn is exist - process it [10:01:26]wFMCommunicate request_size=4 [10:01:26]MH_SAM_APDU [10:01:26]CAPDU: 80 11 00 00 [10:01:26]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [10:01:26]Write i2c OK [10:01:26]MH_I2C_Read... [10:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 17 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [10:01:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:01:27]wFMCommunicate OK [10:01:27]requested_item fd.num is exist - process it [10:01:27]SAM_PROTO_GetFieldsCounters [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 13 00 00 [10:01:27]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 62 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [10:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 51 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_GetFieldsCounters done [10:01:27]requested_item shift.num is exist - process it [10:01:27]requested_item shift.opened is exist - process it [10:01:27]req_shift_opened [10:01:27]FM_GetShiftState [10:01:27]SAM_PROTO_GetShiftState [10:01:27]wFMCommunicate request_size=4 [10:01:27]MH_SAM_APDU [10:01:27]CAPDU: 80 13 01 00 [10:01:27]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [10:01:27]Write i2c OK [10:01:27]MH_I2C_Read... [10:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:27]Read from MH i2c: E2 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 [10:01:27]MH_I2C_Read... [10:01:27]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [10:01:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:01:27]wFMCommunicate OK [10:01:27]SAM_PROTO_GetShiftState done [10:01:27]FM_GetShiftState done [10:01:27]req_shift_opened done [10:01:27]requested_item shift.open_date is exist - process it [10:01:27]req_shift_open_date [10:01:27]req_shift_open_date done [10:01:27]produce_requested_data done [10:01:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72529,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:01:27]process_action_free close_receipt [10:01:27]json_value_free [10:01:27]json_value_free done [10:01:27]process_json_proto returns [10:01:27]Send response to host [10:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72529,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:01:27]free response buf [10:01:27]execute_script done [10:01:27]execute_script returns [10:01:27]free content buf [10:01:27]Sock 7.Close socket [10:01:27]Sock 7.Thread stoped [10:01:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C2 E9 47 00 C3 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 34 36 36 32 10 04 04 00 51 1B 01 00 F4 03 04 00 B3 0B 1F 67 B6 04 01 00 00 52 22 BC 5A A8 3C 92 3E [10:01:28]CommunicateWithHost err = 0 [10:01:28]CheckOFDResponse [10:01:28]1017 (14) - 77093643461234 [10:01:28]1041 (16) - 0000000000874662 [10:01:28]1040 (4) - 72529 [10:01:28]1012 (4) - 28.10.2024 03:57 [10:01:28]1206 (1) - 0 [10:01:28]OFD Sender: Remove packet 72529 [10:01:28]ProducePacketName [10:01:28]name=ofd_packets/00072529 [10:01:28]NVStorageDeleteData [10:01:29]OFD Sender: No OFD packet to send [10:01:33]recv_with_timeout no data received [10:01:34]OFD Sender: No OFD packet to send [10:01:39]OFD Sender: No OFD packet to send [10:01:44]OFD Sender: No OFD packet to send [10:01:45]recv_with_timeout no data received [10:01:49]OFD Sender: No OFD packet to send [10:01:54]OFD Sender: No OFD packet to send [10:01:59]OFD Sender: No OFD packet to send [10:02:04]OFD Sender: No OFD packet to send [10:02:09]OFD Sender: No OFD packet to send [10:02:14]OFD Sender: No OFD packet to send [10:02:14]recv_with_timeout no data received [10:02:19]OFD Sender: No OFD packet to send [10:02:24]OFD Sender: No OFD packet to send [10:02:29]OFD Sender: No OFD packet to send [10:02:34]OFD Sender: No OFD packet to send [10:02:39]OFD Sender: No OFD packet to send [10:02:44]OFD Sender: No OFD packet to send [10:02:49]OFD Sender: No OFD packet to send [10:02:50]recv_with_timeout no data received [10:02:54]OFD Sender: No OFD packet to send [10:02:59]OFD Sender: No OFD packet to send [10:03:04]OFD Sender: No OFD packet to send [10:03:09]OFD Sender: No OFD packet to send [10:03:14]OFD Sender: No OFD packet to send [10:03:19]OFD Sender: No OFD packet to send [10:03:24]OFD Sender: No OFD packet to send [10:03:29]OFD Sender: No OFD packet to send [10:03:34]OFD Sender: No OFD packet to send [10:03:39]OFD Sender: No OFD packet to send [10:03:44]OFD Sender: No OFD packet to send [10:03:47]recv_with_timeout no data received [10:03:49]OFD Sender: No OFD packet to send [10:03:54]OFD Sender: No OFD packet to send [10:03:59]OFD Sender: No OFD packet to send [10:04:04]OFD Sender: No OFD packet to send [10:04:09]OFD Sender: No OFD packet to send [10:04:14]OFD Sender: No OFD packet to send [10:04:19]OFD Sender: No OFD packet to send [10:04:24]accept exits with 9 [10:04:24]New connection [10:04:24]New thread 3067571556 created [10:04:24]Thread 3067428196 joined [10:04:24]Waiting for new connection... [10:04:24] Sock 9.Parse request [10:04:24]Sock 9.Check first char [10:04:24]Sock 9.First char is OK [10:04:24]request: POST /json_proto HTTP/1.0 [10:04:24]Method: POST [10:04:24]URL: /json_proto [10:04:24]Method is POST - this is cgi request [10:04:24]url: /json_proto [10:04:24]query_string will be loaded in cgi processing [10:04:24]execute_cgi json_proto POST (null) [10:04:24]execute_cgi path=json_proto method=POST [10:04:24]POST find Content-Length [10:04:24]Host: 172.17.43.195:8080 [10:04:24]Content-Length: 799 [10:04:24]Content-Type: application/json [10:04:24] [10:04:24]POST finish read [10:04:24]Found Content-Length = 799 [10:04:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865378", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:24]execute_script... [10:04:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951977", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4865378", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:24]POST & json_proto [10:04:24]process_json_proto [10:04:24]json parsed OK: [10:04:24]protocol is kg_v1.0 [10:04:24]action value=close_receipt [10:04:24]process_action close_receipt [10:04:24]cmd_close_receipt [10:04:24]MH_GetDate [10:04:24]Write to MH i2c: F0 00 00 45 01 35 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: F0 09 00 45 01 00 A8 61 1F 67 74 2C AD 66 80 [10:04:24]GetLastDocTimeStamp 1730109683 [10:04:24]current date 1730109864 [10:04:24]FM_GetShiftState [10:04:24]SAM_PROTO_GetShiftState [10:04:24]wFMCommunicate request_size=4 [10:04:24]MH_SAM_APDU [10:04:24]CAPDU: 80 13 01 00 [10:04:24]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [10:04:24]Write i2c OK [10:04:24]MH_I2C_Read... [10:04:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:24]Read from MH i2c: E2 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 [10:04:24]MH_I2C_Read... [10:04:24]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [10:04:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:04:24]wFMCommunicate OK [10:04:24]SAM_PROTO_GetShiftState done [10:04:24]FM_GetShiftState done [10:04:24]opened in 1730074113 [10:04:24]opened+sec_in_day 1730160513 [10:04:24]quantity*price = 0 [10:04:24]sum+1 = 1 [10:04:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 58 28.10.2024 10:04 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4865378 ФМ: 0000000000874662 ФД: 72530 ФПД: 64629711523145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100424&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72530&fm=64629711523145&tin=02508201610067®Number=0000000000091644&sum=0 [10:04:25]StoreToDocumentArchive [10:04:25]shift 554 fd 72530 [10:04:25]save to /storage/0554/doc_00072530 [10:04:25]save last doc name /storage/0554/doc_00072530 to /storage/kkm_last_doc_name [10:04:25]save OK [10:04:25]Clear old archive folders... [10:04:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:04:25]tlvbuf is 01F43E20 [10:04:25]SAM_PROTO_ClearQueue [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 09 00 00 [10:04:25]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_ClearQueue done [10:04:25]KKMCreateOFDPacket [10:04:25]OFDProtocolAddRootSTLVToBuf [10:04:25]FM_MakeSignedData [10:04:25]FM_MakeSignedData [10:04:25]SAM_PROTO_SignData [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 0D 01 02 [10:04:25]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]wFMCommunicate request_size=255 [10:04:25]MH_SAM_APDU [10:04: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 61 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1B 01 00 35 04 06 00 3A [10:04:25]Write to MH i2c: E2 02 01 55 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 61 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1B 01 00 35 04 06 00 3A 00 00 10 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]wFMCommunicate request_size=10 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 0D 02 02 05 C7 C6 FF 4D 49 [10:04:25]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 C7 C6 FF 4D 49 00 00 FD [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:04:25]RAPDU: 90 00 [10:04:25]wFMCommunicate OK [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 0D 03 02 [10:04:25]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0B 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 0B 00 57 01 00 9E 63 CB 82 C0 00 F4 30 90 00 06 [10:04:25]RAPDU: 9E 63 CB 82 C0 00 F4 30 90 00 [10:04:25]wFMCommunicate OK [10:04:25]SAM_PROTO_SignData done [10:04:25]FM_MakeSignedData done [10:04:25]CreateOFDProtocolMessage [10:04:25]wFMCommunicate request_size=4 [10:04:25]MH_SAM_APDU [10:04:25]CAPDU: 80 11 00 00 [10:04:25]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:25]Read from MH i2c: E2 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [10:04:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:04:25]wFMCommunicate OK [10:04:25]CreateOFDProtocolMessage done [10:04:25]OFDSenderStorePacket 72530 [10:04:25]StoreOFDPacket docnum=72530 [10:08:02]ConnectInit Can't connect to host [10:08:06]OFD Sender: Processing packet 72531 [packets to send 273, broken 272] [10:08:06]ProducePacketName [10:08:06]name=ofd_packets/00072531 [10:08:06]OFD Sender: To server: pG, [10:08:06]CommunicateWithHost lk.salyk.kg:30040 [10:08:06]ConnectInit lk.salyk.kg [10:04:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 01 F1 07 01 C3 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 A8 61 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 52 1B 01 00 35 04 06 00 3A C7 C6 FF 4D 49 9E 63 CB 82 C0 00 F4 30 [10:04:25]CheckFolder [10:04:25]dirname=/storage/ofd_packets [10:04:25]CheckFolder done [10:04:25]ProducePacketName [10:04:25]name=ofd_packets/00072530 [10:04:25]NVStorageSaveData ofd_packets/00072530 [10:04:25]File name is /storage/ofd_packets/00072530 [10:04:25]Write 301 bytes [10:04:25]NVStorageSaveData done [10:04:25]OFDSenderStorePacket done [10:04:25]KKMCreateOFDPacket done [10:04:25]NVStorageSaveData kkm_last_timestamp [10:04:25]File name is /storage/kkm_last_timestamp [10:04:25]Write 4 bytes [10:04:25]NVStorageSaveData done [10:04:25]ExternCall_PrintAddStr [10:04:25]wPrintStart [10:04:25]Write to MH i2c: 01 00 00 59 01 5A [10:04:25]Write i2c OK [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 [10:04:25]MH_I2C_Read... [10:04:25]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [10:04:25]RasterBufferAndPrint [10:04:25]line Счет N : (1)951977 [10:04:25]line ИНН: 02508201610067 [10:04:25]line Контрольно-Кассовый Чек [10:04:25]line ПРОДАЖА [10:04:25]line ТРК (МРК, ГНК) : 63 [10:04:25]line Товар: 2710124130 [10:04:25]line Аи-92-К-5 [10:04:25]line 5.000 * 0.00 [10:04:25]line = 0.00 [10:04:25]line НДС 12% НСП 1% [10:04:25]line > о реализуемом товаре [10:04:25]line ИТОГО: 0.00 [10:04:25]line НСП 1% : 0.00 [10:04:25]line НДС 12% : 0.00 [10:04:25]line Наличными: 0.00 [10:04:25]line Безнал.: 0.00 [10:04:25]line Место: АЗС № 113 "Партнер Нефть" [10:04:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:04:25]line СНО: Общий режим [10:04:25]line Чек 58 28.10.2024 10:04 [10:04:25]line Смена: 554 ФФД: 1.0 [10:04:25]line ЗНМ: 0300000087 [10:04:25]line РНМ: 0000000000091644 [10:04:25]line Версия ККМ: 001 [10:04:25]line Талоны: Топливные Талоны [10:04:25]line 4865378 [10:04:25]line ФМ: 0000000000874662 [10:04:25]line ФД: 72530 [10:04:25]line ФПД: 64629711523145 [10:04:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T100424&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72530&fm=64629711523145&tin=02508201610067®Number=0000000000091644&sum=0 [10:04:25]written 0, free lines is 4095 [10:04:25]OFD Sender: Processing packet 72530 [packets to send 273, broken 272] [10:04:25]ProducePacketName [10:04:25]name=ofd_packets/00072530 [10:04:25]OFD Sender: To server: pG, [10:04:25]CommunicateWithHost lk.salyk.kg:30040 [10:04:25]ConnectInit lk.salyk.kg [10:04:26]Write to MH i2c: 01 00 00 83 01 84 [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 DA 0C 71 [10:04:26]RasterBufferAndPrint [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]line [10:04:26]written 0, free lines is 3296 [10:04:26]MH_Cut [10:04:26]Write to MH i2c: D1 01 00 8A 01 01 5D [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 01 00 [10:04:26]MH_I2C_Read... [10:04:26]Read from MH i2c: D1 01 00 8A 01 00 5C [10:04:26]Write to MH i2c: 01 00 00 8B 01 8C [10:04:26]Write i2c OK [10:04:26]MH_I2C_Read... [10:04:27]*** Cut start [10:04:27]*** Partial cut [10:04:27]*** CUTSNS_PIN = 1 [10:04:27]*** CUTSNS_PIN = 0 [10:04:27]*** Brake cut motor [10:04:27]Read from MH i2c: 01 [10:04:27]MH_I2C_Read... [10:04:27]*** Stop cut motor [10:04:27]*** Cut end [10:04:27]Read from MH i2c: 01 07 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [10:04:27]process_action close_receipt done [10:04:27]requested_data is exist [10:04:27]produce_requested_data [10:04:27]requested_item fm.sn is exist - process it [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 11 00 00 [10:04:27]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 17 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [10:04:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:04:27]wFMCommunicate OK [10:04:27]requested_item fd.num is exist - process it [10:04:27]SAM_PROTO_GetFieldsCounters [10:04:27]wFMCommunicate request_size=4 [10:04:27]MH_SAM_APDU [10:04:27]CAPDU: 80 13 00 00 [10:04:27]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [10:04:27]Write i2c OK [10:04:27]MH_I2C_Read... [10:04:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:27]Read from MH i2c: E2 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 62 00 [10:04:27]MH_I2C_Read... [10:04:27]Read from MH i2c: E2 62 00 8D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [10:04: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 52 1B 01 00 0E 04 0[10:10:19]ConnectInit Can't connect to host [10:10:19]CommunicateWithHost connect error [10:10:19]CommunicateWithHost err = -1 [10:10:19]OFD Sender: Server communicate error [10:10:25]OFD Sender: Processing packet 72531 [packets to send 273, broken 272] [10:10:25]ProducePacketName [10:10:25]name=ofd_packets/00072531 [10:10:25]OFD Sender: To server: pG, [10:10:25]CommunicateWithHost lk.salyk.kg:30040 [10:10:25]ConnectInit lk.salyk.kg [10:10:25]Connected sock=9 [10:10:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 5F 02 08 01 6E B0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 21 62 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 53 1B 01 00 35 04 06 00 B6 B6 DB 4D 9A 95 68 FB A3 13 53 C7 48 F6 [10:10:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2F 7F 47 00 2C 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 34 36 36 32 10 04 04 00 53 1B 01 00 F4 03 04 00 CE 0D 1F 67 B6 04 01 00 00 43 27 3D 3D C2 35 1E A3 [10:10:26]CommunicateWithHost err = 0 [10:10:26]CheckOFDResponse [10:10:26]1017 (14) - 77093643461234 [10:10:26]1041 (16) - 0000000000874662 [10:10:26]1040 (4) - 72531 [10:10:26]1012 (4) - 28.10.2024 04:06 [10:10:26]1206 (1) - 0 [10:10:26]OFD Sender: Remove packet 72531 [10:10:26]ProducePacketName [10:10:26]name=ofd_packets/00072531 [10:10:26]NVStorageDeleteData [10:10:26]OFD Sender: No OFD packet to send [10:10:31]OFD Sender: No OFD packet to send [10:10:36]OFD Sender: No OFD packet to send [10:10:41]OFD Sender: No OFD packet to send [10:10:46]OFD Sender: No OFD packet to send [10:10:47]recv_with_timeout no data received [10:10:51]OFD Sender: No OFD packet to send [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:47]OFD Sender: No OFD packet to send [10:11:52]OFD Sender: No OFD packet to send [10:11:57]OFD Sender: No OFD packet to send [10:12:02]OFD Sender: No OFD packet to send [10:12:07]OFD Sender: No OFD packet to send [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:38]recv_with_timeout no data received [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:09]recv_with_timeout no data received [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:50]recv_with_timeout no data received [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]recv_with_timeout no data received [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:38]recv_with_timeout no data received [10:14:40]accept exits with 7 [10:14:40]New connection [10:14:40]New thread 3067571556 created [10:14:40]Thread 3067428196 joined [10:14:40]Waiting for new connection... [10:14:40] Sock 7.Parse request [10:14:40]Sock 7.Check first char [10:14:40]Sock 7.First char is OK [10:14:40]request: POST /json_proto HTTP/1.0 [10:14:40]Method: POST [10:14:40]URL: /json_proto [10:14:40]Method is POST - this is cgi request [10:14:40]url: /json_proto [10:14:40]query_string will be loaded in cgi processing [10:14:40]execute_cgi json_proto POST (null) [10:14:40]execute_cgi path=json_proto method=POST [10:14:40]POST find Content-Length [10:14:40]Host: 172.17.43.195:8080 [10:14:40]Content-Length: 792 [10:14:40]Content-Type: application/json [10:14:40] [10:14:40]POST finish read [10:14:40]Found Content-Length = 792 [10:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:40]execute_script... [10:14: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)951979", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:40]POST & json_proto [10:14:40]process_json_proto [10:14:40]json parsed OK: [10:14:40]protocol is kg_v1.0 [10:14:40]action value=close_receipt [10:14:40]process_action close_receipt [10:14:40]cmd_close_receipt [10:14:40]MH_GetDate [10:14:40]Write to MH i2c: F0 00 00 D9 01 C9 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: F0 09 00 D9 01 00 11 64 1F 67 74 2C AD 66 80 [10:14:40]GetLastDocTimeStamp 1730109985 [10:14:40]current date 1730110481 [10:14:40]FM_GetShiftState [10:14:40]SAM_PROTO_GetShiftState [10:14:40]wFMCommunicate request_size=4 [10:14:40]MH_SAM_APDU [10:14:40]CAPDU: 80 13 01 00 [10:14:40]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [10:14:40]Write i2c OK [10:14:40]MH_I2C_Read... [10:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:40]Read from MH i2c: E2 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 [10:14:40]MH_I2C_Read... [10:14:40]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C0 [10:14:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:14:40]wFMCommunicate OK [10:14:40]SAM_PROTO_GetShiftState done [10:14:40]FM_GetShiftState done [10:14:40]opened in 1730074113 [10:14:40]opened+sec_in_day 1730160513 [10:14:40]quantity*price = 0 [10:14:40]sum+1 = 1 [10:14:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 61 28.10.2024 10:18 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72533 ФПД: 76533411014948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101838&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72533&fm=76533411014948&tin=02508201610067®Number=0000000000091644&sum=0 [10:18:38]StoreToDocumentArchive [10:18:38]shift 554 fd 72533 [10:18:38]save to /storage/0554/doc_00072533 [10:18:38]save last doc name /storage/0554/doc_00072533 to /storage/kkm_last_doc_name [10:18:38]save OK [10:18:38]Clear old archive folders... [10:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:18:38]tlvbuf is 0053AD00 [10:18:38]SAM_PROTO_ClearQueue [10:18:38]wFMCommunicate request_size=4 [10:18:38]MH_SAM_APDU [10:18:38]CAPDU: 80 09 00 00 [10:18:38]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [10:18:38]Write i2c OK [10:18:38]MH_I2C_Read... [10:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:18:38]Read from MH i2c: E2 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: E2 03 00 [10:18:38]MH_I2C_Read... [10:18:38]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_ClearQueue done [10:18:39]KKMCreateOFDPacket [10:18:39]OFDProtocolAddRootSTLVToBuf [10:18:39]FM_MakeSignedData [10:18:39]FM_MakeSignedData [10:18:39]SAM_PROTO_SignData [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 01 02 [10:18:39]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=255 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3D 00 00 00 F4 03 04 00 FE 64 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1B 01 00 35 04 06 00 45 [10:18:39]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 3D 00 00 00 F4 03 04 00 FE 64 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1B 01 00 35 04 06 00 45 00 00 24 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=10 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 02 02 05 9B 52 C6 E9 24 [10:18:39]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 9B 52 C6 E9 24 00 00 72 [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [10:18:39]RAPDU: 90 00 [10:18:39]wFMCommunicate OK [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 0D 03 02 [10:18:39]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0B 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 0B 00 2F 00 00 AB 43 16 7E 6F 20 46 D1 90 00 D3 [10:18:39]RAPDU: AB 43 16 7E 6F 20 46 D1 90 00 [10:18:39]wFMCommunicate OK [10:18:39]SAM_PROTO_SignData done [10:18:39]FM_MakeSignedData done [10:18:39]CreateOFDProtocolMessage [10:18:39]wFMCommunicate request_size=4 [10:18:39]MH_SAM_APDU [10:18:39]CAPDU: 80 11 00 00 [10:18:39]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:39]Read from MH i2c: E2 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: E2 17 00 [10:18:39]MH_I2C_Read... [10:18:39]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 34 36 36 32 90 00 FE [10:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:18:39]wFMCommunicate OK [10:18:39]CreateOFDProtocolMessage done [10:18:39]OFDSenderStorePacket 72533 [10:18:39]StoreOFDPacket docnum=72533 [10:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 15 0E 07 01 45 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 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 3D 00 00 00 F4 03 04 00 FE 64 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1B 01 00 35 04 06 00 45 9B 52 C6 E9 24 AB 43 16 7E 6F 20 46 D1 [10:18:39]CheckFolder [10:18:39]dirname=/storage/ofd_packets [10:18:39]CheckFolder done [10:18:39]ProducePacketName [10:18:39]name=ofd_packets/00072533 [10:18:39]NVStorageSaveData ofd_packets/00072533 [10:18:39]File name is /storage/ofd_packets/00072533 [10:18:39]Write 301 bytes [10:18:39]NVStorageSaveData done [10:18:39]OFDSenderStorePacket done [10:18:39]KKMCreateOFDPacket done [10:18:39]NVStorageSaveData kkm_last_timestamp [10:18:39]File name is /storage/kkm_last_timestamp [10:18:39]Write 4 bytes [10:18:39]NVStorageSaveData done [10:18:39]ExternCall_PrintAddStr [10:18:39]wPrintStart [10:18:39]Write to MH i2c: 01 00 00 31 00 31 [10:18:39]OFD Sender: Processing packet 72533 [packets to send 273, broken 272] [10:18:39]ProducePacketName [10:18:39]name=ofd_packets/00072533 [10:18:39]OFD Sender: To server: pG, [10:18:39]CommunicateWithHost lk.salyk.kg:30040 [10:18:39]ConnectInit lk.salyk.kg [10:18:39]Write i2c OK [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: 01 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: 01 07 00 [10:18:39]MH_I2C_Read... [10:18:39]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [10:18:39]RasterBufferAndPrint [10:18:39]line Счет N : (1)951979 [10:18:39]line ИНН: 02508201610067 [10:18:39]line Контрольно-Кассовый Чек [10:18:39]line ПРОДАЖА [10:18:39]line ТРК (МРК, ГНК) : 53 [10:18:39]line Товар: 2710124130 [10:18:39]line Аи-92-К-5 [10:18:39]line 20.000 * 0.00 [10:18:39]line = 0.00 [10:18:39]line НДС 12% НСП 1% [10:18:39]line > о реализуемом товаре [10:18:39]line ИТОГО: 0.00 [10:18:39]line НСП 1% : 0.00 [10:18:39]line НДС 12% : 0.00 [10:18:39]line Наличными: 0.00 [10:18:39]line Безнал.: 0.00 [10:18:39]line Место: АЗС № 113 "Партнер Нефть" [10:18:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:18:39]line СНО: Общий режим [10:18:39]line Чек 61 28.10.2024 10:18 [10:18:39]line Смена: 554 ФФД: 1.0 [10:18:39]line ЗНМ: 0300000087 [10:18:39]line РНМ: 0000000000091644 [10:18:39]line Версия ККМ: 001 [10:18:39]line Талоны: Топливная Карта [10:18:39]line 03047 [10:18:39]line ФМ: 0000000000874662 [10:18:39]line ФД: 72533 [10:18:39]line ФПД: 76533411014948 [10:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101838&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72533&fm=76533411014948&tin=02508201610067®Number=0000000000091644&sum=0 [10:18:40]written 0, free lines is 4095 [10:18:40]Write to MH i2c: 01 00 00 5B 00 5B [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 FB 0C 69 [10:18:40]RasterBufferAndPrint [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]line [10:18:40]written 0, free lines is 3348 [10:18:40]MH_Cut [10:18:40]Write to MH i2c: D1 01 00 62 00 01 34 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 01 00 [10:18:40]MH_I2C_Read... [10:18:40]Read from MH i2c: D1 01 00 62 00 00 33 [10:18:40]Write to MH i2c: 01 00 00 63 00 63 [10:18:40]Write i2c OK [10:18:40]MH_I2C_Read... [10:18:40]Connected sock=5 [10:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 15 0E 07 01 45 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 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 3D 00 00 00 F4 03 04 00 FE 64 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 55 1B 01 00 35 04 06 00 45 9B 52 C6 E9 24 AB 43 16 7E 6F 20 46 D1 [10:18:41]*** Cut start [10:18:41]*** Partial cut [10:18:41]*** CUTSNS_PIN = 1 [10:18:41]*** CUTSNS_PIN = 0 [10:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 10 08 47 00 46 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 34 36 36 32 10 04 04 00 55 1B 01 00 F4 03 04 00 BE 0F 1F 67 B6 04 01 00 00 11 23 02 9A 3E 94 78 77 [10:18:41]CommunicateWithHost err = 0 [10:18:41]CheckOFDResponse [10:18:41]1017 (14) - 77093643461234 [10:18:41]1041 (16) - 0000000000874662 [10:18:41]1040 (4) - 72533 [10:18:41]*** Brake cut motor [10:18:41]1012 (4) - 28.10.2024 04:14 [10:18:41]1206 (1) - 0 [10:18:41]OFD Sender: Remove packet 72533 [10:18:41]ProducePacketName [10:18:41]name=ofd_packets/00072533 [10:18:41]NVStorageDeleteData [10:18:41]Read from MH i2c: 01 [10:18:41]MH_I2C_Read... [10:18:41]*** Stop cut motor [10:18:41]*** Cut end [10:18:41]Read from MH i2c: 01 07 00 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [10:18:41]process_action close_receipt done [10:18:41]requested_data is exist [10:18:41]produce_requested_data [10:18:41]requested_item fm.sn is exist - process it [10:18:41]wFMCommunicate request_size=4 [10:18:41]MH_SAM_APDU [10:18:41]CAPDU: 80 11 00 00 [10:18:41]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:18:41]Read from MH i2c: E2 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: E2 17 00 [10:18:41]MH_I2C_Read... [10:18:41]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [10:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:18:41]wFMCommunicate OK [10:18:41]requested_item fd.num is exist - process it [10:18:41]SAM_PROTO_GetFieldsCounters [10:18:41]wFMCommunicate request_size=4 [10:18:41]MH_SAM_APDU [10:18:41]CAPDU: 80 13 00 00 [10:18:41]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [10:18:41]Write i2c OK [10:18:41]MH_I2C_Read... [10:18:42]OFD Sender: No OFD packet to send [10:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 62 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 55 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [10:18: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 55 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_GetFieldsCounters done [10:18:42]requested_item shift.num is exist - process it [10:18:42]requested_item shift.opened is exist - process it [10:18:42]req_shift_opened [10:18:42]FM_GetShiftState [10:18:42]SAM_PROTO_GetShiftState [10:18:42]wFMCommunicate request_size=4 [10:18:42]MH_SAM_APDU [10:18:42]CAPDU: 80 13 01 00 [10:18:42]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [10:18:42]Write i2c OK [10:18:42]MH_I2C_Read... [10:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:18:42]Read from MH i2c: E2 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 [10:18:42]MH_I2C_Read... [10:18:42]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [10:18:42]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:18:42]wFMCommunicate OK [10:18:42]SAM_PROTO_GetShiftState done [10:18:42]FM_GetShiftState done [10:18:42]req_shift_opened done [10:18:42]requested_item shift.open_date is exist - process it [10:18:42]req_shift_open_date [10:18:42]req_shift_open_date done [10:18:42]produce_requested_data done [10:18:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72533,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:18:42]process_action_free close_receipt [10:18:42]json_value_free [10:18:42]json_value_free done [10:18:42]process_json_proto returns [10:18:42]Send response to host [10:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72533,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:18:42]free response buf [10:18:42]execute_script done [10:18:42]execute_script returns [10:18:42]free content buf [10:18:42]Sock 9.Close socket [10:18:42]Sock 9.Thread stoped [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:56]recv_with_timeout no data received [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:17]OFD Sender: No OFD packet to send [10:19:21]accept exits with 10 [10:19:21]New connection [10:19:21]New thread 3067481444 created [10:19:21]Thread 3067624804 joined [10:19:21]Waiting for new connection... [10:19:21] Sock 10.Parse request [10:19:21]Sock 10.Check first char [10:19:21]Sock 10.First char is OK [10:19:21]request: POST /json_proto HTTP/1.0 [10:19:21]Method: POST [10:19:21]URL: /json_proto [10:19:21]Method is POST - this is cgi request [10:19:21]url: /json_proto [10:19:21]query_string will be loaded in cgi processing [10:19:21]execute_cgi json_proto POST (null) [10:19:21]execute_cgi path=json_proto method=POST [10:19:21]POST find Content-Length [10:19:21]Host: 172.17.43.195:8080 [10:19:21]Content-Length: 781 [10:19:21]Content-Type: application/json [10:19:21] [10:19:21]POST finish read [10:19:21]Found Content-Length = 781 [10:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 6.580, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:21]execute_script... [10: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)951981", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 6.580, "sum" : 450.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 450.07 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:21]POST & json_proto [10:19:21]process_json_proto [10:19:21]json parsed OK: [10:19:21]protocol is kg_v1.0 [10:19:21]action value=close_receipt [10:19:21]process_action close_receipt [10:19:21]cmd_close_receipt [10:19:21]MH_GetDate [10:19:21]Write to MH i2c: F0 00 00 67 00 56 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 09 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: F0 09 00 67 00 00 2A 65 1F 67 74 2C AD 66 27 [10:19:21]GetLastDocTimeStamp 1730110718 [10:19:21]current date 1730110762 [10:19:21]FM_GetShiftState [10:19:21]SAM_PROTO_GetShiftState [10:19:21]wFMCommunicate request_size=4 [10:19:21]MH_SAM_APDU [10:19:21]CAPDU: 80 13 01 00 [10:19:21]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [10:19:21]Write i2c OK [10:19:21]MH_I2C_Read... [10:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:21]Read from MH i2c: E2 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 [10:19:21]MH_I2C_Read... [10:19:21]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [10:19:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:19:21]wFMCommunicate OK [10:19:21]SAM_PROTO_GetShiftState done [10:19:21]FM_GetShiftState done [10:19:21]opened in 1730074113 [10:19:21]opened+sec_in_day 1730160513 [10:19:21]quantity*price = 45007 [10:19:21]sum+1 = 45008 [10:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.07 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 0.00 Безнал.: 450.07 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 62 28.10.2024 10:19 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72534 ФПД: 222345723537493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101922&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72534&fm=222345723537493&tin=02508201610067®Number=0000000000091644&sum=45007 [10:19:22]StoreToDocumentArchive [10:19:22]shift 554 fd 72534 [10:19:22]save to /storage/0554/doc_00072534 [10:19:22]save last doc name /storage/0554/doc_00072534 to /storage/kkm_last_doc_name [10:19:22]save OK [10:19:22]Clear old archive folders... [10:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=244 [10:19:22]tlvbuf is 0053AA60 [10:19:22]SAM_PROTO_ClearQueue [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 09 00 00 [10:19:22]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]SAM_PROTO_ClearQueue done [10:19:22]KKMCreateOFDPacket [10:19:22]OFDProtocolAddRootSTLVToBuf [10:19:22]FM_MakeSignedData [10:19:22]FM_MakeSignedData [10:19:22]SAM_PROTO_SignData [10:19:22]wFMCommunicate request_size=4 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 01 02 [10:19:22]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:22]Read from MH i2c: E2 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 [10:19:22]MH_I2C_Read... [10:19:22]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [10:19:22]RAPDU: 90 00 [10:19:22]wFMCommunicate OK [10:19:22]wFMCommunicate request_size=253 [10:19:22]MH_SAM_APDU [10:19:22]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1B 01 00 35 04 06 00 CA 38 E5 DE 68 55 [10:19:22]Write to MH i2c: E2 00 01 77 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1B 01 00 35 04 06 00 CA 38 E5 DE 68 55 00 00 3A [10:19:22]Write i2c OK [10:19:22]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [10:19:23]RAPDU: 90 00 [10:19:23]wFMCommunicate OK [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 0D 03 02 [10:19:23]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 0B 00 78 00 00 B5 D1 CC 3F AB 27 01 FB 90 00 53 [10:19:23]RAPDU: B5 D1 CC 3F AB 27 01 FB 90 00 [10:19:23]wFMCommunicate OK [10:19:23]SAM_PROTO_SignData done [10:19:23]FM_MakeSignedData done [10:19:23]CreateOFDProtocolMessage [10:19:23]wFMCommunicate request_size=4 [10:19:23]MH_SAM_APDU [10:19:23]CAPDU: 80 11 00 00 [10:19:23]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:23]Read from MH i2c: E2 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [10:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:23]wFMCommunicate OK [10:19:23]CreateOFDProtocolMessage done [10:19:23]OFDSenderStorePacket 72534 [10:19:23]StoreOFDPacket docnum=72534 [10:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 A2 A5 00 01 8A 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1B 01 00 35 04 06 00 CA 38 E5 DE 68 55 B5 D1 CC 3F AB 27 01 FB [10:19:23]CheckFolder [10:19:23]dirname=/storage/ofd_packets [10:19:23]CheckFolder done [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00072534 [10:19:23]NVStorageSaveData ofd_packets/00072534 [10:19:23]File name is /storage/ofd_packets/00072534 [10:19:23]Write 294 bytes [10:19:23]NVStorageSaveData done [10:19:23]OFDSenderStorePacket done [10:19:23]KKMCreateOFDPacket done [10:19:23]NVStorageSaveData kkm_last_timestamp [10:19:23]File name is /storage/kkm_last_timestamp [10:19:23]Write 4 bytes [10:19:23]NVStorageSaveData done [10:19:23]ExternCall_PrintAddStr [10:19:23]wPrintStart [10:19:23]Write to MH i2c: 01 00 00 7A 00 7A [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [10:19:23]RasterBufferAndPrint [10:19:23]line Счет N : (1)951981 [10:19:23]line ИНН: 02508201610067 [10:19:23]line Контрольно-Кассовый Чек [10:19:23]line ПРОДАЖА [10:19:23]line ТРК (МРК, ГНК) : 51 [10:19:23]line Товар: 50.50.0 [10:19:23]line Super 92 [10:19:23]line 6.580 * 68.40 [10:19:23]line = 450.07 [10:19:23]line НДС 12% НСП 1% [10:19:23]line > о реализуемом товаре [10:19:23]line ИТОГО: 450.07 [10:19:23]line НСП 1% : 3.98 [10:19:23]line НДС 12% : 47.79 [10:19:23]line Наличными: 0.00 [10:19:23]line Безнал.: 450.07 [10:19:23]line Место: АЗС № 113 "Партнер Нефть" [10:19:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:19:23]line СНО: Общий режим [10:19:23]line Чек 62 28.10.2024 10:19 [10:19:23]line Смена: 554 ФФД: 1.0 [10:19:23]line ЗНМ: 0300000087 [10:19:23]line РНМ: 0000000000091644 [10:19:23]line Версия ККМ: 001 [10:19:23]line Платежная система: O! деньги [10:19:23]line ФМ: 0000000000874662 [10:19:23]line ФД: 72534 [10:19:23]line ФПД: 222345723537493 [10:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101922&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72534&fm=222345723537493&tin=02508201610067®Number=0000000000091644&sum=45007 [10:19:23]OFD Sender: Processing packet 72534 [packets to send 273, broken 272] [10:19:23]ProducePacketName [10:19:23]name=ofd_packets/00072534 [10:19:23]OFD Sender: To server: pG, [10:19:23]CommunicateWithHost lk.salyk.kg:30040 [10:19:23]ConnectInit lk.salyk.kg [10:19:23]written 0, free lines is 4095 [10:19:23]Write to MH i2c: 01 00 00 A4 00 A4 [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 F0 0C A7 [10:19:23]RasterBufferAndPrint [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]line [10:19:23]written 0, free lines is 3324 [10:19:23]MH_Cut [10:19:23]Write to MH i2c: D1 01 00 AB 00 01 7D [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 01 00 [10:19:23]MH_I2C_Read... [10:19:23]Read from MH i2c: D1 01 00 AB 00 00 7C [10:19:23]Write to MH i2c: 01 00 00 AC 00 AC [10:19:23]Write i2c OK [10:19:23]MH_I2C_Read... [10:19:24]*** Cut start [10:19:24]*** Partial cut [10:19:24]*** CUTSNS_PIN = 1 [10:19:24]*** CUTSNS_PIN = 0 [10:19:24]*** Brake cut motor [10:19:25]Read from MH i2c: 01 [10:19:25]MH_I2C_Read... [10:19:25]*** Stop cut motor [10:19:25]*** Cut end [10:19:25]Read from MH i2c: 01 07 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [10:19:25]process_action close_receipt done [10:19:25]requested_data is exist [10:19:25]produce_requested_data [10:19:25]requested_item fm.sn is exist - process it [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 11 00 00 [10:19:25]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [10:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:25]wFMCommunicate OK [10:19:25]requested_item fd.num is exist - process it [10:19:25]SAM_PROTO_GetFieldsCounters [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 13 00 00 [10:19:25]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 62 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 62 00 AE 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 56 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 56 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_GetFieldsCounters done [10:19:25]requested_item shift.num is exist - process it [10:19:25]requested_item shift.opened is exist - process it [10:19:25]req_shift_opened [10:19:25]FM_GetShiftState [10:19:25]SAM_PROTO_GetShiftState [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 13 01 00 [10:19:25]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 94 [10:19:25]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_GetShiftState done [10:19:25]FM_GetShiftState done [10:19:25]req_shift_opened done [10:19:25]requested_item shift.open_date is exist - process it [10:19:25]req_shift_open_date [10:19:25]req_shift_open_date done [10:19:25]produce_requested_data done [10:19:25]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72534,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:19:25]process_action_free close_receipt [10:19:25]json_value_free [10:19:25]json_value_free done [10:19:25]process_json_proto returns [10:19:25]Send response to host [10:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72534,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:19:25]free response buf [10:19:25]execute_script done [10:19:25]execute_script returns [10:19:25]free content buf [10:19:25]Sock 10.Close socket [10:19:25]Sock 10.Thread stoped [10:19:25]accept exits with 9 [10:19:25]New connection [10:19:25]New thread 3067624804 created [10:19:25]Thread 3067481444 joined [10:19:25]Waiting for new connection... [10:19:25] Sock 9.Parse request [10:19:25]Sock 9.Check first char [10:19:25]Sock 9.First char is OK [10:19:25]request: POST /json_proto HTTP/1.0 [10:19:25]Method: POST [10:19:25]URL: /json_proto [10:19:25]Method is POST - this is cgi request [10:19:25]url: /json_proto [10:19:25]query_string will be loaded in cgi processing [10:19:25]execute_cgi json_proto POST (null) [10:19:25]execute_cgi path=json_proto method=POST [10:19:25]POST find Content-Length [10:19:25]Host: 172.17.43.195:8080 [10:19:25]Content-Length: 677 [10:19:25]Content-Type: application/json [10:19:25] [10:19:25]POST finish read [10:19:25]Found Content-Length = 677 [10:19:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [10:19:25]execute_script... [10:19:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951980", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [10:19:25]POST & json_proto [10:19:25]process_json_proto [10:19:25]json parsed OK: [10:19:25]protocol is kg_v1.0 [10:19:25]action value=close_receipt [10:19:25]process_action close_receipt [10:19:25]cmd_close_receipt [10:19:25]MH_GetDate [10:19:25]Write to MH i2c: F0 00 00 B0 00 9F [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 09 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: F0 09 00 B0 00 00 2E 65 1F 67 74 2C AD 66 74 [10:19:25]GetLastDocTimeStamp 1730110762 [10:19:25]current date 1730110766 [10:19:25]FM_GetShiftState [10:19:25]SAM_PROTO_GetShiftState [10:19:25]wFMCommunicate request_size=4 [10:19:25]MH_SAM_APDU [10:19:25]CAPDU: 80 13 01 00 [10:19:25]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [10:19:25]Write i2c OK [10:19:25]MH_I2C_Read... [10:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:25]Read from MH i2c: E2 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 [10:19:25]MH_I2C_Read... [10:19:25]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 96 [10:19:25]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:19:25]wFMCommunicate OK [10:19:25]SAM_PROTO_GetShiftState done [10:19:25]FM_GetShiftState done [10:19:25]opened in 1730074113 [10:19:25]opened+sec_in_day 1730160513 [10:19:25]quantity*price = 30038 [10:19:25]sum+1 = 30039 [10:19:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 63 28.10.2024 10:19 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72535 ФПД: 145767579964573 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101926&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72535&fm=145767579964573&tin=02508201610067®Number=0000000000091644&sum=30000 [10:19:27]StoreToDocumentArchive [10:19:27]shift 554 fd 72535 [10:19:27]save to /storage/0554/doc_00072535 [10:19:27]save last doc name /storage/0554/doc_00072535 to /storage/kkm_last_doc_name [10:19:27]save OK [10:19:27]Clear old archive folders... [10:19:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:27]tlvbuf is 004DD760 [10:19:27]SAM_PROTO_ClearQueue [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 09 00 00 [10:19:27]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [10:19:27]RAPDU: 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_ClearQueue done [10:19:27]KKMCreateOFDPacket [10:19:27]OFDProtocolAddRootSTLVToBuf [10:19:27]FM_MakeSignedData [10:19:27]FM_MakeSignedData [10:19:27]SAM_PROTO_SignData [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 0D 01 02 [10:19:27]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [10:19:27]RAPDU: 90 00 [10:19:27]wFMCommunicate OK [10:19:27]wFMCommunicate request_size=255 [10:19:27]MH_SAM_APDU [10:19: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 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 3F 00 00 00 F4 03 04 00 2E 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1B 01 00 35 04 06 00 84 [10:19:27]Write to MH i2c: E2 02 01 C0 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 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 3F 00 00 00 F4 03 04 00 2E 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1B 01 00 35 04 06 00 84 00 00 36 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [10:19:27]RAPDU: 90 00 [10:19:27]wFMCommunicate OK [10:19:27]wFMCommunicate request_size=10 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 0D 02 02 05 93 28 D2 D4 9D [10:19:27]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 93 28 D2 D4 9D 00 00 43 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [10:19:27]RAPDU: 90 00 [10:19:27]wFMCommunicate OK [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 0D 03 02 [10:19:27]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:27]Read from MH i2c: E2 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0B 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 0B 00 C2 00 00 FA 3A 49 C9 21 49 CD 7C 90 00 37 [10:19:27]RAPDU: FA 3A 49 C9 21 49 CD 7C 90 00 [10:19:27]wFMCommunicate OK [10:19:27]SAM_PROTO_SignData done [10:19:27]FM_MakeSignedData done [10:19:27]CreateOFDProtocolMessage [10:19:27]wFMCommunicate request_size=4 [10:19:27]MH_SAM_APDU [10:19:27]CAPDU: 80 11 00 00 [10:19:27]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:27] [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 17 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [10:19:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:27]wFMCommunicate OK [10:19:27]CreateOFDProtocolMessage done [10:19:27]OFDSenderStorePacket 72535 [10:19:27]StoreOFDPacket docnum=72535 [10:19:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 C8 07 01 69 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 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 3F 00 00 00 F4 03 04 00 2E 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1B 01 00 35 04 06 00 84 93 28 D2 D4 9D FA 3A 49 C9 21 49 CD 7C [10:19:27]CheckFolder [10:19:27]dirname=/storage/ofd_packets [10:19:27]CheckFolder done [10:19:27]ProducePacketName [10:19:27]name=ofd_packets/00072535 [10:19:27]NVStorageSaveData ofd_packets/00072535 [10:19:27]File name is /storage/ofd_packets/00072535 [10:19:27]Write 301 bytes [10:19:27]NVStorageSaveData done [10:19:27]OFDSenderStorePacket done [10:19:27]KKMCreateOFDPacket done [10:19:27]NVStorageSaveData kkm_last_timestamp [10:19:27]File name is /storage/kkm_last_timestamp [10:19:27]Write 4 bytes [10:19:27]NVStorageSaveData done [10:19:27]ExternCall_PrintAddStr [10:19:27]wPrintStart [10:19:27]Write to MH i2c: 01 00 00 C4 00 C4 [10:19:27]Write i2c OK [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 [10:19:27]MH_I2C_Read... [10:19:27]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [10:19:27]RasterBufferAndPrint [10:19:27]line Счет N : (1)951980 [10:19:27]line ИНН: 02508201610067 [10:19:27]line Контрольно-Кассовый Чек [10:19:27]line ПРОДАЖА [10:19:27]line ТРК (МРК, ГНК) : 63 [10:19:27]line Товар: 2710124130 [10:19:27]line Аи-92-К-5 [10:19:27]line 4.490 * 66.90 [10:19:27]line = 300.38 [10:19:27]line НДС 12% НСП 1% [10:19:27]line > о реализуемом товаре [10:19:27]line ОКРУГЛЕНИЕ: -0.38 [10:19:27]line ИТОГО: 300.00 [10:19:27]line Внесено: 300.00 [10:19:27]line СДАЧА: 0.00 [10:19:27]line НСП 1% : 2.66 [10:19:27]line НДС 12% : 31.90 [10:19:27]line Наличными: 300.00 [10:19:27]line Безнал.: 0.00 [10:19:27]line Место: АЗС № 113 "Партнер Нефть" [10:19:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:19:27]line СНО: Общий режим [10:19:27]line Чек 63 28.10.2024 10:19 [10:19:27]line Смена: 554 ФФД: 1.0 [10:19:27]line ЗНМ: 0300000087 [10:19:27]line РНМ: 0000000000091644 [10:19:27]line Версия ККМ: 001 [10:19:27]line ФМ: 0000000000874662 [10:19:27]line ФД: 72535 [10:19:27]line ФПД: 145767579964573 [10:19:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T101926&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72535&fm=145767579964573&tin=02508201610067®Number=0000000000091644&sum=30000 [10:19:28]written 0, free lines is 4095 [10:19:28]ConnectInit Can't take IP for lk.salyk.kg [10:19:28]CommunicateWithHost connect error [10:19:28]CommunicateWithHost err = -1 [10:19:28]OFD Sender: Server communicate error [10:19:28]OFD Sender: Processing packet 72534 [packets to send 274, broken 272] [10:19:28]ProducePacketName [10:19:28]name=ofd_packets/00072534 [10:19:28]OFD Sender: To server: pG, [10:19:28]CommunicateWithHost lk.salyk.kg:30040 [10:19:28]ConnectInit lk.salyk.kg [10:19:28]Write to MH i2c: 01 00 00 EF 00 EF [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 07 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 F5 0C F7 [10:19:28]RasterBufferAndPrint [10:19:28]line [10:19:28]line [10:19:28]line [10:19:28]line [10:19:28]line [10:19:28]written 0, free lines is 3338 [10:19:28]MH_Cut [10:19:28]Write to MH i2c: D1 01 00 F6 00 01 C8 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: D1 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: D1 01 00 [10:19:28]MH_I2C_Read... [10:19:28]Read from MH i2c: D1 01 00 F6 00 00 C7 [10:19:28]Write to MH i2c: 01 00 00 F7 00 F7 [10:19:28]Write i2c OK [10:19:28]MH_I2C_Read... [10:19:29]*** Cut start [10:19:29]*** Partial cut [10:19:29]*** CUTSNS_PIN = 1 [10:19:29]*** CUTSNS_PIN = 0 [10:19:29]*** Brake cut motor [10:19:30]Read from MH i2c: 01 *** Stop cut motor [10:19:30] [10:19:30]*** Cut end [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [10:19:30]process_action close_receipt done [10:19:30]requested_data is exist [10:19:30]produce_requested_data [10:19:30]requested_item fm.sn is exist - process it [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 11 00 00 [10:19:30]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:30]E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 17 00 [10:19:30]MH_I2C_Read... [10:19:30]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 34 36 36 32 90 00 C6 [10:19:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:19:30]wFMCommunicate OK [10:19:30]requested_item fd.num is exist - process it [10:19:30]SAM_PROTO_GetFieldsCounters [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 13 00 00 [10:19:30]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 62 00 [10:19:30]MH_I2C_Read... [10:19:30]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:19: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 57 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_GetFieldsCounters done [10:19:30]requested_item shift.num is exist - process it [10:19:30]requested_item shift.opened is exist - process it [10:19:30]req_shift_opened [10:19:30]FM_GetShiftState [10:19:30]SAM_PROTO_GetShiftState [10:19:30]wFMCommunicate request_size=4 [10:19:30]MH_SAM_APDU [10:19:30]CAPDU: 80 13 01 00 [10:19:30]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [10:19:30]Write i2c OK [10:19:30]MH_I2C_Read... [10:19:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:30]Read from MH i2c: E2 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 [10:19:30]MH_I2C_Read... [10:19:30]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [10:19:30]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:19:30]wFMCommunicate OK [10:19:30]SAM_PROTO_GetShiftState done [10:19:30]FM_GetShiftState done [10:19:30]req_shift_opened done [10:19:30]requested_item shift.open_date is exist - process it [10:19:30]req_shift_open_date [10:19:30]req_shift_open_date done [10:19:30]produce_requested_data done [10:19:30]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72535,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:19:30]process_action_free close_receipt [10:19:30]json_value_free [10:19:30]json_value_free done [10:19:30]process_json_proto returns [10:19:30]Send response to host [10:19:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72535,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:19:30]free response buf [10:19:30]execute_script done [10:19:30]execute_script returns [10:19:30]free content buf [10:19:30]Sock 9.Close socket [10:19:30]Sock 9.Thread stoped [10:19:33]ConnectInit Can't take IP for lk.salyk.kg [10:19:33]CommunicateWithHost connect error [10:19:33]CommunicateWithHost err = -1 [10:19:33]OFD Sender: Server communicate error [10:19:38]OFD Sender: Processing packet 72534 [packets to send 274, broken 272] [10:19:38]ProducePacketName [10:19:38]name=ofd_packets/00072534 [10:19:38]OFD Sender: To server: pG, [10:19:38]CommunicateWithHost lk.salyk.kg:30040 [10:19:38]ConnectInit lk.salyk.kg [10:19:43]ConnectInit Can't take IP for lk.salyk.kg [10:19:43]CommunicateWithHost connect error [10:19:43]CommunicateWithHost err = -1 [10:19:43]OFD Sender: Server communicate error [10:19:48]OFD Sender: Processing packet 72534 [packets to send 274, broken 272] [10:19:48]ProducePacketName [10:19:48]name=ofd_packets/00072534 [10:19:48]OFD Sender: To server: pG, [10:19:48]CommunicateWithHost lk.salyk.kg:30040 [10:19:48]ConnectInit lk.salyk.kg [10:19:53]ConnectInit Can't take IP for lk.salyk.kg [10:19:53]CommunicateWithHost connect error [10:19:53]CommunicateWithHost err = -1 [10:19:53]OFD Sender: Server communicate error [10:19:58]OFD Sender: Processing packet 72534 [packets to send 274, broken 272] [10:19:58]ProducePacketName [10:19:58]name=ofd_packets/00072534 [10:19:58]OFD Sender: To server: pG, [10:19:58]CommunicateWithHost lk.salyk.kg:30040 [10:19:58]ConnectInit lk.salyk.kg [10:20:03]ConnectInit Can't take IP for lk.salyk.kg [10:20:03]CommunicateWithHost connect error [10:20:03]CommunicateWithHost err = -1 [10:20:03]OFD Sender: Server communicate error [10:20:08]OFD Sender: Processing packet 72534 [packets to send 274, broken 272] [10:20:08]ProducePacketName [10:20:08]name=ofd_packets/00072534 [10:20:08]OFD Sender: To server: pG, [10:20:08]CommunicateWithHost lk.salyk.kg:30040 [10:20:08]ConnectInit lk.salyk.kg [10:20:09]recv_with_timeout no data received [10:20:11]Connected sock=9 [10:20:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 A2 A5 00 01 8A 52 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 19 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 CF AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CF AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 CF AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 2A 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 56 1B 01 00 35 04 06 00 CA 38 E5 DE 68 55 B5 D1 CC 3F AB 27 01 FB [10:20:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F7 34 47 00 8E 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 34 36 36 32 10 04 04 00 56 1B 01 00 F4 03 04 00 18 10 1F 67 B6 04 01 00 00 30 B6 A8 83 B6 B8 8C D4 [10:20:13]CommunicateWithHost err = 0 [10:20:13]CheckOFDResponse [10:20:13]1017 (14) - 77093643461234 [10:20:13]1041 (16) - 0000000000874662 [10:20:13]1040 (4) - 72534 [10:20:13]1012 (4) - 28.10.2024 04:16 [10:20:13]1206 (1) - 0 [10:20:13]OFD Sender: Remove packet 72534 [10:20:13]ProducePacketName [10:20:13]name=ofd_packets/00072534 [10:20:13]NVStorageDeleteData [10:20:14]OFD Sender: Processing packet 72535 [packets to send 273, broken 272] [10:20:14]ProducePacketName [10:20:14]name=ofd_packets/00072535 [10:20:14]OFD Sender: To server: pG, [10:20:14]CommunicateWithHost lk.salyk.kg:30040 [10:20:14]ConnectInit lk.salyk.kg [10:20:19]Connected sock=9 [10:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 61 C8 07 01 69 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 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 3F 00 00 00 F4 03 04 00 2E 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 57 1B 01 00 35 04 06 00 84 93 28 D2 D4 9D FA 3A 49 C9 21 49 CD 7C [10:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BD B4 47 00 06 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 34 36 36 32 10 04 04 00 57 1B 01 00 F4 03 04 00 20 10 1F 67 B6 04 01 00 00 4A 65 B3 A6 5B 9E C5 FE [10:20:19]CommunicateWithHost err = 0 [10:20:19]CheckOFDResponse [10:20:19]1017 (14) - 77093643461234 [10:20:19]1041 (16) - 0000000000874662 [10:20:19]1040 (4) - 72535 [10:20:19]1012 (4) - 28.10.2024 04:16 [10:20:19]1206 (1) - 0 [10:20:19]OFD Sender: Remove packet 72535 [10:20:19]ProducePacketName [10:20:19]name=ofd_packets/00072535 [10:20:19]NVStorageDeleteData [10:20:20]OFD Sender: No OFD packet to send [10:20:25]OFD Sender: No OFD packet to send [10:20:30]OFD Sender: No OFD packet to send [10:20:30]recv_with_timeout no data received [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:51]recv_with_timeout no data received [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:05]recv_with_timeout no data received [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:18]recv_with_timeout no data received [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:25]accept exits with 10 [10:21:25]New connection [10:21:25]New thread 3067481444 created [10:21:25]Thread 3067624804 joined [10:21:25]Waiting for new connection... [10:21:25] Sock 10.Parse request [10:21:25]Sock 10.Check first char [10:21:25]Sock 10.First char is OK [10:21:25]request: POST /json_proto HTTP/1.0 [10:21:25]Method: POST [10:21:25]URL: /json_proto [10:21:25]Method is POST - this is cgi request [10:21:25]url: /json_proto [10:21:25]query_string will be loaded in cgi processing [10:21:25]execute_cgi json_proto POST (null) [10:21:25]execute_cgi path=json_proto method=POST [10:21:25]POST find Content-Length [10:21:25]Host: 172.17.43.195:8080 [10:21:25]Content-Length: 792 [10:21:25]Content-Type: application/json [10:21:25] [10:21:25]POST finish read [10:21:25]Found Content-Length = 792 [10:21:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:25]execute_script... [10:21: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)951982", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:25]POST & json_proto [10:21:25]process_json_proto [10:21:25]json parsed OK: [10:21:25]protocol is kg_v1.0 [10:21:25]action value=close_receipt [10:21:25]process_action close_receipt [10:21:25]cmd_close_receipt [10:21:25]MH_GetDate [10:21:25]Write to MH i2c: F0 00 00 FB 00 EA [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 09 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: F0 09 00 FB 00 00 A6 65 1F 67 74 2C AD 66 37 [10:21:25]GetLastDocTimeStamp 1730110766 [10:21:25]current date 1730110886 [10:21:25]FM_GetShiftState [10:21:25]SAM_PROTO_GetShiftState [10:21:25]wFMCommunicate request_size=4 [10:21:25]MH_SAM_APDU [10:21:25]CAPDU: 80 13 01 00 [10:21:25]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [10:21:25]Write i2c OK [10:21:25]MH_I2C_Read... [10:21:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:25]Read from MH i2c: E2 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 [10:21:25]MH_I2C_Read... [10:21:25]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [10:21:25]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:21:25]wFMCommunicate OK [10:21:25]SAM_PROTO_GetShiftState done [10:21:25]FM_GetShiftState done [10:21:25]opened in 1730074113 [10:21:25]opened+sec_in_day 1730160513 [10:21:25]quantity*price = 0 [10:21:25]sum+1 = 1 [10:21:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 64 28.10.2024 10:21 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72536 ФПД: 7521963276137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102126&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72536&fm=7521963276137&tin=02508201610067®Number=0000000000091644&sum=0 [10:21:26]StoreToDocumentArchive [10:21:26]shift 554 fd 72536 [10:21:26]save to /storage/0554/doc_00072536 [10:21:26]save last doc name /storage/0554/doc_00072536 to /storage/kkm_last_doc_name [10:21:26]save OK [10:21:26]Clear old archive folders... [10:21:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:21:26]tlvbuf is 005215B0 [10:21:26]SAM_PROTO_ClearQueue [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 09 00 00 [10:21:26]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]SAM_PROTO_ClearQueue done [10:21:26]KKMCreateOFDPacket [10:21:26]OFDProtocolAddRootSTLVToBuf [10:21:26]FM_MakeSignedData [10:21:26]FM_MakeSignedData [10:21:26]SAM_PROTO_SignData [10:21:26]wFMCommunicate request_size=4 [10:21:26]MH_SAM_APDU [10:21:26]CAPDU: 80 0D 01 02 [10:21:26]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:26]Read from MH i2c: E2 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 [10:21:26]MH_I2C_Read... [10:21:26]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [10:21:26]RAPDU: 90 00 [10:21:26]wFMCommunicate OK [10:21:26]wFMCommunicate request_size=255 [10:21:26]MH_SAM_APDU [10:21: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 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 40 00 00 00 F4 03 04 00 A6 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1B 01 00 35 04 06 00 06 [10:21: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 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 40 00 00 00 F4 03 04 00 A6 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1B 01 00 35 04 06 00 06 00 00 18 [10:21:26]Write i2c OK [10:21:26]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=10 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 02 02 05 D7 57 F2 F7 69 [10:21:27]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 D7 57 F2 F7 69 00 00 11 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [10:21:27]RAPDU: 90 00 [10:21:27]wFMCommunicate OK [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 0D 03 02 [10:21:27]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 0B 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 0B 00 0D 01 00 BB 47 A2 E2 93 4A E5 CE 90 00 A0 [10:21:27]RAPDU: BB 47 A2 E2 93 4A E5 CE 90 00 [10:21:27]wFMCommunicate OK [10:21:27]SAM_PROTO_SignData done [10:21:27]FM_MakeSignedData done [10:21:27]CreateOFDProtocolMessage [10:21:27]wFMCommunicate request_size=4 [10:21:27]MH_SAM_APDU [10:21:27]CAPDU: 80 11 00 00 [10:21:27]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: E2 [10:21:27]MH_I2C_Read... [10:21:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:27]Read from MH i2c: E2 17 00 [10:21:27]MH_I2C_Read... [10:21: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 34 36 36 32 90 00 DD [10:21:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:21:27]wFMCommunicate OK [10:21:27]CreateOFDProtocolMessage done [10:21:27]OFDSenderStorePacket 72536 [10:21:27]StoreOFDPacket docnum=72536 [10:21:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 A2 07 01 53 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 A6 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1B 01 00 35 04 06 00 06 D7 57 F2 F7 69 BB 47 A2 E2 93 4A E5 CE [10:21:27]CheckFolder [10:21:27]dirname=/storage/ofd_packets [10:21:27]CheckFolder done [10:21:27]ProducePacketName [10:21:27]name=ofd_packets/00072536 [10:21:27]NVStorageSaveData ofd_packets/00072536 [10:21:27]File name is /storage/ofd_packets/00072536 [10:21:27]Write 301 bytes [10:21:27]NVStorageSaveData done [10:21:27]OFDSenderStorePacket done [10:21:27]KKMCreateOFDPacket done [10:21:27]NVStorageSaveData kkm_last_timestamp [10:21:27]File name is /storage/kkm_last_timestamp [10:21:27]Write 4 bytes [10:21:27]NVStorageSaveData done [10:21:27]ExternCall_PrintAddStr [10:21:27]wPrintStart [10:21:27]Write to MH i2c: 01 00 00 0F 01 10 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [10:21:27]RasterBufferAndPrint [10:21:27]line Счет N : (1)951982 [10:21:27]line ИНН: 02508201610067 [10:21:27]line Контрольно-Кассовый Чек [10:21:27]line ПРОДАЖА [10:21:27]line ТРК (МРК, ГНК) : 42 [10:21:27]line Товар: 2710124130 [10:21:27]line Аи-92-К-5 [10:21:27]line 50.000 * 0.00 [10:21:27]line = 0.00 [10:21:27]line НДС 12% НСП 1% [10:21:27]line > о реализуемом товаре [10:21:27]line ИТОГО: 0.00 [10:21:27]line НСП 1% : 0.00 [10:21:27]line НДС 12% : 0.00 [10:21:27]line Наличными: 0.00 [10:21:27]line Безнал.: 0.00 [10:21:27]line Место: АЗС № 113 "Партнер Нефть" [10:21:27]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:21:27]line СНО: Общий режим [10:21:27]line Чек 64 28.10.2024 10:21 [10:21:27]line Смена: 554 ФФД: 1.0 [10:21:27]line ЗНМ: 0300000087 [10:21:27]line РНМ: 0000000000091644 [10:21:27]line Версия ККМ: 001 [10:21:27]line Талоны: Топливная Карта [10:21:27]line 03047 [10:21:27]line ФМ: 0000000000874662 [10:21:27]line ФД: 72536 [10:21:27]line ФПД: 7521963276137 [10:21:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102126&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72536&fm=7521963276137&tin=02508201610067®Number=0000000000091644&sum=0 [10:21:27]written 0, free lines is 4095 [10:21:27]OFD Sender: Processing packet 72536 [packets to send 273, broken 272] [10:21:27]ProducePacketName [10:21:27]name=ofd_packets/00072536 [10:21:27]OFD Sender: To server: pG, [10:21:27]CommunicateWithHost lk.salyk.kg:30040 [10:21:27]ConnectInit lk.salyk.kg [10:21:27]Write to MH i2c: 01 00 00 39 01 3A [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 DA 0C 27 [10:21:27]RasterBufferAndPrint [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]line [10:21:27]written 0, free lines is 3302 [10:21:27]MH_Cut [10:21:27]Write to MH i2c: D1 01 00 40 01 01 13 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 01 00 [10:21:27]MH_I2C_Read... [10:21:27]Read from MH i2c: D1 01 00 40 01 00 12 [10:21:27]Write to MH i2c: 01 00 00 41 01 42 [10:21:27]Write i2c OK [10:21:27]MH_I2C_Read... [10:21:28]*** Cut start [10:21:28]*** Partial cut [10:21:28]*** CUTSNS_PIN = 1 [10:21:28]*** CUTSNS_PIN = 0 [10:21:28]*** Brake cut motor [10:21:29]Read from MH i2c: 01 [10:21:29]MH_I2C_Read... [10:21:29]*** Stop cut motor [10:21:29]*** Cut end [10:21:29]Read from MH i2c: 01 07 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [10:21:29]process_action close_receipt done [10:21:29]requested_data is exist [10:21:29]produce_requested_data [10:21:29]requested_item fm.sn is exist - process it [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 11 00 00 [10:21:29]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [10:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:21:29]wFMCommunicate OK [10:21:29]requested_item fd.num is exist - process it [10:21:29]SAM_PROTO_GetFieldsCounters [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 00 00 [10:21:29]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 62 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [10:21: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 58 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:29]wFMCommunicate OK [10:21:29]SAM_PROTO_GetFieldsCounters done [10:21:29]requested_item shift.num is exist - process it [10:21:29]requested_item shift.opened is exist - process it [10:21:29]req_shift_opened [10:21:29]FM_GetShiftState [10:21:29]SAM_PROTO_GetShiftState [10:21:29]wFMCommunicate request_size=4 [10:21:29]MH_SAM_APDU [10:21:29]CAPDU: 80 13 01 00 [10:21:29]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [10:21:29]Write i2c OK [10:21:29]MH_I2C_Read... [10:21:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:29]Read from MH i2c: E2 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 [10:21:29]MH_I2C_Read... [10:21:29]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [10:21:29]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:21:29]wFMCommunicate OK [10:21:29]SAM_PROTO_GetShiftState done [10:21:29]FM_GetShiftState done [10:21:29]req_shift_opened done [10:21:29]requested_item shift.open_date is exist - process it [10:21:29]req_shift_open_date [10:21:29]req_shift_open_date done [10:21:29]produce_requested_data done [10:21:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72536,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:21:29]process_action_free close_receipt [10:21:29]json_value_free [10:21:29]json_value_free done [10:21:29]process_json_proto returns [10:21:29]Send response to host [10:21:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72536,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:21:29]free response buf [10:21:29]execute_script done [10:21:29]execute_script returns [10:21:29]free content buf [10:21:29]Sock 10.Close socket [10:21:29]Sock 10.Thread stoped [10:21:32]recv_with_timeout no data received [10:21:39]Connected sock=11 [10:21:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 29 A2 07 01 53 B5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 40 00 00 00 F4 03 04 00 A6 65 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 58 1B 01 00 35 04 06 00 06 D7 57 F2 F7 69 BB 47 A2 E2 93 4A E5 CE [10:21:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EE 55 47 00 AC 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 34 36 36 32 10 04 04 00 58 1B 01 00 F4 03 04 00 71 10 1F 67 B6 04 01 00 00 1B 33 77 53 83 F4 57 8D [10:21:43]CommunicateWithHost err = 0 [10:21:43]CheckOFDResponse [10:21:43]1017 (14) - 77093643461234 [10:21:43]1041 (16) - 0000000000874662 [10:21:43]1040 (4) - 72536 [10:21:43]1012 (4) - 28.10.2024 04:17 [10:21:43]1206 (1) - 0 [10:21:43]OFD Sender: Remove packet 72536 [10:21:43]ProducePacketName [10:21:43]name=ofd_packets/00072536 [10:21:43]NVStorageDeleteData [10:21:43]OFD Sender: No OFD packet to send [10:21:45]recv_with_timeout no data received [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]recv_with_timeout no data received [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:12]recv_with_timeout no data received [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:26]recv_with_timeout no data received [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:39]recv_with_timeout no data received [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:57]recv_with_timeout no data received [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:27]recv_with_timeout no data received [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:44]OFD Sender: No OFD packet to send [10:24:45]recv_with_timeout no data received [10:24:49]OFD Sender: No OFD packet to send [10:24:54]OFD Sender: No OFD packet to send [10:24:59]OFD Sender: No OFD packet to send [10:25:04]OFD Sender: No OFD packet to send [10:25:09]OFD Sender: No OFD packet to send [10:25:14]OFD Sender: No OFD packet to send [10:25:19]OFD Sender: No OFD packet to send [10:25:24]OFD Sender: No OFD packet to send [10:25:29]OFD Sender: No OFD packet to send [10:25:34]OFD Sender: No OFD packet to send [10:25:39]OFD Sender: No OFD packet to send [10:25:44]OFD Sender: No OFD packet to send [10:25:49]OFD Sender: No OFD packet to send [10:25:54]OFD Sender: No OFD packet to send [10:25:56]recv_with_timeout no data received [10:25:59]OFD Sender: No OFD packet to send [10:26:04]OFD Sender: No OFD packet to send [10:26:09]OFD Sender: No OFD packet to send [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:36]recv_with_timeout no data received [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:08]recv_with_timeout no data received [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:58]recv_with_timeout no data received [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:08]recv_with_timeout no data received [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:37]recv_with_timeout no data received [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:47]recv_with_timeout no data received [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:25]recv_with_timeout no data received [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:47]recv_with_timeout no data received [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:54]accept exits with 9 [10:29:54]New connection [10:29:54]New thread 3067624804 created [10:29:54]Thread 3067481444 joined [10:29:54]Waiting for new connection... [10:29:54] Sock 9.Parse request [10:29:54]Sock 9.Check first char [10:29:54]Sock 9.First char is OK [10:29:54]request: POST /json_proto HTTP/1.0 [10:29:54]Method: POST [10:29:54]URL: /json_proto [10:29:54]Method is POST - this is cgi request [10:29:54]url: /json_proto [10:29:54]query_string will be loaded in cgi processing [10:29:54]execute_cgi json_proto POST (null) [10:29:54]execute_cgi path=json_proto method=POST [10:29:54]POST find Content-Length [10:29:54]Host: 172.17.43.195:8080 [10:29:54]Content-Length: 677 [10:29:54]Content-Type: application/json [10:29:54] [10:29:54]POST finish read [10:29:54]Found Content-Length = 677 [10:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]execute_script... [10:29: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)951983", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.340, "sum" : 290.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 290.00, "total" : 290.00, "payments": [ { "type": 0, "sum" : 290.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:54]POST & json_proto [10:29:54]process_json_proto [10:29:54]json parsed OK: [10:29:54]protocol is kg_v1.0 [10:29:54]action value=close_receipt [10:29:54]process_action close_receipt [10:29:54]cmd_close_receipt [10:29:54]MH_GetDate [10:29:54]Write to MH i2c: F0 00 00 45 01 35 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: F0 09 00 45 01 00 A3 67 1F 67 74 2C AD 66 81 [10:29:54]GetLastDocTimeStamp 1730110886 [10:29:54]current date 1730111395 [10:29:54]FM_GetShiftState [10:29:54]SAM_PROTO_GetShiftState [10:29:54]wFMCommunicate request_size=4 [10:29:54]MH_SAM_APDU [10:29:54]CAPDU: 80 13 01 00 [10:29:54]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [10:29:54]Write i2c OK [10:29:54]MH_I2C_Read... [10:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:54]Read from MH i2c: E2 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 [10:29:54]MH_I2C_Read... [10:29:54]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [10:29:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:29:54]wFMCommunicate OK [10:29:54]SAM_PROTO_GetShiftState done [10:29:54]FM_GetShiftState done [10:29:54]opened in 1730074113 [10:29:54]opened+sec_in_day 1730160513 [10:29:54]quantity*price = 29034 [10:29:54]sum+1 = 29036 [10:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 290.00 Внесено: 290.00 СДАЧА: 0.00 НСП 1% : 2.57 НДС 12% : 30.83 Наличными: 290.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 65 28.10.2024 10:29 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72537 ФПД: 12094286905233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102955&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72537&fm=12094286905233&tin=02508201610067®Number=0000000000091644&sum=29000 [10:29:56]StoreToDocumentArchive [10:29:56]shift 554 fd 72537 [10:29:56]save to /storage/0554/doc_00072537 [10:29:56]save last doc name /storage/0554/doc_00072537 to /storage/kkm_last_doc_name [10:29:56]save OK [10:29:56]Clear old archive folders... [10:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:56]tlvbuf is 004D8D80 [10:29:56]SAM_PROTO_ClearQueue [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 09 00 00 [10:29:56]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_ClearQueue done [10:29:56]KKMCreateOFDPacket [10:29:56]OFDProtocolAddRootSTLVToBuf [10:29:56]FM_MakeSignedData [10:29:56]FM_MakeSignedData [10:29:56]SAM_PROTO_SignData [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 0D 01 02 [10:29:56]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]wFMCommunicate request_size=255 [10:29:56]MH_SAM_APDU [10: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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 67 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1B 01 00 35 04 06 00 0A [10:29:56]Write to MH i2c: E2 02 01 55 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 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 67 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1B 01 00 35 04 06 00 0A 00 00 FB [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]wFMCommunicate request_size=10 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 0D 02 02 05 FF EB AC BF 91 [10:29:56]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 FF EB AC BF 91 00 00 C1 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [10:29:56]RAPDU: 90 00 [10:29:56]wFMCommunicate OK [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 0D 03 02 [10:29:56]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0B 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 0B 00 57 01 00 C3 D4 E7 8B 55 7E 1B 7C 90 00 47 [10:29:56]RAPDU: C3 D4 E7 8B 55 7E 1B 7C 90 00 [10:29:56]wFMCommunicate OK [10:29:56]SAM_PROTO_SignData done [10:29:56]FM_MakeSignedData done [10:29:56]CreateOFDProtocolMessage [10:29:56]wFMCommunicate request_size=4 [10:29:56]MH_SAM_APDU [10:29:56]CAPDU: 80 11 00 00 [10:29:56]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:56]Read from MH i2c: E2 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [10:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:29:56]wFMCommunicate OK [10:29:56]CreateOFDProtocolMessage done [10:29:56]OFDSenderStorePacket 72537 [10:29:56]StoreOFDPacket docnum=72537 [10:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 10 07 01 51 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 67 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1B 01 00 35 04 06 00 0A FF EB AC BF 91 C3 D4 E7 8B 55 7E 1B 7C [10:29:56]CheckFolder [10:29:56]dirname=/storage/ofd_packets [10:29:56]CheckFolder done [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00072537 [10:29:56]NVStorageSaveData ofd_packets/00072537 [10:29:56]File name is /storage/ofd_packets/00072537 [10:29:56]Write 301 bytes [10:29:56]NVStorageSaveData done [10:29:56]OFDSenderStorePacket done [10:29:56]KKMCreateOFDPacket done [10:29:56]NVStorageSaveData kkm_last_timestamp [10:29:56]File name is /storage/kkm_last_timestamp [10:29:56]Write 4 bytes [10:29:56]NVStorageSaveData done [10:29:56]ExternCall_PrintAddStr [10:29:56]wPrintStart [10:29:56]Write to MH i2c: 01 00 00 59 01 5A [10:29:56]Write i2c OK [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 [10:29:56]MH_I2C_Read... [10:29:56]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [10:29:56]RasterBufferAndPrint [10:29:56]line Счет N : (1)951983 [10:29:56]line ИНН: 02508201610067 [10:29:56]line Контрольно-Кассовый Чек [10:29:56]line ПРОДАЖА [10:29:56]line ТРК (МРК, ГНК) : 53 [10:29:56]line Товар: 2710124130 [10:29:56]line Аи-92-К-5 [10:29:56]line 4.340 * 66.90 [10:29:56]line = 290.35 [10:29:56]line НДС 12% НСП 1% [10:29:56]line > о реализуемом товаре [10:29:56]line ОКРУГЛЕНИЕ: -0.35 [10:29:56]line ИТОГО: 290.00 [10:29:56]line Внесено: 290.00 [10:29:56]line СДАЧА: 0.00 [10:29:56]line НСП 1% : 2.57 [10:29:56]line НДС 12% : 30.83 [10:29:56]line Наличными: 290.00 [10:29:56]line Безнал.: 0.00 [10:29:56]line Место: АЗС № 113 "Партнер Нефть" [10:29:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:29:56]line СНО: Общий режим [10:29:56]line Чек 65 28.10.2024 10:29 [10:29:56]line Смена: 554 ФФД: 1.0 [10:29:56]line ЗНМ: 0300000087 [10:29:56]line РНМ: 0000000000091644 [10:29:56]line Версия ККМ: 001 [10:29:56]line ФМ: 0000000000874662 [10:29:56]line ФД: 72537 [10:29:56]line ФПД: 12094286905233 [10:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T102955&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72537&fm=12094286905233&tin=02508201610067®Number=0000000000091644&sum=29000 [10:29:56]written 0, free lines is 4095 [10:29:56]OFD Sender: Processing packet 72537 [packets to send 273, broken 272] [10:29:56]ProducePacketName [10:29:56]name=ofd_packets/00072537 [10:29:56]OFD Sender: To server: pG, [10:29:56]CommunicateWithHost lk.salyk.kg:30040 [10:29:56]ConnectInit lk.salyk.kg [10:29:57]Write to MH i2c: 01 00 00 84 01 85 [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 07 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 C9 0C 61 [10:29:57]RasterBufferAndPrint [10:29:57]line [10:29:57]line [10:29:57]line [10:29:57]line [10:29:57]line [10:29:57]written 0, free lines is 3279 [10:29:57]MH_Cut [10:29:57]Write to MH i2c: D1 01 00 8B 01 01 5E [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: D1 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: D1 01 00 [10:29:57]MH_I2C_Read... [10:29:57]Read from MH i2c: D1 01 00 8B 01 00 5D [10:29:57]Write to MH i2c: 01 00 00 8C 01 8D [10:29:57]Write i2c OK [10:29:57]MH_I2C_Read... [10:29:57]*** Cut start [10:29:57]*** Partial cut [10:29:57]*** CUTSNS_PIN = 1 [10:29:57]*** CUTSNS_PIN = 0 [10:29:58]*** Brake cut motor [10:29:58]Read from MH i2c: 01 [10:29:58]MH_I2C_Read... [10:29:58]*** Stop cut motor [10:29:58]*** Cut end [10:29:58]Read from MH i2c: 01 07 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [10:29:58]process_action close_receipt done [10:29:58]requested_data is exist [10:29:58]produce_requested_data [10:29:58]requested_item fm.sn is exist - process it [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 11 00 00 [10:29:58]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [10:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:29:58]wFMCommunicate OK [10:29:58]requested_item fd.num is exist - process it [10:29:58]SAM_PROTO_GetFieldsCounters [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 00 00 [10:29:58]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [10: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 59 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetFieldsCounters done [10:29:58]requested_item shift.num is exist - process it [10:29:58]requested_item shift.opened is exist - process it [10:29:58]req_shift_opened [10:29:58]FM_GetShiftState [10:29:58]SAM_PROTO_GetShiftState [10:29:58]wFMCommunicate request_size=4 [10:29:58]MH_SAM_APDU [10:29:58]CAPDU: 80 13 01 00 [10:29:58]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [10:29:58]Write i2c OK [10:29:58]MH_I2C_Read... [10:29:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:58]Read from MH i2c: E2 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 [10:29:58]MH_I2C_Read... [10:29:58]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 75 [10:29:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:29:58]wFMCommunicate OK [10:29:58]SAM_PROTO_GetShiftState done [10:29:58]FM_GetShiftState done [10:29:58]req_shift_opened done [10:29:58]requested_item shift.open_date is exist - process it [10:29:58]req_shift_open_date [10:29:58]req_shift_open_date done [10:29:58]produce_requested_data done [10:29:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72537,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:29:58]process_action_free close_receipt [10:29:58]json_value_free [10:29:58]json_value_free done [10:29:58]process_json_proto returns [10:29:58]Send response to host [10:29:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72537,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:29:58]free response buf [10:29:58]execute_script done [10:29:58]execute_script returns [10:29:58]free content buf [10:29:58]Sock 9.Close socket [10:29:58]Sock 9.Thread stoped [10:30:04]recv_with_timeout no data received [10:30:05]Connected sock=11 [10:30:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 10 07 01 51 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 F4 10 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 6B 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 71 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 01 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0B 0C 00 00 00 00 07 04 06 00 48 71 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 A3 67 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 59 1B 01 00 35 04 06 00 0A FF EB AC BF 91 C3 D4 E7 8B 55 7E 1B 7C [10:30:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB 7B 47 00 11 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 34 36 36 32 10 04 04 00 59 1B 01 00 F4 03 04 00 6B 12 1F 67 B6 04 01 00 00 25 2A AB 98 07 45 B6 96 [10:30:09]CommunicateWithHost err = 0 [10:30:09]CheckOFDResponse [10:30:09]1017 (14) - 77093643461234 [10:30:09]1041 (16) - 0000000000874662 [10:30:09]1040 (4) - 72537 [10:30:09]1012 (4) - 28.10.2024 04:26 [10:30:09]1206 (1) - 0 [10:30:09]OFD Sender: Remove packet 72537 [10:30:09]ProducePacketName [10:30:09]name=ofd_packets/00072537 [10:30:09]NVStorageDeleteData [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:40]recv_with_timeout no data received [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:26]recv_with_timeout no data received [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:19]recv_with_timeout no data received [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:42]recv_with_timeout no data received [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]recv_with_timeout no data received [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]recv_with_timeout no data received [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:06]recv_with_timeout no data received [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:17]recv_with_timeout no data received [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:36]recv_with_timeout no data received [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:47]recv_with_timeout no data received [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:39]recv_with_timeout no data received [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:35]recv_with_timeout no data received [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:08]recv_with_timeout no data received [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:25]recv_with_timeout no data received [10:41:26]OFD Sender: No OFD packet to send [10:41:30]accept exits with 10 [10:41:30]New connection [10:41:30]New thread 3067481444 created [10:41:30]Thread 3067624804 joined [10:41:30]Waiting for new connection... [10:41:30] Sock 10.Parse request [10:41:30]Sock 10.Check first char [10:41:30]Sock 10.First char is OK [10:41:30]request: POST /json_proto HTTP/1.0 [10:41:30]Method: POST [10:41:30]URL: /json_proto [10:41:30]Method is POST - this is cgi request [10:41:30]url: /json_proto [10:41:30]query_string will be loaded in cgi processing [10:41:30]execute_cgi json_proto POST (null) [10:41:30]execute_cgi path=json_proto method=POST [10:41:30]POST find Content-Length [10:41:30]Host: 172.17.43.195:8080 [10:41:30]Content-Length: 800 [10:41:30]Content-Type: application/json [10:41:30] [10:41:30]POST finish read [10:41:30]Found Content-Length = 800 [10:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:30]execute_script... [10:41:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951987", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:30]POST & json_proto [10:41:30]process_json_proto [10:41:30]json parsed OK: [10:41:30]protocol is kg_v1.0 [10:41:30]action value=close_receipt [10:41:30]process_action close_receipt [10:41:30]cmd_close_receipt [10:41:30]MH_GetDate [10:41:30]Write to MH i2c: F0 00 00 90 01 80 [10:41:30]Write i2c OK [10:41:30]MH_I2C_Read... [10:41:30]Read from MH i2c: F0 [10:41:30]MH_I2C_Read... [10:41:30]Read from MH i2c: F0 09 00 [10:41:30]MH_I2C_Read... [10:41:30]Read from MH i2c: F0 09 00 90 01 00 5A 6A 1F 67 74 2C AD 66 86 [10:41:30]GetLastDocTimeStamp 1730111395 [10:41:30]current date 1730112090 [10:41:30]FM_GetShiftState [10:41:30]SAM_PROTO_GetShiftState [10:41:30]wFMCommunicate request_size=4 [10:41:30]MH_SAM_APDU [10:41:30]CAPDU: 80 13 01 00 [10:41:30]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [10:41:30]Write i2c OK [10:41:30]MH_I2C_Read... [10:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:30]Read from MH i2c: E2 [10:41:30]MH_I2C_Read... [10:41:30]Read from MH i2c: E2 0E 00 [10:41:30]MH_I2C_Read... [10:41:30]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 77 [10:41:30]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:41:30]wFMCommunicate OK [10:41:30]SAM_PROTO_GetShiftState done [10:41:30]FM_GetShiftState done [10:41:30]opened in 1730074113 [10:41:30]opened+sec_in_day 1730160513 [10:41:30]quantity*price = 30038 [10:41:30]sum+1 = 30039 [10:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 66 28.10.2024 10:41 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72538 ФПД: 12711259290939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104130&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72538&fm=12711259290939&tin=02508201610067®Number=0000000000091644&sum=30038 [10:41:31]StoreToDocumentArchive [10:41:31]shift 554 fd 72538 [10:41:31]save to /storage/0554/doc_00072538 [10:41:31]save last doc name /storage/0554/doc_00072538 to /storage/kkm_last_doc_name [10:41:31]save OK [10:41:31]Clear old archive folders... [10:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:41:31]tlvbuf is 00549CB0 [10:41:31]SAM_PROTO_ClearQueue [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 09 00 00 [10:41:31]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [10:41:31]RAPDU: 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_ClearQueue done [10:41:31]KKMCreateOFDPacket [10:41:31]OFDProtocolAddRootSTLVToBuf [10:41:31]FM_MakeSignedData [10:41:31]FM_MakeSignedData [10:41:31]SAM_PROTO_SignData [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 0D 01 02 [10:41:31]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [10:41:31]RAPDU: 90 00 [10:41:31]wFMCommunicate OK [10:41:31]wFMCommunicate request_size=255 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5A 6A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1B 01 00 35 04 06 00 0B [10:41:31]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 42 00 00 00 F4 03 04 00 5A 6A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1B 01 00 35 04 06 00 0B 00 00 21 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [10:41:31]RAPDU: 90 00 [10:41:31]wFMCommunicate OK [10:41:31]wFMCommunicate request_size=10 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 0D 02 02 05 8F 92 18 3D 3B [10:41:31]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 8F 92 18 3D 3B 00 00 D7 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [10:41:31]RAPDU: 90 00 [10:41:31]wFMCommunicate OK [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 0D 03 02 [10:41:31]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0B 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 0B 00 A2 01 00 82 ED 4E 9F 5E 12 40 15 90 00 40 [10:41:31]RAPDU: 82 ED 4E 9F 5E 12 40 15 90 00 [10:41:31]wFMCommunicate OK [10:41:31]SAM_PROTO_SignData done [10:41:31]FM_MakeSignedData done [10:41:31]CreateOFDProtocolMessage [10:41:31]wFMCommunicate request_size=4 [10:41:31]MH_SAM_APDU [10:41:31]CAPDU: 80 11 00 00 [10:41:31]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:31]Read from MH i2c: E2 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [10:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:41:31]wFMCommunicate OK [10:41:31]CreateOFDProtocolMessage done [10:41:31]OFDSenderStorePacket 72538 [10:41:31]StoreOFDPacket docnum=72538 [10:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E CC 07 01 94 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5A 6A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1B 01 00 35 04 06 00 0B 8F 92 18 3D 3B 82 ED 4E 9F 5E 12 40 15 [10:41:31]CheckFolder [10:41:31]dirname=/storage/ofd_packets [10:41:31]CheckFolder done [10:41:31]ProducePacketName [10:41:31]name=ofd_packets/00072538 [10:41:31]NVStorageSaveData ofd_packets/00072538 [10:41:31]File name is /storage/ofd_packets/00072538 [10:41:31]Write 301 bytes [10:41:31]NVStorageSaveData done [10:41:31]OFDSenderStorePacket done [10:41:31]KKMCreateOFDPacket done [10:41:31]NVStorageSaveData kkm_last_timestamp [10:41:31]File name is /storage/kkm_last_timestamp [10:41:31]Write 4 bytes [10:41:31]NVStorageSaveData done [10:41:31]ExternCall_PrintAddStr [10:41:31]wPrintStart [10:41:31]Write to MH i2c: 01 00 00 A4 01 A5 [10:41:31]Write i2c OK [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 [10:41:31]MH_I2C_Read... [10:41:31]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [10:41:31]RasterBufferAndPrint [10:41:31]line Счет N : (1)951987 [10:41:31]line ИНН: 02508201610067 [10:41:31]line Контрольно-Кассовый Чек [10:41:31]line ПРОДАЖА [10:41:31]line ТРК (МРК, ГНК) : 63 [10:41:31]line Товар: 2710124130 [10:41:31]line Аи-92-К-5 [10:41:31]line 4.490 * 66.90 [10:41:31]line = 300.38 [10:41:31]line НДС 12% НСП 1% [10:41:31]line > о реализуемом товаре [10:41:31]line ИТОГО: 300.38 [10:41:31]line НСП 1% : 2.66 [10:41:31]line НДС 12% : 31.90 [10:41:31]line Наличными: 0.00 [10:41:31]line Безнал.: 300.38 [10:41:31]line Место: АЗС № 113 "Партнер Нефть" [10:41:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:41:31]line СНО: Общий режим [10:41:31]line Чек 66 28.10.2024 10:41 [10:41:31]line Смена: 554 ФФД: 1.0 [10:41:31]line ЗНМ: 0300000087 [10:41:31]line РНМ: 0000000000091644 [10:41:31]line Версия ККМ: 001 [10:41:31]line Платежная система: O! деньги [10:41:31]line ФМ: 0000000000874662 [10:41:31]line ФД: 72538 [10:41:31]line ФПД: 12711259290939 [10:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104130&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72538&fm=12711259290939&tin=02508201610067®Number=0000000000091644&sum=30038 [10:41:32]OFD Sender: Processing packet 72538 [packets to send 273, broken 272] [10:41:32]ProducePacketName [10:41:32]name=ofd_packets/00072538 [10:41:32]OFD Sender: To server: pG, [10:41:32]CommunicateWithHost lk.salyk.kg:30040 [10:41:32]ConnectInit lk.salyk.kg [10:41:32]written 0, free lines is 4095 [10:41:32]Write to MH i2c: 01 00 00 CE 01 CF [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 07 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 DD 0C BF [10:41:32]RasterBufferAndPrint [10:41:32]line [10:41:32]line [10:41:32]line [10:41:32]line [10:41:32]line [10:41:32]written 0, free lines is 3299 [10:41:32]MH_Cut [10:41:32]Write to MH i2c: D1 01 00 D5 01 01 A8 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: D1 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: D1 01 00 [10:41:32]MH_I2C_Read... [10:41:32]Read from MH i2c: D1 01 00 D5 01 00 A7 [10:41:32]Write to MH i2c: 01 00 00 D6 01 D7 [10:41:32]Write i2c OK [10:41:32]MH_I2C_Read... [10:41:33]*** Cut start [10:41:33]*** Partial cut [10:41:33]*** CUTSNS_PIN = 1 [10:41:33]*** CUTSNS_PIN = 0 [10:41:33]*** Brake cut motor [10:41:34]Read from MH i2c: 01 [10:41:34]MH_I2C_Read... [10:41:34]*** Stop cut motor [10:41:34]*** Cut end [10:41:34]Read from MH i2c: 01 07 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [10:41:34]process_action close_receipt done [10:41:34]requested_data is exist [10:41:34]produce_requested_data [10:41:34]requested_item fm.sn is exist - process it [10:41:34]wFMCommunicate request_size=4 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 11 00 00 [10:41:34]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 17 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [10:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:41:34]wFMCommunicate OK [10:41:34]requested_item fd.num is exist - process it [10:41:34]SAM_PROTO_GetFieldsCounters [10:41:34]wFMCommunicate request_size=4 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 13 00 00 [10:41:34]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 62 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [10:41: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:34]wFMCommunicate OK [10:41:34]SAM_PROTO_GetFieldsCounters done [10:41:34]requested_item shift.num is exist - process it [10:41:34]requested_item shift.opened is exist - process it [10:41:34]req_shift_opened [10:41:34]FM_GetShiftState [10:41:34]SAM_PROTO_GetShiftState [10:41:34]wFMCommunicate request_size=4 [10:41:34]MH_SAM_APDU [10:41:34]CAPDU: 80 13 01 00 [10:41:34]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [10:41:34]Write i2c OK [10:41:34]MH_I2C_Read... [10:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:34]Read from MH i2c: E2 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 0E 00 [10:41:34]MH_I2C_Read... [10:41:34]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BF [10:41:34]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:41:34]wFMCommunicate OK [10:41:34]SAM_PROTO_GetShiftState done [10:41:34]FM_GetShiftState done [10:41:34]req_shift_opened done [10:41:34]requested_item shift.open_date is exist - process it [10:41:34]req_shift_open_date [10:41:34]req_shift_open_date done [10:41:34]produce_requested_data done [10:41:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72538,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:41:34]process_action_free close_receipt [10:41:34]json_value_free [10:41:34]json_value_free done [10:41:34]process_json_proto returns [10:41:34]Send response to host [10:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72538,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:41:34]free response buf [10:41:34]execute_script done [10:41:34]execute_script returns [10:41:34]free content buf [10:41:34]Sock 10.Close socket [10:41:34]Sock 10.Thread stoped [10:41:36]recv_with_timeout no data received [10:41:37]ConnectInit Can't take IP for lk.salyk.kg [10:41:37]CommunicateWithHost connect error [10:41:37]CommunicateWithHost err = -1 [10:41:37]OFD Sender: Server communicate error [10:41:42]OFD Sender: Processing packet 72538 [packets to send 273, broken 272] [10:41:42]ProducePacketName [10:41:42]name=ofd_packets/00072538 [10:41:42]OFD Sender: To server: pG, [10:41:42]CommunicateWithHost lk.salyk.kg:30040 [10:41:42]ConnectInit lk.salyk.kg [10:41:52]recv_with_timeout no data received [10:41:58]Connected sock=10 [10:41:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2E CC 07 01 94 F5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 42 00 00 00 F4 03 04 00 5A 6A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5A 1B 01 00 35 04 06 00 0B 8F 92 18 3D 3B 82 ED 4E 9F 5E 12 40 15 [10:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 38 8C 47 00 9E 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 34 36 36 32 10 04 04 00 5A 1B 01 00 F4 03 04 00 33 15 1F 67 B6 04 01 00 00 F5 DC 48 9F FE F7 72 25 [10:41:59]CommunicateWithHost err = 0 [10:41:59]CheckOFDResponse [10:41:59]1017 (14) - 77093643461234 [10:41:59]1041 (16) - 0000000000874662 [10:41:59]1040 (4) - 72538 [10:41:59]1012 (4) - 28.10.2024 04:38 [10:41:59]1206 (1) - 0 [10:41:59]OFD Sender: Remove packet 72538 [10:41:59]ProducePacketName [10:41:59]name=ofd_packets/00072538 [10:41:59]NVStorageDeleteData [10:41:59]OFD Sender: No OFD packet to send [10:42:04]OFD Sender: No OFD packet to send [10:42:09]OFD Sender: No OFD packet to send [10:42:14]OFD Sender: No OFD packet to send [10:42:19]OFD Sender: No OFD packet to send [10:42:24]OFD Sender: No OFD packet to send [10:42:29]OFD Sender: No OFD packet to send [10:42:34]OFD Sender: No OFD packet to send [10:42:36]recv_with_timeout no data received [10:42:39]OFD Sender: No OFD packet to send [10:42:44]OFD Sender: No OFD packet to send [10:42:49]OFD Sender: No OFD packet to send [10:42:54]OFD Sender: No OFD packet to send [10:42:59]OFD Sender: No OFD packet to send [10:43:04]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:13]recv_with_timeout no data received [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:50]recv_with_timeout no data received [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:13]recv_with_timeout no data received [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:45]recv_with_timeout no data received [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:25]OFD Sender: No OFD packet to send [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:36]recv_with_timeout no data received [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:45:59]recv_with_timeout no data received [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:18]recv_with_timeout no data received [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:43]recv_with_timeout no data received [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:46:59]recv_with_timeout no data received [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:23]recv_with_timeout no data received [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:42]recv_with_timeout no data received [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:39]accept exits with 7 [10:49:39]New connection [10:49:39]New thread 3067624804 created [10:49:39]Thread 3067481444 joined [10:49:39]Waiting for new connection... [10:49:39] Sock 7.Parse request [10:49:39]Sock 7.Check first char [10:49:39]Sock 7.First char is OK [10:49:39]request: POST /json_proto HTTP/1.0 [10:49:39]Method: POST [10:49:39]URL: /json_proto [10:49:39]Method is POST - this is cgi request [10:49:39]url: /json_proto [10:49:39]query_string will be loaded in cgi processing [10:49:39]execute_cgi json_proto POST (null) [10:49:39]execute_cgi path=json_proto method=POST [10:49:39]POST find Content-Length [10:49:39]Host: 172.17.43.195:8080 [10:49:39]Content-Length: 792 [10:49:39]Content-Type: application/json [10:49:39] [10:49:39]POST finish read [10:49:39]Found Content-Length = 792 [10:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:39]execute_script... [10: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)951989", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:39]POST & json_proto [10:49:39]process_json_proto [10:49:39]json parsed OK: [10:49:39]protocol is kg_v1.0 [10:49:39]action value=close_receipt [10:49:39]process_action close_receipt [10:49:39]cmd_close_receipt [10:49:39]MH_GetDate [10:49:39]Write to MH i2c: F0 00 00 DA 01 CA [10:49:39]Write i2c OK [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: F0 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: F0 09 00 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: F0 09 00 DA 01 00 44 6C 1F 67 74 2C AD 66 BC [10:49:39]GetLastDocTimeStamp 1730112090 [10:49:39]current date 1730112580 [10:49:39]FM_GetShiftState [10:49:39]SAM_PROTO_GetShiftState [10:49:39]wFMCommunicate request_size=4 [10:49:39]MH_SAM_APDU [10:49:39]CAPDU: 80 13 01 00 [10:49:39]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [10:49:39]Write i2c OK [10:49:39]MH_I2C_Read... [10:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:39]Read from MH i2c: E2 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 0E 00 [10:49:39]MH_I2C_Read... [10:49:39]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C1 [10:49:39]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:49:39]wFMCommunicate OK [10:49:39]SAM_PROTO_GetShiftState done [10:49:39]FM_GetShiftState done [10:49:39]opened in 1730074113 [10:49:39]opened+sec_in_day 1730160513 [10:49:39]quantity*price = 0 [10:49:39]sum+1 = 1 [10:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 67 28.10.2024 10:49 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72539 ФПД: 89733572224682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104940&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72539&fm=89733572224682&tin=02508201610067®Number=0000000000091644&sum=0 [10:49:40]StoreToDocumentArchive [10:49:40]shift 554 fd 72539 [10:49:40]save to /storage/0554/doc_00072539 [10:49:40]save last doc name /storage/0554/doc_00072539 to /storage/kkm_last_doc_name [10:49:40]save OK [10:49:40]Clear old archive folders... [10:49:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:40]tlvbuf is 0054F8A0 [10:49:40]SAM_PROTO_ClearQueue [10:49:40]wFMCommunicate request_size=4 [10:49:40]MH_SAM_APDU [10:49:40]CAPDU: 80 09 00 00 [10:49:40]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:40]Read from MH i2c: E2 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [10:49:40]RAPDU: 90 00 [10:49:40]wFMCommunicate OK [10:49:40]SAM_PROTO_ClearQueue done [10:49:40]KKMCreateOFDPacket [10:49:40]OFDProtocolAddRootSTLVToBuf [10:49:40]FM_MakeSignedData [10:49:40]FM_MakeSignedData [10:49:40]SAM_PROTO_SignData [10:49:40]wFMCommunicate request_size=4 [10:49:40]MH_SAM_APDU [10:49:40]CAPDU: 80 0D 01 02 [10:49:40]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:40]OFD Sender: No OFD packet to send [10:49:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:40]Read from MH i2c: E2 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [10:49:40]RAPDU: 90 00 [10:49:40]wFMCommunicate OK [10:49:40]wFMCommunicate request_size=255 [10:49:40]MH_SAM_APDU [10:49: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 43 00 00 00 F4 03 04 00 44 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1B 01 00 35 04 06 00 51 [10:49:40]Write to MH i2c: E2 02 01 EA 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 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 43 00 00 00 F4 03 04 00 44 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1B 01 00 35 04 06 00 51 00 00 48 [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:40]Read from MH i2c: E2 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 [10:49:40]MH_I2C_Read... [10:49:40]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [10:49:40]RAPDU: 90 00 [10:49:40]wFMCommunicate OK [10:49:40]wFMCommunicate request_size=10 [10:49:40]MH_SAM_APDU [10:49:40]CAPDU: 80 0D 02 02 05 9C B9 B2 66 AA [10:49:40]Write to MH i2c: E2 0D 00 EB 01 80 0D 02 02 05 00 9C B9 B2 66 AA 00 00 87 [10:49:40]Write i2c OK [10:49:40]MH_I2C_Read... [10:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:41]Read from MH i2c: E2 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [10:49:41]RAPDU: 90 00 [10:49:41]wFMCommunicate OK [10:49:41]wFMCommunicate request_size=4 [10:49:41]MH_SAM_APDU [10:49:41]CAPDU: 80 0D 03 02 [10:49:41]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:41]Read from MH i2c: E2 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 0B 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 0B 00 EC 01 00 01 5F E7 D0 57 A3 B2 73 90 00 9F [10:49:41]RAPDU: 01 5F E7 D0 57 A3 B2 73 90 00 [10:49:41]wFMCommunicate OK [10:49:41]SAM_PROTO_SignData done [10:49:41]FM_MakeSignedData done [10:49:41]CreateOFDProtocolMessage [10:49:41]wFMCommunicate request_size=4 [10:49:41]MH_SAM_APDU [10:49:41]CAPDU: 80 11 00 00 [10:49:41]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:41]Read from MH i2c: E2 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 17 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BC [10:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:49:41]wFMCommunicate OK [10:49:41]CreateOFDProtocolMessage done [10:49:41]OFDSenderStorePacket 72539 [10:49:41]StoreOFDPacket docnum=72539 [10:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1E C6 07 01 3A F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 44 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1B 01 00 35 04 06 00 51 9C B9 B2 66 AA 01 5F E7 D0 57 A3 B2 73 [10:49:41]CheckFolder [10:49:41]dirname=/storage/ofd_packets [10:49:41]CheckFolder done [10:49:41]ProducePacketName [10:49:41]name=ofd_packets/00072539 [10:49:41]NVStorageSaveData ofd_packets/00072539 [10:49:41]File name is /storage/ofd_packets/00072539 [10:49:41]Write 301 bytes [10:49:41]NVStorageSaveData done [10:49:41]OFDSenderStorePacket done [10:49:41]KKMCreateOFDPacket done [10:49:41]NVStorageSaveData kkm_last_timestamp [10:49:41]File name is /storage/kkm_last_timestamp [10:49:41]Write 4 bytes [10:49:41]NVStorageSaveData done [10:49:41]ExternCall_PrintAddStr [10:49:41]wPrintStart [10:49:41]Write to MH i2c: 01 00 00 EE 01 EF [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 07 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [10:49:41]RasterBufferAndPrint [10:49:41]line Счет N : (1)951989 [10:49:41]line ИНН: 02508201610067 [10:49:41]line Контрольно-Кассовый Чек [10:49:41]line ПРОДАЖА [10:49:41]line ТРК (МРК, ГНК) : 63 [10:49:41]line Товар: 2710124130 [10:49:41]line Аи-92-К-5 [10:49:41]line 20.000 * 0.00 [10:49:41]line = 0.00 [10:49:41]line НДС 12% НСП 1% [10:49:41]line > о реализуемом товаре [10:49:41]line ИТОГО: 0.00 [10:49:41]line НСП 1% : 0.00 [10:49:41]line НДС 12% : 0.00 [10:49:41]line Наличными: 0.00 [10:49:41]line Безнал.: 0.00 [10:49:41]line Место: АЗС № 113 "Партнер Нефть" [10:49:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:49:41]line СНО: Общий режим [10:49:41]line Чек 67 28.10.2024 10:49 [10:49:41]line Смена: 554 ФФД: 1.0 [10:49:41]line ЗНМ: 0300000087 [10:49:41]line РНМ: 0000000000091644 [10:49:41]line Версия ККМ: 001 [10:49:41]line Талоны: Топливная Карта [10:49:41]line 03047 [10:49:41]line ФМ: 0000000000874662 [10:49:41]line ФД: 72539 [10:49:41]line ФПД: 89733572224682 [10:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T104940&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72539&fm=89733572224682&tin=02508201610067®Number=0000000000091644&sum=0 [10:49:41]written 0, free lines is 4095 [10:49:41]OFD Sender: Processing packet 72539 [packets to send 273, broken 272] [10:49:41]ProducePacketName [10:49:41]name=ofd_packets/00072539 [10:49:41]OFD Sender: To server: pG, [10:49:41]CommunicateWithHost lk.salyk.kg:30040 [10:49:41]ConnectInit lk.salyk.kg [10:49:41]Write to MH i2c: 01 00 00 18 02 1A [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 07 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 E5 0C 12 [10:49:41]RasterBufferAndPrint [10:49:41]line [10:49:41]line [10:49:41]line [10:49:41]line [10:49:41]line [10:49:41]written 0, free lines is 3308 [10:49:41]MH_Cut [10:49:41]Write to MH i2c: D1 01 00 1F 02 01 F3 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: D1 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: D1 01 00 [10:49:41]MH_I2C_Read... [10:49:41]Read from MH i2c: D1 01 00 1F 02 00 F2 [10:49:41]Write to MH i2c: 01 00 00 20 02 22 [10:49:41]Write i2c OK [10:49:41]MH_I2C_Read... [10:49:42]*** Cut start [10:49:42]*** Partial cut [10:49:42]*** CUTSNS_PIN = 1 [10:49:42]*** CUTSNS_PIN = 0 [10:49:42]*** Brake cut motor [10:49:43]Read from MH i2c: 01 [10:49:43]MH_I2C_Read... [10:49:43]*** Stop cut motor [10:49:43]*** Cut end [10:49:43]Read from MH i2c: 01 07 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [10:49:43]process_action close_receipt done [10:49:43]requested_data is exist [10:49:43]produce_requested_data [10:49:43]requested_item fm.sn is exist - process it [10:49:43]wFMCommunicate request_size=4 [10:49:43]MH_SAM_APDU [10:49:43]CAPDU: 80 11 00 00 [10:49:43]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:43]Read from MH i2c: E2 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 17 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [10:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:49:43]wFMCommunicate OK [10:49:43]requested_item fd.num is exist - process it [10:49:43]SAM_PROTO_GetFieldsCounters [10:49:43]wFMCommunicate request_size=4 [10:49:43]MH_SAM_APDU [10:49:43]CAPDU: 80 13 00 00 [10:49:43]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:43]Read from MH i2c: E2 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 62 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 62 00 22 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [10:49: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:43]wFMCommunicate OK [10:49:43]SAM_PROTO_GetFieldsCounters done [10:49:43]requested_item shift.num is exist - process it [10:49:43]requested_item shift.opened is exist - process it [10:49:43]req_shift_opened [10:49:43]FM_GetShiftState [10:49:43]SAM_PROTO_GetShiftState [10:49:43]wFMCommunicate request_size=4 [10:49:43]MH_SAM_APDU [10:49:43]CAPDU: 80 13 01 00 [10:49:43]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [10:49:43]Write i2c OK [10:49:43]MH_I2C_Read... [10:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:43]Read from MH i2c: E2 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 0E 00 [10:49:43]MH_I2C_Read... [10:49:43]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0A [10:49:43]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:49:43]wFMCommunicate OK [10:49:43]SAM_PROTO_GetShiftState done [10:49:43]FM_GetShiftState done [10:49:43]req_shift_opened done [10:49:43]requested_item shift.open_date is exist - process it [10:49:43]req_shift_open_date [10:49:43]req_shift_open_date done [10:49:43]produce_requested_data done [10:49:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72539,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:49:43]process_action_free close_receipt [10:49:43]json_value_free [10:49:43]json_value_free done [10:49:43]process_json_proto returns [10:49:43]Send response to host [10:49:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72539,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:49:43]free response buf [10:49:43]execute_script done [10:49:43]execute_script returns [10:49:43]free content buf [10:49:43]Sock 7.Close socket [10:49:43]Sock 7.Thread stoped [10:49:44]Connected sock=9 [10:49:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1E C6 07 01 3A F1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 43 00 00 00 F4 03 04 00 44 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1B 01 00 35 04 06 00 51 9C B9 B2 66 AA 01 5F E7 D0 57 A3 B2 73 [10:49:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C7 2A 47 00 6B 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5B 1B 01 00 F4 03 04 00 05 17 1F 67 B6 04 01 00 00 05 06 A3 3B EF FF 11 F1 [10:49:45]CommunicateWithHost err = 0 [10:49:45]CheckOFDResponse [10:49:45]1017 (14) - 77093643461234 [10:49:45]1041 (16) - 0000000000874662 [10:49:45]1040 (4) - 72539 [10:49:45]1012 (4) - 28.10.2024 04:45 [10:49:45]1206 (1) - 0 [10:49:45]OFD Sender: Remove packet 72539 [10:49:45]ProducePacketName [10:49:45]name=ofd_packets/00072539 [10:49:45]NVStorageDeleteData [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:07]recv_with_timeout no data received [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]accept exits with 10 [10:51:50]New connection [10:51:50]New thread 3067481444 created [10:51:50]Thread 3067624804 joined [10:51:50]Waiting for new connection... [10:51:50] Sock 10.Parse request [10:51:50]Sock 10.Check first char [10:51:50]Sock 10.First char is OK [10:51:50]request: POST /json_proto HTTP/1.0 [10:51:50]Method: POST [10:51:50]URL: /json_proto [10:51:50]Method is POST - this is cgi request [10:51:50]url: /json_proto [10:51:50]query_string will be loaded in cgi processing [10:51:50]execute_cgi json_proto POST (null) [10:51:50]execute_cgi path=json_proto method=POST [10:51:50]POST find Content-Length [10:51:50]Host: 172.17.43.195:8080 [10:51:50]Content-Length: 682 [10:51:50]Content-Type: application/json [10:51:50] [10:51:50]POST finish read [10:51:50]Found Content-Length = 682 [10:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:50]execute_script... [10:51: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)951990", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:51:50]POST & json_proto [10:51:50]process_json_proto [10:51:50]json parsed OK: [10:51:50]protocol is kg_v1.0 [10:51:50]action value=close_receipt [10:51:50]process_action close_receipt [10:51:50]cmd_close_receipt [10:51:50]MH_GetDate [10:51:50]Write to MH i2c: F0 00 00 24 02 15 [10:51:50]Write i2c OK [10:51:50]MH_I2C_Read... [10:51:50]Read from MH i2c: F0 [10:51:50]MH_I2C_Read... [10:51:50]Read from MH i2c: F0 09 00 [10:51:50]MH_I2C_Read... [10:51:50]Read from MH i2c: F0 09 00 24 02 00 C6 6C 1F 67 74 2C AD 66 89 [10:51:50]GetLastDocTimeStamp 1730112580 [10:51:50]current date 1730112710 [10:51:50]FM_GetShiftState [10:51:50]SAM_PROTO_GetShiftState [10:51:50]wFMCommunicate request_size=4 [10:51:50]MH_SAM_APDU [10:51:50]CAPDU: 80 13 01 00 [10:51:50]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [10:51:50]Write i2c OK [10:51:50]MH_I2C_Read... [10:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:50]Read from MH i2c: E2 [10:51:50]MH_I2C_Read... [10:51:50]Read from MH i2c: E2 0E 00 [10:51:50]MH_I2C_Read... [10:51:50]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0C [10:51:50]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:51:50]wFMCommunicate OK [10:51:50]SAM_PROTO_GetShiftState done [10:51:50]FM_GetShiftState done [10:51:50]opened in 1730074113 [10:51:50]opened+sec_in_day 1730160513 [10:51:50]quantity*price = 200043 [10:51:50]sum+1 = 200044 [10:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 68 28.10.2024 10:51 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72540 ФПД: 140426729937966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105150&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72540&fm=140426729937966&tin=02508201610067®Number=0000000000091644&sum=200000 [10:51:51]StoreToDocumentArchive [10:51:51]shift 554 fd 72540 [10:51:51]save to /storage/0554/doc_00072540 [10:51:51]save last doc name /storage/0554/doc_00072540 to /storage/kkm_last_doc_name [10:51:51]save OK [10:51:51]Clear old archive folders... [10:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:51:51]tlvbuf is 004D79B0 [10:51:51]SAM_PROTO_ClearQueue [10:51:51]wFMCommunicate request_size=4 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 09 00 00 [10:51:51]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [10:51:51]RAPDU: 90 00 [10:51:51]wFMCommunicate OK [10:51:51]SAM_PROTO_ClearQueue done [10:51:51]KKMCreateOFDPacket [10:51:51]OFDProtocolAddRootSTLVToBuf [10:51:51]FM_MakeSignedData [10:51:51]FM_MakeSignedData [10:51:51]SAM_PROTO_SignData [10:51:51]wFMCommunicate request_size=4 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 0D 01 02 [10:51:51]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [10:51:51]RAPDU: 90 00 [10:51:51]wFMCommunicate OK [10:51:51]wFMCommunicate request_size=255 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1B 01 00 35 04 06 00 7F [10:51:51]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1B 01 00 35 04 06 00 7F 00 00 02 [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [10:51:51]RAPDU: 90 00 [10:51:51]wFMCommunicate OK [10:51:51]wFMCommunicate request_size=10 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 0D 02 02 05 B7 A5 5A DC 2E [10:51:51]Write to MH i2c: E2 0D 00 35 02 80 0D 02 02 05 00 B7 A5 5A DC 2E 00 00 7B [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [10:51:51]RAPDU: 90 00 [10:51:51]wFMCommunicate OK [10:51:51]wFMCommunicate request_size=4 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 0D 03 02 [10:51:51]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 0B 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 0B 00 36 02 00 E2 D8 65 26 75 0C 28 2E 90 00 D0 [10:51:51]RAPDU: E2 D8 65 26 75 0C 28 2E 90 00 [10:51:51]wFMCommunicate OK [10:51:51]SAM_PROTO_SignData done [10:51:51]FM_MakeSignedData done [10:51:51]CreateOFDProtocolMessage [10:51:51]wFMCommunicate request_size=4 [10:51:51]MH_SAM_APDU [10:51:51]CAPDU: 80 11 00 00 [10:51:51]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:51]Read from MH i2c: E2 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 17 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [10:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:51:51]wFMCommunicate OK [10:51:51]CreateOFDProtocolMessage done [10:51:51]OFDSenderStorePacket 72540 [10:51:51]StoreOFDPacket docnum=72540 [10:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 45 07 01 C5 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1B 01 00 35 04 06 00 7F B7 A5 5A DC 2E E2 D8 65 26 75 0C 28 2E [10:51:51]CheckFolder [10:51:51]dirname=/storage/ofd_packets [10:51:51]CheckFolder done [10:51:51]ProducePacketName [10:51:51]name=ofd_packets/00072540 [10:51:51]NVStorageSaveData ofd_packets/00072540 [10:51:51]File name is /storage/ofd_packets/00072540 [10:51:51]Write 301 bytes [10:51:51]NVStorageSaveData done [10:51:51]OFDSenderStorePacket done [10:51:51]KKMCreateOFDPacket done [10:51:51]NVStorageSaveData kkm_last_timestamp [10:51:51]File name is /storage/kkm_last_timestamp [10:51:51]Write 4 bytes [10:51:51]NVStorageSaveData done [10:51:51]ExternCall_PrintAddStr [10:51:51]wPrintStart [10:51:51]Write to MH i2c: 01 00 00 38 02 3A [10:51:51]Write i2c OK [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: 01 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: 01 07 00 [10:51:51]MH_I2C_Read... [10:51:51]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [10:51:51]RasterBufferAndPrint [10:51:51]line Счет N : (1)951990 [10:51:51]line ИНН: 02508201610067 [10:51:51]line Контрольно-Кассовый Чек [10:51:51]line ПРОДАЖА [10:51:51]line ТРК (МРК, ГНК) : 41 [10:51:51]line Товар: 2710124500 [10:51:51]line Аи-95-К-3 [10:51:51]line 26.960 * 74.20 [10:51:51]line = 2000.43 [10:51:51]line НДС 12% НСП 1% [10:51:51]line > о реализуемом товаре [10:51:51]line ОКРУГЛЕНИЕ: -0.43 [10:51:51]line ИТОГО: 2000.00 [10:51:51]line Внесено: 2000.00 [10:51:51]line СДАЧА: 0.00 [10:51:51]line НСП 1% : 17.70 [10:51:51]line НДС 12% : 212.43 [10:51:51]line Наличными: 2000.00 [10:51:51]line Безнал.: 0.00 [10:51:51]line Место: АЗС № 113 "Партнер Нефть" [10:51:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:51:51]line СНО: Общий режим [10:51:51]line Чек 68 28.10.2024 10:51 [10:51:51]line Смена: 554 ФФД: 1.0 [10:51:51]line ЗНМ: 0300000087 [10:51:51]line РНМ: 0000000000091644 [10:51:51]line Версия ККМ: 001 [10:51:51]line ФМ: 0000000000874662 [10:51:51]line ФД: 72540 [10:51:51]line ФПД: 140426729937966 [10:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105150&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72540&fm=140426729937966&tin=02508201610067®Number=0000000000091644&sum=200000 [10:51:52]OFD Sender: Processing packet 72540 [packets to send 273, broken 272] [10:51:52]ProducePacketName [10:51:52]name=ofd_packets/00072540 [10:51:52]OFD Sender: To server: pG, [10:51:52]CommunicateWithHost lk.salyk.kg:30040 [10:51:52]ConnectInit lk.salyk.kg [10:51:52]written 0, free lines is 4095 [10:51:52]Write to MH i2c: 01 00 00 63 02 65 [10:51:52]Write i2c OK [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: 01 [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: 01 07 00 [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 D6 0C 4E [10:51:52]RasterBufferAndPrint [10:51:52]line [10:51:52]line [10:51:52]line [10:51:52]line [10:51:52]line [10:51:52]written 0, free lines is 3295 [10:51:52]Connected sock=7 [10:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 45 07 01 C5 BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 C6 6C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5C 1B 01 00 35 04 06 00 7F B7 A5 5A DC 2E E2 D8 65 26 75 0C 28 2E [10:51:52]MH_Cut [10:51:52]Write to MH i2c: D1 01 00 6A 02 01 3E [10:51:52]Write i2c OK [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: D1 [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: D1 01 00 [10:51:52]MH_I2C_Read... [10:51:52]Read from MH i2c: D1 01 00 6A 02 00 3D [10:51:52]Write to MH i2c: 01 00 00 6B 02 6D [10:51:52]Write i2c OK [10:51:52]MH_I2C_Read... [10:51:53]*** Cut start [10:51:53]*** Partial cut [10:51:53]*** CUTSNS_PIN = 1 [10:51:53]*** CUTSNS_PIN = 0 [10:51:53]*** Brake cut motor [10:51:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 52 9E 47 00 1C 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 34 36 36 32 10 04 04 00 5C 1B 01 00 F4 03 04 00 85 17 1F 67 B6 04 01 00 00 1A D0 90 77 E2 39 74 77 [10:51:53]CommunicateWithHost err = 0 [10:51:53]CheckOFDResponse [10:51:53]1017 (14) - 77093643461234 [10:51:53]1041 (16) - 0000000000874662 [10:51:53]1040 (4) - 72540 [10:51:53]1012 (4) - 28.10.2024 04:48 [10:51:53]1206 (1) - 0 [10:51:53]OFD Sender: Remove packet 72540 [10:51:53]ProducePacketName [10:51:53]name=ofd_packets/00072540 [10:51:53]NVStorageDeleteData [10:51:54]Read from MH i2c: 01 [10:51:54]MH_I2C_Read... [10:51:54]*** Stop cut motor [10:51:54]*** Cut end [10:51:54]Read from MH i2c: 01 07 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [10:51:54]process_action close_receipt done [10:51:54]requested_data is exist [10:51:54]produce_requested_data [10:51:54]requested_item fm.sn is exist - process it [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 11 00 00 [10:51:54]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 17 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [10:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:51:54]wFMCommunicate OK [10:51:54]requested_item fd.num is exist - process it [10:51:54]SAM_PROTO_GetFieldsCounters [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 13 00 00 [10:51:54]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 62 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:51: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:51:54]wFMCommunicate OK [10:51:54]SAM_PROTO_GetFieldsCounters done [10:51:54]requested_item shift.num is exist - process it [10:51:54]requested_item shift.opened is exist - process it [10:51:54]req_shift_opened [10:51:54]FM_GetShiftState [10:51:54]SAM_PROTO_GetShiftState [10:51:54]wFMCommunicate request_size=4 [10:51:54]MH_SAM_APDU [10:51:54]CAPDU: 80 13 01 00 [10:51:54]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [10:51:54]Write i2c OK [10:51:54]MH_I2C_Read... [10:51:54]OFD Sender: No OFD packet to send [10:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:51:54]Read from MH i2c: E2 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0E 00 [10:51:54]MH_I2C_Read... [10:51:54]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 55 [10:51:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:51:54]wFMCommunicate OK [10:51:54]SAM_PROTO_GetShiftState done [10:51:54]FM_GetShiftState done [10:51:54]req_shift_opened done [10:51:54]requested_item shift.open_date is exist - process it [10:51:54]req_shift_open_date [10:51:54]req_shift_open_date done [10:51:54]produce_requested_data done [10:51:54]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72540,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:51:54]process_action_free close_receipt [10:51:54]json_value_free [10:51:54]json_value_free done [10:51:54]process_json_proto returns [10:51:54]Send response to host [10:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72540,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:51:54]free response buf [10:51:54]execute_script done [10:51:54]execute_script returns [10:51:54]free content buf [10:51:54]Sock 10.Close socket [10:51:54]Sock 10.Thread stoped [10:51:59]OFD Sender: No OFD packet to send [10:52:04]OFD Sender: No OFD packet to send [10:52:08]recv_with_timeout no data received [10:52:09]OFD Sender: No OFD packet to send [10:52:14]OFD Sender: No OFD packet to send [10:52:19]OFD Sender: No OFD packet to send [10:52:24]OFD Sender: No OFD packet to send [10:52:29]OFD Sender: No OFD packet to send [10:52:34]OFD Sender: No OFD packet to send [10:52:39]OFD Sender: No OFD packet to send [10:52:44]OFD Sender: No OFD packet to send [10:52:49]OFD Sender: No OFD packet to send [10:52:54]OFD Sender: No OFD packet to send [10:52:55]recv_with_timeout no data received [10:52:59]OFD Sender: No OFD packet to send [10:53:04]OFD Sender: No OFD packet to send [10:53:09]OFD Sender: No OFD packet to send [10:53:14]OFD Sender: No OFD packet to send [10:53:19]OFD Sender: No OFD packet to send [10:53:24]OFD Sender: No OFD packet to send [10:53:29]OFD Sender: No OFD packet to send [10:53:34]OFD Sender: No OFD packet to send [10:53:39]OFD Sender: No OFD packet to send [10:53:44]OFD Sender: No OFD packet to send [10:53:49]OFD Sender: No OFD packet to send [10:53:54]OFD Sender: No OFD packet to send [10:53:56]recv_with_timeout no data received [10:53:59]OFD Sender: No OFD packet to send [10:54:04]OFD Sender: No OFD packet to send [10:54:09]OFD Sender: No OFD packet to send [10:54:14]OFD Sender: No OFD packet to send [10:54:19]OFD Sender: No OFD packet to send [10:54:24]OFD Sender: No OFD packet to send [10:54:29]OFD Sender: No OFD packet to send [10:54:34]OFD Sender: No OFD packet to send [10:54:35]recv_with_timeout no data received [10:54:39]OFD Sender: No OFD packet to send [10:54:44]OFD Sender: No OFD packet to send [10:54:49]OFD Sender: No OFD packet to send [10:54:54]OFD Sender: No OFD packet to send [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:25]recv_with_timeout no data received [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:35]recv_with_timeout no data received [10:55:39]OFD Sender: No OFD packet to send [10:55:44]OFD Sender: No OFD packet to send [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:24]OFD Sender: No OFD packet to send [10:56:29]OFD Sender: No OFD packet to send [10:56:34]OFD Sender: No OFD packet to send [10:56:36]recv_with_timeout no data received [10:56:39]OFD Sender: No OFD packet to send [10:56:44]OFD Sender: No OFD packet to send [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]recv_with_timeout no data received [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:32]accept exits with 9 [10:57:32]New connection [10:57:32]New thread 3067624804 created [10:57:32]Thread 3067481444 joined [10:57:32]Waiting for new connection... [10:57:32] Sock 9.Parse request [10:57:32]Sock 9.Check first char [10:57:32]Sock 9.First char is OK [10:57:32]request: POST /json_proto HTTP/1.0 [10:57:32]Method: POST [10:57:32]URL: /json_proto [10:57:32]Method is POST - this is cgi request [10:57:32]url: /json_proto [10:57:32]query_string will be loaded in cgi processing [10:57:32]execute_cgi json_proto POST (null) [10:57:32]execute_cgi path=json_proto method=POST [10:57:32]POST find Content-Length [10:57:32]Host: 172.17.43.195:8080 [10:57:32]Content-Length: 791 [10:57:32]Content-Type: application/json [10:57:32] [10:57:32]POST finish read [10:57:32]Found Content-Length = 791 [10:57:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:32]execute_script... [10:57: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)951992", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:57:32]POST & json_proto [10:57:32]process_json_proto [10:57:32]json parsed OK: [10:57:32]protocol is kg_v1.0 [10:57:32]action value=close_receipt [10:57:32]process_action close_receipt [10:57:32]cmd_close_receipt [10:57:32]MH_GetDate [10:57:32]Write to MH i2c: F0 00 00 6F 02 60 [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: F0 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: F0 09 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: F0 09 00 6F 02 00 1C 6E 1F 67 74 2C AD 66 2C [10:57:32]GetLastDocTimeStamp 1730112710 [10:57:32]current date 1730113052 [10:57:32]FM_GetShiftState [10:57:32]SAM_PROTO_GetShiftState [10:57:32]wFMCommunicate request_size=4 [10:57:32]MH_SAM_APDU [10:57:32]CAPDU: 80 13 01 00 [10:57:32]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [10:57:32]Write i2c OK [10:57:32]MH_I2C_Read... [10:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:32]Read from MH i2c: E2 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0E 00 [10:57:32]MH_I2C_Read... [10:57:32]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 57 [10:57:32]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:57:32]wFMCommunicate OK [10:57:32]SAM_PROTO_GetShiftState done [10:57:32]FM_GetShiftState done [10:57:32]opened in 1730074113 [10:57:32]opened+sec_in_day 1730160513 [10:57:32]quantity*price = 0 [10:57:32]sum+1 = 1 [10:57:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 69 28.10.2024 10:57 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72541 ФПД: 114757501533747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105732&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72541&fm=114757501533747&tin=02508201610067®Number=0000000000091644&sum=0 [10:57:33]StoreToDocumentArchive [10:57:33]shift 554 fd 72541 [10:57:33]save to /storage/0554/doc_00072541 [10:57:33]save last doc name /storage/0554/doc_00072541 to /storage/kkm_last_doc_name [10:57:33]save OK [10:57:33]Clear old archive folders... [10:57:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:57:33]tlvbuf is 004DA990 [10:57:33]SAM_PROTO_ClearQueue [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 09 00 00 [10:57:33]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [10:57:33]RAPDU: 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_ClearQueue done [10:57:33]KKMCreateOFDPacket [10:57:33]OFDProtocolAddRootSTLVToBuf [10:57:33]FM_MakeSignedData [10:57:33]FM_MakeSignedData [10:57:33]SAM_PROTO_SignData [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 0D 01 02 [10:57:33]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [10:57:33]RAPDU: 90 00 [10:57:33]wFMCommunicate OK [10:57:33]wFMCommunicate request_size=255 [10:57:33]MH_SAM_APDU [10:57: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1C 6E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1B 01 00 35 04 06 00 68 [10:57:33]Write to MH i2c: E2 02 01 7F 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1C 6E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1B 01 00 35 04 06 00 68 00 00 00 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [10:57:33]RAPDU: 90 00 [10:57:33]wFMCommunicate OK [10:57:33]wFMCommunicate request_size=10 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 0D 02 02 05 5F 10 1D 3E 33 [10:57:33]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 5F 10 1D 3E 33 00 00 03 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [10:57:33]RAPDU: 90 00 [10:57:33]wFMCommunicate OK [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 0D 03 02 [10:57:33]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0B 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 0B 00 81 02 00 48 BF 70 40 8F 2C 19 DD 90 00 67 [10:57:33]RAPDU: 48 BF 70 40 8F 2C 19 DD 90 00 [10:57:33]wFMCommunicate OK [10:57:33]SAM_PROTO_SignData done [10:57:33]FM_MakeSignedData done [10:57:33]CreateOFDProtocolMessage [10:57:33]wFMCommunicate request_size=4 [10:57:33]MH_SAM_APDU [10:57:33]CAPDU: 80 11 00 00 [10:57:33]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:33]Read from MH i2c: E2 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [10:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:57:33]wFMCommunicate OK [10:57:33]CreateOFDProtocolMessage done [10:57:33]OFDSenderStorePacket 72541 [10:57:33]StoreOFDPacket docnum=72541 [10:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 4A 07 01 00 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1C 6E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1B 01 00 35 04 06 00 68 5F 10 1D 3E 33 48 BF 70 40 8F 2C 19 DD [10:57:33]CheckFolder [10:57:33]dirname=/storage/ofd_packets [10:57:33]CheckFolder done [10:57:33]ProducePacketName [10:57:33]name=ofd_packets/00072541 [10:57:33]NVStorageSaveData ofd_packets/00072541 [10:57:33]File name is /storage/ofd_packets/00072541 [10:57:33]Write 301 bytes [10:57:33]NVStorageSaveData done [10:57:33]OFDSenderStorePacket done [10:57:33]KKMCreateOFDPacket done [10:57:33]NVStorageSaveData kkm_last_timestamp [10:57:33]File name is /storage/kkm_last_timestamp [10:57:33]Write 4 bytes [10:57:33]NVStorageSaveData done [10:57:33]OFD Sender: Processing packet 72541 [packets to send 273, broken 272] [10:57:33]ProducePacketName [10:57:33]name=ofd_packets/00072541 [10:57:33]OFD Sender: To server: pG, [10:57:33]CommunicateWithHost lk.salyk.kg:30040 [10:57:33]ConnectInit lk.salyk.kg [10:57:33]ExternCall_PrintAddStr [10:57:33]wPrintStart [10:57:33]Write to MH i2c: 01 00 00 83 02 85 [10:57:33]Write i2c OK [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 [10:57:33]MH_I2C_Read... [10:57:33]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [10:57:33]RasterBufferAndPrint [10:57:33]line Счет N : (1)951992 [10:57:33]line ИНН: 02508201610067 [10:57:33]line Контрольно-Кассовый Чек [10:57:33]line ПРОДАЖА [10:57:33]line ТРК (МРК, ГНК) : 63 [10:57:33]line Товар: 2710124130 [10:57:33]line Аи-92-К-5 [10:57:33]line 5.000 * 0.00 [10:57:33]line = 0.00 [10:57:33]line НДС 12% НСП 1% [10:57:33]line > о реализуемом товаре [10:57:33]line ИТОГО: 0.00 [10:57:33]line НСП 1% : 0.00 [10:57:33]line НДС 12% : 0.00 [10:57:33]line Наличными: 0.00 [10:57:33]line Безнал.: 0.00 [10:57:33]line Место: АЗС № 113 "Партнер Нефть" [10:57:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [10:57:33]line СНО: Общий режим [10:57:33]line Чек 69 28.10.2024 10:57 [10:57:33]line Смена: 554 ФФД: 1.0 [10:57:33]line ЗНМ: 0300000087 [10:57:33]line РНМ: 0000000000091644 [10:57:33]line Версия ККМ: 001 [10:57:33]line Талоны: Топливная Карта [10:57:33]line 03047 [10:57:33]line ФМ: 0000000000874662 [10:57:33]line ФД: 72541 [10:57:33]line ФПД: 114757501533747 [10:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T105732&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72541&fm=114757501533747&tin=02508201610067®Number=0000000000091644&sum=0 [10:57:34]written 0, free lines is 4095 [10:57:34]Write to MH i2c: 01 00 00 AD 02 AF [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: 01 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: 01 07 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 DD 0C 9F [10:57:34]RasterBufferAndPrint [10:57:34]line [10:57:34]line [10:57:34]line [10:57:34]line [10:57:34]line [10:57:34]written 0, free lines is 3299 [10:57:34]MH_Cut [10:57:34]Write to MH i2c: D1 01 00 B4 02 01 88 [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: D1 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: D1 01 00 [10:57:34]MH_I2C_Read... [10:57:34]Read from MH i2c: D1 01 00 B4 02 00 87 [10:57:34]Write to MH i2c: 01 00 00 B5 02 B7 [10:57:34]Write i2c OK [10:57:34]MH_I2C_Read... [10:57:34]Connected sock=11 [10:57:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 10 4A 07 01 00 9F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 1C 6E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1B 01 00 35 04 06 00 68 5F 10 1D 3E 33 48 BF 70 40 8F 2C 19 DD [10:57:35]*** Cut start [10:57:35]*** Partial cut [10:57:35]*** CUTSNS_PIN = 1 [10:57:35]*** CUTSNS_PIN = 0 [10:57:35]*** Brake cut motor [10:57:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4B 65 47 00 8F 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5D 1B 01 00 F4 03 04 00 DC 18 1F 67 B6 04 01 00 00 00 0D B8 5A CA 79 1C 10 [10:57:35]CommunicateWithHost err = 0 [10:57:35]CheckOFDResponse [10:57:35]1017 (14) - 77093643461234 [10:57:35]1041 (16) - 0000000000874662 [10:57:35]1040 (4) - 72541 [10:57:35]1012 (4) - 28.10.2024 04:53 [10:57:35]1206 (1) - 0 [10:57:35]OFD Sender: Remove packet 72541 [10:57:35]ProducePacketName [10:57:35]name=ofd_packets/00072541 [10:57:35]NVStorageDeleteData [10:57:35]Read from MH i2c: 01 [10:57:35]MH_I2C_Read... [10:57:35]*** Stop cut motor [10:57:35]*** Cut end [10:57:35]Read from MH i2c: 01 07 00 [10:57:35]MH_I2C_Read... [10:57:35]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [10:57:35]process_action close_receipt done [10:57:35]requested_data is exist [10:57:35]produce_requested_data [10:57:35]requested_item fm.sn is exist - process it [10:57:35]wFMCommunicate request_size=4 [10:57:35]MH_SAM_APDU [10:57:35]CAPDU: 80 11 00 00 [10:57:35]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [10:57:35]Write i2c OK [10:57:35]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 17 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [10:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [10:57:36]wFMCommunicate OK [10:57:36]requested_item fd.num is exist - process it [10:57:36]SAM_PROTO_GetFieldsCounters [10:57:36]wFMCommunicate request_size=4 [10:57:36]MH_SAM_APDU [10:57:36]CAPDU: 80 13 00 00 [10:57:36]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 62 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 CA [10:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:57:36]wFMCommunicate OK [10:57:36]SAM_PROTO_GetFieldsCounters done [10:57:36]requested_item shift.num is exist - process it [10:57:36]requested_item shift.opened is exist - process it [10:57:36]req_shift_opened [10:57:36]FM_GetShiftState [10:57:36]SAM_PROTO_GetShiftState [10:57:36]wFMCommunicate request_size=4 [10:57:36]MH_SAM_APDU [10:57:36]CAPDU: 80 13 01 00 [10:57:36]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [10:57:36]Write i2c OK [10:57:36]MH_I2C_Read... [10:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:57:36]OFD Sender: No OFD packet to send [10:57:36]Read from MH i2c: E2 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 0E 00 [10:57:36]MH_I2C_Read... [10:57:36]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9F [10:57:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [10:57:36]wFMCommunicate OK [10:57:36]SAM_PROTO_GetShiftState done [10:57:36]FM_GetShiftState done [10:57:36]req_shift_opened done [10:57:36]requested_item shift.open_date is exist - process it [10:57:36]req_shift_open_date [10:57:36]req_shift_open_date done [10:57:36]produce_requested_data done [10:57:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72541,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [10:57:36]process_action_free close_receipt [10:57:36]json_value_free [10:57:36]json_value_free done [10:57:36]process_json_proto returns [10:57:36]Send response to host [10:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72541,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [10:57:36]free response buf [10:57:36]execute_script done [10:57:36]execute_script returns [10:57:36]free content buf [10:57:36]Sock 9.Close socket [10:57:36]Sock 9.Thread stoped [10:57:40]recv_with_timeout no data received [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]recv_with_timeout no data received [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:01]recv_with_timeout no data received [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:34]recv_with_timeout no data received [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:24]recv_with_timeout no data received [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:25]recv_with_timeout no data received [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]recv_with_timeout no data received [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:19]recv_with_timeout no data received [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:08]recv_with_timeout no data received [11:04:08]accept exits with 7 [11:04:08]New connection [11:04:08]New thread 3067481444 created [11:04:08]Thread 3067624804 joined [11:04:08]Waiting for new connection... [11:04:08] Sock 7.Parse request [11:04:08]Sock 7.Check first char [11:04:08]Sock 7.First char is OK [11:04:08]request: POST /json_proto HTTP/1.0 [11:04:08]Method: POST [11:04:08]URL: /json_proto [11:04:08]Method is POST - this is cgi request [11:04:08]url: /json_proto [11:04:08]query_string will be loaded in cgi processing [11:04:08]execute_cgi json_proto POST (null) [11:04:08]execute_cgi path=json_proto method=POST [11:04:08]POST find Content-Length [11:04:08]Host: 172.17.43.195:8080 [11:04:08]Content-Length: 792 [11:04:08]Content-Type: application/json [11:04:08] [11:04:08]POST finish read [11:04:08]Found Content-Length = 792 [11:04:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:08]execute_script... [11:04:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951993", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:04:08]POST & json_proto [11:04:08]process_json_proto [11:04:08]json parsed OK: [11:04:08]protocol is kg_v1.0 [11:04:08]action value=close_receipt [11:04:08]process_action close_receipt [11:04:08]cmd_close_receipt [11:04:08]MH_GetDate [11:04:08]Write to MH i2c: F0 00 00 B9 02 AA [11:04:08]Write i2c OK [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: F0 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: F0 09 00 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: F0 09 00 B9 02 00 A9 6F 1F 67 74 2C AD 66 04 [11:04:08]GetLastDocTimeStamp 1730113052 [11:04:08]current date 1730113449 [11:04:08]FM_GetShiftState [11:04:08]SAM_PROTO_GetShiftState [11:04:08]wFMCommunicate request_size=4 [11:04:08]MH_SAM_APDU [11:04:08]CAPDU: 80 13 01 00 [11:04:08]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [11:04:08]Write i2c OK [11:04:08]MH_I2C_Read... [11:04:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:08]Read from MH i2c: E2 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: E2 0E 00 [11:04:08]MH_I2C_Read... [11:04:08]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A1 [11:04:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:04:08]wFMCommunicate OK [11:04:08]SAM_PROTO_GetShiftState done [11:04:08]FM_GetShiftState done [11:04:08]opened in 1730074113 [11:04:08]opened+sec_in_day 1730160513 [11:04:08]quantity*price = 0 [11:04:08]sum+1 = 1 [11:04:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 70 28.10.2024 11:04 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72542 ФПД: 127688599244247 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110409&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72542&fm=127688599244247&tin=02508201610067®Number=0000000000091644&sum=0 [11:04:09]StoreToDocumentArchive [11:04:09]shift 554 fd 72542 [11:04:09]save to /storage/0554/doc_00072542 [11:04:09]save last doc name /storage/0554/doc_00072542 to /storage/kkm_last_doc_name [11:04:09]save OK [11:04:09]Clear old archive folders... [11:04:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:04:09]tlvbuf is 004C9D10 [11:04:09]SAM_PROTO_ClearQueue [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 09 00 00 [11:04:09]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 03 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [11:04:09]RAPDU: 90 00 [11:04:09]wFMCommunicate OK [11:04:09]SAM_PROTO_ClearQueue done [11:04:09]KKMCreateOFDPacket [11:04:09]OFDProtocolAddRootSTLVToBuf [11:04:09]FM_MakeSignedData [11:04:09]FM_MakeSignedData [11:04:09]SAM_PROTO_SignData [11:04:09]wFMCommunicate request_size=4 [11:04:09]MH_SAM_APDU [11:04:09]CAPDU: 80 0D 01 02 [11:04:09]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:04:09]Read from MH i2c: E2 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 03 00 [11:04:09]MH_I2C_Read... [11:04:09]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [11:04:09]RAPDU: 90 00 [11:04:09]wFMCommunicate OK [11:04:09]wFMCommunicate request_size=255 [11:04:09]MH_SAM_APDU [11:04: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 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 6F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1B 01 00 35 04 06 00 74 [11:04:09]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 00 00 00 F4 03 04 00 A9 6F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1B 01 00 35 04 06 00 74 00 00 82 [11:04:09]Write i2c OK [11:04:09]MH_I2C_Read... [11:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:10]Read from MH i2c: E2 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 03 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [11:04:10]RAPDU: 90 00 [11:04:10]wFMCommunicate OK [11:04:10]wFMCommunicate request_size=10 [11:04:10]MH_SAM_APDU [11:04:10]CAPDU: 80 0D 02 02 05 21 D1 99 8D D7 [11:04:10]Write to MH i2c: E2 0D 00 CA 02 80 0D 02 02 05 00 21 D1 99 8D D7 00 00 3F [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:04:10]Read from MH i2c: E2 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 03 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [11:04:10]RAPDU: 90 00 [11:04:10]wFMCommunicate OK [11:04:10]wFMCommunicate request_size=4 [11:04:10]MH_SAM_APDU [11:04:10]CAPDU: 80 0D 03 02 [11:04:10]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:04:10]Read from MH i2c: E2 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 0B 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 0B 00 CB 02 00 7C D1 0F C1 61 8E C4 0A 90 00 23 [11:04:10]RAPDU: 7C D1 0F C1 61 8E C4 0A 90 00 [11:04:10]wFMCommunicate OK [11:04:10]SAM_PROTO_SignData done [11:04:10]FM_MakeSignedData done [11:04:10]CreateOFDProtocolMessage [11:04:10]wFMCommunicate request_size=4 [11:04:10]MH_SAM_APDU [11:04:10]CAPDU: 80 11 00 00 [11:04:10]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:10]Read from MH i2c: E2 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 17 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [11:04:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:04:10]wFMCommunicate OK [11:04:10]CreateOFDProtocolMessage done [11:04:10]OFDSenderStorePacket 72542 [11:04:10]StoreOFDPacket docnum=72542 [11:04:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3D 2F 07 01 5A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 6F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1B 01 00 35 04 06 00 74 21 D1 99 8D D7 7C D1 0F C1 61 8E C4 0A [11:04:10]CheckFolder [11:04:10]dirname=/storage/ofd_packets [11:04:10]CheckFolder done [11:04:10]ProducePacketName [11:04:10]name=ofd_packets/00072542 [11:04:10]NVStorageSaveData ofd_packets/00072542 [11:04:10]File name is /storage/ofd_packets/00072542 [11:04:10]Write 301 bytes [11:04:10]NVStorageSaveData done [11:04:10]OFDSenderStorePacket done [11:04:10]KKMCreateOFDPacket done [11:04:10]NVStorageSaveData kkm_last_timestamp [11:04:10]File name is /storage/kkm_last_timestamp [11:04:10]Write 4 bytes [11:04:10]NVStorageSaveData done [11:04:10]ExternCall_PrintAddStr [11:04:10]wPrintStart [11:04:10]Write to MH i2c: 01 00 00 CD 02 CF [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 07 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [11:04:10]RasterBufferAndPrint [11:04:10]line Счет N : (1)951993 [11:04:10]line ИНН: 02508201610067 [11:04:10]line Контрольно-Кассовый Чек [11:04:10]line ПРОДАЖА [11:04:10]line ТРК (МРК, ГНК) : 63 [11:04:10]line Товар: 2710124130 [11:04:10]line Аи-92-К-5 [11:04:10]line 10.000 * 0.00 [11:04:10]line = 0.00 [11:04:10]line НДС 12% НСП 1% [11:04:10]line > о реализуемом товаре [11:04:10]line ИТОГО: 0.00 [11:04:10]line НСП 1% : 0.00 [11:04:10]line НДС 12% : 0.00 [11:04:10]line Наличными: 0.00 [11:04:10]line Безнал.: 0.00 [11:04:10]line Место: АЗС № 113 "Партнер Нефть" [11:04:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:04:10]line СНО: Общий режим [11:04:10]line Чек 70 28.10.2024 11:04 [11:04:10]line Смена: 554 ФФД: 1.0 [11:04:10]line ЗНМ: 0300000087 [11:04:10]line РНМ: 0000000000091644 [11:04:10]line Версия ККМ: 001 [11:04:10]line Талоны: Топливная Карта [11:04:10]line 02648 [11:04:10]line ФМ: 0000000000874662 [11:04:10]line ФД: 72542 [11:04:10]line ФПД: 127688599244247 [11:04:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T110409&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72542&fm=127688599244247&tin=02508201610067®Number=0000000000091644&sum=0 [11:04:10]written 0, free lines is 4095 [11:04:10]OFD Sender: Processing packet 72542 [packets to send 273, broken 272] [11:04:10]ProducePacketName [11:04:10]name=ofd_packets/00072542 [11:04:10]OFD Sender: To server: pG, [11:04:10]CommunicateWithHost lk.salyk.kg:30040 [11:04:10]ConnectInit lk.salyk.kg [11:04:10]Write to MH i2c: 01 00 00 F7 02 F9 [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 07 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 E5 0C F1 [11:04:10]RasterBufferAndPrint [11:04:10]line [11:04:10]line [11:04:10]line [11:04:10]line [11:04:10]line [11:04:10]written 0, free lines is 3307 [11:04:10]MH_Cut [11:04:10]Write to MH i2c: D1 01 00 FE 02 01 D2 [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: D1 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: D1 01 00 [11:04:10]MH_I2C_Read... [11:04:10]Read from MH i2c: D1 01 00 FE 02 00 D1 [11:04:10]Write to MH i2c: 01 00 00 FF 02 01 [11:04:10]Write i2c OK [11:04:10]MH_I2C_Read... [11:04:11]*** Cut start [11:04:11]*** Partial cut [11:04:11]*** CUTSNS_PIN = 1 [11:04:11]*** CUTSNS_PIN = 0 [11:04:11]*** Brake cut motor [11:04:12]Read from MH i2c: 01 [11:04:12]MH_I2C_Read... [11:04:12]*** Stop cut motor [11:04:12]*** Cut end [11:04:12]Read from MH i2c: 01 07 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [11:04:12]process_action close_receipt done [11:04:12]requested_data is exist [11:04:12]produce_requested_data [11:04:12]requested_item fm.sn is exist - process it [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 11 00 00 [11:04:12]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 17 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [11:04:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:04:12]wFMCommunicate OK [11:04:12]requested_item fd.num is exist - process it [11:04:12]SAM_PROTO_GetFieldsCounters [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 13 00 00 [11:04:12]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 62 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 62 00 01 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [11:04:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:04:12]wFMCommunicate OK [11:04:12]SAM_PROTO_GetFieldsCounters done [11:04:12]requested_item shift.num is exist - process it [11:04:12]requested_item shift.opened is exist - process it [11:04:12]req_shift_opened [11:04:12]FM_GetShiftState [11:04:12]SAM_PROTO_GetShiftState [11:04:12]wFMCommunicate request_size=4 [11:04:12]MH_SAM_APDU [11:04:12]CAPDU: 80 13 01 00 [11:04:12]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [11:04:12]Write i2c OK [11:04:12]MH_I2C_Read... [11:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:04:12]Read from MH i2c: E2 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0E 00 [11:04:12]MH_I2C_Read... [11:04:12]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EA [11:04:12]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:04:12]wFMCommunicate OK [11:04:12]SAM_PROTO_GetShiftState done [11:04:12]FM_GetShiftState done [11:04:12]req_shift_opened done [11:04:12]requested_item shift.open_date is exist - process it [11:04:12]req_shift_open_date [11:04:12]req_shift_open_date done [11:04:12]produce_requested_data done [11:04:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72542,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:04:12]process_action_free close_receipt [11:04:12]json_value_free [11:04:12]json_value_free done [11:04:12]process_json_proto returns [11:04:12]Send response to host [11:04:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72542,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:04:12]free response buf [11:04:12]execute_script done [11:04:12]execute_script returns [11:04:12]free content buf [11:04:12]Sock 7.Close socket [11:04:12]Sock 7.Thread stoped [11:04:15]ConnectInit Can't take IP for lk.salyk.kg [11:04:15]CommunicateWithHost connect error [11:04:15]CommunicateWithHost err = -1 [11:04:15]OFD Sender: Server communicate error [11:04:20]OFD Sender: Processing packet 72542 [packets to send 273, broken 272] [11:04:20]ProducePacketName [11:04:20]name=ofd_packets/00072542 [11:04:20]OFD Sender: To server: pG, [11:04:20]CommunicateWithHost lk.salyk.kg:30040 [11:04:20]ConnectInit lk.salyk.kg [11:04:21]Connected sock=10 [11:04:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3D 2F 07 01 5A C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 A9 6F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5E 1B 01 00 35 04 06 00 74 21 D1 99 8D D7 7C D1 0F C1 61 8E C4 0A [11:04:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 08 54 47 00 00 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 34 36 36 32 10 04 04 00 5E 1B 01 00 F4 03 04 00 72 1A 1F 67 B6 04 01 00 00 4B F8 55 41 DE D1 88 61 [11:04:21]CommunicateWithHost err = 0 [11:04:21]CheckOFDResponse [11:04:21]1017 (14) - 77093643461234 [11:04:21]1041 (16) - 0000000000874662 [11:04:21]1040 (4) - 72542 [11:04:21]1012 (4) - 28.10.2024 05:00 [11:04:21]1206 (1) - 0 [11:04:21]OFD Sender: Remove packet 72542 [11:04:21]ProducePacketName [11:04:21]name=ofd_packets/00072542 [11:04:21]NVStorageDeleteData [11:04:22]OFD Sender: No OFD packet to send [11:04:27]OFD Sender: No OFD packet to send [11:04:32]OFD Sender: No OFD packet to send [11:04:37]OFD Sender: No OFD packet to send [11:04:42]OFD Sender: No OFD packet to send [11:04:47]OFD Sender: No OFD packet to send [11:04:52]OFD Sender: No OFD packet to send [11:04:57]OFD Sender: No OFD packet to send [11:05:02]OFD Sender: No OFD packet to send [11:05:07]OFD Sender: No OFD packet to send [11:05:12]OFD Sender: No OFD packet to send [11:05:22]OFD Sender: No OFD packet to send [11:05:27]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:30]ConnectInit Can't connect to host [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:07:57]recv_with_timeout no data received [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:07]OFD Sender: No OFD packet to send [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:19]recv_with_timeout no data received [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:32]OFD Sender: No OFD packet to send [11:09:37]OFD Sender: No OFD packet to send [11:09:42]OFD Sender: No OFD packet to send [11:09:47]OFD Sender: No OFD packet to send [11:09:52]OFD Sender: No OFD packet to send [11:09:57]OFD Sender: No OFD packet to send [11:10:02]OFD Sender: No OFD packet to send [11:10:07]recv_with_timeout no data received [11:10:07]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:44]recv_with_timeout no data received [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:36]recv_with_timeout no data received [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:54]recv_with_timeout no data received [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:24]recv_with_timeout no data received [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:38]recv_with_timeout no data received [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:19]recv_with_timeout no data received [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:15:59]recv_with_timeout no data received [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:17]recv_with_timeout no data received [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:13]OFD Sender: No OFD packet to send [11:19:14]accept exits with 9 [11:19:14]New connection [11:19:14]New thread 3067624804 created [11:19:14]Thread 3067481444 joined [11:19:14]Waiting for new connection... [11:19:14] Sock 9.Parse request [11:19:14]Sock 9.Check first char [11:19:14]Sock 9.First char is OK [11:19:14]request: POST /json_proto HTTP/1.0 [11:19:14]Method: POST [11:19:14]URL: /json_proto [11:19:14]Method is POST - this is cgi request [11:19:14]url: /json_proto [11:19:14]query_string will be loaded in cgi processing [11:19:14]execute_cgi json_proto POST (null) [11:19:14]execute_cgi path=json_proto method=POST [11:19:14]POST find Content-Length [11:19:14]Host: 172.17.43.195:8080 [11:19:14]Content-Length: 792 [11:19:14]Content-Type: application/json [11:19:14] [11:19:14]POST finish read [11:19:14]Found Content-Length = 792 [11:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:14]execute_script... [11:19:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951997", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:14]POST & json_proto [11:19:14]process_json_proto [11:19:14]json parsed OK: [11:19:14]protocol is kg_v1.0 [11:19:14]action value=close_receipt [11:19:14]process_action close_receipt [11:19:14]cmd_close_receipt [11:19:14]MH_GetDate [11:19:14]Write to MH i2c: F0 00 00 03 03 F5 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: F0 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: F0 09 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: F0 09 00 03 03 00 32 73 1F 67 74 2C AD 66 DC [11:19:14]GetLastDocTimeStamp 1730113449 [11:19:14]current date 1730114354 [11:19:14]FM_GetShiftState [11:19:14]SAM_PROTO_GetShiftState [11:19:14]wFMCommunicate request_size=4 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 13 01 00 [11:19:14]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 0E 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EC [11:19:14]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:19:14]wFMCommunicate OK [11:19:14]SAM_PROTO_GetShiftState done [11:19:14]FM_GetShiftState done [11:19:14]opened in 1730074113 [11:19:14]opened+sec_in_day 1730160513 [11:19:14]quantity*price = 0 [11:19:14]sum+1 = 1 [11:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 71 28.10.2024 11:19 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72543 ФПД: 134499354596309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111914&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72543&fm=134499354596309&tin=02508201610067®Number=0000000000091644&sum=0 [11:19:15]StoreToDocumentArchive [11:19:15]shift 554 fd 72543 [11:19:15]save to /storage/0554/doc_00072543 [11:19:15]save last doc name /storage/0554/doc_00072543 to /storage/kkm_last_doc_name [11:19:15]save OK [11:19:15]Clear old archive folders... [11:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:19:15]tlvbuf is 004CC8F0 [11:19:15]SAM_PROTO_ClearQueue [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 09 00 00 [11:19:15]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_ClearQueue done [11:19:15]KKMCreateOFDPacket [11:19:15]OFDProtocolAddRootSTLVToBuf [11:19:15]FM_MakeSignedData [11:19:15]FM_MakeSignedData [11:19:15]SAM_PROTO_SignData [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 01 02 [11:19:15]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=255 [11:19:15]MH_SAM_APDU [11:19: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 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 47 00 00 00 F4 03 04 00 32 73 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1B 01 00 35 04 06 00 7A [11:19:15]Write to MH i2c: E2 02 01 13 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 32 73 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1B 01 00 35 04 06 00 7A 00 00 99 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=10 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 02 02 05 53 92 40 D3 D5 [11:19:15]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 53 92 40 D3 D5 00 00 68 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [11:19:15]RAPDU: 90 00 [11:19:15]wFMCommunicate OK [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 0D 03 02 [11:19:15]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0B 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0B 00 15 03 00 A3 A7 E8 60 2E BF 15 12 90 00 3A [11:19:15]RAPDU: A3 A7 E8 60 2E BF 15 12 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_SignData done [11:19:15]FM_MakeSignedData done [11:19:15]CreateOFDProtocolMessage [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 11 00 00 [11:19:15]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 17 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [11:19:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:19:15]wFMCommunicate OK [11:19:15]CreateOFDProtocolMessage done [11:19:15]OFDSenderStorePacket 72543 [11:19:15]StoreOFDPacket docnum=72543 [11:19:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B BE 07 01 70 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 32 73 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1B 01 00 35 04 06 00 7A 53 92 40 D3 D5 A3 A7 E8 60 2E BF 15 12 [11:19:15]CheckFolder [11:19:15]dirname=/storage/ofd_packets [11:19:15]CheckFolder done [11:19:15]ProducePacketName [11:19:15]name=ofd_packets/00072543 [11:19:15]NVStorageSaveData ofd_packets/00072543 [11:19:15]File name is /storage/ofd_packets/00072543 [11:19:15]Write 301 bytes [11:19:15]NVStorageSaveData done [11:19:15]OFDSenderStorePacket done [11:19:15]KKMCreateOFDPacket done [11:19:15]NVStorageSaveData kkm_last_timestamp [11:19:15]File name is /storage/kkm_last_timestamp [11:19:15]Write 4 bytes [11:19:15]NVStorageSaveData done [11:19:15]ExternCall_PrintAddStr [11:19:15]wPrintStart [11:19:15]Write to MH i2c: 01 00 00 17 03 1A [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 07 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [11:19:15]RasterBufferAndPrint [11:19:15]line Счет N : (1)951997 [11:19:15]line ИНН: 02508201610067 [11:19:15]line Контрольно-Кассовый Чек [11:19:15]line ПРОДАЖА [11:19:15]line ТРК (МРК, ГНК) : 42 [11:19:15]line Товар: 2710124130 [11:19:15]line Аи-92-К-5 [11:19:15]line 20.000 * 0.00 [11:19:15]line = 0.00 [11:19:15]line НДС 12% НСП 1% [11:19:15]line > о реализуемом товаре [11:19:15]line ИТОГО: 0.00 [11:19:15]line НСП 1% : 0.00 [11:19:15]line НДС 12% : 0.00 [11:19:15]line Наличными: 0.00 [11:19:15]line Безнал.: 0.00 [11:19:15]line Место: АЗС № 113 "Партнер Нефть" [11:19:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:19:15]line СНО: Общий режим [11:19:15]line Чек 71 28.10.2024 11:19 [11:19:15]line Смена: 554 ФФД: 1.0 [11:19:15]line ЗНМ: 0300000087 [11:19:15]line РНМ: 0000000000091644 [11:19:15]line Версия ККМ: 001 [11:19:15]line Талоны: Топливная Карта [11:19:15]line 02648 [11:19:15]line ФМ: 0000000000874662 [11:19:15]line ФД: 72543 [11:19:15]line ФПД: 134499354596309 [11:19:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T111914&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72543&fm=134499354596309&tin=02508201610067®Number=0000000000091644&sum=0 [11:19:15]written 0, free lines is 4095 [11:19:15]OFD Sender: Processing packet 72543 [packets to send 273, broken 272] [11:19:15]ProducePacketName [11:19:15]name=ofd_packets/00072543 [11:19:15]OFD Sender: To server: pG, [11:19:15]CommunicateWithHost lk.salyk.kg:30040 [11:19:15]ConnectInit lk.salyk.kg [11:19:16]Write to MH i2c: 01 00 00 41 03 44 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 E0 0C 37 [11:19:16]RasterBufferAndPrint [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]line [11:19:16]written 0, free lines is 3302 [11:19:16]MH_Cut [11:19:16]Write to MH i2c: D1 01 00 48 03 01 1D [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 01 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: D1 01 00 48 03 00 1C [11:19:16]Write to MH i2c: 01 00 00 49 03 4C [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:17]*** Cut start [11:19:17]*** Partial cut [11:19:17]*** CUTSNS_PIN = 1 [11:19:17]*** CUTSNS_PIN = 0 [11:19:17]Connected sock=11 [11:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7B BE 07 01 70 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 47 00 00 00 F4 03 04 00 32 73 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1B 01 00 35 04 06 00 7A 53 92 40 D3 D5 A3 A7 E8 60 2E BF 15 12 [11:19:17]*** Brake cut motor [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]*** Stop cut motor [11:19:17]*** Cut end [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [11:19:17]process_action close_receipt done [11:19:17]requested_data is exist [11:19:17]produce_requested_data [11:19:17]requested_item fm.sn is exist - process it [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 11 00 00 [11:19:17]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 50 71 47 00 EF 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 5F 1B 01 00 F4 03 04 00 F2 1D 1F 67 B6 04 01 00 00 C1 CF 0C AD 63 A4 CA C3 [11:19:17]CommunicateWithHost err = 0 [11:19:17]CheckOFDResponse [11:19:17]1017 (14) - 77093643461234 [11:19:17]1041 (16) - 0000000000874662 [11:19:17]1040 (4) - 72543 [11:19:17]1012 (4) - 28.10.2024 05:15 [11:19:17]1206 (1) - 0 [11:19:17]OFD Sender: Remove packet 72543 [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00072543 [11:19:17]NVStorageDeleteData [11:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [11:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:19:17]wFMCommunicate OK [11:19:17]requested_item fd.num is exist - process it [11:19:17]SAM_PROTO_GetFieldsCounters [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 00 00 [11:19:17]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [11:19: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 5F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetFieldsCounters done [11:19:17]requested_item shift.num is exist - process it [11:19:17]requested_item shift.opened is exist - process it [11:19:17]req_shift_opened [11:19:17]FM_GetShiftState [11:19:17]SAM_PROTO_GetShiftState [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 13 01 00 [11:19:17]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 34 [11:19:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_GetShiftState done [11:19:17]FM_GetShiftState done [11:19:17]req_shift_opened done [11:19:17]requested_item shift.open_date is exist - process it [11:19:17]req_shift_open_date [11:19:17]req_shift_open_date done [11:19:17]produce_requested_data done [11:19:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72543,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:19:17]process_action_free close_receipt [11:19:17]json_value_free [11:19:17]json_value_free done [11:19:17]process_json_proto returns [11:19:17]Send response to host [11:19:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72543,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:19:17]free response buf [11:19:17]execute_script done [11:19:17]execute_script returns [11:19:17]free content buf [11:19:17]Sock 9.Close socket [11:19:17]Sock 9.Thread stoped [11:19:18]OFD Sender: No OFD packet to send [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:28]ConnectInit Can't connect to host [11:20:33]OFD Sender: No OFD packet to send [11:20:38]OFD Sender: No OFD packet to send [11:20:43]OFD Sender: No OFD packet to send [11:20:48]OFD Sender: No OFD packet to send [11:20:53]OFD Sender: No OFD packet to send [11:20:58]OFD Sender: No OFD packet to send [11:20:58]recv_with_timeout no data received [11:21:03]OFD Sender: No OFD packet to send [11:21:08]OFD Sender: No OFD packet to send [11:21:13]OFD Sender: No OFD packet to send [11:21:18]OFD Sender: No OFD packet to send [11:21:23]OFD Sender: No OFD packet to send [11:21:28]OFD Sender: No OFD packet to send [11:21:33]OFD Sender: No OFD packet to send [11:21:38]OFD Sender: No OFD packet to send [11:21:43]OFD Sender: No OFD packet to send [11:21:48]OFD Sender: No OFD packet to send [11:21:53]OFD Sender: No OFD packet to send [11:21:58]OFD Sender: No OFD packet to send [11:22:01]recv_with_timeout no data received [11:22:03]OFD Sender: No OFD packet to send [11:22:08]OFD Sender: No OFD packet to send [11:22:13]OFD Sender: No OFD packet to send [11:22:18]OFD Sender: No OFD packet to send [11:22:23]OFD Sender: No OFD packet to send [11:22:28]OFD Sender: No OFD packet to send [11:22:33]OFD Sender: No OFD packet to send [11:22:38]OFD Sender: No OFD packet to send [11:22:43]OFD Sender: No OFD packet to send [11:22:45]recv_with_timeout no data received [11:22:48]OFD Sender: No OFD packet to send [11:22:53]OFD Sender: No OFD packet to send [11:22:58]OFD Sender: No OFD packet to send [11:23:03]OFD Sender: No OFD packet to send [11:23:08]OFD Sender: No OFD packet to send [11:23:13]OFD Sender: No OFD packet to send [11:23:18]OFD Sender: No OFD packet to send [11:23:23]OFD Sender: No OFD packet to send [11:23:28]OFD Sender: No OFD packet to send [11:23:33]OFD Sender: No OFD packet to send [11:23:38]OFD Sender: No OFD packet to send [11:23:43]OFD Sender: No OFD packet to send [11:23:48]OFD Sender: No OFD packet to send [11:23:53]OFD Sender: No OFD packet to send [11:23:53]accept exits with 10 [11:23:53]New connection [11:23:53]New thread 3067481444 created [11:23:53]Thread 3067624804 joined [11:23:53]Waiting for new connection... [11:23:53] Sock 10.Parse request [11:23:53]Sock 10.Check first char [11:23:53]Sock 10.First char is OK [11:23:53]request: POST /json_proto HTTP/1.0 [11:23:53]Method: POST [11:23:53]URL: /json_proto [11:23:53]Method is POST - this is cgi request [11:23:53]url: /json_proto [11:23:53]query_string will be loaded in cgi processing [11:23:53]execute_cgi json_proto POST (null) [11:23:53]execute_cgi path=json_proto method=POST [11:23:53]POST find Content-Length [11:23:53]Host: 172.17.43.195:8080 [11:23:53]Content-Length: 792 [11:23:53]Content-Type: application/json [11:23:53] [11:23:53]POST finish read [11:23:53]Found Content-Length = 792 [11:23:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A00908", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:53]execute_script... [11:23:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)951998", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A00908", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:23:53]POST & json_proto [11:23:53]process_json_proto [11:23:53]json parsed OK: [11:23:53]protocol is kg_v1.0 [11:23:53]action value=close_receipt [11:23:53]process_action close_receipt [11:23:53]cmd_close_receipt [11:23:53]MH_GetDate [11:23:53]Write to MH i2c: F0 00 00 4D 03 3F [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: F0 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: F0 09 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: F0 09 00 4D 03 00 4A 74 1F 67 74 2C AD 66 3F [11:23:53]GetLastDocTimeStamp 1730114354 [11:23:53]current date 1730114634 [11:23:53]FM_GetShiftState [11:23:53]SAM_PROTO_GetShiftState [11:23:53]wFMCommunicate request_size=4 [11:23:53]MH_SAM_APDU [11:23:53]CAPDU: 80 13 01 00 [11:23:53]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [11:23:53]Write i2c OK [11:23:53]MH_I2C_Read... [11:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:53]Read from MH i2c: E2 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 0E 00 [11:23:53]MH_I2C_Read... [11:23:53]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 36 [11:23:53]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:23:53]wFMCommunicate OK [11:23:53]SAM_PROTO_GetShiftState done [11:23:53]FM_GetShiftState done [11:23:53]opened in 1730074113 [11:23:53]opened+sec_in_day 1730160513 [11:23:53]quantity*price = 0 [11:23:53]sum+1 = 1 [11:23:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 72 28.10.2024 11:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 00908 ФМ: 0000000000874662 ФД: 72544 ФПД: 107177726414640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112354&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72544&fm=107177726414640&tin=02508201610067®Number=0000000000091644&sum=0 [11:23:55]StoreToDocumentArchive [11:23:55]shift 554 fd 72544 [11:23:55]save to /storage/0554/doc_00072544 [11:23:55]save last doc name /storage/0554/doc_00072544 to /storage/kkm_last_doc_name [11:23:55]save OK [11:23:55]Clear old archive folders... [11:23:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:23:55]tlvbuf is 004CBAD0 [11:23:55]SAM_PROTO_ClearQueue [11:23:55]wFMCommunicate request_size=4 [11:23:55]MH_SAM_APDU [11:23:55]CAPDU: 80 09 00 00 [11:23:55]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [11:23:55]RAPDU: 90 00 [11:23:55]wFMCommunicate OK [11:23:55]SAM_PROTO_ClearQueue done [11:23:55]KKMCreateOFDPacket [11:23:55]OFDProtocolAddRootSTLVToBuf [11:23:55]FM_MakeSignedData [11:23:55]FM_MakeSignedData [11:23:55]SAM_PROTO_SignData [11:23:55]wFMCommunicate request_size=4 [11:23:55]MH_SAM_APDU [11:23:55]CAPDU: 80 0D 01 02 [11:23:55]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [11:23:55]RAPDU: 90 00 [11:23:55]wFMCommunicate OK [11:23:55]wFMCommunicate request_size=255 [11:23:55]MH_SAM_APDU [11:23: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4A 74 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1B 01 00 35 04 06 00 61 [11:23:55]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4A 74 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1B 01 00 35 04 06 00 61 00 00 E5 [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [11:23:55]RAPDU: 90 00 [11:23:55]wFMCommunicate OK [11:23:55]wFMCommunicate request_size=10 [11:23:55]MH_SAM_APDU [11:23:55]CAPDU: 80 0D 02 02 05 7A 42 4F 8F 30 [11:23:55]Write to MH i2c: E2 0D 00 5E 03 80 0D 02 02 05 00 7A 42 4F 8F 30 00 00 AF [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [11:23:55]RAPDU: 90 00 [11:23:55]wFMCommunicate OK [11:23:55]wFMCommunicate request_size=4 [11:23:55]MH_SAM_APDU [11:23:55]CAPDU: 80 0D 03 02 [11:23:55]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 0B 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 0B 00 5F 03 00 28 A5 0E 79 62 AB F6 D5 90 00 0A [11:23:55]RAPDU: 28 A5 0E 79 62 AB F6 D5 90 00 [11:23:55]wFMCommunicate OK [11:23:55]SAM_PROTO_SignData done [11:23:55]FM_MakeSignedData done [11:23:55]CreateOFDProtocolMessage [11:23:55]wFMCommunicate request_size=4 [11:23:55]MH_SAM_APDU [11:23:55]CAPDU: 80 11 00 00 [11:23:55]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:55]Read from MH i2c: E2 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 17 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [11:23:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:23:55]wFMCommunicate OK [11:23:55]CreateOFDProtocolMessage done [11:23:55]OFDSenderStorePacket 72544 [11:23:55]StoreOFDPacket docnum=72544 [11:23:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 77 07 01 09 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4A 74 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1B 01 00 35 04 06 00 61 7A 42 4F 8F 30 28 A5 0E 79 62 AB F6 D5 [11:23:55]CheckFolder [11:23:55]dirname=/storage/ofd_packets [11:23:55]CheckFolder done [11:23:55]ProducePacketName [11:23:55]name=ofd_packets/00072544 [11:23:55]NVStorageSaveData ofd_packets/00072544 [11:23:55]File name is /storage/ofd_packets/00072544 [11:23:55]Write 301 bytes [11:23:55]NVStorageSaveData done [11:23:55]OFDSenderStorePacket done [11:23:55]KKMCreateOFDPacket done [11:23:55]NVStorageSaveData kkm_last_timestamp [11:23:55]File name is /storage/kkm_last_timestamp [11:23:55]Write 4 bytes [11:23:55]NVStorageSaveData done [11:23:55]ExternCall_PrintAddStr [11:23:55]wPrintStart [11:23:55]Write to MH i2c: 01 00 00 61 03 64 [11:23:55]Write i2c OK [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: 01 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: 01 07 00 [11:23:55]MH_I2C_Read... [11:23:55]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [11:23:55]RasterBufferAndPrint [11:23:55]line Счет N : (1)951998 [11:23:55]line ИНН: 02508201610067 [11:23:55]line Контрольно-Кассовый Чек [11:23:55]line ПРОДАЖА [11:23:55]line ТРК (МРК, ГНК) : 63 [11:23:55]line Товар: 2710124130 [11:23:55]line Аи-92-К-5 [11:23:55]line 20.000 * 0.00 [11:23:55]line = 0.00 [11:23:55]line НДС 12% НСП 1% [11:23:55]line > о реализуемом товаре [11:23:55]line ИТОГО: 0.00 [11:23:55]line НСП 1% : 0.00 [11:23:55]line НДС 12% : 0.00 [11:23:55]line Наличными: 0.00 [11:23:55]line Безнал.: 0.00 [11:23:55]line Место: АЗС № 113 "Партнер Нефть" [11:23:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:23:55]line СНО: Общий режим [11:23:55]line Чек 72 28.10.2024 11:23 [11:23:55]line Смена: 554 ФФД: 1.0 [11:23:55]line ЗНМ: 0300000087 [11:23:55]line РНМ: 0000000000091644 [11:23:55]line Версия ККМ: 001 [11:23:55]line Талоны: Топливная Карта [11:23:55]line 00908 [11:23:55]line ФМ: 0000000000874662 [11:23:55]line ФД: 72544 [11:23:55]line ФПД: 107177726414640 [11:23:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T112354&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72544&fm=107177726414640&tin=02508201610067®Number=0000000000091644&sum=0 [11:23:55]written 0, free lines is 4095 [11:23:55]OFD Sender: Processing packet 72544 [packets to send 273, broken 272] [11:23:55]ProducePacketName [11:23:55]name=ofd_packets/00072544 [11:23:55]OFD Sender: To server: pG, [11:23:55]CommunicateWithHost lk.salyk.kg:30040 [11:23:55]ConnectInit lk.salyk.kg [11:23:56]Write to MH i2c: 01 00 00 8B 03 8E [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: 01 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: 01 07 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 E0 0C 81 [11:23:56]RasterBufferAndPrint [11:23:56]line [11:23:56]line [11:23:56]line [11:23:56]line [11:23:56]line [11:23:56]written 0, free lines is 3302 [11:23:56]MH_Cut [11:23:56]Write to MH i2c: D1 01 00 92 03 01 67 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: D1 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: D1 01 00 [11:23:56]MH_I2C_Read... [11:23:56]Read from MH i2c: D1 01 00 92 03 00 66 [11:23:56]Write to MH i2c: 01 00 00 93 03 96 [11:23:56]Write i2c OK [11:23:56]MH_I2C_Read... [11:23:56]Connected sock=7 [11:23:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EB 77 07 01 09 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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 4A 74 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1B 01 00 35 04 06 00 61 7A 42 4F 8F 30 28 A5 0E 79 62 AB F6 D5 [11:23:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A2 98 47 00 D1 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 60 1B 01 00 F4 03 04 00 09 1F 1F 67 B6 04 01 00 00 9C 6F 63 BD 83 E8 9F EE [11:23:56]CommunicateWithHost err = 0 [11:23:56]CheckOFDResponse [11:23:56]1017 (14) - 77093643461234 [11:23:56]1041 (16) - 0000000000874662 [11:23:56]1040 (4) - 72544 [11:23:56]1012 (4) - 28.10.2024 05:20 [11:23:56]1206 (1) - 0 [11:23:56]OFD Sender: Remove packet 72544 [11:23:56]ProducePacketName [11:23:56]name=ofd_packets/00072544 [11:23:56]NVStorageDeleteData [11:23:56]*** Cut start [11:23:56]*** Partial cut [11:23:56]*** CUTSNS_PIN = 1 [11:23:56]*** CUTSNS_PIN = 0 [11:23:57]*** Brake cut motor [11:23:57]OFD Sender: No OFD packet to send [11:23:57]Read from MH i2c: 01 [11:23:57]MH_I2C_Read... [11:23:57]*** Stop cut motor [11:23:57]*** Cut end [11:23:57]Read from MH i2c: 01 07 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [11:23:57]process_action close_receipt done [11:23:57]requested_data is exist [11:23:57]produce_requested_data [11:23:57]requested_item fm.sn is exist - process it [11:23:57]wFMCommunicate request_size=4 [11:23:57]MH_SAM_APDU [11:23:57]CAPDU: 80 11 00 00 [11:23:57]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:57]Read from MH i2c: E2 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 17 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [11:23:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:23:57]wFMCommunicate OK [11:23:57]requested_item fd.num is exist - process it [11:23:57]SAM_PROTO_GetFieldsCounters [11:23:57]wFMCommunicate request_size=4 [11:23:57]MH_SAM_APDU [11:23:57]CAPDU: 80 13 00 00 [11:23:57]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:57]Read from MH i2c: E2 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 62 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 62 00 95 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [11:23: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 60 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:57]wFMCommunicate OK [11:23:57]SAM_PROTO_GetFieldsCounters done [11:23:57]requested_item shift.num is exist - process it [11:23:57]requested_item shift.opened is exist - process it [11:23:57]req_shift_opened [11:23:57]FM_GetShiftState [11:23:57]SAM_PROTO_GetShiftState [11:23:57]wFMCommunicate request_size=4 [11:23:57]MH_SAM_APDU [11:23:57]CAPDU: 80 13 01 00 [11:23:57]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [11:23:57]Write i2c OK [11:23:57]MH_I2C_Read... [11:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:57]Read from MH i2c: E2 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 0E 00 [11:23:57]MH_I2C_Read... [11:23:57]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7E [11:23:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:23:57]wFMCommunicate OK [11:23:57]SAM_PROTO_GetShiftState done [11:23:57]FM_GetShiftState done [11:23:57]req_shift_opened done [11:23:57]requested_item shift.open_date is exist - process it [11:23:57]req_shift_open_date [11:23:57]req_shift_open_date done [11:23:57]produce_requested_data done [11:23:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72544,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:23:57]process_action_free close_receipt [11:23:57]json_value_free [11:23:57]json_value_free done [11:23:57]process_json_proto returns [11:23:57]Send response to host [11:23:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72544,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:23:57]free response buf [11:23:57]execute_script done [11:23:57]execute_script returns [11:23:57]free content buf [11:23:57]Sock 10.Close socket [11:23:57]Sock 10.Thread stoped [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:20]recv_with_timeout no data received [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:44]recv_with_timeout no data received [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:14]recv_with_timeout no data received [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:26:58]recv_with_timeout no data received [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:39]recv_with_timeout no data received [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:11]recv_with_timeout no data received [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:53]recv_with_timeout no data received [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:39]recv_with_timeout no data received [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:25]recv_with_timeout no data received [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:43]recv_with_timeout no data received [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:11]recv_with_timeout no data received [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:09]recv_with_timeout no data received [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:25]recv_with_timeout no data received [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:48]OFD Sender: No OFD packet to send [11:32:53]OFD Sender: No OFD packet to send [11:32:58]OFD Sender: No OFD packet to send [11:33:03]OFD Sender: No OFD packet to send [11:33:08]OFD Sender: No OFD packet to send [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:19]recv_with_timeout no data received [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:04]recv_with_timeout no data received [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:07]recv_with_timeout no data received [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:16]accept exits with 9 [11:35:16]New connection [11:35:16]New thread 3067624804 created [11:35:16]Thread 3067481444 joined [11:35:16]Waiting for new connection... [11:35:16] Sock 9.Parse request [11:35:16]Sock 9.Check first char [11:35:16]Sock 9.First char is OK [11:35:16]request: POST /json_proto HTTP/1.0 [11:35:16]Method: POST [11:35:16]URL: /json_proto [11:35:16]Method is POST - this is cgi request [11:35:16]url: /json_proto [11:35:16]query_string will be loaded in cgi processing [11:35:16]execute_cgi json_proto POST (null) [11:35:16]execute_cgi path=json_proto method=POST [11:35:16]POST find Content-Length [11:35:16]Host: 172.17.43.195:8080 [11:35:16]Content-Length: 754 [11:35:16]Content-Type: application/json [11:35:16] [11:35:16]POST finish read [11:35:16]Found Content-Length = 754 [11:35:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:16]execute_script... [11:35:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952002", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:16]POST & json_proto [11:35:16]process_json_proto [11:35:16]json parsed OK: [11:35:16]protocol is kg_v1.0 [11:35:16]action value=close_receipt [11:35:16]process_action close_receipt [11:35:16]cmd_close_receipt [11:35:16]MH_GetDate [11:35:16]Write to MH i2c: F0 00 00 97 03 89 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 09 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: F0 09 00 97 03 00 F5 76 1F 67 74 2C AD 66 36 [11:35:16]GetLastDocTimeStamp 1730114634 [11:35:16]current date 1730115317 [11:35:16]FM_GetShiftState [11:35:16]SAM_PROTO_GetShiftState [11:35:16]wFMCommunicate request_size=4 [11:35:16]MH_SAM_APDU [11:35:16]CAPDU: 80 13 01 00 [11:35:16]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [11:35:16]Write i2c OK [11:35:16]MH_I2C_Read... [11:35:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:16]Read from MH i2c: E2 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 [11:35:16]MH_I2C_Read... [11:35:16]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 80 [11:35:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:35:16]wFMCommunicate OK [11:35:16]SAM_PROTO_GetShiftState done [11:35:16]FM_GetShiftState done [11:35:16]opened in 1730074113 [11:35:16]opened+sec_in_day 1730160513 [11:35:16]quantity*price = 0 [11:35:16]sum+1 = 1 [11:35:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 73 28.10.2024 11:35 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145751 ФМ: 0000000000874662 ФД: 72545 ФПД: 11170401701198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113517&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72545&fm=11170401701198&tin=02508201610067®Number=0000000000091644&sum=0 [11:35:18]StoreToDocumentArchive [11:35:18]shift 554 fd 72545 [11:35:18]save to /storage/0554/doc_00072545 [11:35:18]save last doc name /storage/0554/doc_00072545 to /storage/kkm_last_doc_name [11:35:18]save OK [11:35:18]Clear old archive folders... [11:35:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:35:18]tlvbuf is 004CCCA0 [11:35:18]SAM_PROTO_ClearQueue [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 09 00 00 [11:35:18]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [11:35:18]RAPDU: 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_ClearQueue done [11:35:18]KKMCreateOFDPacket [11:35:18]OFDProtocolAddRootSTLVToBuf [11:35:18]FM_MakeSignedData [11:35:18]FM_MakeSignedData [11:35:18]SAM_PROTO_SignData [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 0D 01 02 [11:35:18]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [11:35:18]RAPDU: 90 00 [11:35:18]wFMCommunicate OK [11:35:18]wFMCommunicate request_size=255 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 49 00 00 00 F4 03 04 00 F5 76 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1B 01 00 35 04 06 00 0A [11:35:18]Write to MH i2c: E2 02 01 A7 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 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 49 00 00 00 F4 03 04 00 F5 76 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1B 01 00 35 04 06 00 0A 00 00 50 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]OFD Sender: No OFD packet to send [11:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [11:35:18]RAPDU: 90 00 [11:35:18]wFMCommunicate OK [11:35:18]wFMCommunicate request_size=10 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 0D 02 02 05 28 CF D3 4D 4E [11:35:18]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 28 CF D3 4D 4E 00 00 94 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [11:35:18]RAPDU: 90 00 [11:35:18]wFMCommunicate OK [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 0D 03 02 [11:35:18]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0B 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 0B 00 A9 03 00 8D DD 18 4E F0 33 2E 47 90 00 90 [11:35:18]RAPDU: 8D DD 18 4E F0 33 2E 47 90 00 [11:35:18]wFMCommunicate OK [11:35:18]SAM_PROTO_SignData done [11:35:18]FM_MakeSignedData done [11:35:18]CreateOFDProtocolMessage [11:35:18]wFMCommunicate request_size=4 [11:35:18]MH_SAM_APDU [11:35:18]CAPDU: 80 11 00 00 [11:35:18]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:18]Read from MH i2c: E2 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [11:35:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:35:18]wFMCommunicate OK [11:35:18]CreateOFDProtocolMessage done [11:35:18]OFDSenderStorePacket 72545 [11:35:18]StoreOFDPacket docnum=72545 [11:35:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A5 C5 07 01 56 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 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 49 00 00 00 F4 03 04 00 F5 76 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1B 01 00 35 04 06 00 0A 28 CF D3 4D 4E 8D DD 18 4E F0 33 2E 47 [11:35:18]CheckFolder [11:35:18]dirname=/storage/ofd_packets [11:35:18]CheckFolder done [11:35:18]ProducePacketName [11:35:18]name=ofd_packets/00072545 [11:35:18]NVStorageSaveData ofd_packets/00072545 [11:35:18]File name is /storage/ofd_packets/00072545 [11:35:18]Write 301 bytes [11:35:18]NVStorageSaveData done [11:35:18]OFDSenderStorePacket done [11:35:18]KKMCreateOFDPacket done [11:35:18]NVStorageSaveData kkm_last_timestamp [11:35:18]File name is /storage/kkm_last_timestamp [11:35:18]Write 4 bytes [11:35:18]NVStorageSaveData done [11:35:18]ExternCall_PrintAddStr [11:35:18]wPrintStart [11:35:18]Write to MH i2c: 01 00 00 AB 03 AE [11:35:18]Write i2c OK [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 07 00 [11:35:18]MH_I2C_Read... [11:35:18]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [11:35:18]RasterBufferAndPrint [11:35:18]line Счет N : (1)952002 [11:35:18]line ИНН: 02508201610067 [11:35:18]line Контрольно-Кассовый Чек [11:35:18]line ПРОДАЖА [11:35:18]line ТРК (МРК, ГНК) : 53 [11:35:18]line Товар: 2710124130 [11:35:18]line Аи-92-К-5 [11:35:18]line 10.000 * 0.00 [11:35:18]line = 0.00 [11:35:18]line НДС 12% НСП 1% [11:35:18]line > о реализуемом товаре [11:35:18]line ИТОГО: 0.00 [11:35:18]line НСП 1% : 0.00 [11:35:18]line НДС 12% : 0.00 [11:35:18]line Наличными: 0.00 [11:35:18]line Безнал.: 0.00 [11:35:18]line Место: АЗС № 113 "Партнер Нефть" [11:35:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:35:18]line СНО: Общий режим [11:35:18]line Чек 73 28.10.2024 11:35 [11:35:18]line Смена: 554 ФФД: 1.0 [11:35:18]line ЗНМ: 0300000087 [11:35:18]line РНМ: 0000000000091644 [11:35:18]line Версия ККМ: 001 [11:35:18]line Талоны: ТК ГПНА Online [11:35:18]line 30145751 [11:35:18]line ФМ: 0000000000874662 [11:35:18]line ФД: 72545 [11:35:18]line ФПД: 11170401701198 [11:35:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T113517&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72545&fm=11170401701198&tin=02508201610067®Number=0000000000091644&sum=0 [11:35:18]written 0, free lines is 4095 [11:35:18]OFD Sender: Processing packet 72545 [packets to send 273, broken 272] [11:35:18]ProducePacketName [11:35:18]name=ofd_packets/00072545 [11:35:18]OFD Sender: To server: pG, [11:35:18]CommunicateWithHost lk.salyk.kg:30040 [11:35:18]ConnectInit lk.salyk.kg [11:35:19]Write to MH i2c: 01 00 00 D5 03 D8 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: 01 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: 01 07 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 E9 0C D4 [11:35:19]RasterBufferAndPrint [11:35:19]line [11:35:19]line [11:35:19]line [11:35:19]line [11:35:19]line [11:35:19]written 0, free lines is 3313 [11:35:19]MH_Cut [11:35:19]Write to MH i2c: D1 01 00 DC 03 01 B1 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: D1 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: D1 01 00 [11:35:19]MH_I2C_Read... [11:35:19]Read from MH i2c: D1 01 00 DC 03 00 B0 [11:35:19]Write to MH i2c: 01 00 00 DD 03 E0 [11:35:19]Write i2c OK [11:35:19]MH_I2C_Read... [11:35:19]*** Cut start [11:35:19]*** Partial cut [11:35:19]*** CUTSNS_PIN = 1 [11:35:19]*** CUTSNS_PIN = 0 [11:35:20]Connected sock=10 [11:35:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A5 C5 07 01 56 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 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 49 00 00 00 F4 03 04 00 F5 76 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 61 1B 01 00 35 04 06 00 0A 28 CF D3 4D 4E 8D DD 18 4E F0 33 2E 47 [11:35:20]*** Brake cut motor [11:35:20]Read from MH i2c: 01 [11:35:20]MH_I2C_Read... [11:35:20]*** Stop cut motor [11:35:20]*** Cut end [11:35:20]Read from MH i2c: 01 07 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [11:35:20]process_action close_receipt done [11:35:20]requested_data is exist [11:35:20]produce_requested_data [11:35:20]requested_item fm.sn is exist - process it [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 11 00 00 [11:35:20]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [11:35:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:35:20]wFMCommunicate OK [11:35:20]requested_item fd.num is exist - process it [11:35:20]SAM_PROTO_GetFieldsCounters [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 13 00 00 [11:35:20]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E6 68 47 00 96 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 34 36 36 32 10 04 04 00 61 1B 01 00 F4 03 04 00 B5 21 1F 67 B6 04 01 00 00 DC B9 D6 A6 5B C1 AC 20 [11:35:20]CommunicateWithHost err = 0 [11:35:20]CheckOFDResponse [11:35:20]1017 (14) - 77093643461234 [11:35:20]1041 (16) - 0000000000874662 [11:35:20]1040 (4) - 72545 [11:35:20]1012 (4) - 28.10.2024 05:31 [11:35:20]1206 (1) - 0 [11:35:20]OFD Sender: Remove packet 72545 [11:35:20]ProducePacketName [11:35:20]name=ofd_packets/00072545 [11:35:20]NVStorageDeleteData [11:35:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 62 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 62 00 DF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 61 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [11:35: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 61 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_GetFieldsCounters done [11:35:20]requested_item shift.num is exist - process it [11:35:20]requested_item shift.opened is exist - process it [11:35:20]req_shift_opened [11:35:20]FM_GetShiftState [11:35:20]SAM_PROTO_GetShiftState [11:35:20]wFMCommunicate request_size=4 [11:35:20]MH_SAM_APDU [11:35:20]CAPDU: 80 13 01 00 [11:35:20]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [11:35:20]Write i2c OK [11:35:20]MH_I2C_Read... [11:35:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:20]Read from MH i2c: E2 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 [11:35:20]MH_I2C_Read... [11:35:20]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C8 [11:35:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:35:20]wFMCommunicate OK [11:35:20]SAM_PROTO_GetShiftState done [11:35:20]FM_GetShiftState done [11:35:20]req_shift_opened done [11:35:20]requested_item shift.open_date is exist - process it [11:35:20]req_shift_open_date [11:35:20]req_shift_open_date done [11:35:20]produce_requested_data done [11:35:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72545,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:35:20]process_action_free close_receipt [11:35:20]json_value_free [11:35:20]json_value_free done [11:35:20]process_json_proto returns [11:35:20]Send response to host [11:35:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72545,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:35:20]free response buf [11:35:20]execute_script done [11:35:20]execute_script returns [11:35:20]free content buf [11:35:20]Sock 9.Close socket [11:35:20]Sock 9.Thread stoped [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:36]OFD Sender: No OFD packet to send [11:35:41]OFD Sender: No OFD packet to send [11:35:46]OFD Sender: No OFD packet to send [11:35:51]OFD Sender: No OFD packet to send [11:35:56]OFD Sender: No OFD packet to send [11:36:01]OFD Sender: No OFD packet to send [11:36:06]OFD Sender: No OFD packet to send [11:36:11]recv_with_timeout no data received [11:36:11]OFD Sender: No OFD packet to send [11:36:16]OFD Sender: No OFD packet to send [11:36:21]OFD Sender: No OFD packet to send [11:36:26]OFD Sender: No OFD packet to send [11:36:31]OFD Sender: No OFD packet to send [11:36:36]OFD Sender: No OFD packet to send [11:36:41]OFD Sender: No OFD packet to send [11:36:46]OFD Sender: No OFD packet to send [11:36:49]recv_with_timeout no data received [11:36:51]OFD Sender: No OFD packet to send [11:36:56]OFD Sender: No OFD packet to send [11:37:01]OFD Sender: No OFD packet to send [11:37:06]OFD Sender: No OFD packet to send [11:37:06]recv_with_timeout no data received [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:56]OFD Sender: No OFD packet to send [11:39:01]OFD Sender: No OFD packet to send [11:39:06]OFD Sender: No OFD packet to send [11:39:11]OFD Sender: No OFD packet to send [11:39:16]OFD Sender: No OFD packet to send [11:39:18]recv_with_timeout no data received [11:39:21]OFD Sender: No OFD packet to send [11:39:26]OFD Sender: No OFD packet to send [11:39:31]OFD Sender: No OFD packet to send [11:39:36]OFD Sender: No OFD packet to send [11:39:41]OFD Sender: No OFD packet to send [11:39:46]OFD Sender: No OFD packet to send [11:39:51]OFD Sender: No OFD packet to send [11:39:56]OFD Sender: No OFD packet to send [11:39:57]recv_with_timeout no data received [11:40:01]OFD Sender: No OFD packet to send [11:40:06]OFD Sender: No OFD packet to send [11:40:08]recv_with_timeout no data received [11:40:11]OFD Sender: No OFD packet to send [11:40:16]OFD Sender: No OFD packet to send [11:40:21]OFD Sender: No OFD packet to send [11:40:26]OFD Sender: No OFD packet to send [11:40:31]recv_with_timeout no data received [11:40:31]OFD Sender: No OFD packet to send [11:40:36]OFD Sender: No OFD packet to send [11:40:41]OFD Sender: No OFD packet to send [11:40:46]OFD Sender: No OFD packet to send [11:40:51]OFD Sender: No OFD packet to send [11:40:56]OFD Sender: No OFD packet to send [11:41:01]OFD Sender: No OFD packet to send [11:41:06]OFD Sender: No OFD packet to send [11:41:11]OFD Sender: No OFD packet to send [11:41:16]OFD Sender: No OFD packet to send [11:41:19]recv_with_timeout no data received [11:41:21]OFD Sender: No OFD packet to send [11:41:26]OFD Sender: No OFD packet to send [11:41:31]OFD Sender: No OFD packet to send [11:41:36]OFD Sender: No OFD packet to send [11:41:41]OFD Sender: No OFD packet to send [11:41:46]OFD Sender: No OFD packet to send [11:41:51]OFD Sender: No OFD packet to send [11:41:56]OFD Sender: No OFD packet to send [11:42:01]OFD Sender: No OFD packet to send [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:21]OFD Sender: No OFD packet to send [11:42:26]OFD Sender: No OFD packet to send [11:42:31]OFD Sender: No OFD packet to send [11:42:36]OFD Sender: No OFD packet to send [11:42:41]OFD Sender: No OFD packet to send [11:42:46]OFD Sender: No OFD packet to send [11:42:51]OFD Sender: No OFD packet to send [11:42:56]OFD Sender: No OFD packet to send [11:43:01]OFD Sender: No OFD packet to send [11:43:06]OFD Sender: No OFD packet to send [11:43:11]OFD Sender: No OFD packet to send [11:43:16]OFD Sender: No OFD packet to send [11:43:17]recv_with_timeout no data received [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:27]recv_with_timeout no data received [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:27]OFD Sender: No OFD packet to send [11:44:32]OFD Sender: No OFD packet to send [11:44:37]OFD Sender: No OFD packet to send [11:44:42]OFD Sender: No OFD packet to send [11:44:47]OFD Sender: No OFD packet to send [11:44:49]recv_with_timeout no data received [11:44:52]OFD Sender: No OFD packet to send [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:05]recv_with_timeout no data received [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:33]accept exits with 7 [11:45:33]New connection [11:45:33]New thread 3067481444 created [11:45:33]Thread 3067624804 joined [11:45:33]Waiting for new connection... [11:45:33] Sock 7.Parse request [11:45:33]Sock 7.Check first char [11:45:33]Sock 7.First char is OK [11:45:33]request: POST /json_proto HTTP/1.0 [11:45:33]Method: POST [11:45:33]URL: /json_proto [11:45:33]Method is POST - this is cgi request [11:45:33]url: /json_proto [11:45:33]query_string will be loaded in cgi processing [11:45:33]execute_cgi json_proto POST (null) [11:45:33]execute_cgi path=json_proto method=POST [11:45:33]POST find Content-Length [11:45:33]Host: 172.17.43.195:8080 [11:45:33]Content-Length: 792 [11:45:33]Content-Type: application/json [11:45:33] [11:45:33]POST finish read [11:45:33]Found Content-Length = 792 [11:45:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:33]execute_script... [11:45: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)952005", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:45:33]POST & json_proto [11:45:33]process_json_proto [11:45:33]json parsed OK: [11:45:33]protocol is kg_v1.0 [11:45:33]action value=close_receipt [11:45:33]process_action close_receipt [11:45:33]cmd_close_receipt [11:45:33]MH_GetDate [11:45:33]Write to MH i2c: F0 00 00 E1 03 D3 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: F0 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: F0 09 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: F0 09 00 E1 03 00 5E 79 1F 67 74 2C AD 66 EC [11:45:33]GetLastDocTimeStamp 1730115317 [11:45:33]current date 1730115934 [11:45:33]FM_GetShiftState [11:45:33]SAM_PROTO_GetShiftState [11:45:33]wFMCommunicate request_size=4 [11:45:33]MH_SAM_APDU [11:45:33]CAPDU: 80 13 01 00 [11:45:33]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [11:45:33]Write i2c OK [11:45:33]MH_I2C_Read... [11:45:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:33]Read from MH i2c: E2 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0E 00 [11:45:33]MH_I2C_Read... [11:45:33]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 CA [11:45:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:45:33]wFMCommunicate OK [11:45:33]SAM_PROTO_GetShiftState done [11:45:33]FM_GetShiftState done [11:45:33]opened in 1730074113 [11:45:33]opened+sec_in_day 1730160513 [11:45:33]quantity*price = 0 [11:45:33]sum+1 = 1 [11:45:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 74 28.10.2024 11:45 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72546 ФПД: 62856815718137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114534&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72546&fm=62856815718137&tin=02508201610067®Number=0000000000091644&sum=0 [11:45:35]StoreToDocumentArchive [11:45:35]shift 554 fd 72546 [11:45:35]save to /storage/0554/doc_00072546 [11:45:35]save last doc name /storage/0554/doc_00072546 to /storage/kkm_last_doc_name [11:45:35]save OK [11:45:35]Clear old archive folders... [11:45:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:45:35]tlvbuf is 004CB9A0 [11:45:35]SAM_PROTO_ClearQueue [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 09 00 00 [11:45:35]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_ClearQueue done [11:45:35]KKMCreateOFDPacket [11:45:35]OFDProtocolAddRootSTLVToBuf [11:45:35]FM_MakeSignedData [11:45:35]FM_MakeSignedData [11:45:35]SAM_PROTO_SignData [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 01 02 [11:45:35]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=255 [11:45:35]MH_SAM_APDU [11:45: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 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 4A 00 00 00 F4 03 04 00 5E 79 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1B 01 00 35 04 06 00 39 [11:45:35]Write to MH i2c: E2 02 01 F1 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 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 4A 00 00 00 F4 03 04 00 5E 79 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1B 01 00 35 04 06 00 39 00 00 D2 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=10 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 02 02 05 2A FE 2C 2E F9 [11:45:35]Write to MH i2c: E2 0D 00 F2 03 80 0D 02 02 05 00 2A FE 2C 2E F9 00 00 F4 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [11:45:35]RAPDU: 90 00 [11:45:35]wFMCommunicate OK [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 0D 03 02 [11:45:35]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0B 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 0B 00 F3 03 00 E3 94 46 DC EC 33 CB DD 90 00 D2 [11:45:35]RAPDU: E3 94 46 DC EC 33 CB DD 90 00 [11:45:35]wFMCommunicate OK [11:45:35]SAM_PROTO_SignData done [11:45:35]FM_MakeSignedData done [11:45:35]CreateOFDProtocolMessage [11:45:35]wFMCommunicate request_size=4 [11:45:35]MH_SAM_APDU [11:45:35]CAPDU: 80 11 00 00 [11:45:35]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:35]Read from MH i2c: E2 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [11:45:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:45:35]wFMCommunicate OK [11:45:35]CreateOFDProtocolMessage done [11:45:35]OFDSenderStorePacket 72546 [11:45:35]StoreOFDPacket docnum=72546 [11:45:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 77 F0 07 01 27 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 5E 79 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1B 01 00 35 04 06 00 39 2A FE 2C 2E F9 E3 94 46 DC EC 33 CB DD [11:45:35]CheckFolder [11:45:35]dirname=/storage/ofd_packets [11:45:35]CheckFolder done [11:45:35]ProducePacketName [11:45:35]name=ofd_packets/00072546 [11:45:35]NVStorageSaveData ofd_packets/00072546 [11:45:35]File name is /storage/ofd_packets/00072546 [11:45:35]Write 301 bytes [11:45:35]NVStorageSaveData done [11:45:35]OFDSenderStorePacket done [11:45:35]KKMCreateOFDPacket done [11:45:35]NVStorageSaveData kkm_last_timestamp [11:45:35]File name is /storage/kkm_last_timestamp [11:45:35]Write 4 bytes [11:45:35]NVStorageSaveData done [11:45:35]ExternCall_PrintAddStr [11:45:35]wPrintStart [11:45:35]Write to MH i2c: 01 00 00 F5 03 F8 [11:45:35]Write i2c OK [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 [11:45:35]MH_I2C_Read... [11:45:35]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [11:45:35]RasterBufferAndPrint [11:45:35]line Счет N : (1)952005 [11:45:35]line ИНН: 02508201610067 [11:45:35]line Контрольно-Кассовый Чек [11:45:35]line ПРОДАЖА [11:45:35]line ТРК (МРК, ГНК) : 53 [11:45:35]line Товар: 2710124130 [11:45:35]line Аи-92-К-5 [11:45:35]line 15.000 * 0.00 [11:45:35]line = 0.00 [11:45:35]line НДС 12% НСП 1% [11:45:35]line > о реализуемом товаре [11:45:35]line ИТОГО: 0.00 [11:45:35]line НСП 1% : 0.00 [11:45:35]line НДС 12% : 0.00 [11:45:35]line Наличными: 0.00 [11:45:35]line Безнал.: 0.00 [11:45:35]line Место: АЗС № 113 "Партнер Нефть" [11:45:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:45:35]line СНО: Общий режим [11:45:35]line Чек 74 28.10.2024 11:45 [11:45:35]line Смена: 554 ФФД: 1.0 [11:45:35]line ЗНМ: 0300000087 [11:45:35]line РНМ: 0000000000091644 [11:45:35]line Версия ККМ: 001 [11:45:35]line Талоны: Топливная Карта [11:45:35]line 03047 [11:45:35]line ФМ: 0000000000874662 [11:45:35]line ФД: 72546 [11:45:35]line ФПД: 62856815718137 [11:45:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T114534&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72546&fm=62856815718137&tin=02508201610067®Number=0000000000091644&sum=0 [11:45:35]written 0, free lines is 4095 [11:45:35]OFD Sender: Processing packet 72546 [packets to send 273, broken 272] [11:45:35]ProducePacketName [11:45:35]name=ofd_packets/00072546 [11:45:35]OFD Sender: To server: pG, [11:45:35]CommunicateWithHost lk.salyk.kg:30040 [11:45:35]ConnectInit lk.salyk.kg [11:45:36]Write to MH i2c: 01 00 00 1F 04 23 [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 E9 0C 1F [11:45:36]RasterBufferAndPrint [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]line [11:45:36]written 0, free lines is 3309 [11:45:36]MH_Cut [11:45:36]Write to MH i2c: D1 01 00 26 04 01 FC [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 01 00 [11:45:36]MH_I2C_Read... [11:45:36]Read from MH i2c: D1 01 00 26 04 00 FB [11:45:36]Write to MH i2c: 01 00 00 27 04 2B [11:45:36]Write i2c OK [11:45:36]MH_I2C_Read... [11:45:36]*** Cut start [11:45:36]*** Partial cut [11:45:36]*** CUTSNS_PIN = 1 [11:45:36]*** CUTSNS_PIN = 0 [11:45:37]*** Brake cut motor [11:45:37]Read from MH i2c: 01 [11:45:37]MH_I2C_Read... [11:45:37]*** Stop cut motor [11:45:37]*** Cut end [11:45:37]Read from MH i2c: 01 07 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [11:45:37]process_action close_receipt done [11:45:37]requested_data is exist [11:45:37]produce_requested_data [11:45:37]requested_item fm.sn is exist - process it [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 11 00 00 [11:45:37]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 17 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [11:45:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:45:37]wFMCommunicate OK [11:45:37]requested_item fd.num is exist - process it [11:45:37]SAM_PROTO_GetFieldsCounters [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 13 00 00 [11:45:37]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 62 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 62 00 29 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [11:45: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 62 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:45:37]wFMCommunicate OK [11:45:37]SAM_PROTO_GetFieldsCounters done [11:45:37]requested_item shift.num is exist - process it [11:45:37]requested_item shift.opened is exist - process it [11:45:37]req_shift_opened [11:45:37]FM_GetShiftState [11:45:37]SAM_PROTO_GetShiftState [11:45:37]wFMCommunicate request_size=4 [11:45:37]MH_SAM_APDU [11:45:37]CAPDU: 80 13 01 00 [11:45:37]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [11:45:37]Write i2c OK [11:45:37]MH_I2C_Read... [11:45:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:37]Read from MH i2c: E2 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 0E 00 [11:45:37]MH_I2C_Read... [11:45:37]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 13 [11:45:37]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:45:37]wFMCommunicate OK [11:45:37]SAM_PROTO_GetShiftState done [11:45:37]FM_GetShiftState done [11:45:37]req_shift_opened done [11:45:37]requested_item shift.open_date is exist - process it [11:45:37]req_shift_open_date [11:45:37]req_shift_open_date done [11:45:37]produce_requested_data done [11:45:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72546,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:45:37]process_action_free close_receipt [11:45:37]json_value_free [11:45:37]json_value_free done [11:45:37]process_json_proto returns [11:45:37]Send response to host [11:45:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72546,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:45:37]free response buf [11:45:37]execute_script done [11:45:37]execute_script returns [11:45:37]free content buf [11:45:37]Sock 7.Close socket [11:45:37]Sock 7.Thread stoped [11:45:40]recv_with_timeout no data received [11:45:48]Connected sock=11 [11:45:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 77 F0 07 01 27 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4A 00 00 00 F4 03 04 00 5E 79 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1B 01 00 35 04 06 00 39 2A FE 2C 2E F9 E3 94 46 DC EC 33 CB DD [11:45:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 09 FF 47 00 ED 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 62 1B 01 00 F4 03 04 00 2A 24 1F 67 B6 04 01 00 00 32 56 58 BE C8 78 9E 80 [11:45:49]CommunicateWithHost err = 0 [11:45:49]CheckOFDResponse [11:45:49]1017 (14) - 77093643461234 [11:45:49]1041 (16) - 0000000000874662 [11:45:49]1040 (4) - 72546 [11:45:49]1012 (4) - 28.10.2024 05:42 [11:45:49]1206 (1) - 0 [11:45:49]OFD Sender: Remove packet 72546 [11:45:49]ProducePacketName [11:45:49]name=ofd_packets/00072546 [11:45:49]NVStorageDeleteData [11:45:49]OFD Sender: No OFD packet to send [11:45:54]recv_with_timeout no data received [11:45:54]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:04]recv_with_timeout no data received [11:46:05]OFD Sender: No OFD packet to send [11:46:07]accept exits with 9 [11:46:07]New connection [11:46:07]New thread 3067624804 created [11:46:07]Thread 3067481444 joined [11:46:07]Waiting for new connection... [11:46:07] Sock 9.Parse request [11:46:07]Sock 9.Check first char [11:46:07]Sock 9.First char is OK [11:46:07]request: POST /json_proto HTTP/1.0 [11:46:07]Method: POST [11:46:07]URL: /json_proto [11:46:07]Method is POST - this is cgi request [11:46:07]url: /json_proto [11:46:07]query_string will be loaded in cgi processing [11:46:07]execute_cgi json_proto POST (null) [11:46:07]execute_cgi path=json_proto method=POST [11:46:07]POST find Content-Length [11:46:07]Host: 172.17.43.195:8080 [11:46:07]Content-Length: 805 [11:46:07]Content-Type: application/json [11:46:07] [11:46:07]POST finish read [11:46:07]Found Content-Length = 805 [11:46:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A4363532", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:07]execute_script... [11:46:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A4363532", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:46:07]POST & json_proto [11:46:07]process_json_proto [11:46:07]json parsed OK: [11:46:07]protocol is kg_v1.0 [11:46:07]action value=close_receipt [11:46:07]process_action close_receipt [11:46:07]cmd_close_receipt [11:46:07]MH_GetDate [11:46:07]Write to MH i2c: F0 00 00 2B 04 1E [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: F0 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: F0 09 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: F0 09 00 2B 04 00 7F 79 1F 67 74 2C AD 66 58 [11:46:07]GetLastDocTimeStamp 1730115934 [11:46:07]current date 1730115967 [11:46:07]FM_GetShiftState [11:46:07]SAM_PROTO_GetShiftState [11:46:07]wFMCommunicate request_size=4 [11:46:07]MH_SAM_APDU [11:46:07]CAPDU: 80 13 01 00 [11:46:07]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [11:46:07]Write i2c OK [11:46:07]MH_I2C_Read... [11:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:07]Read from MH i2c: E2 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: E2 0E 00 [11:46:07]MH_I2C_Read... [11:46:07]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 15 [11:46:07]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:46:07]wFMCommunicate OK [11:46:07]SAM_PROTO_GetShiftState done [11:46:07]FM_GetShiftState done [11:46:07]opened in 1730074113 [11:46:07]opened+sec_in_day 1730160513 [11:46:07]quantity*price = 0 [11:46:07]sum+1 = 1 [11:46:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 76 28.10.2024 11:53 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4363532 ФМ: 0000000000874662 ФД: 72548 ФПД: 216179304564096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115317&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72548&fm=216179304564096&tin=02508201610067®Number=0000000000091644&sum=0 [11:53:18]StoreToDocumentArchive [11:53:18]shift 554 fd 72548 [11:53:18]save to /storage/0554/doc_00072548 [11:53:18]save last doc name /storage/0554/doc_00072548 to /storage/kkm_last_doc_name [11:53:18]save OK [11:53:18]Clear old archive folders... [11:53:18]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:53:18]tlvbuf is 00238CD0 [11:53:18]SAM_PROTO_ClearQueue [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 09 00 00 [11:53:18]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [11:53:18]RAPDU: 90 00 [11:53:18]wFMCommunicate OK [11:53:18]SAM_PROTO_ClearQueue done [11:53:18]KKMCreateOFDPacket [11:53:18]OFDProtocolAddRootSTLVToBuf [11:53:18]FM_MakeSignedData [11:53:18]FM_MakeSignedData [11:53:18]SAM_PROTO_SignData [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 0D 01 02 [11:53:18]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [11:53:18]RAPDU: 90 00 [11:53:18]wFMCommunicate OK [11:53:18]wFMCommunicate request_size=255 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 4C 00 00 00 F4 03 04 00 2D 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1B 01 00 35 04 06 00 [11:53:18]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 2D 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1B 01 00 35 04 06 00 00 00 7E [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [11:53:19]RAPDU: 90 00 [11:53:19]wFMCommunicate OK [11:53:19]wFMCommunicate request_size=11 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 0D 02 02 06 C4 9D 2A A8 05 80 [11:53:19]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 C4 9D 2A A8 05 80 00 00 6C [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [11:53:19]RAPDU: 90 00 [11:53:19]wFMCommunicate OK [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 0D 03 02 [11:53:19]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 0B 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 0B 00 2F 00 00 73 2E 34 55 D5 62 5C 08 90 00 70 [11:53:19]RAPDU: 73 2E 34 55 D5 62 5C 08 90 00 [11:53:19]wFMCommunicate OK [11:53:19]SAM_PROTO_SignData done [11:53:19]FM_MakeSignedData done [11:53:19]CreateOFDProtocolMessage [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 11 00 00 [11:53:19]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 17 00 [11:53:19]MH_I2C_Read... [11:53:19]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 34 36 36 32 90 00 FE [11:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:53:19]wFMCommunicate OK [11:53:19]CreateOFDProtocolMessage done [11:53:19]OFDSenderStorePacket 72548 [11:53:19]StoreOFDPacket docnum=72548 [11:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EA 82 08 01 3B DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 2D 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1B 01 00 35 04 06 00 C4 9D 2A A8 05 80 73 2E 34 55 D5 62 5C 08 [11:53:19]CheckFolder [11:53:19]dirname=/storage/ofd_packets [11:53:19]CheckFolder done [11:53:19]ProducePacketName [11:53:19]name=ofd_packets/00072548 [11:53:19]NVStorageSaveData ofd_packets/00072548 [11:53:19]File name is /storage/ofd_packets/00072548 [11:53:19]Write 302 bytes [11:53:19]NVStorageSaveData done [11:53:19]OFDSenderStorePacket done [11:53:19]KKMCreateOFDPacket done [11:53:19]NVStorageSaveData kkm_last_timestamp [11:53:19]File name is /storage/kkm_last_timestamp [11:53:19]Write 4 bytes [11:53:19]NVStorageSaveData done [11:53:19]ExternCall_PrintAddStr [11:53:19]wPrintStart [11:53:19]Write to MH i2c: 01 00 00 31 00 31 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [11:53:19]RasterBufferAndPrint [11:53:19]line Счет N : (1)952006 [11:53:19]line ИНН: 02508201610067 [11:53:19]line Контрольно-Кассовый Чек [11:53:19]line ПРОДАЖА [11:53:19]line ТРК (МРК, ГНК) : 22 [11:53:19]line Товар: 2710194210 [11:53:19]line ДТ(л)-К-5 [11:53:19]line 20.000 * 0.00 [11:53:19]line = 0.00 [11:53:19]line НДС 12% НСП 1% [11:53:19]line > о реализуемом товаре [11:53:19]line ИТОГО: 0.00 [11:53:19]line НСП 1% : 0.00 [11:53:19]line НДС 12% : 0.00 [11:53:19]line Наличными: 0.00 [11:53:19]line Безнал.: 0.00 [11:53:19]line Место: АЗС № 113 "Партнер Нефть" [11:53:19]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:53:19]line СНО: Общий режим [11:53:19]line Чек 76 28.10.2024 11:53 [11:53:19]line Смена: 554 ФФД: 1.0 [11:53:19]line ЗНМ: 0300000087 [11:53:19]line РНМ: 0000000000091644 [11:53:19]line Версия ККМ: 001 [11:53:19]line Талоны: Топливные Талоны [11:53:19]line 4363532 [11:53:19]line ФМ: 0000000000874662 [11:53:19]line ФД: 72548 [11:53:19]line ФПД: 216179304564096 [11:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115317&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72548&fm=216179304564096&tin=02508201610067®Number=0000000000091644&sum=0 [11:53:19]written 0, free lines is 4095 [11:53:19]OFD Sender: Processing packet 72548 [packets to send 273, broken 272] [11:53:19]ProducePacketName [11:53:19]name=ofd_packets/00072548 [11:53:19]OFD Sender: To server: pG, [11:53:19]CommunicateWithHost lk.salyk.kg:30040 [11:53:19]ConnectInit lk.salyk.kg [11:53:19]Write to MH i2c: 01 00 00 5B 00 5B [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E6 0C 54 [11:53:19]RasterBufferAndPrint [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]line [11:53:19]written 0, free lines is 3327 [11:53:19]MH_Cut [11:53:19]Write to MH i2c: D1 01 00 62 00 01 34 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 01 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: D1 01 00 62 00 00 33 [11:53:19]Write to MH i2c: 01 00 00 63 00 63 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:20]*** Cut start [11:53:20]*** Partial cut [11:53:20]*** CUTSNS_PIN = 1 [11:53:20]*** CUTSNS_PIN = 0 [11:53:20]*** Brake cut motor [11:53:21]Read from MH i2c: 01 *** Stop cut motor [11:53:21] [11:53:21]*** Cut end [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: 01 07 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [11:53:21]process_action close_receipt done [11:53:21]requested_data is exist [11:53:21]produce_requested_data [11:53:21]requested_item fm.sn is exist - process it [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 11 00 00 [11:53:21]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 17 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [11:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:53:21]wFMCommunicate OK [11:53:21]requested_item fd.num is exist - process it [11:53:21]SAM_PROTO_GetFieldsCounters [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 13 00 00 [11:53:21]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 62 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 92 [11:53:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 64 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_GetFieldsCounters done [11:53:21]requested_item shift.num is exist - process it [11:53:21]requested_item shift.opened is exist - process it [11:53:21]req_shift_opened [11:53:21]FM_GetShiftState [11:53:21]SAM_PROTO_GetShiftState [11:53:21]wFMCommunicate request_size=4 [11:53:21]MH_SAM_APDU [11:53:21]CAPDU: 80 13 01 00 [11:53:21]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [11:53:21]Write i2c OK [11:53:21]MH_I2C_Read... [11:53:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:21]Read from MH i2c: E2 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 [11:53:21]MH_I2C_Read... [11:53:21]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [11:53:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:53:21]wFMCommunicate OK [11:53:21]SAM_PROTO_GetShiftState done [11:53:21]FM_GetShiftState done [11:53:21]req_shift_opened done [11:53:21]requested_item shift.open_date is exist - process it [11:53:21]req_shift_open_date [11:53:21]req_shift_open_date done [11:53:21]produce_requested_data done [11:53:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72548,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:53:21]process_action_free close_receipt [11:53:21]json_value_free [11:53:21]json_value_free done [11:53:21]process_json_proto returns [11:53:21]Send response to host [11:53:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72548,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:53:21]free response buf [11:53:21]execute_script done [11:53:21]execute_script returns [11:53:21]free content buf [11:53:21]Sock 8.Close socket [11:53:21]Sock 8.Thread stoped [11:53:22]Connected sock=11 [11:53:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 EA 82 08 01 3B DF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 4C 00 00 00 F4 03 04 00 2D 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1B 01 00 35 04 06 00 C4 9D 2A A8 05 80 73 2E 34 55 D5 62 5C 08 [11:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E8 27 47 00 BF 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 64 1B 01 00 F4 03 04 00 EE 25 1F 67 B6 04 01 00 00 9A 08 38 C7 EB EE 5F 21 [11:53:22]CommunicateWithHost err = 0 [11:53:22]CheckOFDResponse [11:53:22]1017 (14) - 77093643461234 [11:53:22]1041 (16) - 0000000000874662 [11:53:22]1040 (4) - 72548 [11:53:22]1012 (4) - 28.10.2024 05:49 [11:53:22]1206 (1) - 0 [11:53:22]OFD Sender: Remove packet 72548 [11:53:22]ProducePacketName [11:53:22]name=ofd_packets/00072548 [11:53:22]NVStorageDeleteData [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:43]recv_with_timeout no data received [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:11]recv_with_timeout no data received [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:42]recv_with_timeout no data received [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:05]accept exits with 9 [11:55:05]New connection [11:55:05]New thread 3067411812 created [11:55:05]Thread 3067555172 joined [11:55:05]Waiting for new connection... [11:55:05] Sock 9.Parse request [11:55:05]Sock 9.Check first char [11:55:05]Sock 9.First char is OK [11:55:05]request: POST /json_proto HTTP/1.0 [11:55:05]Method: POST [11:55:05]URL: /json_proto [11:55:05]Method is POST - this is cgi request [11:55:05]url: /json_proto [11:55:05]query_string will be loaded in cgi processing [11:55:05]execute_cgi json_proto POST (null) [11:55:05]execute_cgi path=json_proto method=POST [11:55:05]POST find Content-Length [11:55:05]Host: 172.17.43.195:8080 [11:55:05]Content-Length: 792 [11:55:05]Content-Type: application/json [11:55:05] [11:55:05]POST finish read [11:55:05]Found Content-Length = 792 [11:55:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:05]execute_script... [11:55: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)952008", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:05]POST & json_proto [11:55:05]process_json_proto [11:55:05]json parsed OK: [11:55:05]protocol is kg_v1.0 [11:55:05]action value=close_receipt [11:55:05]process_action close_receipt [11:55:05]cmd_close_receipt [11:55:05]MH_GetDate [11:55:05]Write to MH i2c: F0 00 00 67 00 56 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: F0 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: F0 09 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: F0 09 00 67 00 00 9A 7B 1F 67 74 2C AD 66 AD [11:55:05]GetLastDocTimeStamp 1730116397 [11:55:05]current date 1730116506 [11:55:05]FM_GetShiftState [11:55:05]SAM_PROTO_GetShiftState [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 13 01 00 [11:55:05]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [11:55:05]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_GetShiftState done [11:55:05]FM_GetShiftState done [11:55:05]opened in 1730074113 [11:55:05]opened+sec_in_day 1730160513 [11:55:05]quantity*price = 0 [11:55:05]sum+1 = 1 [11:55:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 77 28.10.2024 11:55 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72549 ФПД: 143502690571806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115506&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72549&fm=143502690571806&tin=02508201610067®Number=0000000000091644&sum=0 [11:55:07]StoreToDocumentArchive [11:55:07]shift 554 fd 72549 [11:55:07]save to /storage/0554/doc_00072549 [11:55:07]save last doc name /storage/0554/doc_00072549 to /storage/kkm_last_doc_name [11:55:07]save OK [11:55:07]Clear old archive folders... [11:55:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:07]tlvbuf is 00245450 [11:55:07]SAM_PROTO_ClearQueue [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 09 00 00 [11:55:07]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_ClearQueue done [11:55:07]KKMCreateOFDPacket [11:55:07]OFDProtocolAddRootSTLVToBuf [11:55:07]FM_MakeSignedData [11:55:07]FM_MakeSignedData [11:55:07]SAM_PROTO_SignData [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 0D 01 02 [11:55:07]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]wFMCommunicate request_size=255 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 9A 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1B 01 00 35 04 06 00 82 [11:55:07]Write to MH i2c: E2 02 01 77 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 66 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 4D 00 00 00 F4 03 04 00 9A 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1B 01 00 35 04 06 00 82 00 00 B0 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]wFMCommunicate request_size=10 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 0D 02 02 05 83 D2 E5 56 1E [11:55:07]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 83 D2 E5 56 1E 00 00 AA [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [11:55:07]RAPDU: 90 00 [11:55:07]wFMCommunicate OK [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 0D 03 02 [11:55:07]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0B 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0B 00 79 00 00 74 06 70 7B 9D DB D4 80 90 00 26 [11:55:07]RAPDU: 74 06 70 7B 9D DB D4 80 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_SignData done [11:55:07]FM_MakeSignedData done [11:55:07]CreateOFDProtocolMessage [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 11 00 00 [11:55:07]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 17 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [11:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:55:07]wFMCommunicate OK [11:55:07]CreateOFDProtocolMessage done [11:55:07]OFDSenderStorePacket 72549 [11:55:07]StoreOFDPacket docnum=72549 [11:55:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 31 07 01 5F C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 4D 00 00 00 F4 03 04 00 9A 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1B 01 00 35 04 06 00 82 83 D2 E5 56 1E 74 06 70 7B 9D DB D4 80 [11:55:07]CheckFolder [11:55:07]dirname=/storage/ofd_packets [11:55:07]CheckFolder done [11:55:07]ProducePacketName [11:55:07]name=ofd_packets/00072549 [11:55:07]NVStorageSaveData ofd_packets/00072549 [11:55:07]File name is /storage/ofd_packets/00072549 [11:55:07]Write 301 bytes [11:55:07]NVStorageSaveData done [11:55:07]OFDSenderStorePacket done [11:55:07]KKMCreateOFDPacket done [11:55:07]NVStorageSaveData kkm_last_timestamp [11:55:07]File name is /storage/kkm_last_timestamp [11:55:07]Write 4 bytes [11:55:07]NVStorageSaveData done [11:55:07]ExternCall_PrintAddStr [11:55:07]wPrintStart [11:55:07]Write to MH i2c: 01 00 00 7B 00 7B [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: 01 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: 01 07 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [11:55:07]RasterBufferAndPrint [11:55:07]line Счет N : (1)952008 [11:55:07]line ИНН: 02508201610067 [11:55:07]line Контрольно-Кассовый Чек [11:55:07]line ПРОДАЖА [11:55:07]line ТРК (МРК, ГНК) : 53 [11:55:07]line Товар: 2710124130 [11:55:07]line Аи-92-К-5 [11:55:07]line 14.950 * 0.00 [11:55:07]line = 0.00 [11:55:07]line НДС 12% НСП 1% [11:55:07]line > о реализуемом товаре [11:55:07]line ИТОГО: 0.00 [11:55:07]line НСП 1% : 0.00 [11:55:07]line НДС 12% : 0.00 [11:55:07]line Наличными: 0.00 [11:55:07]line Безнал.: 0.00 [11:55:07]line Место: АЗС № 113 "Партнер Нефть" [11:55:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [11:55:07]line СНО: Общий режим [11:55:07]line Чек 77 28.10.2024 11:55 [11:55:07]line Смена: 554 ФФД: 1.0 [11:55:07]line ЗНМ: 0300000087 [11:55:07]line РНМ: 0000000000091644 [11:55:07]line Версия ККМ: 001 [11:55:07]line Талоны: Топливная Карта [11:55:07]line 03047 [11:55:07]line ФМ: 0000000000874662 [11:55:07]line ФД: 72549 [11:55:07]line ФПД: 143502690571806 [11:55:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T115506&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72549&fm=143502690571806&tin=02508201610067®Number=0000000000091644&sum=0 [11:55:07]written 0, free lines is 4095 [11:55:07]OFD Sender: Processing packet 72549 [packets to send 273, broken 272] [11:55:07]ProducePacketName [11:55:07]name=ofd_packets/00072549 [11:55:07]OFD Sender: To server: pG, [11:55:07]CommunicateWithHost lk.salyk.kg:30040 [11:55:07]ConnectInit lk.salyk.kg [11:55:08]Write to MH i2c: 01 00 00 A5 00 A5 [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E0 0C 98 [11:55:08]RasterBufferAndPrint [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]line [11:55:08]written 0, free lines is 3302 [11:55:08]MH_Cut [11:55:08]Write to MH i2c: D1 01 00 AC 00 01 7E [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 01 00 [11:55:08]MH_I2C_Read... [11:55:08]Read from MH i2c: D1 01 00 AC 00 00 7D [11:55:08]Write to MH i2c: 01 00 00 AD 00 AD [11:55:08]Write i2c OK [11:55:08]MH_I2C_Read... [11:55:08]*** Cut start [11:55:08]*** Partial cut [11:55:08]*** CUTSNS_PIN = 1 [11:55:08]*** CUTSNS_PIN = 0 [11:55:09]*** Brake cut motor [11:55:09]Read from MH i2c: 01 [11:55:09]MH_I2C_Read... [11:55:09]*** Stop cut motor [11:55:09]*** Cut end [11:55:09]Read from MH i2c: 01 07 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [11:55:09]process_action close_receipt done [11:55:09]requested_data is exist [11:55:09]produce_requested_data [11:55:09]requested_item fm.sn is exist - process it [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 11 00 00 [11:55:09]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 17 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [11:55:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [11:55:09]wFMCommunicate OK [11:55:09]requested_item fd.num is exist - process it [11:55:09]SAM_PROTO_GetFieldsCounters [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 13 00 00 [11:55:09]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 62 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:55: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 65 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:09]wFMCommunicate OK [11:55:09]SAM_PROTO_GetFieldsCounters done [11:55:09]requested_item shift.num is exist - process it [11:55:09]requested_item shift.opened is exist - process it [11:55:09]req_shift_opened [11:55:09]FM_GetShiftState [11:55:09]SAM_PROTO_GetShiftState [11:55:09]wFMCommunicate request_size=4 [11:55:09]MH_SAM_APDU [11:55:09]CAPDU: 80 13 01 00 [11:55:09]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [11:55:09]Connected sock=11 [11:55:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 31 07 01 5F C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 4D 00 00 00 F4 03 04 00 9A 7B 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 65 1B 01 00 35 04 06 00 82 83 D2 E5 56 1E 74 06 70 7B 9D DB D4 80 [11:55:09]Write i2c OK [11:55:09]MH_I2C_Read... [11:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:09]Read from MH i2c: E2 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0E 00 [11:55:09]MH_I2C_Read... [11:55:09]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [11:55:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [11:55:09]wFMCommunicate OK [11:55:09]SAM_PROTO_GetShiftState done [11:55:09]FM_GetShiftState done [11:55:09]req_shift_opened done [11:55:09]requested_item shift.open_date is exist - process it [11:55:09]req_shift_open_date [11:55:09]req_shift_open_date done [11:55:09]produce_requested_data done [11:55:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72549,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [11:55:09]process_action_free close_receipt [11:55:09]json_value_free [11:55:09]json_value_free done [11:55:09]process_json_proto returns [11:55:09]Send response to host [11:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72549,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [11:55:09]free response buf [11:55:09]execute_script done [11:55:09]execute_script returns [11:55:09]free content buf [11:55:09]Sock 9.Close socket [11:55:09]Sock 9.Thread stoped [11:55:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C3 05 47 00 60 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 34 36 36 32 10 04 04 00 65 1B 01 00 F4 03 04 00 5A 26 1F 67 B6 04 01 00 00 64 86 A3 6E BF C4 17 1C [11:55:10]CommunicateWithHost err = 0 [11:55:10]CheckOFDResponse [11:55:10]1017 (14) - 77093643461234 [11:55:10]1041 (16) - 0000000000874662 [11:55:10]1040 (4) - 72549 [11:55:10]1012 (4) - 28.10.2024 05:51 [11:55:10]1206 (1) - 0 [11:55:10]OFD Sender: Remove packet 72549 [11:55:10]ProducePacketName [11:55:10]name=ofd_packets/00072549 [11:55:10]NVStorageDeleteData [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:32]recv_with_timeout no data received [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:11]recv_with_timeout no data received [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:22]recv_with_timeout no data received [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:39]recv_with_timeout no data received [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:18]recv_with_timeout no data received [11:57:21]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:03]ConnectInit Can't connect to host [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:23]accept exits with 10 [12:02:23]New connection [12:02:23]New thread 3067555172 created [12:02:23]Thread 3067411812 joined [12:02:23]Waiting for new connection... [12:02:23] Sock 10.Parse request [12:02:23]Sock 10.Check first char [12:02:23]Sock 10.First char is OK [12:02:23]request: POST /json_proto HTTP/1.0 [12:02:23]Method: POST [12:02:23]URL: /json_proto [12:02:23]Method is POST - this is cgi request [12:02:23]url: /json_proto [12:02:23]query_string will be loaded in cgi processing [12:02:23]execute_cgi json_proto POST (null) [12:02:23]execute_cgi path=json_proto method=POST [12:02:23]POST find Content-Length [12:02:23]Host: 172.17.43.195:8080 [12:02:23]Content-Length: 754 [12:02:23]Content-Type: application/json [12:02:23] [12:02:23]POST finish read [12:02:23]Found Content-Length = 754 [12:02:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:23]execute_script... [12:02: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)952011", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145751", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:02:23]POST & json_proto [12:02:23]process_json_proto [12:02:23]json parsed OK: [12:02:23]protocol is kg_v1.0 [12:02:23]action value=close_receipt [12:02:23]process_action close_receipt [12:02:23]cmd_close_receipt [12:02:23]MH_GetDate [12:02:23]Write to MH i2c: F0 00 00 B1 00 A0 [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: F0 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: F0 09 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: F0 09 00 B1 00 00 4F 7D 1F 67 74 2C AD 66 AE [12:02:23]GetLastDocTimeStamp 1730116506 [12:02:23]current date 1730116943 [12:02:23]FM_GetShiftState [12:02:23]SAM_PROTO_GetShiftState [12:02:23]wFMCommunicate request_size=4 [12:02:23]MH_SAM_APDU [12:02:23]CAPDU: 80 13 01 00 [12:02:23]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [12:02:23]Write i2c OK [12:02:23]MH_I2C_Read... [12:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:23]Read from MH i2c: E2 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 0E 00 [12:02:23]MH_I2C_Read... [12:02:23]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [12:02:23]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:02:23]wFMCommunicate OK [12:02:23]SAM_PROTO_GetShiftState done [12:02:23]FM_GetShiftState done [12:02:23]opened in 1730074113 [12:02:23]opened+sec_in_day 1730160513 [12:02:23]quantity*price = 0 [12:02:23]sum+1 = 1 [12:02:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 78 28.10.2024 12:02 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145751 ФМ: 0000000000874662 ФД: 72550 ФПД: 217687750879599 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120223&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72550&fm=217687750879599&tin=02508201610067®Number=0000000000091644&sum=0 [12:02:24]StoreToDocumentArchive [12:02:24]shift 554 fd 72550 [12:02:24]save to /storage/0554/doc_00072550 [12:02:24]save last doc name /storage/0554/doc_00072550 to /storage/kkm_last_doc_name [12:02:24]save OK [12:02:24]Clear old archive folders... [12:02:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:02:24]tlvbuf is 002555F0 [12:02:24]SAM_PROTO_ClearQueue [12:02:24]wFMCommunicate request_size=4 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 09 00 00 [12:02:24]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [12:02:24]RAPDU: 90 00 [12:02:24]wFMCommunicate OK [12:02:24]SAM_PROTO_ClearQueue done [12:02:24]KKMCreateOFDPacket [12:02:24]OFDProtocolAddRootSTLVToBuf [12:02:24]FM_MakeSignedData [12:02:24]FM_MakeSignedData [12:02:24]SAM_PROTO_SignData [12:02:24]wFMCommunicate request_size=4 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 0D 01 02 [12:02:24]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [12:02:24]RAPDU: 90 00 [12:02:24]wFMCommunicate OK [12:02:24]wFMCommunicate request_size=255 [12:02:24]MH_SAM_APDU [12:02: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 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 4E 00 00 00 F4 03 04 00 4F 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1B 01 00 35 04 06 00 C5 [12:02:24]Write to MH i2c: E2 02 01 C1 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 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 4E 00 00 00 F4 03 04 00 4F 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1B 01 00 35 04 06 00 C5 00 00 28 [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [12:02:24]RAPDU: 90 00 [12:02:24]wFMCommunicate OK [12:02:24]wFMCommunicate request_size=10 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 0D 02 02 05 FC 61 10 29 6F [12:02:24]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 FC 61 10 29 6F 00 00 4B [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [12:02:24]RAPDU: 90 00 [12:02:24]wFMCommunicate OK [12:02:24]wFMCommunicate request_size=4 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 0D 03 02 [12:02:24]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 0B 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 0B 00 C3 00 00 58 51 89 32 19 41 49 49 90 00 8F [12:02:24]RAPDU: 58 51 89 32 19 41 49 49 90 00 [12:02:24]wFMCommunicate OK [12:02:24]SAM_PROTO_SignData done [12:02:24]FM_MakeSignedData done [12:02:24]CreateOFDProtocolMessage [12:02:24]wFMCommunicate request_size=4 [12:02:24]MH_SAM_APDU [12:02:24]CAPDU: 80 11 00 00 [12:02:24]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:24]Read from MH i2c: E2 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 17 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [12:02:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:02:24]wFMCommunicate OK [12:02:24]CreateOFDProtocolMessage done [12:02:24]OFDSenderStorePacket 72550 [12:02:24]StoreOFDPacket docnum=72550 [12:02:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 73 A8 07 01 D2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 4F 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1B 01 00 35 04 06 00 C5 FC 61 10 29 6F 58 51 89 32 19 41 49 49 [12:02:24]CheckFolder [12:02:24]dirname=/storage/ofd_packets [12:02:24]CheckFolder done [12:02:24]ProducePacketName [12:02:24]name=ofd_packets/00072550 [12:02:24]NVStorageSaveData ofd_packets/00072550 [12:02:24]File name is /storage/ofd_packets/00072550 [12:02:24]Write 301 bytes [12:02:24]NVStorageSaveData done [12:02:24]OFDSenderStorePacket done [12:02:24]KKMCreateOFDPacket done [12:02:24]NVStorageSaveData kkm_last_timestamp [12:02:24]File name is /storage/kkm_last_timestamp [12:02:24]Write 4 bytes [12:02:24]NVStorageSaveData done [12:02:24]ExternCall_PrintAddStr [12:02:24]wPrintStart [12:02:24]Write to MH i2c: 01 00 00 C5 00 C5 [12:02:24]Write i2c OK [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: 01 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: 01 07 00 [12:02:24]MH_I2C_Read... [12:02:24]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [12:02:24]RasterBufferAndPrint [12:02:24]line Счет N : (1)952011 [12:02:24]line ИНН: 02508201610067 [12:02:24]line Контрольно-Кассовый Чек [12:02:24]line ПРОДАЖА [12:02:24]line ТРК (МРК, ГНК) : 53 [12:02:24]line Товар: 2710124130 [12:02:24]line Аи-92-К-5 [12:02:24]line 15.000 * 0.00 [12:02:24]line = 0.00 [12:02:24]line НДС 12% НСП 1% [12:02:24]line > о реализуемом товаре [12:02:24]line ИТОГО: 0.00 [12:02:24]line НСП 1% : 0.00 [12:02:24]line НДС 12% : 0.00 [12:02:24]line Наличными: 0.00 [12:02:24]line Безнал.: 0.00 [12:02:24]line Место: АЗС № 113 "Партнер Нефть" [12:02:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:02:24]line СНО: Общий режим [12:02:24]line Чек 78 28.10.2024 12:02 [12:02:24]line Смена: 554 ФФД: 1.0 [12:02:24]line ЗНМ: 0300000087 [12:02:24]line РНМ: 0000000000091644 [12:02:24]line Версия ККМ: 001 [12:02:24]line Талоны: ТК ГПНА Online [12:02:24]line 30145751 [12:02:24]line ФМ: 0000000000874662 [12:02:24]line ФД: 72550 [12:02:24]line ФПД: 217687750879599 [12:02:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120223&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72550&fm=217687750879599&tin=02508201610067®Number=0000000000091644&sum=0 [12:02:24]written 0, free lines is 4095 [12:02:25]OFD Sender: Processing packet 72550 [packets to send 273, broken 272] [12:02:25]ProducePacketName [12:02:25]name=ofd_packets/00072550 [12:02:25]OFD Sender: To server: pG, [12:02:25]CommunicateWithHost lk.salyk.kg:30040 [12:02:25]ConnectInit lk.salyk.kg [12:02:25]Write to MH i2c: 01 00 00 EF 00 EF [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: 01 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: 01 07 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 DD 0C DF [12:02:25]RasterBufferAndPrint [12:02:25]line [12:02:25]line [12:02:25]line [12:02:25]line [12:02:25]line [12:02:25]written 0, free lines is 3299 [12:02:25]MH_Cut [12:02:25]Write to MH i2c: D1 01 00 F6 00 01 C8 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: D1 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: D1 01 00 [12:02:25]MH_I2C_Read... [12:02:25]Read from MH i2c: D1 01 00 F6 00 00 C7 [12:02:25]Write to MH i2c: 01 00 00 F7 00 F7 [12:02:25]Write i2c OK [12:02:25]MH_I2C_Read... [12:02:25]Connected sock=11 [12:02:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 73 A8 07 01 D2 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4E 00 00 00 F4 03 04 00 4F 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1B 01 00 35 04 06 00 C5 FC 61 10 29 6F 58 51 89 32 19 41 49 49 [12:02:26]*** Cut start [12:02:26]*** Partial cut [12:02:26]*** CUTSNS_PIN = 1 [12:02:26]*** CUTSNS_PIN = 0 [12:02:26]*** Brake cut motor [12:02:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8C 61 47 00 B3 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 66 1B 01 00 F4 03 04 00 0E 28 1F 67 B6 04 01 00 00 B6 06 01 50 C5 79 95 F0 [12:02:26]CommunicateWithHost err = 0 [12:02:26]CheckOFDResponse [12:02:26]1017 (14) - 77093643461234 [12:02:26]1041 (16) - 0000000000874662 [12:02:26]1040 (4) - 72550 [12:02:26]1012 (4) - 28.10.2024 05:58 [12:02:26]1206 (1) - 0 [12:02:26]OFD Sender: Remove packet 72550 [12:02:26]ProducePacketName [12:02:26]name=ofd_packets/00072550 [12:02:26]NVStorageDeleteData [12:02:26]Read from MH i2c: 01 [12:02:26]MH_I2C_Read... [12:02:26]*** Stop cut motor [12:02:26]*** Cut end [12:02:26]Read from MH i2c: 01 07 00 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [12:02:26]process_action close_receipt done [12:02:26]requested_data is exist [12:02:26]produce_requested_data [12:02:26]requested_item fm.sn is exist - process it [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 11 00 00 [12:02:26]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:26]Read from MH i2c: E2 [12:02:26]MH_I2C_Read... [12:02:26]Read from MH i2c: E2 17 00 [12:02:26]MH_I2C_Read... [12:02:26]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 34 36 36 32 90 00 C6 [12:02:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:02:26]wFMCommunicate OK [12:02:26]requested_item fd.num is exist - process it [12:02:26]SAM_PROTO_GetFieldsCounters [12:02:26]wFMCommunicate request_size=4 [12:02:26]MH_SAM_APDU [12:02:26]CAPDU: 80 13 00 00 [12:02:26]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [12:02:26]Write i2c OK [12:02:26]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 62 00 [12:02:27]MH_I2C_Read... [12:02:27]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [12:02: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 66 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:27]wFMCommunicate OK [12:02:27]SAM_PROTO_GetFieldsCounters done [12:02:27]requested_item shift.num is exist - process it [12:02:27]requested_item shift.opened is exist - process it [12:02:27]req_shift_opened [12:02:27]FM_GetShiftState [12:02:27]SAM_PROTO_GetShiftState [12:02:27]wFMCommunicate request_size=4 [12:02:27]MH_SAM_APDU [12:02:27]CAPDU: 80 13 01 00 [12:02:27]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [12:02:27]Write i2c OK [12:02:27]MH_I2C_Read... [12:02:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:27]Read from MH i2c: E2 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0E 00 [12:02:27]MH_I2C_Read... [12:02:27]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [12:02:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:02:27]wFMCommunicate OK [12:02:27]SAM_PROTO_GetShiftState done [12:02:27]FM_GetShiftState done [12:02:27]req_shift_opened done [12:02:27]requested_item shift.open_date is exist - process it [12:02:27]req_shift_open_date [12:02:27]req_shift_open_date done [12:02:27]produce_requested_data done [12:02:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72550,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:02:27]process_action_free close_receipt [12:02:27]json_value_free [12:02:27]json_value_free done [12:02:27]process_json_proto returns [12:02:27]Send response to host [12:02:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72550,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:02:27]free response buf [12:02:27]execute_script done [12:02:27]execute_script returns [12:02:27]free content buf [12:02:27]Sock 10.Close socket [12:02:27]Sock 10.Thread stoped [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:49]recv_with_timeout no data received [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:02:59]recv_with_timeout no data received [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:32]accept exits with 9 [12:03:32]New connection [12:03:32]New thread 3067411812 created [12:03:32]Thread 3067555172 joined [12:03:32]Waiting for new connection... [12:03:32] Sock 9.Parse request [12:03:32]Sock 9.Check first char [12:03:32]Sock 9.First char is OK [12:03:32]request: POST /json_proto HTTP/1.0 [12:03:32]Method: POST [12:03:32]URL: /json_proto [12:03:32]Method is POST - this is cgi request [12:03:32]url: /json_proto [12:03:32]query_string will be loaded in cgi processing [12:03:32]execute_cgi json_proto POST (null) [12:03:32]execute_cgi path=json_proto method=POST [12:03:32]POST find Content-Length [12:03:32]Host: 172.17.43.195:8080 [12:03:32]Content-Length: 792 [12:03:32]Content-Type: application/json [12:03:32] [12:03:32]POST finish read [12:03:32]Found Content-Length = 792 [12:03:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]execute_script... [12:03: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)952012", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:32]POST & json_proto [12:03:32]process_json_proto [12:03:32]json parsed OK: [12:03:32]protocol is kg_v1.0 [12:03:32]action value=close_receipt [12:03:32]process_action close_receipt [12:03:32]cmd_close_receipt [12:03:32]MH_GetDate [12:03:32]Write to MH i2c: F0 00 00 FB 00 EA [12:03:32]Write i2c OK [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 [12:03:32]MH_I2C_Read... [12:03:32]Read from MH i2c: F0 09 00 FB 00 00 95 7D 1F 67 74 2C AD 66 3E [12:03:32]GetLastDocTimeStamp 1730116943 [12:03:32]current date 1730117013 [12:03:32]FM_GetShiftState [12:03:32]SAM_PROTO_GetShiftState [12:03:32]wFMCommunicate request_size=4 [12:03:32]MH_SAM_APDU [12:03:32]CAPDU: 80 13 01 00 [12:03:32]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [12:03:33]Write i2c OK [12:03:33]MH_I2C_Read... [12:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:33]Read from MH i2c: E2 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0E 00 [12:03:33]MH_I2C_Read... [12:03:33]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [12:03:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:03:33]wFMCommunicate OK [12:03:33]SAM_PROTO_GetShiftState done [12:03:33]FM_GetShiftState done [12:03:33]opened in 1730074113 [12:03:33]opened+sec_in_day 1730160513 [12:03:33]quantity*price = 0 [12:03:33]sum+1 = 1 [12:03:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 79 28.10.2024 12:03 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72551 ФПД: 97929153732706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120333&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72551&fm=97929153732706&tin=02508201610067®Number=0000000000091644&sum=0 [12:03:34]StoreToDocumentArchive [12:03:34]shift 554 fd 72551 [12:03:34]save to /storage/0554/doc_00072551 [12:03:34]save last doc name /storage/0554/doc_00072551 to /storage/kkm_last_doc_name [12:03:34]save OK [12:03:34]Clear old archive folders... [12:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:03:34]tlvbuf is 001CD050 [12:03:34]SAM_PROTO_ClearQueue [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 09 00 00 [12:03:34]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_ClearQueue done [12:03:34]KKMCreateOFDPacket [12:03:34]OFDProtocolAddRootSTLVToBuf [12:03:34]FM_MakeSignedData [12:03:34]FM_MakeSignedData [12:03:34]SAM_PROTO_SignData [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 01 02 [12:03:34]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=255 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 95 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1B 01 00 35 04 06 00 59 [12:03:34]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 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 4F 00 00 00 F4 03 04 00 95 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1B 01 00 35 04 06 00 59 00 00 B4 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=10 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 02 02 05 10 E8 6B E0 62 [12:03:34]Write to MH i2c: E2 0D 00 0C 01 80 0D 02 02 05 00 10 E8 6B E0 62 00 00 36 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [12:03:34]RAPDU: 90 00 [12:03:34]wFMCommunicate OK [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 0D 03 02 [12:03:34]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 0B 00 0D 01 00 93 6A 05 9F 20 7D AF 59 90 00 D0 [12:03:34]RAPDU: 93 6A 05 9F 20 7D AF 59 90 00 [12:03:34]wFMCommunicate OK [12:03:34]SAM_PROTO_SignData done [12:03:34]FM_MakeSignedData done [12:03:34]CreateOFDProtocolMessage [12:03:34]wFMCommunicate request_size=4 [12:03:34]MH_SAM_APDU [12:03:34]CAPDU: 80 11 00 00 [12:03:34]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:34]Read from MH i2c: E2 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: E2 17 00 [12:03:34]MH_I2C_Read... [12:03:34]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 34 36 36 32 90 00 DD [12:03:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:03:34]wFMCommunicate OK [12:03:34]CreateOFDProtocolMessage done [12:03:34]OFDSenderStorePacket 72551 [12:03:34]StoreOFDPacket docnum=72551 [12:03:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 36 07 01 D9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 95 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1B 01 00 35 04 06 00 59 10 E8 6B E0 62 93 6A 05 9F 20 7D AF 59 [12:03:34]CheckFolder [12:03:34]dirname=/storage/ofd_packets [12:03:34]CheckFolder done [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00072551 [12:03:34]NVStorageSaveData ofd_packets/00072551 [12:03:34]File name is /storage/ofd_packets/00072551 [12:03:34]Write 301 bytes [12:03:34]NVStorageSaveData done [12:03:34]OFDSenderStorePacket done [12:03:34]KKMCreateOFDPacket done [12:03:34]NVStorageSaveData kkm_last_timestamp [12:03:34]File name is /storage/kkm_last_timestamp [12:03:34]Write 4 bytes [12:03:34]NVStorageSaveData done [12:03:34]ExternCall_PrintAddStr [12:03:34]wPrintStart [12:03:34]Write to MH i2c: 01 00 00 0F 01 10 [12:03:34]Write i2c OK [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 [12:03:34]MH_I2C_Read... [12:03:34]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [12:03:34]RasterBufferAndPrint [12:03:34]line Счет N : (1)952012 [12:03:34]line ИНН: 02508201610067 [12:03:34]line Контрольно-Кассовый Чек [12:03:34]line ПРОДАЖА [12:03:34]line ТРК (МРК, ГНК) : 63 [12:03:34]line Товар: 2710124130 [12:03:34]line Аи-92-К-5 [12:03:34]line 10.000 * 0.00 [12:03:34]line = 0.00 [12:03:34]line НДС 12% НСП 1% [12:03:34]line > о реализуемом товаре [12:03:34]line ИТОГО: 0.00 [12:03:34]line НСП 1% : 0.00 [12:03:34]line НДС 12% : 0.00 [12:03:34]line Наличными: 0.00 [12:03:34]line Безнал.: 0.00 [12:03:34]line Место: АЗС № 113 "Партнер Нефть" [12:03:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:03:34]line СНО: Общий режим [12:03:34]line Чек 79 28.10.2024 12:03 [12:03:34]line Смена: 554 ФФД: 1.0 [12:03:34]line ЗНМ: 0300000087 [12:03:34]line РНМ: 0000000000091644 [12:03:34]line Версия ККМ: 001 [12:03:34]line Талоны: Топливная Карта [12:03:34]line 03047 [12:03:34]line ФМ: 0000000000874662 [12:03:34]line ФД: 72551 [12:03:34]line ФПД: 97929153732706 [12:03:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120333&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72551&fm=97929153732706&tin=02508201610067®Number=0000000000091644&sum=0 [12:03:34]written 0, free lines is 4095 [12:03:34]OFD Sender: Processing packet 72551 [packets to send 273, broken 272] [12:03:34]ProducePacketName [12:03:34]name=ofd_packets/00072551 [12:03:34]OFD Sender: To server: pG, [12:03:34]CommunicateWithHost lk.salyk.kg:30040 [12:03:34]ConnectInit lk.salyk.kg [12:03:35]Write to MH i2c: 01 00 00 39 01 3A [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 DB 0C 28 [12:03:35]RasterBufferAndPrint [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]line [12:03:35]written 0, free lines is 3297 [12:03:35]MH_Cut [12:03:35]Write to MH i2c: D1 01 00 40 01 01 13 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 [12:03:35]MH_I2C_Read... [12:03:35]Read from MH i2c: D1 01 00 40 01 00 12 [12:03:35]Write to MH i2c: 01 00 00 41 01 42 [12:03:35]Write i2c OK [12:03:35]MH_I2C_Read... [12:03:35]*** Cut start [12:03:35]*** Partial cut [12:03:35]*** CUTSNS_PIN = 1 [12:03:35]*** CUTSNS_PIN = 0 [12:03:36]*** Brake cut motor [12:03:36]Read from MH i2c: 01 [12:03:36]MH_I2C_Read... [12:03:36]*** Stop cut motor [12:03:36]*** Cut end [12:03:36]Read from MH i2c: 01 07 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [12:03:36]process_action close_receipt done [12:03:36]requested_data is exist [12:03:36]produce_requested_data [12:03:36]requested_item fm.sn is exist - process it [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 11 00 00 [12:03:36]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [12:03:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:03:36]wFMCommunicate OK [12:03:36]requested_item fd.num is exist - process it [12:03:36]SAM_PROTO_GetFieldsCounters [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 00 00 [12:03:36]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 67 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:03: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 67 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetFieldsCounters done [12:03:36]requested_item shift.num is exist - process it [12:03:36]requested_item shift.opened is exist - process it [12:03:36]req_shift_opened [12:03:36]FM_GetShiftState [12:03:36]SAM_PROTO_GetShiftState [12:03:36]wFMCommunicate request_size=4 [12:03:36]MH_SAM_APDU [12:03:36]CAPDU: 80 13 01 00 [12:03:36]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [12:03:36]Write i2c OK [12:03:36]MH_I2C_Read... [12:03:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:36]Read from MH i2c: E2 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 [12:03:36]MH_I2C_Read... [12:03:36]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [12:03:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:03:36]wFMCommunicate OK [12:03:36]SAM_PROTO_GetShiftState done [12:03:36]FM_GetShiftState done [12:03:36]req_shift_opened done [12:03:36]requested_item shift.open_date is exist - process it [12:03:36]req_shift_open_date [12:03:36]req_shift_open_date done [12:03:36]produce_requested_data done [12:03:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72551,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:03:36]process_action_free close_receipt [12:03:36]json_value_free [12:03:36]json_value_free done [12:03:36]process_json_proto returns [12:03:36]Send response to host [12:03:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72551,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:03:36]free response buf [12:03:36]execute_script done [12:03:36]execute_script returns [12:03:36]free content buf [12:03:36]Sock 9.Close socket [12:03:36]Sock 9.Thread stoped [12:03:39]ConnectInit Can't take IP for lk.salyk.kg [12:03:39]CommunicateWithHost connect error [12:03:39]CommunicateWithHost err = -1 [12:03:39]OFD Sender: Server communicate error [12:03:44]OFD Sender: Processing packet 72551 [packets to send 273, broken 272] [12:03:44]ProducePacketName [12:03:44]name=ofd_packets/00072551 [12:03:44]OFD Sender: To server: pG, [12:03:44]CommunicateWithHost lk.salyk.kg:30040 [12:03:44]ConnectInit lk.salyk.kg [12:03:45]recv_with_timeout no data received [12:03:50]Connected sock=9 [12:03:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 60 36 07 01 D9 46 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 4F 00 00 00 F4 03 04 00 95 7D 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 67 1B 01 00 35 04 06 00 59 10 E8 6B E0 62 93 6A 05 9F 20 7D AF 59 [12:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 27 56 47 00 18 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 34 36 36 32 10 04 04 00 67 1B 01 00 F4 03 04 00 63 28 1F 67 B6 04 01 00 00 77 7D 08 52 D8 81 04 F6 [12:03:52]CommunicateWithHost err = 0 [12:03:52]CheckOFDResponse [12:03:52]1017 (14) - 77093643461234 [12:03:52]1041 (16) - 0000000000874662 [12:03:52]1040 (4) - 72551 [12:03:52]1012 (4) - 28.10.2024 06:00 [12:03:52]1206 (1) - 0 [12:03:52]OFD Sender: Remove packet 72551 [12:03:52]ProducePacketName [12:03:52]name=ofd_packets/00072551 [12:03:52]NVStorageDeleteData [12:03:53]OFD Sender: No OFD packet to send [12:03:57]recv_with_timeout no data received [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:08]recv_with_timeout no data received [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:19]recv_with_timeout no data received [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:08]recv_with_timeout no data received [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:23]accept exits with 10 [12:05:23]New connection [12:05:23]New thread 3067555172 created [12:05:23]Thread 3067411812 joined [12:05:23]Waiting for new connection... [12:05:23] Sock 10.Parse request [12:05:23]Sock 10.Check first char [12:05:23]Sock 10.First char is OK [12:05:23]request: POST /json_proto HTTP/1.0 [12:05:23]Method: POST [12:05:23]URL: /json_proto [12:05:23]Method is POST - this is cgi request [12:05:23]url: /json_proto [12:05:23]query_string will be loaded in cgi processing [12:05:23]execute_cgi json_proto POST (null) [12:05:23]execute_cgi path=json_proto method=POST [12:05:23]POST find Content-Length [12:05:23]Host: 172.17.43.195:8080 [12:05:23]Content-Length: 677 [12:05:23]Content-Type: application/json [12:05:23] [12:05:23]POST finish read [12:05:23]Found Content-Length = 677 [12:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:05:23]execute_script... [12:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952013", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:05:23]POST & json_proto [12:05:23]process_json_proto [12:05:23]json parsed OK: [12:05:23]protocol is kg_v1.0 [12:05:23]action value=close_receipt [12:05:23]process_action close_receipt [12:05:23]cmd_close_receipt [12:05:23]MH_GetDate [12:05:23]Write to MH i2c: F0 00 00 45 01 35 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: F0 09 00 45 01 00 03 7E 1F 67 74 2C AD 66 F8 [12:05:23]GetLastDocTimeStamp 1730117013 [12:05:23]current date 1730117123 [12:05:23]FM_GetShiftState [12:05:23]SAM_PROTO_GetShiftState [12:05:23]wFMCommunicate request_size=4 [12:05:23]MH_SAM_APDU [12:05:23]CAPDU: 80 13 01 00 [12:05:23]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [12:05:23]Write i2c OK [12:05:23]MH_I2C_Read... [12:05:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:23]Read from MH i2c: E2 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 [12:05:23]MH_I2C_Read... [12:05:23]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [12:05:23]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:05:23]wFMCommunicate OK [12:05:23]SAM_PROTO_GetShiftState done [12:05:23]FM_GetShiftState done [12:05:23]opened in 1730074113 [12:05:23]opened+sec_in_day 1730160513 [12:05:23]quantity*price = 50041 [12:05:23]sum+1 = 50042 [12:05: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 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 80 28.10.2024 12:05 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72552 ФПД: 165073361009516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120523&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72552&fm=165073361009516&tin=02508201610067®Number=0000000000091644&sum=50000 [12:05:24]StoreToDocumentArchive [12:05:24]shift 554 fd 72552 [12:05:24]save to /storage/0554/doc_00072552 [12:05:24]save last doc name /storage/0554/doc_00072552 to /storage/kkm_last_doc_name [12:05:24]save OK [12:05:24]Clear old archive folders... [12:05:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:05:24]tlvbuf is 002494B0 [12:05:24]SAM_PROTO_ClearQueue [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 09 00 00 [12:05:24]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]SAM_PROTO_ClearQueue done [12:05:24]KKMCreateOFDPacket [12:05:24]OFDProtocolAddRootSTLVToBuf [12:05:24]FM_MakeSignedData [12:05:24]FM_MakeSignedData [12:05:24]SAM_PROTO_SignData [12:05:24]wFMCommunicate request_size=4 [12:05:24]MH_SAM_APDU [12:05:24]CAPDU: 80 0D 01 02 [12:05:24]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:24]Read from MH i2c: E2 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 [12:05:24]MH_I2C_Read... [12:05:24]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [12:05:24]RAPDU: 90 00 [12:05:24]wFMCommunicate OK [12:05:24]wFMCommunicate request_size=255 [12:05:24]MH_SAM_APDU [12:05: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 50 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1B 01 00 35 04 06 00 96 [12:05:24]Write to MH i2c: E2 02 01 55 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 50 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1B 01 00 35 04 06 00 96 00 00 FA [12:05:24]Write i2c OK [12:05:24]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [12:05:25]RAPDU: 90 00 [12:05:25]wFMCommunicate OK [12:05:25]wFMCommunicate request_size=10 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 0D 02 02 05 22 23 0B 7B 6C [12:05:25]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 22 23 0B 7B 6C 00 00 12 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:05:25]RAPDU: 90 00 [12:05:25]wFMCommunicate OK [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 0D 03 02 [12:05:25]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 0B 00 57 01 00 E1 E4 A9 79 A6 DE A1 93 90 00 73 [12:05:25]RAPDU: E1 E4 A9 79 A6 DE A1 93 90 00 [12:05:25]wFMCommunicate OK [12:05:25]SAM_PROTO_SignData done [12:05:25]FM_MakeSignedData done [12:05:25]CreateOFDProtocolMessage [12:05:25]wFMCommunicate request_size=4 [12:05:25]MH_SAM_APDU [12:05:25]CAPDU: 80 11 00 00 [12:05:25]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:25]Read from MH i2c: E2 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [12:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:05:25]wFMCommunicate OK [12:05:25]CreateOFDProtocolMessage done [12:05:25]OFDSenderStorePacket 72552 [12:05:25]StoreOFDPacket docnum=72552 [12:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 70 61 07 01 ED 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 50 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1B 01 00 35 04 06 00 96 22 23 0B 7B 6C E1 E4 A9 79 A6 DE A1 93 [12:05:25]CheckFolder [12:05:25]dirname=/storage/ofd_packets [12:05:25]CheckFolder done [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00072552 [12:05:25]NVStorageSaveData ofd_packets/00072552 [12:05:25]File name is /storage/ofd_packets/00072552 [12:05:25]Write 301 bytes [12:05:25]NVStorageSaveData done [12:05:25]OFDSenderStorePacket done [12:05:25]KKMCreateOFDPacket done [12:05:25]NVStorageSaveData kkm_last_timestamp [12:05:25]File name is /storage/kkm_last_timestamp [12:05:25]Write 4 bytes [12:05:25]NVStorageSaveData done [12:05:25]ExternCall_PrintAddStr [12:05:25]wPrintStart [12:05:25]Write to MH i2c: 01 00 00 59 01 5A [12:05:25]Write i2c OK [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 [12:05:25]MH_I2C_Read... [12:05:25]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [12:05:25]RasterBufferAndPrint [12:05:25]line Счет N : (1)952013 [12:05:25]line ИНН: 02508201610067 [12:05:25]line Контрольно-Кассовый Чек [12:05:25]line ПРОДАЖА [12:05:25]line ТРК (МРК, ГНК) : 63 [12:05:25]line Товар: 2710124130 [12:05:25]line Аи-92-К-5 [12:05:25]line 7.480 * 66.90 [12:05:25]line = 500.41 [12:05:25]line НДС 12% НСП 1% [12:05:25]line > о реализуемом товаре [12:05:25]line ОКРУГЛЕНИЕ: -0.41 [12:05:25]line ИТОГО: 500.00 [12:05:25]line Внесено: 500.00 [12:05:25]line СДАЧА: 0.00 [12:05:25]line НСП 1% : 4.43 [12:05:25]line НДС 12% : 53.14 [12:05:25]line Наличными: 500.00 [12:05:25]line Безнал.: 0.00 [12:05:25]line Место: АЗС № 113 "Партнер Нефть" [12:05:25]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:05:25]line СНО: Общий режим [12:05:25]line Чек 80 28.10.2024 12:05 [12:05:25]line Смена: 554 ФФД: 1.0 [12:05:25]line ЗНМ: 0300000087 [12:05:25]line РНМ: 0000000000091644 [12:05:25]line Версия ККМ: 001 [12:05:25]line ФМ: 0000000000874662 [12:05:25]line ФД: 72552 [12:05:25]line ФПД: 165073361009516 [12:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120523&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72552&fm=165073361009516&tin=02508201610067®Number=0000000000091644&sum=50000 [12:05:25]OFD Sender: Processing packet 72552 [packets to send 273, broken 272] [12:05:25]ProducePacketName [12:05:25]name=ofd_packets/00072552 [12:05:25]OFD Sender: To server: pG, [12:05:25]CommunicateWithHost lk.salyk.kg:30040 [12:05:25]ConnectInit lk.salyk.kg [12:05:25]written 0, free lines is 4095 [12:05:26]Write to MH i2c: 01 00 00 84 01 85 [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 CE 0C 66 [12:05:26]RasterBufferAndPrint [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]line [12:05:26]written 0, free lines is 3286 [12:05:26]MH_Cut [12:05:26]Write to MH i2c: D1 01 00 8B 01 01 5E [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 [12:05:26]MH_I2C_Read... [12:05:26]Read from MH i2c: D1 01 00 8B 01 00 5D [12:05:26]Write to MH i2c: 01 00 00 8C 01 8D [12:05:26]Write i2c OK [12:05:26]MH_I2C_Read... [12:05:26]*** Cut start [12:05:26]*** Partial cut [12:05:26]*** CUTSNS_PIN = 1 [12:05:26]*** CUTSNS_PIN = 0 [12:05:27]*** Brake cut motor [12:05:27]Read from MH i2c: 01 [12:05:27]MH_I2C_Read... [12:05:27]*** Stop cut motor [12:05:27]*** Cut end [12:05:27]Read from MH i2c: 01 07 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [12:05:27]process_action close_receipt done [12:05:27]requested_data is exist [12:05:27]produce_requested_data [12:05:27]requested_item fm.sn is exist - process it [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 11 00 00 [12:05:27]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5C [12:05:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:05:27]wFMCommunicate OK [12:05:27]requested_item fd.num is exist - process it [12:05:27]SAM_PROTO_GetFieldsCounters [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 00 00 [12:05:27]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:05:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 68 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetFieldsCounters done [12:05:27]requested_item shift.num is exist - process it [12:05:27]requested_item shift.opened is exist - process it [12:05:27]req_shift_opened [12:05:27]FM_GetShiftState [12:05:27]SAM_PROTO_GetShiftState [12:05:27]wFMCommunicate request_size=4 [12:05:27]MH_SAM_APDU [12:05:27]CAPDU: 80 13 01 00 [12:05:27]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [12:05:27]Write i2c OK [12:05:27]MH_I2C_Read... [12:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:27]Read from MH i2c: E2 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 [12:05:27]MH_I2C_Read... [12:05:27]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 75 [12:05:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:05:27]wFMCommunicate OK [12:05:27]SAM_PROTO_GetShiftState done [12:05:27]FM_GetShiftState done [12:05:27]req_shift_opened done [12:05:27]requested_item shift.open_date is exist - process it [12:05:27]req_shift_open_date [12:05:27]req_shift_open_date done [12:05:27]produce_requested_data done [12:05:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72552,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:05:27]process_action_free close_receipt [12:05:27]json_value_free [12:05:27]json_value_free done [12:05:27]process_json_proto returns [12:05:27]Send response to host [12:05:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72552,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:05:27]free response buf [12:05:27]execute_script done [12:05:27]execute_script returns [12:05:27]free content buf [12:05:27]Sock 10.Close socket [12:05:27]Sock 10.Thread stoped [12:05:30]ConnectInit Can't take IP for lk.salyk.kg [12:05:30]CommunicateWithHost connect error [12:05:30]CommunicateWithHost err = -1 [12:05:30]OFD Sender: Server communicate error [12:05:35]OFD Sender: Processing packet 72552 [packets to send 273, broken 272] [12:05:35]ProducePacketName [12:05:35]name=ofd_packets/00072552 [12:05:35]OFD Sender: To server: pG, [12:05:35]CommunicateWithHost lk.salyk.kg:30040 [12:05:35]ConnectInit lk.salyk.kg [12:05:40]ConnectInit Can't take IP for lk.salyk.kg [12:05:40]CommunicateWithHost connect error [12:05:40]CommunicateWithHost err = -1 [12:05:40]OFD Sender: Server communicate error [12:05:45]OFD Sender: Processing packet 72552 [packets to send 273, broken 272] [12:05:45]ProducePacketName [12:05:45]name=ofd_packets/00072552 [12:05:45]OFD Sender: To server: pG, [12:05:45]CommunicateWithHost lk.salyk.kg:30040 [12:05:45]ConnectInit lk.salyk.kg [12:05:50]ConnectInit Can't take IP for lk.salyk.kg [12:05:50]CommunicateWithHost connect error [12:05:50]CommunicateWithHost err = -1 [12:05:50]OFD Sender: Server communicate error [12:05:55]OFD Sender: Processing packet 72552 [packets to send 273, broken 272] [12:05:55]ProducePacketName [12:05:55]name=ofd_packets/00072552 [12:05:55]OFD Sender: To server: pG, [12:05:55]CommunicateWithHost lk.salyk.kg:30040 [12:05:55]ConnectInit lk.salyk.kg [12:06:00]ConnectInit Can't take IP for lk.salyk.kg [12:06:00]CommunicateWithHost connect error [12:06:00]CommunicateWithHost err = -1 [12:06:00]OFD Sender: Server communicate error [12:06:05]OFD Sender: Processing packet 72552 [packets to send 273, broken 272] [12:06:05]ProducePacketName [12:06:05]name=ofd_packets/00072552 [12:06:05]OFD Sender: To server: pG, [12:06:05]CommunicateWithHost lk.salyk.kg:30040 [12:06:05]ConnectInit lk.salyk.kg [12:06:10]ConnectInit Can't take IP for lk.salyk.kg [12:06:10]CommunicateWithHost connect error [12:06:10]CommunicateWithHost err = -1 [12:06:10]OFD Sender: Server communicate error [12:06:13]accept exits with 9 [12:06:13]New connection [12:06:13]New thread 3067411812 created [12:06:13]Thread 3067555172 joined [12:06:13]Waiting for new connection... [12:06:13] Sock 9.Parse request [12:06:13]Sock 9.Check first char [12:06:13]Sock 9.First char is OK [12:06:13]request: POST /json_proto HTTP/1.0 [12:06:13]Method: POST [12:06:13]URL: /json_proto [12:06:13]Method is POST - this is cgi request [12:06:13]url: /json_proto [12:06:13]query_string will be loaded in cgi processing [12:06:13]execute_cgi json_proto POST (null) [12:06:13]execute_cgi path=json_proto method=POST [12:06:13]POST find Content-Length [12:06:13]Host: 172.17.43.195:8080 [12:06:13]Content-Length: 819 [12:06:13]Content-Type: application/json [12:06:13] [12:06:13]POST finish read [12:06:13]Found Content-Length = 819 [12:06:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:13]execute_script... [12:06: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)952014", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:06:13]POST & json_proto [12:06:13]process_json_proto [12:06:13]json parsed OK: [12:06:13]protocol is kg_v1.0 [12:06:13]action value=close_receipt [12:06:13]process_action close_receipt [12:06:13]cmd_close_receipt [12:06:13]MH_GetDate [12:06:13]Write to MH i2c: F0 00 00 90 01 80 [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: F0 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: F0 09 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: F0 09 00 90 01 00 35 7E 1F 67 74 2C AD 66 75 [12:06:13]GetLastDocTimeStamp 1730117123 [12:06:13]current date 1730117173 [12:06:13]FM_GetShiftState [12:06:13]SAM_PROTO_GetShiftState [12:06:13]wFMCommunicate request_size=4 [12:06:13]MH_SAM_APDU [12:06:13]CAPDU: 80 13 01 00 [12:06:13]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [12:06:13]Write i2c OK [12:06:13]MH_I2C_Read... [12:06:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:13]Read from MH i2c: E2 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 0E 00 [12:06:13]MH_I2C_Read... [12:06:13]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 77 [12:06:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:06:13]wFMCommunicate OK [12:06:13]SAM_PROTO_GetShiftState done [12:06:13]FM_GetShiftState done [12:06:13]opened in 1730074113 [12:06:13]opened+sec_in_day 1730160513 [12:06:13]quantity*price = 150032 [12:06:13]sum+1 = 150033 [12:06:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 81 28.10.2024 12:06 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72553 ФПД: 20075465020921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120613&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72553&fm=20075465020921&tin=02508201610067®Number=0000000000091644&sum=150032 [12:06:14]StoreToDocumentArchive [12:06:14]shift 554 fd 72553 [12:06:14]save to /storage/0554/doc_00072553 [12:06:14]save last doc name /storage/0554/doc_00072553 to /storage/kkm_last_doc_name [12:06:14]save OK [12:06:14]Clear old archive folders... [12:06:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:06:14]tlvbuf is 001ECB90 [12:06:14]SAM_PROTO_ClearQueue [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 09 00 00 [12:06:14]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [12:06:14]RAPDU: 90 00 [12:06:14]wFMCommunicate OK [12:06:14]SAM_PROTO_ClearQueue done [12:06:14]KKMCreateOFDPacket [12:06:14]OFDProtocolAddRootSTLVToBuf [12:06:14]FM_MakeSignedData [12:06:14]FM_MakeSignedData [12:06:14]SAM_PROTO_SignData [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 0D 01 02 [12:06:14]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [12:06:14]RAPDU: 90 00 [12:06:14]wFMCommunicate OK [12:06:14]wFMCommunicate request_size=255 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1B 01 00 35 04 06 00 12 [12:06:14]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1B 01 00 35 04 06 00 12 00 00 98 [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [12:06:14]RAPDU: 90 00 [12:06:14]wFMCommunicate OK [12:06:14]wFMCommunicate request_size=10 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 0D 02 02 05 42 2E F6 15 F9 [12:06:14]Write to MH i2c: E2 0D 00 A1 01 80 0D 02 02 05 00 42 2E F6 15 F9 00 00 9A [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [12:06:14]RAPDU: 90 00 [12:06:14]wFMCommunicate OK [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 0D 03 02 [12:06:14]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:06:14]Read from MH i2c: E2 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 0B 00 [12:06:14]MH_I2C_Read... [12:06:14]Read from MH i2c: E2 0B 00 A2 01 00 C8 1B 7E 35 57 DD 9F A1 90 00 29 [12:06:14]RAPDU: C8 1B 7E 35 57 DD 9F A1 90 00 [12:06:14]wFMCommunicate OK [12:06:14]SAM_PROTO_SignData done [12:06:14]FM_MakeSignedData done [12:06:14]CreateOFDProtocolMessage [12:06:14]wFMCommunicate request_size=4 [12:06:14]MH_SAM_APDU [12:06:14]CAPDU: 80 11 00 00 [12:06:14]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [12:06:14]Write i2c OK [12:06:14]MH_I2C_Read... [12:06:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:15]Read from MH i2c: E2 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 17 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 72 [12:06:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:06:15]wFMCommunicate OK [12:06:15]CreateOFDProtocolMessage done [12:06:15]OFDSenderStorePacket 72553 [12:06:15]StoreOFDPacket docnum=72553 [12:06:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 07 07 01 9D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1B 01 00 35 04 06 00 12 42 2E F6 15 F9 C8 1B 7E 35 57 DD 9F A1 [12:06:15]CheckFolder [12:06:15]dirname=/storage/ofd_packets [12:06:15]CheckFolder done [12:06:15]ProducePacketName [12:06:15]name=ofd_packets/00072553 [12:06:15]NVStorageSaveData ofd_packets/00072553 [12:06:15]File name is /storage/ofd_packets/00072553 [12:06:15]Write 301 bytes [12:06:15]NVStorageSaveData done [12:06:15]OFDSenderStorePacket done [12:06:15]KKMCreateOFDPacket done [12:06:15]NVStorageSaveData kkm_last_timestamp [12:06:15]File name is /storage/kkm_last_timestamp [12:06:15]Write 4 bytes [12:06:15]NVStorageSaveData done [12:06:15]ExternCall_PrintAddStr [12:06:15]wPrintStart [12:06:15]Write to MH i2c: 01 00 00 A4 01 A5 [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 07 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [12:06:15]RasterBufferAndPrint [12:06:15]line Счет N : (1)952014 [12:06:15]line ИНН: 02508201610067 [12:06:15]line Контрольно-Кассовый Чек [12:06:15]line ПРОДАЖА [12:06:15]line ТРК (МРК, ГНК) : 52 [12:06:15]line Товар: 2710124500 [12:06:15]line Аи-95-К-3 [12:06:15]line 20.220 * 74.20 [12:06:15]line = 1500.32 [12:06:15]line НДС 12% НСП 1% [12:06:15]line > о реализуемом товаре [12:06:15]line ИТОГО: 1500.32 [12:06:15]line НСП 1% : 13.28 [12:06:15]line НДС 12% : 159.33 [12:06:15]line Наличными: 0.00 [12:06:15]line Безнал.: 1500.32 [12:06:15]line Место: АЗС № 113 "Партнер Нефть" [12:06:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:06:15]line СНО: Общий режим [12:06:15]line Чек 81 28.10.2024 12:06 [12:06:15]line Смена: 554 ФФД: 1.0 [12:06:15]line ЗНМ: 0300000087 [12:06:15]line РНМ: 0000000000091644 [12:06:15]line Версия ККМ: 001 [12:06:15]line Платежная система: Бакай банк [12:06:15]line ФМ: 0000000000874662 [12:06:15]line ФД: 72553 [12:06:15]line ФПД: 20075465020921 [12:06:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T120613&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72553&fm=20075465020921&tin=02508201610067®Number=0000000000091644&sum=150032 [12:06:15]written 0, free lines is 4095 [12:06:15]OFD Sender: Processing packet 72552 [packets to send 274, broken 272] [12:06:15]ProducePacketName [12:06:15]name=ofd_packets/00072552 [12:06:15]OFD Sender: To server: pG, [12:06:15]CommunicateWithHost lk.salyk.kg:30040 [12:06:15]ConnectInit lk.salyk.kg [12:06:15]Write to MH i2c: 01 00 00 CE 01 CF [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 07 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 FB 0C DD [12:06:15]RasterBufferAndPrint [12:06:15]line [12:06:15]line [12:06:15]line [12:06:15]line [12:06:15]line [12:06:15]written 0, free lines is 3338 [12:06:15]MH_Cut [12:06:15]Write to MH i2c: D1 01 00 D5 01 01 A8 [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: D1 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: D1 01 00 [12:06:15]MH_I2C_Read... [12:06:15]Read from MH i2c: D1 01 00 D5 01 00 A7 [12:06:15]Write to MH i2c: 01 00 00 D6 01 D7 [12:06:15]Write i2c OK [12:06:15]MH_I2C_Read... [12:06:16]*** Cut start [12:06:16]*** Partial cut [12:06:16]*** CUTSNS_PIN = 1 [12:06:16]*** CUTSNS_PIN = 0 [12:06:16]*** Brake cut motor [12:06:16]Read from MH i2c: 01 [12:06:16]MH_I2C_Read... [12:06:16]*** Stop cut motor [12:06:16]*** Cut end [12:06:16]Read from MH i2c: 01 07 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [12:06:16]process_action close_receipt done [12:06:16]requested_data is exist [12:06:16]produce_requested_data [12:06:16]requested_item fm.sn is exist - process it [12:06:16]wFMCommunicate request_size=4 [12:06:16]MH_SAM_APDU [12:06:16]CAPDU: 80 11 00 00 [12:06:16]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:16]Read from MH i2c: E2 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 17 00 [12:06:16]MH_I2C_Read... [12:06:16]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [12:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:06:16]wFMCommunicate OK [12:06:16]requested_item fd.num is exist - process it [12:06:16]SAM_PROTO_GetFieldsCounters [12:06:16]wFMCommunicate request_size=4 [12:06:16]MH_SAM_APDU [12:06:16]CAPDU: 80 13 00 00 [12:06:16]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [12:06:16]Write i2c OK [12:06:16]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 62 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 69 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_GetFieldsCounters done [12:06:17]requested_item shift.num is exist - process it [12:06:17]requested_item shift.opened is exist - process it [12:06:17]req_shift_opened [12:06:17]FM_GetShiftState [12:06:17]SAM_PROTO_GetShiftState [12:06:17]wFMCommunicate request_size=4 [12:06:17]MH_SAM_APDU [12:06:17]CAPDU: 80 13 01 00 [12:06:17]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [12:06:17]Write i2c OK [12:06:17]MH_I2C_Read... [12:06:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:06:17]Read from MH i2c: E2 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0E 00 [12:06:17]MH_I2C_Read... [12:06:17]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BF [12:06:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:06:17]wFMCommunicate OK [12:06:17]SAM_PROTO_GetShiftState done [12:06:17]FM_GetShiftState done [12:06:17]req_shift_opened done [12:06:17]requested_item shift.open_date is exist - process it [12:06:17]req_shift_open_date [12:06:17]req_shift_open_date done [12:06:17]produce_requested_data done [12:06:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72553,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:06:17]process_action_free close_receipt [12:06:17]json_value_free [12:06:17]json_value_free done [12:06:17]process_json_proto returns [12:06:17]Send response to host [12:06:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72553,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:06:17]free response buf [12:06:17]execute_script done [12:06:17]execute_script returns [12:06:17]free content buf [12:06:17]Sock 9.Close socket [12:06:17]Sock 9.Thread stoped [12:06:19]Connected sock=11 [12:06:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 70 61 07 01 ED 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 50 00 00 00 F4 03 04 00 03 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1B 01 00 35 04 06 00 96 22 23 0B 7B 6C E1 E4 A9 79 A6 DE A1 93 [12:06:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 12 55 47 00 5E B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 68 1B 01 00 F4 03 04 00 F8 28 1F 67 B6 04 01 00 00 E0 93 51 96 23 2D FF D8 [12:06:20]CommunicateWithHost err = 0 [12:06:20]CheckOFDResponse [12:06:20]1017 (14) - 77093643461234 [12:06:20]1041 (16) - 0000000000874662 [12:06:20]1040 (4) - 72552 [12:06:20]1012 (4) - 28.10.2024 06:02 [12:06:20]1206 (1) - 0 [12:06:20]OFD Sender: Remove packet 72552 [12:06:20]ProducePacketName [12:06:20]name=ofd_packets/00072552 [12:06:20]NVStorageDeleteData [12:06:20]OFD Sender: Processing packet 72553 [packets to send 273, broken 272] [12:06:20]ProducePacketName [12:06:20]name=ofd_packets/00072553 [12:06:20]OFD Sender: To server: pG, [12:06:20]CommunicateWithHost lk.salyk.kg:30040 [12:06:20]ConnectInit lk.salyk.kg [12:06:22]Connected sock=9 [12:06:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 75 07 07 01 9D 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 35 7E 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1B 01 00 35 04 06 00 12 42 2E F6 15 F9 C8 1B 7E 35 57 DD 9F A1 [12:06:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CC 44 47 00 B5 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 69 1B 01 00 F4 03 04 00 FB 28 1F 67 B6 04 01 00 00 58 3D 92 7B 52 85 26 C5 [12:06:25]CommunicateWithHost err = 0 [12:06:25]CheckOFDResponse [12:06:25]1017 (14) - 77093643461234 [12:06:25]1041 (16) - 0000000000874662 [12:06:25]1040 (4) - 72553 [12:06:25]1012 (4) - 28.10.2024 06:02 [12:06:25]1206 (1) - 0 [12:06:25]OFD Sender: Remove packet 72553 [12:06:25]ProducePacketName [12:06:25]name=ofd_packets/00072553 [12:06:25]NVStorageDeleteData [12:06:26]OFD Sender: No OFD packet to send [12:06:31]OFD Sender: No OFD packet to send [12:06:36]OFD Sender: No OFD packet to send [12:06:41]OFD Sender: No OFD packet to send [12:06:46]OFD Sender: No OFD packet to send [12:06:51]OFD Sender: No OFD packet to send [12:06:53]recv_with_timeout no data received [12:06:56]OFD Sender: No OFD packet to send [12:07:01]OFD Sender: No OFD packet to send [12:07:03]recv_with_timeout no data received [12:07:06]OFD Sender: No OFD packet to send [12:07:11]OFD Sender: No OFD packet to send [12:07:16]OFD Sender: No OFD packet to send [12:07:17]recv_with_timeout no data received [12:07:21]OFD Sender: No OFD packet to send [12:07:26]OFD Sender: No OFD packet to send [12:07:30]recv_with_timeout no data received [12:07:31]OFD Sender: No OFD packet to send [12:07:36]OFD Sender: No OFD packet to send [12:07:41]OFD Sender: No OFD packet to send [12:07:44]recv_with_timeout no data received [12:07:46]OFD Sender: No OFD packet to send [12:07:51]OFD Sender: No OFD packet to send [12:07:56]OFD Sender: No OFD packet to send [12:07:57]recv_with_timeout no data received [12:08:01]OFD Sender: No OFD packet to send [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:51]recv_with_timeout no data received [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:18]recv_with_timeout no data received [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:42]recv_with_timeout no data received [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:44]recv_with_timeout no data received [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:23]recv_with_timeout no data received [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:00]recv_with_timeout no data received [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:47]recv_with_timeout no data received [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]recv_with_timeout no data received [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:13:59]recv_with_timeout no data received [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:18]recv_with_timeout no data received [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:43]accept exits with 10 [12:15:43]New connection [12:15:43]New thread 3067555172 created [12:15:43]Thread 3067411812 joined [12:15:43]Waiting for new connection... [12:15:43] Sock 10.Parse request [12:15:43]Sock 10.Check first char [12:15:43]Sock 10.First char is OK [12:15:43]request: POST /json_proto HTTP/1.0 [12:15:43]Method: POST [12:15:43]URL: /json_proto [12:15:43]Method is POST - this is cgi request [12:15:43]url: /json_proto [12:15:43]query_string will be loaded in cgi processing [12:15:43]execute_cgi json_proto POST (null) [12:15:43]execute_cgi path=json_proto method=POST [12:15:43]POST find Content-Length [12:15:43]Host: 172.17.43.195:8080 [12:15:43]Content-Length: 797 [12:15:43]Content-Type: application/json [12:15:43] [12:15:43]POST finish read [12:15:43]Found Content-Length = 797 [12:15:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:43]execute_script... [12:15: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)952015", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:43]POST & json_proto [12:15:43]process_json_proto [12:15:43]json parsed OK: [12:15:43]protocol is kg_v1.0 [12:15:43]action value=close_receipt [12:15:43]process_action close_receipt [12:15:43]cmd_close_receipt [12:15:43]MH_GetDate [12:15:43]Write to MH i2c: F0 00 00 DA 01 CA [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: F0 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: F0 09 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: F0 09 00 DA 01 00 6F 80 1F 67 74 2C AD 66 FB [12:15:43]GetLastDocTimeStamp 1730117173 [12:15:43]current date 1730117743 [12:15:43]FM_GetShiftState [12:15:43]SAM_PROTO_GetShiftState [12:15:43]wFMCommunicate request_size=4 [12:15:43]MH_SAM_APDU [12:15:43]CAPDU: 80 13 01 00 [12:15:43]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [12:15:43]Write i2c OK [12:15:43]MH_I2C_Read... [12:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:43]Read from MH i2c: E2 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: E2 0E 00 [12:15:43]MH_I2C_Read... [12:15:43]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C1 [12:15:43]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:15:43]wFMCommunicate OK [12:15:43]SAM_PROTO_GetShiftState done [12:15:43]FM_GetShiftState done [12:15:43]opened in 1730074113 [12:15:43]opened+sec_in_day 1730160513 [12:15:43]quantity*price = 0 [12:15:43]sum+1 = 1 [12:15:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 82 28.10.2024 12:15 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72554 ФПД: 252054155661728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121543&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72554&fm=252054155661728&tin=02508201610067®Number=0000000000091644&sum=0 [12:15:44]StoreToDocumentArchive [12:15:44]shift 554 fd 72554 [12:15:44]save to /storage/0554/doc_00072554 [12:15:44]save last doc name /storage/0554/doc_00072554 to /storage/kkm_last_doc_name [12:15:44]save OK [12:15:44]Clear old archive folders... [12:15:44]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:15:44]tlvbuf is 001CB520 [12:15:44]SAM_PROTO_ClearQueue [12:15:44]wFMCommunicate request_size=4 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 09 00 00 [12:15:44]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [12:15:44]RAPDU: 90 00 [12:15:44]wFMCommunicate OK [12:15:44]SAM_PROTO_ClearQueue done [12:15:44]KKMCreateOFDPacket [12:15:44]OFDProtocolAddRootSTLVToBuf [12:15:44]FM_MakeSignedData [12:15:44]FM_MakeSignedData [12:15:44]SAM_PROTO_SignData [12:15:44]wFMCommunicate request_size=4 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 0D 01 02 [12:15:44]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [12:15:44]RAPDU: 90 00 [12:15:44]wFMCommunicate OK [12:15:44]wFMCommunicate request_size=255 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 52 00 00 00 F4 03 04 00 6F 80 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1B 01 00 35 04 06 00 [12:15:44]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 6F 80 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1B 01 00 35 04 06 00 00 00 C6 [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [12:15:44]RAPDU: 90 00 [12:15:44]wFMCommunicate OK [12:15:44]wFMCommunicate request_size=11 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 0D 02 02 06 E5 3D EE 69 91 A0 [12:15:44]Write to MH i2c: E2 0E 00 EB 01 80 0D 02 02 06 00 E5 3D EE 69 91 A0 00 00 1C [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [12:15:44]RAPDU: 90 00 [12:15:44]wFMCommunicate OK [12:15:44]wFMCommunicate request_size=4 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 0D 03 02 [12:15:44]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 0B 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 0B 00 EC 01 00 DD B0 9C 24 91 4A 66 AE 90 00 A5 [12:15:44]RAPDU: DD B0 9C 24 91 4A 66 AE 90 00 [12:15:44]wFMCommunicate OK [12:15:44]SAM_PROTO_SignData done [12:15:44]FM_MakeSignedData done [12:15:44]CreateOFDProtocolMessage [12:15:44]wFMCommunicate request_size=4 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 11 00 00 [12:15:44]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 17 00 [12:15:44]MH_I2C_Read... [12:15:44]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 34 36 36 32 90 00 BC [12:15:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:15:44]wFMCommunicate OK [12:15:44]CreateOFDProtocolMessage done [12:15:44]OFDSenderStorePacket 72554 [12:15:44]StoreOFDPacket docnum=72554 [12:15:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE D8 08 01 CF 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 6F 80 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1B 01 00 35 04 06 00 E5 3D EE 69 91 A0 DD B0 9C 24 91 4A 66 AE [12:15:44]CheckFolder [12:15:44]dirname=/storage/ofd_packets [12:15:44]CheckFolder done [12:15:44]ProducePacketName [12:15:44]name=ofd_packets/00072554 [12:15:44]NVStorageSaveData ofd_packets/00072554 [12:15:44]File name is /storage/ofd_packets/00072554 [12:15:44]Write 302 bytes [12:15:44]NVStorageSaveData done [12:15:44]OFDSenderStorePacket done [12:15:44]KKMCreateOFDPacket done [12:15:44]NVStorageSaveData kkm_last_timestamp [12:15:44]File name is /storage/kkm_last_timestamp [12:15:44]Write 4 bytes [12:15:44]NVStorageSaveData done [12:15:44]ExternCall_PrintAddStr [12:15:44]wPrintStart [12:15:44]Write to MH i2c: 01 00 00 EE 01 EF [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: 01 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: 01 07 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [12:15:44]RasterBufferAndPrint [12:15:44]line Счет N : (1)952015 [12:15:44]line ИНН: 02508201610067 [12:15:44]line Контрольно-Кассовый Чек [12:15:44]line ПРОДАЖА [12:15:44]line ТРК (МРК, ГНК) : 33 [12:15:44]line Товар: 2710194210 [12:15:44]line ДТ(л)-К-5 [12:15:44]line 30.000 * 0.00 [12:15:44]line = 0.00 [12:15:44]line НДС 12% НСП 1% [12:15:44]line > о реализуемом товаре [12:15:44]line ИТОГО: 0.00 [12:15:44]line НСП 1% : 0.00 [12:15:44]line НДС 12% : 0.00 [12:15:44]line Наличными: 0.00 [12:15:44]line Безнал.: 0.00 [12:15:44]line Место: АЗС № 113 "Партнер Нефть" [12:15:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:15:44]line СНО: Общий режим [12:15:44]line Чек 82 28.10.2024 12:15 [12:15:44]line Смена: 554 ФФД: 1.0 [12:15:44]line ЗНМ: 0300000087 [12:15:44]line РНМ: 0000000000091644 [12:15:44]line Версия ККМ: 001 [12:15:44]line Талоны: Топливная Карта [12:15:44]line 53623 [12:15:44]line ФМ: 0000000000874662 [12:15:44]line ФД: 72554 [12:15:44]line ФПД: 252054155661728 [12:15:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T121543&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72554&fm=252054155661728&tin=02508201610067®Number=0000000000091644&sum=0 [12:15:44]written 0, free lines is 4095 [12:15:44]OFD Sender: Processing packet 72554 [packets to send 273, broken 272] [12:15:44]ProducePacketName [12:15:44]name=ofd_packets/00072554 [12:15:44]OFD Sender: To server: pG, [12:15:44]CommunicateWithHost lk.salyk.kg:30040 [12:15:44]ConnectInit lk.salyk.kg [12:15:45]Write to MH i2c: 01 00 00 18 02 1A [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: 01 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: 01 07 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: 01 07 00 18 02 00 00 00 00 00 F7 0C 24 [12:15:45]RasterBufferAndPrint [12:15:45]line [12:15:45]line [12:15:45]line [12:15:45]line [12:15:45]line [12:15:45]written 0, free lines is 3323 [12:15:45]MH_Cut [12:15:45]Write to MH i2c: D1 01 00 1F 02 01 F3 [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: D1 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: D1 01 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: D1 01 00 1F 02 00 F2 [12:15:45]Write to MH i2c: 01 00 00 20 02 22 [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:46]*** Cut start [12:15:46]*** Partial cut [12:15:46]*** CUTSNS_PIN = 1 [12:15:46]*** CUTSNS_PIN = 0 [12:15:46]*** Brake cut motor [12:15:46]Read from MH i2c: 01 [12:15:46]MH_I2C_Read... [12:15:46]*** Stop cut motor [12:15:46]*** Cut end [12:15:46]Read from MH i2c: 01 07 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: 01 07 00 20 02 00 00 00 00 00 FF 0F 37 [12:15:46]process_action close_receipt done [12:15:46]requested_data is exist [12:15:46]produce_requested_data [12:15:46]requested_item fm.sn is exist - process it [12:15:46]wFMCommunicate request_size=4 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 11 00 00 [12:15:46]Write to MH i2c: E2 08 00 21 02 80 11 00 00 00 00 00 00 9D [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 17 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 17 00 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F1 [12:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:15:46]wFMCommunicate OK [12:15:46]requested_item fd.num is exist - process it [12:15:46]SAM_PROTO_GetFieldsCounters [12:15:46]wFMCommunicate request_size=4 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 13 00 00 [12:15:46]Write to MH i2c: E2 08 00 22 02 80 13 00 00 00 00 00 00 A0 [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 62 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 62 00 22 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [12:15: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:46]wFMCommunicate OK [12:15:46]SAM_PROTO_GetFieldsCounters done [12:15:46]requested_item shift.num is exist - process it [12:15:46]requested_item shift.opened is exist - process it [12:15:46]req_shift_opened [12:15:46]FM_GetShiftState [12:15:46]SAM_PROTO_GetShiftState [12:15:46]wFMCommunicate request_size=4 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 13 01 00 [12:15:46]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 0E 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0A [12:15:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:15:46]wFMCommunicate OK [12:15:46]SAM_PROTO_GetShiftState done [12:15:46]FM_GetShiftState done [12:15:46]req_shift_opened done [12:15:46]requested_item shift.open_date is exist - process it [12:15:46]req_shift_open_date [12:15:46]req_shift_open_date done [12:15:46]produce_requested_data done [12:15:46]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72554,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:15:46]process_action_free close_receipt [12:15:46]json_value_free [12:15:46]json_value_free done [12:15:46]process_json_proto returns [12:15:46]Send response to host [12:15:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72554,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:15:46]free response buf [12:15:46]execute_script done [12:15:46]execute_script returns [12:15:46]free content buf [12:15:46]Sock 10.Close socket [12:15:46]Sock 10.Thread stoped [12:15:49]Connected sock=11 [12:15:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE D8 08 01 CF 32 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 52 00 00 00 F4 03 04 00 6F 80 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1B 01 00 35 04 06 00 E5 3D EE 69 91 A0 DD B0 9C 24 91 4A 66 AE [12:15:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B0 26 47 00 74 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6A 1B 01 00 F4 03 04 00 32 2B 1F 67 B6 04 01 00 00 6B B2 FD 36 70 DD 20 19 [12:15:50]CommunicateWithHost err = 0 [12:15:50]CheckOFDResponse [12:15:50]1017 (14) - 77093643461234 [12:15:50]1041 (16) - 0000000000874662 [12:15:50]1040 (4) - 72554 [12:15:50]1012 (4) - 28.10.2024 06:12 [12:15:50]1206 (1) - 0 [12:15:50]OFD Sender: Remove packet 72554 [12:15:50]ProducePacketName [12:15:50]name=ofd_packets/00072554 [12:15:50]NVStorageDeleteData [12:15:50]OFD Sender: No OFD packet to send [12:15:55]OFD Sender: No OFD packet to send [12:16:00]OFD Sender: No OFD packet to send [12:16:05]OFD Sender: No OFD packet to send [12:16:10]OFD Sender: No OFD packet to send [12:16:15]recv_with_timeout no data received [12:16:15]OFD Sender: No OFD packet to send [12:16:20]OFD Sender: No OFD packet to send [12:16:25]OFD Sender: No OFD packet to send [12:16:30]OFD Sender: No OFD packet to send [12:16:35]OFD Sender: No OFD packet to send [12:16:40]OFD Sender: No OFD packet to send [12:16:42]recv_with_timeout no data received [12:16:45]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:14]recv_with_timeout no data received [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:45]recv_with_timeout no data received [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:01]recv_with_timeout no data received [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:12]recv_with_timeout no data received [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:35]recv_with_timeout no data received [12:18:36]OFD Sender: No OFD packet to send [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:10]recv_with_timeout no data received [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:28]recv_with_timeout no data received [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:52]recv_with_timeout no data received [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:17]recv_with_timeout no data received [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]recv_with_timeout no data received [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:22]accept exits with 8 [12:22:22]New connection [12:22:22]New thread 3067411812 created [12:22:22]Thread 3067555172 joined [12:22:22]Waiting for new connection... [12:22:22] Sock 8.Parse request [12:22:22]Sock 8.Check first char [12:22:22]Sock 8.First char is OK [12:22:22]request: POST /json_proto HTTP/1.0 [12:22:22]Method: POST [12:22:22]URL: /json_proto [12:22:22]Method is POST - this is cgi request [12:22:22]url: /json_proto [12:22:22]query_string will be loaded in cgi processing [12:22:22]execute_cgi json_proto POST (null) [12:22:22]execute_cgi path=json_proto method=POST [12:22:22]POST find Content-Length [12:22:22]Host: 172.17.43.195:8080 [12:22:22]Content-Length: 682 [12:22:22]Content-Type: application/json [12:22:22] [12:22:22]POST finish read [12:22:22]Found Content-Length = 682 [12:22:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:22]execute_script... [12:22:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952016", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:22]POST & json_proto [12:22:22]process_json_proto [12:22:22]json parsed OK: [12:22:22]protocol is kg_v1.0 [12:22:22]action value=close_receipt [12:22:22]process_action close_receipt [12:22:22]cmd_close_receipt [12:22:22]MH_GetDate [12:22:22]Write to MH i2c: F0 00 00 24 02 15 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: F0 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: F0 09 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: F0 09 00 24 02 00 FE 81 1F 67 74 2C AD 66 D6 [12:22:22]GetLastDocTimeStamp 1730117743 [12:22:22]current date 1730118142 [12:22:22]FM_GetShiftState [12:22:22]SAM_PROTO_GetShiftState [12:22:22]wFMCommunicate request_size=4 [12:22:22]MH_SAM_APDU [12:22:22]CAPDU: 80 13 01 00 [12:22:22]Write to MH i2c: E2 08 00 25 02 80 13 01 00 00 00 00 00 A4 [12:22:22]Write i2c OK [12:22:22]MH_I2C_Read... [12:22:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:22]Read from MH i2c: E2 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 0E 00 [12:22:22]MH_I2C_Read... [12:22:22]Read from MH i2c: E2 0E 00 25 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0C [12:22:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:22:22]wFMCommunicate OK [12:22:22]SAM_PROTO_GetShiftState done [12:22:22]FM_GetShiftState done [12:22:22]opened in 1730074113 [12:22:22]opened+sec_in_day 1730160513 [12:22:22]quantity*price = 100021 [12:22:22]sum+1 = 100023 [12:22:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 83 28.10.2024 12:22 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72555 ФПД: 20028696883529 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122222&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72555&fm=20028696883529&tin=02508201610067®Number=0000000000091644&sum=100000 [12:22:23]StoreToDocumentArchive [12:22:23]shift 554 fd 72555 [12:22:23]save to /storage/0554/doc_00072555 [12:22:23]save last doc name /storage/0554/doc_00072555 to /storage/kkm_last_doc_name [12:22:23]save OK [12:22:23]Clear old archive folders... [12:22:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:23]tlvbuf is 0025C010 [12:22:23]SAM_PROTO_ClearQueue [12:22:23]wFMCommunicate request_size=4 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 09 00 00 [12:22:23]Write to MH i2c: E2 08 00 32 02 80 09 00 00 00 00 00 00 A6 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [12:22:23]RAPDU: 90 00 [12:22:23]wFMCommunicate OK [12:22:23]SAM_PROTO_ClearQueue done [12:22:23]KKMCreateOFDPacket [12:22:23]OFDProtocolAddRootSTLVToBuf [12:22:23]FM_MakeSignedData [12:22:23]FM_MakeSignedData [12:22:23]SAM_PROTO_SignData [12:22:23]wFMCommunicate request_size=4 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 0D 01 02 [12:22:23]Write to MH i2c: E2 08 00 33 02 80 0D 01 02 00 00 00 00 AE [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [12:22:23]RAPDU: 90 00 [12:22:23]wFMCommunicate OK [12:22:23]wFMCommunicate request_size=255 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 81 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 35 04 06 00 12 [12:22:23]Write to MH i2c: E2 02 01 34 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 81 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 35 04 06 00 12 00 00 75 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [12:22:23]RAPDU: 90 00 [12:22:23]wFMCommunicate OK [12:22:23]wFMCommunicate request_size=10 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 0D 02 02 05 37 4B 5C F1 49 [12:22:23]Write to MH i2c: E2 0D 00 35 02 80 0D 02 02 05 00 37 4B 5C F1 49 00 00 D3 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [12:22:23]RAPDU: 90 00 [12:22:23]wFMCommunicate OK [12:22:23]wFMCommunicate request_size=4 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 0D 03 02 [12:22:23]Write to MH i2c: E2 08 00 36 02 80 0D 03 02 00 00 00 00 B3 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 0B 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 0B 00 36 02 00 B8 64 2E 4A 54 EB 0A 15 90 00 A6 [12:22:23]RAPDU: B8 64 2E 4A 54 EB 0A 15 90 00 [12:22:23]wFMCommunicate OK [12:22:23]SAM_PROTO_SignData done [12:22:23]FM_MakeSignedData done [12:22:23]CreateOFDProtocolMessage [12:22:23]wFMCommunicate request_size=4 [12:22:23]MH_SAM_APDU [12:22:23]CAPDU: 80 11 00 00 [12:22:23]Write to MH i2c: E2 08 00 37 02 80 11 00 00 00 00 00 00 B3 [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:23]Read from MH i2c: E2 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 17 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: E2 17 00 37 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 07 [12:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:22:23]wFMCommunicate OK [12:22:23]CreateOFDProtocolMessage done [12:22:23]OFDSenderStorePacket 72555 [12:22:23]StoreOFDPacket docnum=72555 [12:22:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3F 96 07 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 81 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 35 04 06 00 12 37 4B 5C F1 49 B8 64 2E 4A 54 EB 0A 15 [12:22:23]CheckFolder [12:22:23]dirname=/storage/ofd_packets [12:22:23]CheckFolder done [12:22:23]ProducePacketName [12:22:23]name=ofd_packets/00072555 [12:22:23]NVStorageSaveData ofd_packets/00072555 [12:22:23]File name is /storage/ofd_packets/00072555 [12:22:23]Write 301 bytes [12:22:23]NVStorageSaveData done [12:22:23]OFDSenderStorePacket done [12:22:23]KKMCreateOFDPacket done [12:22:23]NVStorageSaveData kkm_last_timestamp [12:22:23]File name is /storage/kkm_last_timestamp [12:22:23]Write 4 bytes [12:22:23]NVStorageSaveData done [12:22:23]ExternCall_PrintAddStr [12:22:23]wPrintStart [12:22:23]Write to MH i2c: 01 00 00 38 02 3A [12:22:23]Write i2c OK [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 07 00 [12:22:23]MH_I2C_Read... [12:22:23]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [12:22:23]RasterBufferAndPrint [12:22:23]line Счет N : (1)952016 [12:22:23]line ИНН: 02508201610067 [12:22:23]line Контрольно-Кассовый Чек [12:22:23]line ПРОДАЖА [12:22:23]line ТРК (МРК, ГНК) : 62 [12:22:23]line Товар: 2710124500 [12:22:23]line Аи-95-К-3 [12:22:23]line 13.480 * 74.20 [12:22:23]line = 1000.22 [12:22:23]line НДС 12% НСП 1% [12:22:23]line > о реализуемом товаре [12:22:23]line ОКРУГЛЕНИЕ: -0.22 [12:22:23]line ИТОГО: 1000.00 [12:22:23]line Внесено: 1000.00 [12:22:23]line СДАЧА: 0.00 [12:22:23]line НСП 1% : 8.85 [12:22:23]line НДС 12% : 106.22 [12:22:23]line Наличными: 1000.00 [12:22:23]line Безнал.: 0.00 [12:22:23]line Место: АЗС № 113 "Партнер Нефть" [12:22:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:22:23]line СНО: Общий режим [12:22:23]line Чек 83 28.10.2024 12:22 [12:22:23]line Смена: 554 ФФД: 1.0 [12:22:23]line ЗНМ: 0300000087 [12:22:23]line РНМ: 0000000000091644 [12:22:23]line Версия ККМ: 001 [12:22:23]line ФМ: 0000000000874662 [12:22:23]line ФД: 72555 [12:22:23]line ФПД: 20028696883529 [12:22:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122222&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72555&fm=20028696883529&tin=02508201610067®Number=0000000000091644&sum=100000 [12:22:24]OFD Sender: Processing packet 72555 [packets to send 273, broken 272] [12:22:24]ProducePacketName [12:22:24]name=ofd_packets/00072555 [12:22:24]OFD Sender: To server: pG, [12:22:24]CommunicateWithHost lk.salyk.kg:30040 [12:22:24]ConnectInit lk.salyk.kg [12:22:24]written 0, free lines is 4095 [12:22:24]Write to MH i2c: 01 00 00 63 02 65 [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: 01 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: 01 07 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 D6 0C 4E [12:22:24]RasterBufferAndPrint [12:22:24]line [12:22:24]line [12:22:24]line [12:22:24]line [12:22:24]line [12:22:24]written 0, free lines is 3293 [12:22:24]MH_Cut [12:22:24]Write to MH i2c: D1 01 00 6A 02 01 3E [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: D1 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: D1 01 00 [12:22:24]MH_I2C_Read... [12:22:24]Read from MH i2c: D1 01 00 6A 02 00 3D [12:22:24]Write to MH i2c: 01 00 00 6B 02 6D [12:22:24]Write i2c OK [12:22:24]MH_I2C_Read... [12:22:24]Connected sock=10 [12:22:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3F 96 07 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 81 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 35 04 06 00 12 37 4B 5C F1 49 B8 64 2E 4A 54 EB 0A 15 [12:22:25]*** Cut start [12:22:25]*** Partial cut [12:22:25]*** CUTSNS_PIN = 1 [12:22:25]*** CUTSNS_PIN = 0 [12:22:25]*** Brake cut motor [12:22:25]Read from MH i2c: 01 [12:22:25]MH_I2C_Read... [12:22:25]*** Stop cut motor [12:22:25]*** Cut end [12:22:25]Read from MH i2c: 01 07 00 [12:22:25]MH_I2C_Read... [12:22:25]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [12:22:25]process_action close_receipt done [12:22:25]requested_data is exist [12:22:25]produce_requested_data [12:22:25]requested_item fm.sn is exist - process it [12:22:25]wFMCommunicate request_size=4 [12:22:25]MH_SAM_APDU [12:22:25]CAPDU: 80 11 00 00 [12:22:25]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [12:22:25]Write i2c OK [12:22:25]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [12:22:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:22:26]wFMCommunicate OK [12:22:26]requested_item fd.num is exist - process it [12:22:26]SAM_PROTO_GetFieldsCounters [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 00 00 [12:22:26]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 62 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [12:22: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetFieldsCounters done [12:22:26]requested_item shift.num is exist - process it [12:22:26]requested_item shift.opened is exist - process it [12:22:26]req_shift_opened [12:22:26]FM_GetShiftState [12:22:26]SAM_PROTO_GetShiftState [12:22:26]wFMCommunicate request_size=4 [12:22:26]MH_SAM_APDU [12:22:26]CAPDU: 80 13 01 00 [12:22:26]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [12:22:26]Write i2c OK [12:22:26]MH_I2C_Read... [12:22:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:26]Read from MH i2c: E2 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 [12:22:26]MH_I2C_Read... [12:22:26]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 55 [12:22:26]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:22:26]wFMCommunicate OK [12:22:26]SAM_PROTO_GetShiftState done [12:22:26]FM_GetShiftState done [12:22:26]req_shift_opened done [12:22:26]requested_item shift.open_date is exist - process it [12:22:26]req_shift_open_date [12:22:26]req_shift_open_date done [12:22:26]produce_requested_data done [12:22:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72555,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:22:26]process_action_free close_receipt [12:22:26]json_value_free [12:22:26]json_value_free done [12:22:26]process_json_proto returns [12:22:26]Send response to host [12:22:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72555,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:22:26]free response buf [12:22:26]execute_script done [12:22:26]execute_script returns [12:22:26]free content buf [12:22:26]Sock 8.Close socket [12:22:26]Sock 8.Thread stoped [12:22:29]recv_with_timeout no data received [12:22:29]CommunicateWithHost answer receiving error [12:22:29]CommunicateWithHost err = -3 [12:22:29]OFD Sender: Server communicate error [12:22:34]OFD Sender: Processing packet 72555 [packets to send 273, broken 272] [12:22:34]ProducePacketName [12:22:34]name=ofd_packets/00072555 [12:22:34]OFD Sender: To server: pG, [12:22:34]CommunicateWithHost lk.salyk.kg:30040 [12:22:34]ConnectInit lk.salyk.kg [12:22:36]recv_with_timeout no data received [12:22:39]ConnectInit Can't take IP for lk.salyk.kg [12:22:39]CommunicateWithHost connect error [12:22:39]CommunicateWithHost err = -1 [12:22:39]OFD Sender: Server communicate error [12:22:44]OFD Sender: Processing packet 72555 [packets to send 273, broken 272] [12:22:44]ProducePacketName [12:22:44]name=ofd_packets/00072555 [12:22:44]OFD Sender: To server: pG, [12:22:44]CommunicateWithHost lk.salyk.kg:30040 [12:22:44]ConnectInit lk.salyk.kg [12:22:45]Connected sock=10 [12:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3F 96 07 01 49 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 FE 81 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 35 04 06 00 12 37 4B 5C F1 49 B8 64 2E 4A 54 EB 0A 15 [12:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 07 3D 47 00 AC 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6B 1B 01 00 F4 03 04 00 D2 2C 1F 67 B6 04 01 00 00 96 D4 2E 50 70 1E B5 61 [12:22:46]CommunicateWithHost err = 0 [12:22:46]CheckOFDResponse [12:22:46]1017 (14) - 77093643461234 [12:22:46]1041 (16) - 0000000000874662 [12:22:46]1040 (4) - 72555 [12:22:46]1012 (4) - 28.10.2024 06:18 [12:22:46]1206 (1) - 0 [12:22:46]OFD Sender: Remove packet 72555 [12:22:46]ProducePacketName [12:22:46]name=ofd_packets/00072555 [12:22:46]NVStorageDeleteData [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:32]OFD Sender: No OFD packet to send [12:23:34]recv_with_timeout no data received [12:23:37]OFD Sender: No OFD packet to send [12:23:42]OFD Sender: No OFD packet to send [12:23:47]OFD Sender: No OFD packet to send [12:23:52]OFD Sender: No OFD packet to send [12:23:57]OFD Sender: No OFD packet to send [12:24:02]OFD Sender: No OFD packet to send [12:24:07]OFD Sender: No OFD packet to send [12:24:12]OFD Sender: No OFD packet to send [12:24:17]OFD Sender: No OFD packet to send [12:24:20]accept exits with 9 [12:24:20]New connection [12:24:20]New thread 3067555172 created [12:24:20]Thread 3067411812 joined [12:24:20]Waiting for new connection... [12:24:20] Sock 9.Parse request [12:24:20]Sock 9.Check first char [12:24:20]Sock 9.First char is OK [12:24:20]request: POST /json_proto HTTP/1.0 [12:24:20]Method: POST [12:24:20]URL: /json_proto [12:24:20]Method is POST - this is cgi request [12:24:20]url: /json_proto [12:24:20]query_string will be loaded in cgi processing [12:24:20]execute_cgi json_proto POST (null) [12:24:20]execute_cgi path=json_proto method=POST [12:24:20]POST find Content-Length [12:24:20]Host: 172.17.43.195:8080 [12:24:20]Content-Length: 682 [12:24:20]Content-Type: application/json [12:24:20] [12:24:20]POST finish read [12:24:20]Found Content-Length = 682 [12:24:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 43.670, "sum" : 2921.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2921.00, "payments": [ { "type": 0, "sum" : 2921.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:20]execute_script... [12:24:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952017", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 43.670, "sum" : 2921.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2921.00, "payments": [ { "type": 0, "sum" : 2921.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:20]POST & json_proto [12:24:20]process_json_proto [12:24:20]json parsed OK: [12:24:20]protocol is kg_v1.0 [12:24:20]action value=close_receipt [12:24:20]process_action close_receipt [12:24:20]cmd_close_receipt [12:24:20]MH_GetDate [12:24:20]Write to MH i2c: F0 00 00 6F 02 60 [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: F0 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: F0 09 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: F0 09 00 6F 02 00 74 82 1F 67 74 2C AD 66 98 [12:24:20]GetLastDocTimeStamp 1730118142 [12:24:20]current date 1730118260 [12:24:20]FM_GetShiftState [12:24:20]SAM_PROTO_GetShiftState [12:24:20]wFMCommunicate request_size=4 [12:24:20]MH_SAM_APDU [12:24:20]CAPDU: 80 13 01 00 [12:24:20]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [12:24:20]Write i2c OK [12:24:20]MH_I2C_Read... [12:24:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:20]Read from MH i2c: E2 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 0E 00 [12:24:20]MH_I2C_Read... [12:24:20]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 57 [12:24:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:24:20]wFMCommunicate OK [12:24:20]SAM_PROTO_GetShiftState done [12:24:20]FM_GetShiftState done [12:24:20]opened in 1730074113 [12:24:20]opened+sec_in_day 1730160513 [12:24:20]quantity*price = 292152 [12:24:20]sum+1 = 292153 [12:24:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.52 ИТОГО: 2921.00 Внесено: 5000.00 СДАЧА: 2079.00 НСП 1% : 25.85 НДС 12% : 310.25 Наличными: 2921.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 84 28.10.2024 12:24 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72556 ФПД: 132956268552322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122420&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72556&fm=132956268552322&tin=02508201610067®Number=0000000000091644&sum=292100 [12:24:21]StoreToDocumentArchive [12:24:21]shift 554 fd 72556 [12:24:21]save to /storage/0554/doc_00072556 [12:24:21]save last doc name /storage/0554/doc_00072556 to /storage/kkm_last_doc_name [12:24:21]save OK [12:24:21]Clear old archive folders... [12:24:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:24:21]tlvbuf is 0025C010 [12:24:21]SAM_PROTO_ClearQueue [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 09 00 00 [12:24:21]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_ClearQueue done [12:24:21]KKMCreateOFDPacket [12:24:21]OFDProtocolAddRootSTLVToBuf [12:24:21]FM_MakeSignedData [12:24:21]FM_MakeSignedData [12:24:21]SAM_PROTO_SignData [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 01 02 [12:24:21]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=255 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 [12:24:21]Write to MH i2c: E2 02 01 7F 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 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 00 00 F3 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=10 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 02 02 05 EC 4B 28 60 82 [12:24:21]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 EC 4B 28 60 82 00 00 47 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [12:24:21]RAPDU: 90 00 [12:24:21]wFMCommunicate OK [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 0D 03 02 [12:24:21]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 0B 00 81 02 00 95 2E A5 06 62 B4 2A E6 90 00 93 [12:24:21]RAPDU: 95 2E A5 06 62 B4 2A E6 90 00 [12:24:21]wFMCommunicate OK [12:24:21]SAM_PROTO_SignData done [12:24:21]FM_MakeSignedData done [12:24:21]CreateOFDProtocolMessage [12:24:21]wFMCommunicate request_size=4 [12:24:21]MH_SAM_APDU [12:24:21]CAPDU: 80 11 00 00 [12:24:21]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:21]Read from MH i2c: E2 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [12:24:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:24:21]wFMCommunicate OK [12:24:21]CreateOFDProtocolMessage done [12:24:21]OFDSenderStorePacket 72556 [12:24:21]StoreOFDPacket docnum=72556 [12:24:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 53 07 01 1B 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 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 EC 4B 28 60 82 95 2E A5 06 62 B4 2A E6 [12:24:21]CheckFolder [12:24:21]dirname=/storage/ofd_packets [12:24:21]CheckFolder done [12:24:21]ProducePacketName [12:24:21]name=ofd_packets/00072556 [12:24:21]NVStorageSaveData ofd_packets/00072556 [12:24:21]File name is /storage/ofd_packets/00072556 [12:24:21]Write 301 bytes [12:24:21]NVStorageSaveData done [12:24:21]OFDSenderStorePacket done [12:24:21]KKMCreateOFDPacket done [12:24:21]NVStorageSaveData kkm_last_timestamp [12:24:21]File name is /storage/kkm_last_timestamp [12:24:21]Write 4 bytes [12:24:21]NVStorageSaveData done [12:24:21]ExternCall_PrintAddStr [12:24:21]wPrintStart [12:24:21]Write to MH i2c: 01 00 00 83 02 85 [12:24:21]Write i2c OK [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 [12:24:21]MH_I2C_Read... [12:24:21]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [12:24:21]RasterBufferAndPrint [12:24:21]line Счет N : (1)952017 [12:24:21]line ИНН: 02508201610067 [12:24:21]line Контрольно-Кассовый Чек [12:24:21]line ПРОДАЖА [12:24:21]line ТРК (МРК, ГНК) : 42 [12:24:21]line Товар: 2710124130 [12:24:21]line Аи-92-К-5 [12:24:21]line 43.670 * 66.90 [12:24:21]line = 2921.52 [12:24:21]line НДС 12% НСП 1% [12:24:21]line > о реализуемом товаре [12:24:21]line ОКРУГЛЕНИЕ: -0.52 [12:24:21]line ИТОГО: 2921.00 [12:24:21]line Внесено: 5000.00 [12:24:21]line СДАЧА: 2079.00 [12:24:21]line НСП 1% : 25.85 [12:24:21]line НДС 12% : 310.25 [12:24:21]line Наличными: 2921.00 [12:24:21]line Безнал.: 0.00 [12:24:21]line Место: АЗС № 113 "Партнер Нефть" [12:24:21]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:24:21]line СНО: Общий режим [12:24:21]line Чек 84 28.10.2024 12:24 [12:24:21]line Смена: 554 ФФД: 1.0 [12:24:21]line ЗНМ: 0300000087 [12:24:21]line РНМ: 0000000000091644 [12:24:21]line Версия ККМ: 001 [12:24:21]line ФМ: 0000000000874662 [12:24:21]line ФД: 72556 [12:24:21]line ФПД: 132956268552322 [12:24:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122420&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72556&fm=132956268552322&tin=02508201610067®Number=0000000000091644&sum=292100 [12:24:22]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:24:22]ProducePacketName [12:24:22]name=ofd_packets/00072556 [12:24:22]OFD Sender: To server: pG, [12:24:22]CommunicateWithHost lk.salyk.kg:30040 [12:24:22]ConnectInit lk.salyk.kg [12:24:22]written 0, free lines is 4095 [12:24:22]Write to MH i2c: 01 00 00 AE 02 B0 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: 01 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: 01 07 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: 01 07 00 AE 02 00 00 00 00 00 E4 0C A7 [12:24:22]RasterBufferAndPrint [12:24:22]line [12:24:22]line [12:24:22]line [12:24:22]line [12:24:22]line [12:24:22]written 0, free lines is 3307 [12:24:22]MH_Cut [12:24:22]Write to MH i2c: D1 01 00 B5 02 01 89 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: D1 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: D1 01 00 [12:24:22]MH_I2C_Read... [12:24:22]Read from MH i2c: D1 01 00 B5 02 00 88 [12:24:22]Write to MH i2c: 01 00 00 B6 02 B8 [12:24:22]Write i2c OK [12:24:22]MH_I2C_Read... [12:24:23]*** Cut start [12:24:23]*** Partial cut [12:24:23]*** CUTSNS_PIN = 1 [12:24:23]*** CUTSNS_PIN = 0 [12:24:23]*** Brake cut motor [12:24:24]Read from MH i2c: 01 [12:24:24]MH_I2C_Read... [12:24:24]*** Stop cut motor [12:24:24]*** Cut end [12:24:24]Read from MH i2c: 01 07 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: 01 07 00 B6 02 00 00 00 00 00 FF 0F CD [12:24:24]process_action close_receipt done [12:24:24]requested_data is exist [12:24:24]produce_requested_data [12:24:24]requested_item fm.sn is exist - process it [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 11 00 00 [12:24:24]Write to MH i2c: E2 08 00 B7 02 80 11 00 00 00 00 00 00 33 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 17 00 B7 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 87 [12:24:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:24:24]wFMCommunicate OK [12:24:24]requested_item fd.num is exist - process it [12:24:24]SAM_PROTO_GetFieldsCounters [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 13 00 00 [12:24:24]Write to MH i2c: E2 08 00 B8 02 80 13 00 00 00 00 00 00 36 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 62 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 62 00 B8 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [12:24: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:24]wFMCommunicate OK [12:24:24]SAM_PROTO_GetFieldsCounters done [12:24:24]requested_item shift.num is exist - process it [12:24:24]requested_item shift.opened is exist - process it [12:24:24]req_shift_opened [12:24:24]FM_GetShiftState [12:24:24]SAM_PROTO_GetShiftState [12:24:24]wFMCommunicate request_size=4 [12:24:24]MH_SAM_APDU [12:24:24]CAPDU: 80 13 01 00 [12:24:24]Write to MH i2c: E2 08 00 B9 02 80 13 01 00 00 00 00 00 38 [12:24:24]Write i2c OK [12:24:24]MH_I2C_Read... [12:24:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:24]Read from MH i2c: E2 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0E 00 [12:24:24]MH_I2C_Read... [12:24:24]Read from MH i2c: E2 0E 00 B9 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A0 [12:24:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:24:24]wFMCommunicate OK [12:24:24]SAM_PROTO_GetShiftState done [12:24:24]FM_GetShiftState done [12:24:24]req_shift_opened done [12:24:24]requested_item shift.open_date is exist - process it [12:24:24]req_shift_open_date [12:24:24]req_shift_open_date done [12:24:24]produce_requested_data done [12:24:24]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72556,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:24:24]process_action_free close_receipt [12:24:24]json_value_free [12:24:24]json_value_free done [12:24:24]process_json_proto returns [12:24:24]Send response to host [12:24:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72556,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:24:24]free response buf [12:24:24]execute_script done [12:24:24]execute_script returns [12:24:24]free content buf [12:24:24]Sock 9.Close socket [12:24:24]Sock 9.Thread stoped [12:24:27]ConnectInit Can't take IP for lk.salyk.kg [12:24:27]CommunicateWithHost connect error [12:24:27]CommunicateWithHost err = -1 [12:24:27]OFD Sender: Server communicate error [12:24:32]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:24:32]ProducePacketName [12:24:32]name=ofd_packets/00072556 [12:24:32]OFD Sender: To server: pG, [12:24:32]CommunicateWithHost lk.salyk.kg:30040 [12:24:32]ConnectInit lk.salyk.kg [12:24:32]Connected sock=9 [12:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 53 07 01 1B 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 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 EC 4B 28 60 82 95 2E A5 06 62 B4 2A E6 [12:24:37]recv_with_timeout no data received [12:24:37]recv_with_timeout no data received [12:24:37]CommunicateWithHost answer receiving error [12:24:37]CommunicateWithHost err = -3 [12:24:37]OFD Sender: Server communicate error [12:24:42]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:24:42]ProducePacketName [12:24:42]name=ofd_packets/00072556 [12:24:42]OFD Sender: To server: pG, [12:24:42]CommunicateWithHost lk.salyk.kg:30040 [12:24:42]ConnectInit lk.salyk.kg [12:24:45]Connected sock=9 [12:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 53 07 01 1B 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 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 EC 4B 28 60 82 95 2E A5 06 62 B4 2A E6 [12:24:48]recv_with_timeout no data received [12:24:50]recv_with_timeout no data received [12:24:50]CommunicateWithHost answer receiving error [12:24:50]CommunicateWithHost err = -3 [12:24:50]OFD Sender: Server communicate error [12:24:55]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:24:55]ProducePacketName [12:24:55]name=ofd_packets/00072556 [12:24:55]OFD Sender: To server: pG, [12:24:55]CommunicateWithHost lk.salyk.kg:30040 [12:24:55]ConnectInit lk.salyk.kg [12:25:00]ConnectInit Can't take IP for lk.salyk.kg [12:25:00]CommunicateWithHost connect error [12:25:00]CommunicateWithHost err = -1 [12:25:00]OFD Sender: Server communicate error [12:25:05]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:25:05]ProducePacketName [12:25:05]name=ofd_packets/00072556 [12:25:05]OFD Sender: To server: pG, [12:25:05]CommunicateWithHost lk.salyk.kg:30040 [12:25:05]ConnectInit lk.salyk.kg [12:25:10]ConnectInit Can't take IP for lk.salyk.kg [12:25:10]CommunicateWithHost connect error [12:25:10]CommunicateWithHost err = -1 [12:25:10]OFD Sender: Server communicate error [12:25:15]OFD Sender: Processing packet 72556 [packets to send 273, broken 272] [12:25:15]ProducePacketName [12:25:15]name=ofd_packets/00072556 [12:25:15]OFD Sender: To server: pG, [12:25:15]CommunicateWithHost lk.salyk.kg:30040 [12:25:15]ConnectInit lk.salyk.kg [12:25:22]recv_with_timeout no data received [12:25:23]Connected sock=9 [12:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 53 07 01 1B 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 96 AA 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 38 75 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 75 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 19 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 79 00 00 00 00 07 04 06 00 04 75 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 74 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6C 1B 01 00 35 04 06 00 78 EC 4B 28 60 82 95 2E A5 06 62 B4 2A E6 [12:25:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 31 47 00 CE 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 34 36 36 32 10 04 04 00 6C 1B 01 00 F4 03 04 00 70 2D 1F 67 B6 04 01 00 00 4A 33 2A BB 1C 15 0F 13 [12:25:24]CommunicateWithHost err = 0 [12:25:24]CheckOFDResponse [12:25:24]1017 (14) - 77093643461234 [12:25:24]1041 (16) - 0000000000874662 [12:25:24]1040 (4) - 72556 [12:25:24]1012 (4) - 28.10.2024 06:21 [12:25:24]1206 (1) - 0 [12:25:24]OFD Sender: Remove packet 72556 [12:25:24]ProducePacketName [12:25:24]name=ofd_packets/00072556 [12:25:24]NVStorageDeleteData [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]recv_with_timeout no data received [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:27]recv_with_timeout no data received [12:26:29]accept exits with 10 [12:26:29]New connection [12:26:29]New thread 3067411812 created [12:26:29]Thread 3067555172 joined [12:26:29]Waiting for new connection... [12:26:29] Sock 10.Parse request [12:26:29]Sock 10.Check first char [12:26:29]Sock 10.First char is OK [12:26:29]request: POST /json_proto HTTP/1.0 [12:26:29]Method: POST [12:26:29]URL: /json_proto [12:26:29]Method is POST - this is cgi request [12:26:29]url: /json_proto [12:26:29]query_string will be loaded in cgi processing [12:26:29]execute_cgi json_proto POST (null) [12:26:29]execute_cgi path=json_proto method=POST [12:26:29]POST find Content-Length [12:26:29]Host: 172.17.43.195:8080 [12:26:29]Content-Length: 677 [12:26:29]Content-Type: application/json [12:26:29] [12:26:29]POST finish read [12:26:29]Found Content-Length = 677 [12:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:26:29]execute_script... [12:26: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)952019", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:26:29]POST & json_proto [12:26:29]process_json_proto [12:26:29]json parsed OK: [12:26:29]protocol is kg_v1.0 [12:26:29]action value=close_receipt [12:26:29]process_action close_receipt [12:26:29]cmd_close_receipt [12:26:29]MH_GetDate [12:26:29]Write to MH i2c: F0 00 00 BA 02 AB [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: F0 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: F0 09 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: F0 09 00 BA 02 00 F5 82 1F 67 74 2C AD 66 64 [12:26:29]GetLastDocTimeStamp 1730118260 [12:26:29]current date 1730118389 [12:26:29]FM_GetShiftState [12:26:29]SAM_PROTO_GetShiftState [12:26:29]wFMCommunicate request_size=4 [12:26:29]MH_SAM_APDU [12:26:29]CAPDU: 80 13 01 00 [12:26:29]Write to MH i2c: E2 08 00 BB 02 80 13 01 00 00 00 00 00 3A [12:26:29]Write i2c OK [12:26:29]MH_I2C_Read... [12:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:29]Read from MH i2c: E2 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0E 00 [12:26:29]MH_I2C_Read... [12:26:29]Read from MH i2c: E2 0E 00 BB 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A2 [12:26:29]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:26:29]wFMCommunicate OK [12:26:29]SAM_PROTO_GetShiftState done [12:26:29]FM_GetShiftState done [12:26:29]opened in 1730074113 [12:26:29]opened+sec_in_day 1730160513 [12:26:29]quantity*price = 10035 [12:26:29]sum+1 = 10036 [12:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 100.00 Внесено: 100.00 СДАЧА: 0.00 НСП 1% : 0.89 НДС 12% : 10.66 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 85 28.10.2024 12:26 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72557 ФПД: 190079675547724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T122629&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72557&fm=190079675547724&tin=02508201610067®Number=0000000000091644&sum=10000 [12:26:30]StoreToDocumentArchive [12:26:30]shift 554 fd 72557 [12:26:30]save to /storage/0554/doc_00072557 [12:26:30]save last doc name /storage/0554/doc_00072557 to /storage/kkm_last_doc_name [12:26:30]save OK [12:26:30]Clear old archive folders... [12:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:26:30]tlvbuf is 001CCC10 [12:26:30]SAM_PROTO_ClearQueue [12:26:30]wFMCommunicate request_size=4 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 09 00 00 [12:26:30]Write to MH i2c: E2 08 00 C8 02 80 09 00 00 00 00 00 00 3C [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [12:26:30]RAPDU: 90 00 [12:26:30]wFMCommunicate OK [12:26:30]SAM_PROTO_ClearQueue done [12:26:30]KKMCreateOFDPacket [12:26:30]OFDProtocolAddRootSTLVToBuf [12:26:30]FM_MakeSignedData [12:26:30]FM_MakeSignedData [12:26:30]SAM_PROTO_SignData [12:26:30]wFMCommunicate request_size=4 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 0D 01 02 [12:26:30]Write to MH i2c: E2 08 00 C9 02 80 0D 01 02 00 00 00 00 44 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [12:26:30]RAPDU: 90 00 [12:26:30]wFMCommunicate OK [12:26:30]wFMCommunicate request_size=255 [12:26:30]MH_SAM_APDU [12:26: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 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 55 00 00 00 F4 03 04 00 F5 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1B 01 00 35 04 06 00 AC [12:26:30]Write to MH i2c: E2 02 01 CA 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 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 55 00 00 00 F4 03 04 00 F5 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1B 01 00 35 04 06 00 AC 00 00 6D [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [12:26:30]RAPDU: 90 00 [12:26:30]wFMCommunicate OK [12:26:30]wFMCommunicate request_size=10 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 0D 02 02 05 E0 5F 8A 40 4C [12:26:30]Write to MH i2c: E2 0D 00 CB 02 80 0D 02 02 05 00 E0 5F 8A 40 4C 00 00 A6 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 03 00 CB 02 00 90 00 41 [12:26:30]RAPDU: 90 00 [12:26:30]wFMCommunicate OK [12:26:30]wFMCommunicate request_size=4 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 0D 03 02 [12:26:30]Write to MH i2c: E2 08 00 CC 02 80 0D 03 02 00 00 00 00 49 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0B 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 0B 00 CC 02 00 1E AD E8 97 04 D8 01 BF 90 00 30 [12:26:30]RAPDU: 1E AD E8 97 04 D8 01 BF 90 00 [12:26:30]wFMCommunicate OK [12:26:30]SAM_PROTO_SignData done [12:26:30]FM_MakeSignedData done [12:26:30]CreateOFDProtocolMessage [12:26:30]wFMCommunicate request_size=4 [12:26:30]MH_SAM_APDU [12:26:30]CAPDU: 80 11 00 00 [12:26:30]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [12:26:30]Write i2c OK [12:26:30]MH_I2C_Read... [12:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:30]Read from MH i2c: E2 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 17 00 [12:26:30]MH_I2C_Read... [12:26:30]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9D [12:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:26:30]wFMCommunicate OK [12:26:30]CreateOFDProtocolMessage done [12:26:30]OFDSenderStorePacket 72557 [12:26:30]StoreOFDPacket docnum=72557 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7493997+1722625140=1730119137 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 E1 85 1F 67 74 2C AD 66 9E [12:38:57]Current date/time: 28.10.2024 12:38 [12:38:57]FM_Init [12:38:57]wFMConnect [12:38:57]MH_SAM_On [12:38:57]Write to MH i2c: E0 00 00 08 00 E7 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_init finished! [12:38:57]*** atr: [12:38:57]*** 0F 3B D5 18 FF 81 91 FE [12:38:57]*** 1F C3 80 73 C8 21 10 0A [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]*** 00 00 00 00 00 00 00 00 [12:38:57]Read from MH i2c: E0 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E0 10 00 [12:38:57]MH_I2C_Read... [12:38:57]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 [12:38:57]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:38:57]wFMCommunicate request_size=10 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:38:57]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:38:57]RAPDU: 90 00 [12:38:57]wFMCommunicate OK [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 11 00 00 [12:38:57]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 [12:38:57]MH_I2C_Read... [12:38:57]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 34 36 36 32 90 00 D8 [12:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:38:57]wFMCommunicate OK [12:38:57]Detected FM SN is 0000000000874662 [12:38:57]Stored FM SN is 0000000000874662 [12:38:57]wFMCommunicate request_size=9 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 16 00 00 04 08 EB 00 00 [12:38:57]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:38:57]RAPDU: 90 00 [12:38:57]wFMCommunicate OK [12:38:57]FM PIN OK [12:38:57]wFMCommunicate request_size=8 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 14 04 00 03 02 00 01 [12:38:57]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:38:57]RAPDU: 90 00 [12:38:57]wFMCommunicate OK [12:38:57]wFMCommunicate request_size=13 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:38:57]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 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:38:57]RAPDU: 90 00 [12:38:57]wFMCommunicate OK [12:38:57]wFMCommunicate request_size=4 [12:38:57]MH_SAM_APDU [12:38:57]CAPDU: 80 11 00 00 [12:38:57]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:57]Read from MH i2c: E2 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: E2 17 00 [12:38:57]MH_I2C_Read... [12:38:57]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 34 36 36 32 90 00 DC [12:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:38:57]wFMCommunicate OK [12:38:57]DocumentArchiveInit [12:38:57]Start Httpd... [12:38:57]Httpd thread 3067420004 created [12:38:57]Write to MH i2c: 01 00 00 0F 00 0F [12:38:57]Write i2c OK [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 [12:38:57]MH_I2C_Read... [12:38:57]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:38:57]MH Int Process started [12:38:57]Allocated Socket 8 [12:38:57]Bind OK [12:38:57]Listen OK [12:38:57]httpd running on port 8080 [12:38:57]Waiting for new connection... [12:38:57]OFD Sender: Processing packet 72557 [packets to send 273, broken 272] [12:38:57]ProducePacketName [12:38:57]name=ofd_packets/00072557 [12:38:57]OFD Sender: To server: pG, [12:38:57]CommunicateWithHost lk.salyk.kg:30040 [12:38:57]ConnectInit lk.salyk.kg [12:38:58]Connected sock=6 [12:38:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3A 7B 07 01 00 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 F5 82 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1B 01 00 35 04 06 00 AC E0 5F 8A 40 4C 1E AD E8 97 04 D8 01 BF [12:38:59]accept exits with 9 [12:38:59]New connection [12:38:59]New thread 3067133284 created [12:38:59]Waiting for new connection... [12:38:59] Sock 9.Parse request [12:38:59]Sock 9.Check first char [12:38:59]Sock 9.First char is OK [12:38:59]request: POST /json_proto HTTP/1.0 [12:38:59]Method: POST [12:38:59]URL: /json_proto [12:38:59]Method is POST - this is cgi request [12:38:59]url: /json_proto [12:38:59]query_string will be loaded in cgi processing [12:38:59]execute_cgi json_proto POST (null) [12:38:59]execute_cgi path=json_proto method=POST [12:38:59]POST find Content-Length [12:38:59]Host: 172.17.43.195:8080 [12:38:59]Content-Length: 215 [12:38:59]Content-Type: application/json [12:38:59] [12:38:59]POST finish read [12:38:59]Found Content-Length = 215 [12:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:59]execute_script... [12:38:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:59]POST & json_proto [12:38:59]process_json_proto [12:38:59]json parsed OK: [12:38:59]protocol is kg_v1.0 [12:38:59]action value=get_value [12:38:59]process_action get_value [12:38:59]cmd_get_value [12:38:59]process_action get_value done [12:38:59]requested_data is exist [12:38:59]produce_requested_data [12:38:59]requested_item kkm.sn is exist - process it [12:38:59]requested_item kkm.ver is exist - process it [12:38:59]requested_item fm.sn is exist - process it [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 11 00 00 [12:38:59]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:59]Read from MH i2c: E2 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 17 00 [12:38:59]MH_I2C_Read... [12:38:59]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 34 36 36 32 90 00 DE [12:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:38:59]wFMCommunicate OK [12:38:59]requested_item fd.num is exist - process it [12:38:59]SAM_PROTO_GetFieldsCounters [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 13 00 00 [12:38:59]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:59]Read from MH i2c: E2 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 62 00 [12:38:59]MH_I2C_Read... [12:38:59]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:38: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:59]wFMCommunicate OK [12:38:59]SAM_PROTO_GetFieldsCounters done [12:38:59]requested_item shift.num is exist - process it [12:38:59]requested_item shift.opened is exist - process it [12:38:59]req_shift_opened [12:38:59]FM_GetShiftState [12:38:59]SAM_PROTO_GetShiftState [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 13 01 00 [12:38:59]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:38:59]Write i2c OK [12:38:59]MH_I2C_Read... [12:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:59]Read from MH i2c: E2 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 0E 00 [12:38:59]MH_I2C_Read... [12:38:59]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F7 [12:38:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:38:59]wFMCommunicate OK [12:38:59]SAM_PROTO_GetShiftState done [12:38:59]FM_GetShiftState done [12:38:59]req_shift_opened done [12:38:59]requested_item shift.open_date is exist - process it [12:38:59]req_shift_open_date [12:38:59]req_shift_open_date done [12:38:59]produce_requested_data done [12:38:59]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72557,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:38:59]process_action_free get_value [12:38:59]json_value_free [12:38:59]json_value_free done [12:38:59]process_json_proto returns [12:38:59]Send response to host [12:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72557,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:38:59]free response buf [12:38:59]execute_script done [12:38:59]execute_script returns [12:38:59]free content buf [12:38:59]Sock 9.Close socket [12:38:59]Sock 9.Thread stoped [12:38:59]accept exits with 10 [12:38:59]New connection [12:38:59]New thread 3066989924 created [12:38:59]Thread 3067133284 joined [12:38:59]Waiting for new connection... [12:38:59] Sock 10.Parse request [12:38:59]Sock 10.Check first char [12:38:59]Sock 10.First char is OK [12:38:59]request: POST /json_proto HTTP/1.0 [12:38:59]Method: POST [12:38:59]URL: /json_proto [12:38:59]Method is POST - this is cgi request [12:38:59]url: /json_proto [12:38:59]query_string will be loaded in cgi processing [12:38:59]execute_cgi json_proto POST (null) [12:38:59]execute_cgi path=json_proto method=POST [12:38:59]POST find Content-Length [12:38:59]Host: 172.17.43.195:8080 [12:38:59]Content-Length: 331 [12:38:59]Content-Type: application/json [12:38:59] [12:38:59]POST finish read [12:38:59]Found Content-Length = 331 [12:38:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:38:59]execute_script... [12:38:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [12:38:59]POST & json_proto [12:38:59]process_json_proto [12:38:59]json parsed OK: [12:38:59]protocol is kg_v1.0 [12:38:59]action value=get_value [12:38:59]process_action get_value [12:38:59]cmd_get_value [12:38:59]process_action get_value done [12:38:59]requested_data is exist [12:38:59]produce_requested_data [12:38:59]requested_item fm.sale.total is exist - process it [12:38:59]SAM_PROTO_GetFMData [12:38:59]wFMCommunicate request_size=4 [12:38:59]MH_SAM_APDU [12:38:59]CAPDU: 80 13 03 00 [12:38:59]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:39:00]Write i2c OK [12:39:00]MH_I2C_Read... [12:39:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:39:00]Read from MH i2c: E2 [12:39:00]MH_I2C_Read... [12:39:00]Read from MH i2c: E2 FD 00 [12:39:00]MH_I2C_Read... [12:39:00]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 19 17 01 00 69 04 A3 00 6F 04 04 00 2A 16 01 00 B1 04 05 00 47 D1 D1 A2 01 70 04 05 00 30 8D EE 57 01 72 04 04 00 17 44 E3 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F C5 7C 2C 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 85 FE B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 F0 [12:39:00]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 19 17 01 00 69 04 A3 00 6F 04 04 00 2A 16 01 00 B1 04 05 00 47 D1 D1 A2 01 70 04 05 00 30 8D EE 57 01 72 04 04 00 17 44 E3 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 2F C5 7C 2C 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 85 FE B4 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [12:39:00]wFMCommunicate OK [12:39:00]wFMCommunicate request_size=4 [12:39:00]MH_SAM_APDU [12:39:00]CAPDU: 80 17 00 00 [12:39:00]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:39:00]Write i2c OK [12:39:00]MH_I2C_Read... [12:39:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:00]Read from MH i2c: E2 [12:39:00]MH_I2C_Read... [12:39:00]Read from MH i2c: E2 FD 00 [12:39:00]MH_I2C_Read... [12:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A8 A8 47 00 64 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6D 1B 01 00 F4 03 04 00 A0 30 1F 67 B6 04 01 00 00 5B 5D 81 90 86 43 93 DD [12:39:00]CommunicateWithHost err = 0 [12:39:00]CheckOFDResponse [12:39:00]1017 (14) - 77093643461234 [12:39:00]1041 (16) - 0000000000874662 [12:39:00]1040 (4) - 72557 [12:39:00]1012 (4) - 28.10.2024 06:35 [12:39:00]1206 (1) - 0 [12:39:00]OFD Sender: Remove packet 72557 [12:39:00]ProducePacketName [12:39:00]name=ofd_packets/00072557 [12:39:00]NVStorageDeleteData [12:39:00]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 CA [12:39:00]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [12:39:00]wFMCommunicate OK [12:39:00]wFMCommunicate request_size=4 [12:39:00]MH_SAM_APDU [12:39:00]CAPDU: 80 17 00 00 [12:39:00]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:39:00]Write i2c OK [12:39:00]MH_I2C_Read... [12:39:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:01]Read from MH i2c: E2 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 FD 00 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [12:39:01]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [12:39:01]wFMCommunicate OK [12:39:01]wFMCommunicate request_size=4 [12:39:01]MH_SAM_APDU [12:39:01]CAPDU: 80 17 00 00 [12:39:01]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:39:01]Write i2c OK [12:39:01]MH_I2C_Read... [12:39:01]OFD Sender: No OFD packet to send [12:39:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:01]Read from MH i2c: E2 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 FD 00 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [12:39:01]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [12:39:01]wFMCommunicate OK [12:39:01]wFMCommunicate request_size=4 [12:39:01]MH_SAM_APDU [12:39:01]CAPDU: 80 17 00 00 [12:39:01]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:39:01]Write i2c OK [12:39:01]MH_I2C_Read... [12:39:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [12:39:01]Read from MH i2c: E2 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 E1 00 [12:39:01]MH_I2C_Read... [12:39:01]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [12:39:01]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [12:39:01]wFMCommunicate OK [12:39:01]SAM_PROTO_GetFMData done [12:39:01]requested_item fm.sale_refund.total is exist - process it [12:39:01]requested_item fm.buy.total is exist - process it [12:39:01]requested_item shift.sale.total is exist - process it [12:39:01]SAM_PROTO_GetShiftData [12:39:01]wFMCommunicate request_size=4 [12:39:01]MH_SAM_APDU [12:39:01]CAPDU: 80 13 02 00 [12:39:01]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:39:01]Write i2c OK [12:39:01]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 55 00 00 00 69 04 9B 00 6F 04 04 00 55 00 00 00 B1 04 03 00 B5 B9 3B 70 04 03 00 FC 11 24 72 04 03 00 B9 A7 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F7 57 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 54 87 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [12:39:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 55 00 00 00 69 04 9B 00 6F 04 04 00 55 00 00 00 B1 04 03 00 B5 B9 3B 70 04 03 00 FC 11 24 72 04 03 00 B9 A7 17 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 F7 57 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 54 87 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 17 00 00 [12:39:02]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [12:39:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 17 00 00 [12:39:02]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:02]Read from MH i2c: E2 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 [12:39:02]MH_I2C_Read... [12:39:02]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [12:39:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:39:02]wFMCommunicate OK [12:39:02]wFMCommunicate request_size=4 [12:39:02]MH_SAM_APDU [12:39:02]CAPDU: 80 17 00 00 [12:39:02]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:39:02]Write i2c OK [12:39:02]MH_I2C_Read... [12:39:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:39:03]Read from MH i2c: E2 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 FD 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [12:39:03]RAPDU: 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 90 00 [12:39:03]wFMCommunicate OK [12:39:03]wFMCommunicate request_size=4 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 17 00 00 [12:39:03]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [12:39:03]Read from MH i2c: E2 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 CB 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [12:39:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:39:03]wFMCommunicate OK [12:39:03]SAM_PROTO_GetShiftData done [12:39:03]requested_item shift.sale.total_cash is exist - process it [12:39:03]requested_item shift.sale_refund.total is exist - process it [12:39:03]requested_item shift.sale_refund.total_cash is exist - process it [12:39:03]requested_item shift.buy.total is exist - process it [12:39:03]requested_item shift.buy.total_cash is exist - process it [12:39:03]produce_requested_data done [12:39:03]produce_requested_data return {"fm.sale.total":70266268.87,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":39141.65,"shift.sale.total_cash":23639.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} [12:39:03]process_action_free get_value [12:39:03]json_value_free [12:39:03]json_value_free done [12:39:03]process_json_proto returns [12:39:03]Send response to host [12:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70266268.87,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":39141.65,"shift.sale.total_cash":23639.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}}} [12:39:03]free response buf [12:39:03]execute_script done [12:39:03]execute_script returns [12:39:03]free content buf [12:39:03]Sock 10.Close socket [12:39:03]Sock 10.Thread stoped [12:39:03]accept exits with 9 [12:39:03]New connection [12:39:03]New thread 3067133284 created [12:39:03]Thread 3066989924 joined [12:39:03]Waiting for new connection... [12:39:03] Sock 9.Parse request [12:39:03]Sock 9.Check first char [12:39:03]Sock 9.First char is OK [12:39:03]request: POST /json_proto HTTP/1.0 [12:39:03]Method: POST [12:39:03]URL: /json_proto [12:39:03]Method is POST - this is cgi request [12:39:03]url: /json_proto [12:39:03]query_string will be loaded in cgi processing [12:39:03]execute_cgi json_proto POST (null) [12:39:03]execute_cgi path=json_proto method=POST [12:39:03]POST find Content-Length [12:39:03]Host: 172.17.43.195:8080 [12:39:03]Content-Length: 781 [12:39:03]Content-Type: application/json [12:39:03] [12:39:03]POST finish read [12:39:03]Found Content-Length = 781 [12:39:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:03]execute_script... [12:39: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)952020", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:03]POST & json_proto [12:39:03]process_json_proto [12:39:03]json parsed OK: [12:39:03]protocol is kg_v1.0 [12:39:03]action value=close_receipt [12:39:03]process_action close_receipt [12:39:03]cmd_close_receipt [12:39:03]MH_GetDate [12:39:03]Write to MH i2c: F0 00 00 1D 00 0C [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 09 00 [12:39:03]MH_I2C_Read... [12:39:03]Read from MH i2c: F0 09 00 1D 00 00 E8 85 1F 67 74 2C AD 66 BB [12:39:03]GetLastDocTimeStamp 1730118389 [12:39:03]current date 1730119144 [12:39:03]FM_GetShiftState [12:39:03]SAM_PROTO_GetShiftState [12:39:03]wFMCommunicate request_size=4 [12:39:03]MH_SAM_APDU [12:39:03]CAPDU: 80 13 01 00 [12:39:03]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [12:39:03]Write i2c OK [12:39:03]MH_I2C_Read... [12:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:04]Read from MH i2c: E2 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0E 00 [12:39:04]MH_I2C_Read... [12:39:04]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 03 [12:39:04]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:39:04]wFMCommunicate OK [12:39:04]SAM_PROTO_GetShiftState done [12:39:04]FM_GetShiftState done [12:39:04]opened in 1730074113 [12:39:04]opened+sec_in_day 1730160513 [12:39:04]quantity*price = 50000 [12:39:04]sum+1 = 50001 [12:39:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 НСП 1% : 4.42 НДС 12% : 53.10 Наличными: 0.00 Безнал.: 500.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 86 28.10.2024 12:39 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72558 ФПД: 28447593455510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123904&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72558&fm=28447593455510&tin=02508201610067®Number=0000000000091644&sum=50000 [12:39:05]StoreToDocumentArchive [12:39:05]shift 554 fd 72558 [12:39:05]save to /storage/0554/doc_00072558 [12:39:05]save last doc name /storage/0554/doc_00072558 to /storage/kkm_last_doc_name [12:39:05]save OK [12:39:05]Clear old archive folders... [12:39:05]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:39:05]tlvbuf is 01947C10 [12:39:05]SAM_PROTO_ClearQueue [12:39:05]wFMCommunicate request_size=4 [12:39:05]MH_SAM_APDU [12:39:05]CAPDU: 80 09 00 00 [12:39:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [12:39:05]RAPDU: 90 00 [12:39:05]wFMCommunicate OK [12:39:05]SAM_PROTO_ClearQueue done [12:39:05]KKMCreateOFDPacket [12:39:05]OFDProtocolAddRootSTLVToBuf [12:39:05]FM_MakeSignedData [12:39:05]FM_MakeSignedData [12:39:05]SAM_PROTO_SignData [12:39:05]wFMCommunicate request_size=4 [12:39:05]MH_SAM_APDU [12:39:05]CAPDU: 80 0D 01 02 [12:39:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [12:39:05]RAPDU: 90 00 [12:39:05]wFMCommunicate OK [12:39:05]wFMCommunicate request_size=253 [12:39:05]MH_SAM_APDU [12:39:05]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E8 85 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1B 01 00 35 04 06 00 19 DF 78 B3 DF 96 [12:39:05]Write to MH i2c: E2 00 01 2D 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E8 85 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1B 01 00 35 04 06 00 19 DF 78 B3 DF 96 00 00 F1 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [12:39:05]RAPDU: 90 00 [12:39:05]wFMCommunicate OK [12:39:05]wFMCommunicate request_size=4 [12:39:05]MH_SAM_APDU [12:39:05]CAPDU: 80 0D 03 02 [12:39:05]Write to MH i2c: E2 08 00 2E 00 80 0D 03 02 00 00 00 00 A9 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 0B 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 0B 00 2E 00 00 4B 95 38 B2 3E 80 E9 F4 90 00 0F [12:39:05]RAPDU: 4B 95 38 B2 3E 80 E9 F4 90 00 [12:39:05]wFMCommunicate OK [12:39:05]SAM_PROTO_SignData done [12:39:05]FM_MakeSignedData done [12:39:05]CreateOFDProtocolMessage [12:39:05]wFMCommunicate request_size=4 [12:39:05]MH_SAM_APDU [12:39:05]CAPDU: 80 11 00 00 [12:39:05]Write to MH i2c: E2 08 00 2F 00 80 11 00 00 00 00 00 00 A9 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:05]Read from MH i2c: E2 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 17 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: E2 17 00 2F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [12:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:39:05]wFMCommunicate OK [12:39:05]CreateOFDProtocolMessage done [12:39:05]OFDSenderStorePacket 72558 [12:39:05]StoreOFDPacket docnum=72558 [12:39:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 66 00 01 DE 22 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E8 85 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1B 01 00 35 04 06 00 19 DF 78 B3 DF 96 4B 95 38 B2 3E 80 E9 F4 [12:39:05]CheckFolder [12:39:05]dirname=/storage/ofd_packets [12:39:05]CheckFolder done [12:39:05]ProducePacketName [12:39:05]name=ofd_packets/00072558 [12:39:05]NVStorageSaveData ofd_packets/00072558 [12:39:05]File name is /storage/ofd_packets/00072558 [12:39:05]Write 294 bytes [12:39:05]NVStorageSaveData done [12:39:05]OFDSenderStorePacket done [12:39:05]KKMCreateOFDPacket done [12:39:05]NVStorageSaveData kkm_last_timestamp [12:39:05]File name is /storage/kkm_last_timestamp [12:39:05]Write 4 bytes [12:39:05]NVStorageSaveData done [12:39:05]ExternCall_PrintAddStr [12:39:05]wPrintStart [12:39:05]Write to MH i2c: 01 00 00 30 00 30 [12:39:05]Write i2c OK [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 [12:39:05]MH_I2C_Read... [12:39:05]Read from MH i2c: 01 07 00 30 00 00 00 00 00 00 FF 0F 45 [12:39:05]RasterBufferAndPrint [12:39:05]line Счет N : (1)952020 [12:39:05]line ИНН: 02508201610067 [12:39:05]line Контрольно-Кассовый Чек [12:39:05]line ПРОДАЖА [12:39:05]line ТРК (МРК, ГНК) : 51 [12:39:05]line Товар: 50.50.0 [12:39:05]line Super 92 [12:39:05]line 7.310 * 68.40 [12:39:05]line = 500.00 [12:39:05]line НДС 12% НСП 1% [12:39:05]line > о реализуемом товаре [12:39:05]line ИТОГО: 500.00 [12:39:05]line НСП 1% : 4.42 [12:39:05]line НДС 12% : 53.10 [12:39:05]line Наличными: 0.00 [12:39:05]line Безнал.: 500.00 [12:39:05]line Место: АЗС № 113 "Партнер Нефть" [12:39:05]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:39:05]line СНО: Общий режим [12:39:05]line Чек 86 28.10.2024 12:39 [12:39:05]line Смена: 554 ФФД: 1.0 [12:39:05]line ЗНМ: 0300000087 [12:39:05]line РНМ: 0000000000091644 [12:39:05]line Версия ККМ: 001 [12:39:05]line Платежная система: O! деньги [12:39:05]line ФМ: 0000000000874662 [12:39:05]line ФД: 72558 [12:39:05]line ФПД: 28447593455510 [12:39:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T123904&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72558&fm=28447593455510&tin=02508201610067®Number=0000000000091644&sum=50000 [12:39:05]written 0, free lines is 4095 [12:39:05]OFD Sender: Processing packet 72558 [packets to send 273, broken 272] [12:39:05]ProducePacketName [12:39:05]name=ofd_packets/00072558 [12:39:05]OFD Sender: To server: pG, [12:39:05]CommunicateWithHost lk.salyk.kg:30040 [12:39:05]ConnectInit lk.salyk.kg [12:39:06]Write to MH i2c: 01 00 00 5A 00 5A [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: 01 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: 01 07 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 E4 0C 51 [12:39:06]RasterBufferAndPrint [12:39:06]line [12:39:06]line [12:39:06]line [12:39:06]line [12:39:06]line [12:39:06]written 0, free lines is 3323 [12:39:06]MH_Cut [12:39:06]Write to MH i2c: D1 01 00 61 00 01 33 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: D1 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: D1 01 00 [12:39:06]MH_I2C_Read... [12:39:06]Read from MH i2c: D1 01 00 61 00 00 32 [12:39:06]Write to MH i2c: 01 00 00 62 00 62 [12:39:06]Write i2c OK [12:39:06]MH_I2C_Read... [12:39:07]*** Cut start [12:39:07]*** Partial cut [12:39:07]*** CUTSNS_PIN = 1 [12:39:07]*** CUTSNS_PIN = 0 [12:39:07]*** Brake cut motor [12:39:07]Read from MH i2c: 01 [12:39:07]MH_I2C_Read... [12:39:07]*** Stop cut motor [12:39:07]*** Cut end [12:39:07]Read from MH i2c: 01 07 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [12:39:07]process_action close_receipt done [12:39:07]requested_data is exist [12:39:07]produce_requested_data [12:39:07]requested_item fm.sn is exist - process it [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 11 00 00 [12:39:07]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 17 00 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [12:39:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:39:07]wFMCommunicate OK [12:39:07]requested_item fd.num is exist - process it [12:39:07]SAM_PROTO_GetFieldsCounters [12:39:07]wFMCommunicate request_size=4 [12:39:07]MH_SAM_APDU [12:39:07]CAPDU: 80 13 00 00 [12:39:07]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [12:39:07]Write i2c OK [12:39:07]MH_I2C_Read... [12:39:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:07]Read from MH i2c: E2 [12:39:07]MH_I2C_Read... [12:39:07]Read from MH i2c: E2 62 00 [12:39:07]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 62 00 64 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [12:39: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:08]wFMCommunicate OK [12:39:08]SAM_PROTO_GetFieldsCounters done [12:39:08]requested_item shift.num is exist - process it [12:39:08]requested_item shift.opened is exist - process it [12:39:08]req_shift_opened [12:39:08]FM_GetShiftState [12:39:08]SAM_PROTO_GetShiftState [12:39:08]wFMCommunicate request_size=4 [12:39:08]MH_SAM_APDU [12:39:08]CAPDU: 80 13 01 00 [12:39:08]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [12:39:08]Write i2c OK [12:39:08]MH_I2C_Read... [12:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:08]Read from MH i2c: E2 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 0E 00 [12:39:08]MH_I2C_Read... [12:39:08]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4A [12:39:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:39:08]wFMCommunicate OK [12:39:08]SAM_PROTO_GetShiftState done [12:39:08]FM_GetShiftState done [12:39:08]req_shift_opened done [12:39:08]requested_item shift.open_date is exist - process it [12:39:08]req_shift_open_date [12:39:08]req_shift_open_date done [12:39:08]produce_requested_data done [12:39:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72558,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:39:08]process_action_free close_receipt [12:39:08]json_value_free [12:39:08]json_value_free done [12:39:08]process_json_proto returns [12:39:08]Send response to host [12:39:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72558,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:39:08]free response buf [12:39:08]execute_script done [12:39:08]execute_script returns [12:39:08]free content buf [12:39:08]Sock 9.Close socket [12:39:08]Sock 9.Thread stoped [12:39:08]Connected sock=10 [12:39:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 5D 66 00 01 DE 22 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 50 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 E8 85 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1B 01 00 35 04 06 00 19 DF 78 B3 DF 96 4B 95 38 B2 3E 80 E9 F4 [12:39:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 F6 47 00 42 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6E 1B 01 00 F4 03 04 00 A9 30 1F 67 B6 04 01 00 00 11 02 E8 D0 D5 ED 13 39 [12:39:09]CommunicateWithHost err = 0 [12:39:09]CheckOFDResponse [12:39:09]1017 (14) - 77093643461234 [12:39:09]1041 (16) - 0000000000874662 [12:39:09]1040 (4) - 72558 [12:39:09]1012 (4) - 28.10.2024 06:35 [12:39:09]1206 (1) - 0 [12:39:09]OFD Sender: Remove packet 72558 [12:39:09]ProducePacketName [12:39:09]name=ofd_packets/00072558 [12:39:09]NVStorageDeleteData [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:23]recv_with_timeout no data received [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:33]recv_with_timeout no data received [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:44]recv_with_timeout no data received [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:12]accept exits with 7 [12:40:12]New connection [12:40:12]New thread 3066989924 created [12:40:12]Thread 3067133284 joined [12:40:12]Waiting for new connection... [12:40:12] Sock 7.Parse request [12:40:12]Sock 7.Check first char [12:40:12]Sock 7.First char is OK [12:40:12]request: POST /json_proto HTTP/1.0 [12:40:12]Method: POST [12:40:12]URL: /json_proto [12:40:12]Method is POST - this is cgi request [12:40:12]url: /json_proto [12:40:12]query_string will be loaded in cgi processing [12:40:12]execute_cgi json_proto POST (null) [12:40:12]execute_cgi path=json_proto method=POST [12:40:12]POST find Content-Length [12:40:12]Host: 172.17.43.195:8080 [12:40:12]Content-Length: 800 [12:40:12]Content-Type: application/json [12:40:12] [12:40:12]POST finish read [12:40:12]Found Content-Length = 800 [12:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:12]execute_script... [12:40: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)952021", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 2000.02 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:12]POST & json_proto [12:40:12]process_json_proto [12:40:12]json parsed OK: [12:40:12]protocol is kg_v1.0 [12:40:12]action value=close_receipt [12:40:12]process_action close_receipt [12:40:12]cmd_close_receipt [12:40:12]MH_GetDate [12:40:12]Write to MH i2c: F0 00 00 66 00 55 [12:40:12]Write i2c OK [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: F0 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: F0 09 00 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: F0 09 00 66 00 00 2D 86 1F 67 74 2C AD 66 4A [12:40:12]GetLastDocTimeStamp 1730119144 [12:40:12]current date 1730119213 [12:40:12]FM_GetShiftState [12:40:12]SAM_PROTO_GetShiftState [12:40:12]wFMCommunicate request_size=4 [12:40:12]MH_SAM_APDU [12:40:12]CAPDU: 80 13 01 00 [12:40:12]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [12:40:12]Write i2c OK [12:40:12]MH_I2C_Read... [12:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:12]Read from MH i2c: E2 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 0E 00 [12:40:12]MH_I2C_Read... [12:40:12]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4C [12:40:12]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:40:12]wFMCommunicate OK [12:40:12]SAM_PROTO_GetShiftState done [12:40:12]FM_GetShiftState done [12:40:12]opened in 1730074113 [12:40:12]opened+sec_in_day 1730160513 [12:40:12]quantity*price = 200001 [12:40:12]sum+1 = 200003 [12:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.02 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 0.00 Безнал.: 2000.02 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 87 28.10.2024 12:40 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72559 ФПД: 131013095367588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72559&fm=131013095367588&tin=02508201610067®Number=0000000000091644&sum=200002 [12:40:13]StoreToDocumentArchive [12:40:13]shift 554 fd 72559 [12:40:13]save to /storage/0554/doc_00072559 [12:40:13]save last doc name /storage/0554/doc_00072559 to /storage/kkm_last_doc_name [12:40:13]save OK [12:40:13]Clear old archive folders... [12:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:40:13]tlvbuf is 01940160 [12:40:13]SAM_PROTO_ClearQueue [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 09 00 00 [12:40:13]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [12:40:13]RAPDU: 90 00 [12:40:13]wFMCommunicate OK [12:40:13]SAM_PROTO_ClearQueue done [12:40:13]KKMCreateOFDPacket [12:40:13]OFDProtocolAddRootSTLVToBuf [12:40:13]FM_MakeSignedData [12:40:13]FM_MakeSignedData [12:40:13]SAM_PROTO_SignData [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 0D 01 02 [12:40:13]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [12:40:13]RAPDU: 90 00 [12:40:13]wFMCommunicate OK [12:40:13]wFMCommunicate request_size=253 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2D 86 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1B 01 00 35 04 06 00 77 27 DD 02 A3 A4 [12:40:13]Write to MH i2c: E2 00 01 76 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2D 86 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1B 01 00 35 04 06 00 77 27 DD 02 A3 A4 00 00 17 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [12:40:13]RAPDU: 90 00 [12:40:13]wFMCommunicate OK [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 0D 03 02 [12:40:13]Write to MH i2c: E2 08 00 77 00 80 0D 03 02 00 00 00 00 F2 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:13]Read from MH i2c: E2 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0B 00 [12:40:13]MH_I2C_Read... [12:40:13]Read from MH i2c: E2 0B 00 77 00 00 6A 57 4A 85 20 10 D5 C7 90 00 4F [12:40:13]RAPDU: 6A 57 4A 85 20 10 D5 C7 90 00 [12:40:13]wFMCommunicate OK [12:40:13]SAM_PROTO_SignData done [12:40:13]FM_MakeSignedData done [12:40:13]CreateOFDProtocolMessage [12:40:13]wFMCommunicate request_size=4 [12:40:13]MH_SAM_APDU [12:40:13]CAPDU: 80 11 00 00 [12:40:13]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [12:40:13]Write i2c OK [12:40:13]MH_I2C_Read... [12:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:14]Read from MH i2c: E2 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 17 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 46 [12:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:40:14]wFMCommunicate OK [12:40:14]CreateOFDProtocolMessage done [12:40:14]OFDSenderStorePacket 72559 [12:40:14]StoreOFDPacket docnum=72559 [12:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 4E D9 00 01 74 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2D 86 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1B 01 00 35 04 06 00 77 27 DD 02 A3 A4 6A 57 4A 85 20 10 D5 C7 [12:40:14]CheckFolder [12:40:14]dirname=/storage/ofd_packets [12:40:14]CheckFolder done [12:40:14]ProducePacketName [12:40:14]name=ofd_packets/00072559 [12:40:14]NVStorageSaveData ofd_packets/00072559 [12:40:14]File name is /storage/ofd_packets/00072559 [12:40:14]Write 294 bytes [12:40:14]NVStorageSaveData done [12:40:14]OFDSenderStorePacket done [12:40:14]KKMCreateOFDPacket done [12:40:14]NVStorageSaveData kkm_last_timestamp [12:40:14]File name is /storage/kkm_last_timestamp [12:40:14]Write 4 bytes [12:40:14]NVStorageSaveData done [12:40:14]ExternCall_PrintAddStr [12:40:14]wPrintStart [12:40:14]Write to MH i2c: 01 00 00 79 00 79 [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 79 00 00 00 00 00 00 FF 0F 8E [12:40:14]RasterBufferAndPrint [12:40:14]line Счет N : (1)952021 [12:40:14]line ИНН: 02508201610067 [12:40:14]line Контрольно-Кассовый Чек [12:40:14]line ПРОДАЖА [12:40:14]line ТРК (МРК, ГНК) : 51 [12:40:14]line Товар: 50.50.0 [12:40:14]line Super 92 [12:40:14]line 29.240 * 68.40 [12:40:14]line = 2000.02 [12:40:14]line НДС 12% НСП 1% [12:40:14]line > о реализуемом товаре [12:40:14]line ИТОГО: 2000.02 [12:40:14]line НСП 1% : 17.70 [12:40:14]line НДС 12% : 212.39 [12:40:14]line Наличными: 0.00 [12:40:14]line Безнал.: 2000.02 [12:40:14]line Место: АЗС № 113 "Партнер Нефть" [12:40:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:40:14]line СНО: Общий режим [12:40:14]line Чек 87 28.10.2024 12:40 [12:40:14]line Смена: 554 ФФД: 1.0 [12:40:14]line ЗНМ: 0300000087 [12:40:14]line РНМ: 0000000000091644 [12:40:14]line Версия ККМ: 001 [12:40:14]line Платежная система: Бакай банк [12:40:14]line ФМ: 0000000000874662 [12:40:14]line ФД: 72559 [12:40:14]line ФПД: 131013095367588 [12:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72559&fm=131013095367588&tin=02508201610067®Number=0000000000091644&sum=200002 [12:40:14]OFD Sender: Processing packet 72559 [packets to send 273, broken 272] [12:40:14]ProducePacketName [12:40:14]name=ofd_packets/00072559 [12:40:14]OFD Sender: To server: pG, [12:40:14]CommunicateWithHost lk.salyk.kg:30040 [12:40:14]ConnectInit lk.salyk.kg [12:40:14]written 0, free lines is 4095 [12:40:14]Write to MH i2c: 01 00 00 A3 00 A3 [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: 01 07 00 A3 00 00 00 00 00 00 E8 0C 9E [12:40:14]RasterBufferAndPrint [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]line [12:40:14]written 0, free lines is 3309 [12:40:14]MH_Cut [12:40:14]Write to MH i2c: D1 01 00 AA 00 01 7C [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 01 00 [12:40:14]MH_I2C_Read... [12:40:14]Read from MH i2c: D1 01 00 AA 00 00 7B [12:40:14]Write to MH i2c: 01 00 00 AB 00 AB [12:40:14]Write i2c OK [12:40:14]MH_I2C_Read... [12:40:15]*** Cut start [12:40:15]*** Partial cut [12:40:15]*** CUTSNS_PIN = 1 [12:40:15]*** CUTSNS_PIN = 0 [12:40:15]*** Brake cut motor [12:40:16]Connected sock=9 [12:40:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 4E D9 00 01 74 69 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 42 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 42 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 2D 86 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1B 01 00 35 04 06 00 77 27 DD 02 A3 A4 6A 57 4A 85 20 10 D5 C7 [12:40:16]Read from MH i2c: 01 [12:40:16]MH_I2C_Read... [12:40:16]*** Stop cut motor [12:40:16]*** Cut end [12:40:16]Read from MH i2c: 01 07 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: 01 07 00 AB 00 00 00 00 00 00 FF 0F C0 [12:40:16]process_action close_receipt done [12:40:16]requested_data is exist [12:40:16]produce_requested_data [12:40:16]requested_item fm.sn is exist - process it [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 11 00 00 [12:40:16]Write to MH i2c: E2 08 00 AC 00 80 11 00 00 00 00 00 00 26 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 17 00 AC 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7A [12:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:40:16]wFMCommunicate OK [12:40:16]requested_item fd.num is exist - process it [12:40:16]SAM_PROTO_GetFieldsCounters [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 13 00 00 [12:40:16]Write to MH i2c: E2 08 00 AD 00 80 13 00 00 00 00 00 00 29 [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 62 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 62 00 AD 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [12:40: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 6F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_GetFieldsCounters done [12:40:16]requested_item shift.num is exist - process it [12:40:16]requested_item shift.opened is exist - process it [12:40:16]req_shift_opened [12:40:16]FM_GetShiftState [12:40:16]SAM_PROTO_GetShiftState [12:40:16]wFMCommunicate request_size=4 [12:40:16]MH_SAM_APDU [12:40:16]CAPDU: 80 13 01 00 [12:40:16]Write to MH i2c: E2 08 00 AE 00 80 13 01 00 00 00 00 00 2B [12:40:16]Write i2c OK [12:40:16]MH_I2C_Read... [12:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:16]Read from MH i2c: E2 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0E 00 [12:40:16]MH_I2C_Read... [12:40:16]Read from MH i2c: E2 0E 00 AE 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 93 [12:40:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:40:16]wFMCommunicate OK [12:40:16]SAM_PROTO_GetShiftState done [12:40:16]FM_GetShiftState done [12:40:16]req_shift_opened done [12:40:16]requested_item shift.open_date is exist - process it [12:40:16]req_shift_open_date [12:40:16]req_shift_open_date done [12:40:16]produce_requested_data done [12:40:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72559,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:40:16]process_action_free close_receipt [12:40:16]json_value_free [12:40:16]json_value_free done [12:40:16]process_json_proto returns [12:40:16]Send response to host [12:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72559,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:40:16]free response buf [12:40:16]execute_script done [12:40:16]execute_script returns [12:40:16]free content buf [12:40:16]Sock 7.Close socket [12:40:16]Sock 7.Thread stoped [12:40:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E8 5C 47 00 A5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 6F 1B 01 00 F4 03 04 00 ED 30 1F 67 B6 04 01 00 00 D5 B9 0F 8C 9D E8 F5 3A [12:40:16]CommunicateWithHost err = 0 [12:40:16]CheckOFDResponse [12:40:16]1017 (14) - 77093643461234 [12:40:16]1041 (16) - 0000000000874662 [12:40:16]1040 (4) - 72559 [12:40:16]1012 (4) - 28.10.2024 06:36 [12:40:16]1206 (1) - 0 [12:40:16]OFD Sender: Remove packet 72559 [12:40:16]ProducePacketName [12:40:16]name=ofd_packets/00072559 [12:40:16]NVStorageDeleteData [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:32]recv_with_timeout no data received [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:19]recv_with_timeout no data received [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:41:59]recv_with_timeout no data received [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:30]recv_with_timeout no data received [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:40]recv_with_timeout no data received [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]recv_with_timeout no data received [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:44]recv_with_timeout no data received [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:33]recv_with_timeout no data received [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:44]recv_with_timeout no data received [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [12:47:17]OFD Sender: No OFD packet to send [12:47:22]OFD Sender: No OFD packet to send [12:47:27]OFD Sender: No OFD packet to send [12:47:30]recv_with_timeout no data received [12:47:32]OFD Sender: No OFD packet to send [12:47:36]accept exits with 10 [12:47:36]New connection [12:47:36]New thread 3067133284 created [12:47:36]Thread 3066989924 joined [12:47:36]Waiting for new connection... [12:47:36] Sock 10.Parse request [12:47:36]Sock 10.Check first char [12:47:36]Sock 10.First char is OK [12:47:36]request: POST /json_proto HTTP/1.0 [12:47:36]Method: POST [12:47:36]URL: /json_proto [12:47:36]Method is POST - this is cgi request [12:47:36]url: /json_proto [12:47:36]query_string will be loaded in cgi processing [12:47:36]execute_cgi json_proto POST (null) [12:47:36]execute_cgi path=json_proto method=POST [12:47:36]POST find Content-Length [12:47:36]Host: 172.17.43.195:8080 [12:47:36]Content-Length: 677 [12:47:36]Content-Type: application/json [12:47:36] [12:47:36]POST finish read [12:47:36]Found Content-Length = 677 [12:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:47:36]execute_script... [12: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)952023", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [12:47:36]POST & json_proto [12:47:36]process_json_proto [12:47:36]json parsed OK: [12:47:36]protocol is kg_v1.0 [12:47:36]action value=close_receipt [12:47:36]process_action close_receipt [12:47:36]cmd_close_receipt [12:47:36]MH_GetDate [12:47:36]Write to MH i2c: F0 00 00 AF 00 9E [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: F0 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: F0 09 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: F0 09 00 AF 00 00 E9 87 1F 67 74 2C AD 66 50 [12:47:36]GetLastDocTimeStamp 1730119213 [12:47:36]current date 1730119657 [12:47:36]FM_GetShiftState [12:47:36]SAM_PROTO_GetShiftState [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 13 01 00 [12:47:36]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0E 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [12:47:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_GetShiftState done [12:47:36]FM_GetShiftState done [12:47:36]opened in 1730074113 [12:47:36]opened+sec_in_day 1730160513 [12:47:36]quantity*price = 20003 [12:47:36]sum+1 = 20004 [12:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 88 28.10.2024 12:47 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72560 ФПД: 70259951162475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124737&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72560&fm=70259951162475&tin=02508201610067®Number=0000000000091644&sum=20000 [12:47:37]StoreToDocumentArchive [12:47:37]shift 554 fd 72560 [12:47:37]save to /storage/0554/doc_00072560 [12:47:37]save last doc name /storage/0554/doc_00072560 to /storage/kkm_last_doc_name [12:47:37]save OK [12:47:37]Clear old archive folders... [12:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:47:37]tlvbuf is 0193FD30 [12:47:37]SAM_PROTO_ClearQueue [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 09 00 00 [12:47:37]Write to MH i2c: E2 08 00 BD 00 80 09 00 00 00 00 00 00 2F [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_ClearQueue done [12:47:37]KKMCreateOFDPacket [12:47:37]OFDProtocolAddRootSTLVToBuf [12:47:37]FM_MakeSignedData [12:47:37]FM_MakeSignedData [12:47:37]SAM_PROTO_SignData [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 01 02 [12:47:37]Write to MH i2c: E2 08 00 BE 00 80 0D 01 02 00 00 00 00 37 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=255 [12:47:37]MH_SAM_APDU [12: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 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 58 00 00 00 F4 03 04 00 E9 87 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1B 01 00 35 04 06 00 3F [12:47:37]Write to MH i2c: E2 02 01 BF 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 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 58 00 00 00 F4 03 04 00 E9 87 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1B 01 00 35 04 06 00 3F 00 00 CD [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]OFD Sender: No OFD packet to send [12:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=10 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 02 02 05 E6 AB 6E 54 6B [12:47:37]Write to MH i2c: E2 0D 00 C0 00 80 0D 02 02 05 00 E6 AB 6E 54 6B 00 00 02 [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [12:47:37]RAPDU: 90 00 [12:47:37]wFMCommunicate OK [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 0D 03 02 [12:47:37]Write to MH i2c: E2 08 00 C1 00 80 0D 03 02 00 00 00 00 3C [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 0B 00 C1 00 00 61 13 FA 71 0F FF 73 8B 90 00 28 [12:47:37]RAPDU: 61 13 FA 71 0F FF 73 8B 90 00 [12:47:37]wFMCommunicate OK [12:47:37]SAM_PROTO_SignData done [12:47:37]FM_MakeSignedData done [12:47:37]CreateOFDProtocolMessage [12:47:37]wFMCommunicate request_size=4 [12:47:37]MH_SAM_APDU [12:47:37]CAPDU: 80 11 00 00 [12:47:37]Write to MH i2c: E2 08 00 C2 00 80 11 00 00 00 00 00 00 3C [12:47:37]Write i2c OK [12:47:37]MH_I2C_Read... [12:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:37]Read from MH i2c: E2 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 [12:47:37]MH_I2C_Read... [12:47:37]Read from MH i2c: E2 17 00 C2 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 90 [12:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:37]wFMCommunicate OK [12:47:37]CreateOFDProtocolMessage done [12:47:37]OFDSenderStorePacket 72560 [12:47:37]StoreOFDPacket docnum=72560 [12:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1D F9 07 01 F9 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E9 87 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1B 01 00 35 04 06 00 3F E6 AB 6E 54 6B 61 13 FA 71 0F FF 73 8B [12:47:37]CheckFolder [12:47:37]dirname=/storage/ofd_packets [12:47:37]CheckFolder done [12:47:37]ProducePacketName [12:47:37]name=ofd_packets/00072560 [12:47:37]NVStorageSaveData ofd_packets/00072560 [12:47:37]File name is /storage/ofd_packets/00072560 [12:47:37]Write 301 bytes [12:47:37]NVStorageSaveData done [12:47:37]OFDSenderStorePacket done [12:47:37]KKMCreateOFDPacket done [12:47:37]NVStorageSaveData kkm_last_timestamp [12:47:37]File name is /storage/kkm_last_timestamp [12:47:37]Write 4 bytes [12:47:37]NVStorageSaveData done [12:47:38]ExternCall_PrintAddStr [12:47:38]wPrintStart [12:47:38]Write to MH i2c: 01 00 00 C3 00 C3 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 C3 00 00 00 00 00 00 FF 0F D8 [12:47:38]RasterBufferAndPrint [12:47:38]line Счет N : (1)952023 [12:47:38]line ИНН: 02508201610067 [12:47:38]line Контрольно-Кассовый Чек [12:47:38]line ПРОДАЖА [12:47:38]line ТРК (МРК, ГНК) : 63 [12:47:38]line Товар: 2710124130 [12:47:38]line Аи-92-К-5 [12:47:38]line 2.990 * 66.90 [12:47:38]line = 200.03 [12:47:38]line НДС 12% НСП 1% [12:47:38]line > о реализуемом товаре [12:47:38]line ОКРУГЛЕНИЕ: -0.03 [12:47:38]line ИТОГО: 200.00 [12:47:38]line Внесено: 200.00 [12:47:38]line СДАЧА: 0.00 [12:47:38]line НСП 1% : 1.77 [12:47:38]line НДС 12% : 21.24 [12:47:38]line Наличными: 200.00 [12:47:38]line Безнал.: 0.00 [12:47:38]line Место: АЗС № 113 "Партнер Нефть" [12:47:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:47:38]line СНО: Общий режим [12:47:38]line Чек 88 28.10.2024 12:47 [12:47:38]line Смена: 554 ФФД: 1.0 [12:47:38]line ЗНМ: 0300000087 [12:47:38]line РНМ: 0000000000091644 [12:47:38]line Версия ККМ: 001 [12:47:38]line ФМ: 0000000000874662 [12:47:38]line ФД: 72560 [12:47:38]line ФПД: 70259951162475 [12:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124737&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72560&fm=70259951162475&tin=02508201610067®Number=0000000000091644&sum=20000 [12:47:38]OFD Sender: Processing packet 72560 [packets to send 273, broken 272] [12:47:38]ProducePacketName [12:47:38]name=ofd_packets/00072560 [12:47:38]OFD Sender: To server: pG, [12:47:38]CommunicateWithHost lk.salyk.kg:30040 [12:47:38]ConnectInit lk.salyk.kg [12:47:38]written 0, free lines is 4095 [12:47:38]Write to MH i2c: 01 00 00 EE 00 EE [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 CD 0C CE [12:47:38]RasterBufferAndPrint [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]line [12:47:38]written 0, free lines is 3283 [12:47:38]MH_Cut [12:47:38]Write to MH i2c: D1 01 00 F5 00 01 C7 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 01 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: D1 01 00 F5 00 00 C6 [12:47:38]Write to MH i2c: 01 00 00 F6 00 F6 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:39]Connected sock=7 [12:47:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 1D F9 07 01 F9 02 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 58 00 00 00 F4 03 04 00 E9 87 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1B 01 00 35 04 06 00 3F E6 AB 6E 54 6B 61 13 FA 71 0F FF 73 8B [12:47:39]*** Cut start [12:47:39]*** Partial cut [12:47:39]*** CUTSNS_PIN = 1 [12:47:39]*** CUTSNS_PIN = 0 [12:47:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F9 47 47 00 B5 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 70 1B 01 00 F4 03 04 00 A8 32 1F 67 B6 04 01 00 00 10 68 CD 07 9D 62 04 FE [12:47:39]CommunicateWithHost err = 0 [12:47:39]CheckOFDResponse [12:47:39]1017 (14) - 77093643461234 [12:47:39]1041 (16) - 0000000000874662 [12:47:39]1040 (4) - 72560 [12:47:39]1012 (4) - 28.10.2024 06:43 [12:47:39]1206 (1) - 0 [12:47:39]OFD Sender: Remove packet 72560 [12:47:39]ProducePacketName [12:47:39]name=ofd_packets/00072560 [12:47:39]NVStorageDeleteData [12:47:39]*** Brake cut motor [12:47:40]Read from MH i2c: 01 [12:47:40]MH_I2C_Read... [12:47:40]*** Stop cut motor [12:47:40]*** Cut end [12:47:40]Read from MH i2c: 01 07 00 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [12:47:40]process_action close_receipt done [12:47:40]requested_data is exist [12:47:40]produce_requested_data [12:47:40]requested_item fm.sn is exist - process it [12:47:40]wFMCommunicate request_size=4 [12:47:40]MH_SAM_APDU [12:47:40]CAPDU: 80 11 00 00 [12:47:40]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [12:47:40]Write i2c OK [12:47:40]MH_I2C_Read... [12:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:40]Read from MH i2c: E2 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 17 00 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [12:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:47:40]wFMCommunicate OK [12:47:40]requested_item fd.num is exist - process it [12:47:40]SAM_PROTO_GetFieldsCounters [12:47:40]wFMCommunicate request_size=4 [12:47:40]MH_SAM_APDU [12:47:40]CAPDU: 80 13 00 00 [12:47:40]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [12:47:40]Write i2c OK [12:47:40]MH_I2C_Read... [12:47:40]OFD Sender: No OFD packet to send [12:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:40]Read from MH i2c: E2 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 62 00 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 62 00 F8 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:47: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 70 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:40]wFMCommunicate OK [12:47:40]SAM_PROTO_GetFieldsCounters done [12:47:40]requested_item shift.num is exist - process it [12:47:40]requested_item shift.opened is exist - process it [12:47:40]req_shift_opened [12:47:40]FM_GetShiftState [12:47:40]SAM_PROTO_GetShiftState [12:47:40]wFMCommunicate request_size=4 [12:47:40]MH_SAM_APDU [12:47:40]CAPDU: 80 13 01 00 [12:47:40]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [12:47:40]Write i2c OK [12:47:40]MH_I2C_Read... [12:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:40]Read from MH i2c: E2 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 0E 00 [12:47:40]MH_I2C_Read... [12:47:40]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DE [12:47:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:47:40]wFMCommunicate OK [12:47:40]SAM_PROTO_GetShiftState done [12:47:40]FM_GetShiftState done [12:47:40]req_shift_opened done [12:47:40]requested_item shift.open_date is exist - process it [12:47:40]req_shift_open_date [12:47:40]req_shift_open_date done [12:47:40]produce_requested_data done [12:47:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72560,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:47:40]process_action_free close_receipt [12:47:40]json_value_free [12:47:40]json_value_free done [12:47:40]process_json_proto returns [12:47:40]Send response to host [12:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72560,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:47:40]free response buf [12:47:40]execute_script done [12:47:40]execute_script returns [12:47:40]free content buf [12:47:40]Sock 10.Close socket [12:47:40]Sock 10.Thread stoped [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:47:58]recv_with_timeout no data received [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:52]accept exits with 9 [12:48:52]New connection [12:48:52]New thread 3066989924 created [12:48:52]Thread 3067133284 joined [12:48:52]Waiting for new connection... [12:48:52] Sock 9.Parse request [12:48:52]Sock 9.Check first char [12:48:52]Sock 9.First char is OK [12:48:52]request: POST /json_proto HTTP/1.0 [12:48:52]Method: POST [12:48:52]URL: /json_proto [12:48:52]Method is POST - this is cgi request [12:48:52]url: /json_proto [12:48:52]query_string will be loaded in cgi processing [12:48:52]execute_cgi json_proto POST (null) [12:48:52]execute_cgi path=json_proto method=POST [12:48:52]POST find Content-Length [12:48:52]Host: 172.17.43.195:8080 [12:48:52]Content-Length: 682 [12:48:52]Content-Type: application/json [12:48:52] [12:48:52]POST finish read [12:48:52]Found Content-Length = 682 [12:48:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "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" ] } } [12:48:52]execute_script... [12:48:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952026", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 1.970, "sum" : 150.11, "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" ] } } [12:48:52]POST & json_proto [12:48:52]process_json_proto [12:48:52]json parsed OK: [12:48:52]protocol is kg_v1.0 [12:48:52]action value=close_receipt [12:48:52]process_action close_receipt [12:48:52]cmd_close_receipt [12:48:52]MH_GetDate [12:48:52]Write to MH i2c: F0 00 00 FA 00 E9 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: F0 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: F0 09 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: F0 09 00 FA 00 00 34 88 1F 67 74 2C AD 66 E7 [12:48:52]GetLastDocTimeStamp 1730119657 [12:48:52]current date 1730119732 [12:48:52]FM_GetShiftState [12:48:52]SAM_PROTO_GetShiftState [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 13 01 00 [12:48:52]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0E 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E0 [12:48:52]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_GetShiftState done [12:48:52]FM_GetShiftState done [12:48:52]opened in 1730074113 [12:48:52]opened+sec_in_day 1730160513 [12:48:52]quantity*price = 15011 [12:48:52]sum+1 = 15012 [12:48:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.94 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 89 28.10.2024 12:48 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72561 ФПД: 53276835077027 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124852&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72561&fm=53276835077027&tin=02508201610067®Number=0000000000091644&sum=15000 [12:48:53]StoreToDocumentArchive [12:48:53]shift 554 fd 72561 [12:48:53]save to /storage/0554/doc_00072561 [12:48:53]save last doc name /storage/0554/doc_00072561 to /storage/kkm_last_doc_name [12:48:53]save OK [12:48:53]Clear old archive folders... [12:48:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:48:53]tlvbuf is 01965320 [12:48:53]SAM_PROTO_ClearQueue [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 09 00 00 [12:48:53]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [12:48:53]RAPDU: 90 00 [12:48:53]wFMCommunicate OK [12:48:53]SAM_PROTO_ClearQueue done [12:48:53]KKMCreateOFDPacket [12:48:53]OFDProtocolAddRootSTLVToBuf [12:48:53]FM_MakeSignedData [12:48:53]FM_MakeSignedData [12:48:53]SAM_PROTO_SignData [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 0D 01 02 [12:48:53]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [12:48:53]RAPDU: 90 00 [12:48:53]wFMCommunicate OK [12:48:53]wFMCommunicate request_size=255 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 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 3A 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 59 00 00 00 F4 03 04 00 34 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1B 01 00 35 04 06 00 [12:48:53]Write to MH i2c: E2 02 01 0A 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 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 3A 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 59 00 00 00 F4 03 04 00 34 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1B 01 00 35 04 06 00 00 00 FC [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [12:48:53]RAPDU: 90 00 [12:48:53]wFMCommunicate OK [12:48:53]wFMCommunicate request_size=11 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 0D 02 02 06 30 74 7A D4 5B A3 [12:48:53]Write to MH i2c: E2 0E 00 0B 01 80 0D 02 02 06 00 30 74 7A D4 5B A3 00 00 82 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [12:48:53]RAPDU: 90 00 [12:48:53]wFMCommunicate OK [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 0D 03 02 [12:48:53]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 0B 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 0B 00 0C 01 00 E1 8F E1 2F C3 6D 01 CE 90 00 08 [12:48:53]RAPDU: E1 8F E1 2F C3 6D 01 CE 90 00 [12:48:53]wFMCommunicate OK [12:48:53]SAM_PROTO_SignData done [12:48:53]FM_MakeSignedData done [12:48:53]CreateOFDProtocolMessage [12:48:53]wFMCommunicate request_size=4 [12:48:53]MH_SAM_APDU [12:48:53]CAPDU: 80 11 00 00 [12:48:53]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:53]Read from MH i2c: E2 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 17 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [12:48:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:48:53]wFMCommunicate OK [12:48:53]CreateOFDProtocolMessage done [12:48:53]OFDSenderStorePacket 72561 [12:48:53]StoreOFDPacket docnum=72561 [12:48:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E5 82 08 01 8F 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 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 3A 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 59 00 00 00 F4 03 04 00 34 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1B 01 00 35 04 06 00 30 74 7A D4 5B A3 E1 8F E1 2F C3 6D 01 CE [12:48:53]CheckFolder [12:48:53]dirname=/storage/ofd_packets [12:48:53]CheckFolder done [12:48:53]ProducePacketName [12:48:53]name=ofd_packets/00072561 [12:48:53]NVStorageSaveData ofd_packets/00072561 [12:48:53]File name is /storage/ofd_packets/00072561 [12:48:53]Write 302 bytes [12:48:53]NVStorageSaveData done [12:48:53]OFDSenderStorePacket done [12:48:53]KKMCreateOFDPacket done [12:48:53]NVStorageSaveData kkm_last_timestamp [12:48:53]File name is /storage/kkm_last_timestamp [12:48:53]Write 4 bytes [12:48:53]NVStorageSaveData done [12:48:53]ExternCall_PrintAddStr [12:48:53]wPrintStart [12:48:53]Write to MH i2c: 01 00 00 0E 01 0F [12:48:53]Write i2c OK [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 [12:48:53]MH_I2C_Read... [12:48:53]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [12:48:53]RasterBufferAndPrint [12:48:53]line Счет N : (1)952026 [12:48:53]line ИНН: 02508201610067 [12:48:53]line Контрольно-Кассовый Чек [12:48:53]line ПРОДАЖА [12:48:53]line ТРК (МРК, ГНК) : 33 [12:48:53]line Товар: 2710194210 [12:48:53]line ДТ(л)-К-5 [12:48:53]line 1.970 * 76.20 [12:48:53]line = 150.11 [12:48:53]line НДС 12% НСП 1% [12:48:53]line > о реализуемом товаре [12:48:53]line ОКРУГЛЕНИЕ: -0.11 [12:48:53]line ИТОГО: 150.00 [12:48:53]line Внесено: 150.00 [12:48:53]line СДАЧА: 0.00 [12:48:53]line НСП 1% : 1.33 [12:48:53]line НДС 12% : 15.94 [12:48:53]line Наличными: 150.00 [12:48:53]line Безнал.: 0.00 [12:48:53]line Место: АЗС № 113 "Партнер Нефть" [12:48:53]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:48:53]line СНО: Общий режим [12:48:53]line Чек 89 28.10.2024 12:48 [12:48:53]line Смена: 554 ФФД: 1.0 [12:48:53]line ЗНМ: 0300000087 [12:48:53]line РНМ: 0000000000091644 [12:48:53]line Версия ККМ: 001 [12:48:53]line ФМ: 0000000000874662 [12:48:53]line ФД: 72561 [12:48:53]line ФПД: 53276835077027 [12:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124852&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72561&fm=53276835077027&tin=02508201610067®Number=0000000000091644&sum=15000 [12:48:54]OFD Sender: Processing packet 72561 [packets to send 273, broken 272] [12:48:54]ProducePacketName [12:48:54]name=ofd_packets/00072561 [12:48:54]OFD Sender: To server: pG, [12:48:54]CommunicateWithHost lk.salyk.kg:30040 [12:48:54]ConnectInit lk.salyk.kg [12:48:54]written 0, free lines is 4095 [12:48:54]Connected sock=7 [12:48:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E5 82 08 01 8F 0D 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 B2 07 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 A3 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 3A 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 59 00 00 00 F4 03 04 00 34 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1B 01 00 35 04 06 00 30 74 7A D4 5B A3 E1 8F E1 2F C3 6D 01 CE [12:48:54]Write to MH i2c: 01 00 00 39 01 3A [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: 01 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: 01 07 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 CD 0C 1A [12:48:54]RasterBufferAndPrint [12:48:54]line [12:48:54]line [12:48:54]line [12:48:54]line [12:48:54]line [12:48:54]written 0, free lines is 3283 [12:48:54]MH_Cut [12:48:54]Write to MH i2c: D1 01 00 40 01 01 13 [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: D1 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: D1 01 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: D1 01 00 40 01 00 12 [12:48:54]Write to MH i2c: 01 00 00 41 01 42 [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 13 23 47 00 29 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 71 1B 01 00 F4 03 04 00 F3 32 1F 67 B6 04 01 00 00 4C 99 FD 02 C0 3C EC 13 [12:48:54]CommunicateWithHost err = 0 [12:48:54]CheckOFDResponse [12:48:54]1017 (14) - 77093643461234 [12:48:54]1041 (16) - 0000000000874662 [12:48:54]1040 (4) - 72561 [12:48:54]1012 (4) - 28.10.2024 06:45 [12:48:54]1206 (1) - 0 [12:48:54]OFD Sender: Remove packet 72561 [12:48:54]ProducePacketName [12:48:54]name=ofd_packets/00072561 [12:48:54]NVStorageDeleteData [12:48:55]*** Cut start [12:48:55]*** Partial cut [12:48:55]*** CUTSNS_PIN = 1 [12:48:55]*** CUTSNS_PIN = 0 [12:48:55]OFD Sender: No OFD packet to send [12:48:55]*** Brake cut motor [12:48:55]Read from MH i2c: 01 [12:48:55]MH_I2C_Read... [12:48:55]*** Stop cut motor [12:48:55]*** Cut end [12:48:55]Read from MH i2c: 01 07 00 [12:48:55]MH_I2C_Read... [12:48:55]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [12:48:55]process_action close_receipt done [12:48:55]requested_data is exist [12:48:55]produce_requested_data [12:48:55]requested_item fm.sn is exist - process it [12:48:55]wFMCommunicate request_size=4 [12:48:55]MH_SAM_APDU [12:48:55]CAPDU: 80 11 00 00 [12:48:55]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [12:48:55]Write i2c OK [12:48:55]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 17 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [12:48:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:48:56]wFMCommunicate OK [12:48:56]requested_item fd.num is exist - process it [12:48:56]SAM_PROTO_GetFieldsCounters [12:48:56]wFMCommunicate request_size=4 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 13 00 00 [12:48:56]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 62 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [12:48: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 71 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:56]wFMCommunicate OK [12:48:56]SAM_PROTO_GetFieldsCounters done [12:48:56]requested_item shift.num is exist - process it [12:48:56]requested_item shift.opened is exist - process it [12:48:56]req_shift_opened [12:48:56]FM_GetShiftState [12:48:56]SAM_PROTO_GetShiftState [12:48:56]wFMCommunicate request_size=4 [12:48:56]MH_SAM_APDU [12:48:56]CAPDU: 80 13 01 00 [12:48:56]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [12:48:56]Write i2c OK [12:48:56]MH_I2C_Read... [12:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:56]Read from MH i2c: E2 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 0E 00 [12:48:56]MH_I2C_Read... [12:48:56]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [12:48:56]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:48:56]wFMCommunicate OK [12:48:56]SAM_PROTO_GetShiftState done [12:48:56]FM_GetShiftState done [12:48:56]req_shift_opened done [12:48:56]requested_item shift.open_date is exist - process it [12:48:56]req_shift_open_date [12:48:56]req_shift_open_date done [12:48:56]produce_requested_data done [12:48:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72561,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:48:56]process_action_free close_receipt [12:48:56]json_value_free [12:48:56]json_value_free done [12:48:56]process_json_proto returns [12:48:56]Send response to host [12:48:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72561,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:48:56]free response buf [12:48:56]execute_script done [12:48:56]execute_script returns [12:48:56]free content buf [12:48:56]Sock 9.Close socket [12:48:56]Sock 9.Thread stoped [12:48:58]accept exits with 10 [12:48:58]New connection [12:48:58]New thread 3067133284 created [12:48:58]Thread 3066989924 joined [12:48:58]Waiting for new connection... [12:48:58] Sock 10.Parse request [12:48:58]Sock 10.Check first char [12:48:58]Sock 10.First char is OK [12:48:58]request: POST /json_proto HTTP/1.0 [12:48:58]Method: POST [12:48:58]URL: /json_proto [12:48:58]Method is POST - this is cgi request [12:48:58]url: /json_proto [12:48:58]query_string will be loaded in cgi processing [12:48:58]execute_cgi json_proto POST (null) [12:48:58]execute_cgi path=json_proto method=POST [12:48:58]POST find Content-Length [12:48:58]Host: 172.17.43.195:8080 [12:48:58]Content-Length: 800 [12:48:58]Content-Type: application/json [12:48:58] [12:48:58]POST finish read [12:48:58]Found Content-Length = 800 [12:48:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4234881", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]execute_script... [12:48: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)952025", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 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\u000A4234881", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:58]POST & json_proto [12:48:58]process_json_proto [12:48:58]json parsed OK: [12:48:58]protocol is kg_v1.0 [12:48:58]action value=close_receipt [12:48:58]process_action close_receipt [12:48:58]cmd_close_receipt [12:48:58]MH_GetDate [12:48:58]Write to MH i2c: F0 00 00 45 01 35 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: F0 09 00 45 01 00 3B 88 1F 67 74 2C AD 66 3A [12:48:58]GetLastDocTimeStamp 1730119732 [12:48:58]current date 1730119739 [12:48:58]FM_GetShiftState [12:48:58]SAM_PROTO_GetShiftState [12:48:58]wFMCommunicate request_size=4 [12:48:58]MH_SAM_APDU [12:48:58]CAPDU: 80 13 01 00 [12:48:58]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [12:48:58]Write i2c OK [12:48:58]MH_I2C_Read... [12:48:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:58]Read from MH i2c: E2 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 [12:48:58]MH_I2C_Read... [12:48:58]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [12:48:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:48:58]wFMCommunicate OK [12:48:58]SAM_PROTO_GetShiftState done [12:48:58]FM_GetShiftState done [12:48:58]opened in 1730074113 [12:48:58]opened+sec_in_day 1730160513 [12:48:58]quantity*price = 0 [12:48:58]sum+1 = 1 [12:48:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 90 28.10.2024 12:48 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4234881 ФМ: 0000000000874662 ФД: 72562 ФПД: 92563160734681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72562&fm=92563160734681&tin=02508201610067®Number=0000000000091644&sum=0 [12:48:59]StoreToDocumentArchive [12:48:59]shift 554 fd 72562 [12:48:59]save to /storage/0554/doc_00072562 [12:48:59]save last doc name /storage/0554/doc_00072562 to /storage/kkm_last_doc_name [12:48:59]save OK [12:48:59]Clear old archive folders... [12:49:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:49:00]tlvbuf is 018E6410 [12:49:00]SAM_PROTO_ClearQueue [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 09 00 00 [12:49:00]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_ClearQueue done [12:49:00]KKMCreateOFDPacket [12:49:00]OFDProtocolAddRootSTLVToBuf [12:49:00]FM_MakeSignedData [12:49:00]FM_MakeSignedData [12:49:00]SAM_PROTO_SignData [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 01 02 [12:49:00]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=255 [12:49:00]MH_SAM_APDU [12:49: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 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 5A 00 00 00 F4 03 04 00 3B 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1B 01 00 35 04 06 00 54 [12:49:00]Write to MH i2c: E2 02 01 55 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 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 5A 00 00 00 F4 03 04 00 3B 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1B 01 00 35 04 06 00 54 00 00 C0 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=10 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 02 02 05 2F 8A 50 9B D9 [12:49:00]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 2F 8A 50 9B D9 00 00 58 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [12:49:00]RAPDU: 90 00 [12:49:00]wFMCommunicate OK [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 0D 03 02 [12:49:00]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]OFD Sender: No OFD packet to send [12:49:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 0B 00 57 01 00 02 4A D0 14 1F 98 8F 8E 90 00 D8 [12:49:00]RAPDU: 02 4A D0 14 1F 98 8F 8E 90 00 [12:49:00]wFMCommunicate OK [12:49:00]SAM_PROTO_SignData done [12:49:00]FM_MakeSignedData done [12:49:00]CreateOFDProtocolMessage [12:49:00]wFMCommunicate request_size=4 [12:49:00]MH_SAM_APDU [12:49:00]CAPDU: 80 11 00 00 [12:49:00]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:00]Read from MH i2c: E2 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [12:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:49:00]wFMCommunicate OK [12:49:00]CreateOFDProtocolMessage done [12:49:00]OFDSenderStorePacket 72562 [12:49:00]StoreOFDPacket docnum=72562 [12:49:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8C 5E 07 01 38 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 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 5A 00 00 00 F4 03 04 00 3B 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1B 01 00 35 04 06 00 54 2F 8A 50 9B D9 02 4A D0 14 1F 98 8F 8E [12:49:00]CheckFolder [12:49:00]dirname=/storage/ofd_packets [12:49:00]CheckFolder done [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00072562 [12:49:00]NVStorageSaveData ofd_packets/00072562 [12:49:00]File name is /storage/ofd_packets/00072562 [12:49:00]Write 301 bytes [12:49:00]NVStorageSaveData done [12:49:00]OFDSenderStorePacket done [12:49:00]KKMCreateOFDPacket done [12:49:00]NVStorageSaveData kkm_last_timestamp [12:49:00]File name is /storage/kkm_last_timestamp [12:49:00]Write 4 bytes [12:49:00]NVStorageSaveData done [12:49:00]ExternCall_PrintAddStr [12:49:00]wPrintStart [12:49:00]Write to MH i2c: 01 00 00 59 01 5A [12:49:00]Write i2c OK [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 [12:49:00]MH_I2C_Read... [12:49:00]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [12:49:00]RasterBufferAndPrint [12:49:00]line Счет N : (1)952025 [12:49:00]line ИНН: 02508201610067 [12:49:00]line Контрольно-Кассовый Чек [12:49:00]line ПРОДАЖА [12:49:00]line ТРК (МРК, ГНК) : 42 [12:49:00]line Товар: 2710124130 [12:49:00]line Аи-92-К-5 [12:49:00]line 10.000 * 0.00 [12:49:00]line = 0.00 [12:49:00]line НДС 12% НСП 1% [12:49:00]line > о реализуемом товаре [12:49:00]line ИТОГО: 0.00 [12:49:00]line НСП 1% : 0.00 [12:49:00]line НДС 12% : 0.00 [12:49:00]line Наличными: 0.00 [12:49:00]line Безнал.: 0.00 [12:49:00]line Место: АЗС № 113 "Партнер Нефть" [12:49:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:49:00]line СНО: Общий режим [12:49:00]line Чек 90 28.10.2024 12:48 [12:49:00]line Смена: 554 ФФД: 1.0 [12:49:00]line ЗНМ: 0300000087 [12:49:00]line РНМ: 0000000000091644 [12:49:00]line Версия ККМ: 001 [12:49:00]line Талоны: Топливные Талоны [12:49:00]line 4234881 [12:49:00]line ФМ: 0000000000874662 [12:49:00]line ФД: 72562 [12:49:00]line ФПД: 92563160734681 [12:49:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T124859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72562&fm=92563160734681&tin=02508201610067®Number=0000000000091644&sum=0 [12:49:00]written 0, free lines is 4095 [12:49:00]OFD Sender: Processing packet 72562 [packets to send 273, broken 272] [12:49:00]ProducePacketName [12:49:00]name=ofd_packets/00072562 [12:49:00]OFD Sender: To server: pG, [12:49:00]CommunicateWithHost lk.salyk.kg:30040 [12:49:00]ConnectInit lk.salyk.kg [12:49:01]Write to MH i2c: 01 00 00 83 01 84 [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 07 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 F7 0C 8E [12:49:01]RasterBufferAndPrint [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]line [12:49:01]written 0, free lines is 3329 [12:49:01]MH_Cut [12:49:01]Write to MH i2c: D1 01 00 8A 01 01 5D [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 [12:49:01]MH_I2C_Read... [12:49:01]Read from MH i2c: D1 01 00 8A 01 00 5C [12:49:01]Write to MH i2c: 01 00 00 8B 01 8C [12:49:01]Write i2c OK [12:49:01]MH_I2C_Read... [12:49:01]*** Cut start [12:49:01]*** Partial cut [12:49:01]*** CUTSNS_PIN = 1 [12:49:01]*** CUTSNS_PIN = 0 [12:49:02]*** Brake cut motor [12:49:02]Read from MH i2c: 01 [12:49:02]MH_I2C_Read... [12:49:02]*** Stop cut motor [12:49:02]*** Cut end [12:49:02]Read from MH i2c: 01 07 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [12:49:02]process_action close_receipt done [12:49:02]requested_data is exist [12:49:02]produce_requested_data [12:49:02]requested_item fm.sn is exist - process it [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 11 00 00 [12:49:02]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [12:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:49:02]wFMCommunicate OK [12:49:02]requested_item fd.num is exist - process it [12:49:02]SAM_PROTO_GetFieldsCounters [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 00 00 [12:49:02]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 62 00 8D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [12:49:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 72 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetFieldsCounters done [12:49:02]requested_item shift.num is exist - process it [12:49:02]requested_item shift.opened is exist - process it [12:49:02]req_shift_opened [12:49:02]FM_GetShiftState [12:49:02]SAM_PROTO_GetShiftState [12:49:02]wFMCommunicate request_size=4 [12:49:02]MH_SAM_APDU [12:49:02]CAPDU: 80 13 01 00 [12:49:02]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [12:49:02]Write i2c OK [12:49:02]MH_I2C_Read... [12:49:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:02]Read from MH i2c: E2 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 [12:49:02]MH_I2C_Read... [12:49:02]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 74 [12:49:02]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:49:02]wFMCommunicate OK [12:49:02]SAM_PROTO_GetShiftState done [12:49:02]FM_GetShiftState done [12:49:02]req_shift_opened done [12:49:02]requested_item shift.open_date is exist - process it [12:49:02]req_shift_open_date [12:49:02]req_shift_open_date done [12:49:02]produce_requested_data done [12:49:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72562,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:49:02]process_action_free close_receipt [12:49:02]json_value_free [12:49:02]json_value_free done [12:49:02]process_json_proto returns [12:49:02]Send response to host [12:49:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72562,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:49:02]free response buf [12:49:02]execute_script done [12:49:02]execute_script returns [12:49:02]free content buf [12:49:02]Sock 10.Close socket [12:49:02]Sock 10.Thread stoped [12:49:03]Connected sock=11 [12:49:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 8C 5E 07 01 38 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 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 5A 00 00 00 F4 03 04 00 3B 88 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1B 01 00 35 04 06 00 54 2F 8A 50 9B D9 02 4A D0 14 1F 98 8F 8E [12:49:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C 0A 47 00 7C E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 72 1B 01 00 F4 03 04 00 FC 32 1F 67 B6 04 01 00 00 2E 74 B5 83 E5 B2 81 8F [12:49:04]CommunicateWithHost err = 0 [12:49:04]CheckOFDResponse [12:49:04]1017 (14) - 77093643461234 [12:49:04]1041 (16) - 0000000000874662 [12:49:04]1040 (4) - 72562 [12:49:04]1012 (4) - 28.10.2024 06:45 [12:49:04]1206 (1) - 0 [12:49:04]OFD Sender: Remove packet 72562 [12:49:04]ProducePacketName [12:49:04]name=ofd_packets/00072562 [12:49:04]NVStorageDeleteData [12:49:04]OFD Sender: No OFD packet to send [12:49:09]OFD Sender: No OFD packet to send [12:49:13]recv_with_timeout no data received [12:49:14]OFD Sender: No OFD packet to send [12:49:19]OFD Sender: No OFD packet to send [12:49:24]OFD Sender: No OFD packet to send [12:49:25]recv_with_timeout no data received [12:49:29]OFD Sender: No OFD packet to send [12:49:34]OFD Sender: No OFD packet to send [12:49:39]OFD Sender: No OFD packet to send [12:49:44]OFD Sender: No OFD packet to send [12:49:46]recv_with_timeout no data received [12:49:49]OFD Sender: No OFD packet to send [12:49:54]OFD Sender: No OFD packet to send [12:49:59]OFD Sender: No OFD packet to send [12:50:01]recv_with_timeout no data received [12:50:04]OFD Sender: No OFD packet to send [12:50:09]OFD Sender: No OFD packet to send [12:50:14]OFD Sender: No OFD packet to send [12:50:19]OFD Sender: No OFD packet to send [12:50:23]recv_with_timeout no data received [12:50:24]OFD Sender: No OFD packet to send [12:50:29]OFD Sender: No OFD packet to send [12:50:34]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:51]recv_with_timeout no data received [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:03]recv_with_timeout no data received [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]recv_with_timeout no data received [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:30]recv_with_timeout no data received [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]recv_with_timeout no data received [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:52:00]OFD Sender: No OFD packet to send [12:52:05]OFD Sender: No OFD packet to send [12:52:10]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:08]recv_with_timeout no data received [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:53]recv_with_timeout no data received [12:55:55]OFD Sender: No OFD packet to send [12:56:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:22]recv_with_timeout no data received [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]accept exits with 9 [12:57:05]New connection [12:57:05]New thread 3066989924 created [12:57:05]Thread 3067133284 joined [12:57:05]Waiting for new connection... [12:57:05] Sock 9.Parse request [12:57:05]Sock 9.Check first char [12:57:05]Sock 9.First char is OK [12:57:05]request: POST /json_proto HTTP/1.0 [12:57:05]Method: POST [12:57:05]URL: /json_proto [12:57:05]Method is POST - this is cgi request [12:57:05]url: /json_proto [12:57:05]query_string will be loaded in cgi processing [12:57:05]execute_cgi json_proto POST (null) [12:57:05]execute_cgi path=json_proto method=POST [12:57:05]POST find Content-Length [12:57:05]Host: 172.17.43.195:8080 [12:57:05]Content-Length: 804 [12:57:05]Content-Type: application/json [12:57:05] [12:57:05]POST finish read [12:57:05]Found Content-Length = 804 [12:57:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]execute_script... [12:57:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952027", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 18.000, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 700.20 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:05]POST & json_proto [12:57:05]process_json_proto [12:57:05]json parsed OK: [12:57:05]protocol is kg_v1.0 [12:57:05]action value=close_receipt [12:57:05]process_action close_receipt [12:57:05]cmd_close_receipt [12:57:05]MH_GetDate [12:57:05]Write to MH i2c: F0 00 00 8F 01 7F [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 09 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: F0 09 00 8F 01 00 21 8A 1F 67 74 2C AD 66 6C [12:57:05]GetLastDocTimeStamp 1730119739 [12:57:05]current date 1730120225 [12:57:05]FM_GetShiftState [12:57:05]SAM_PROTO_GetShiftState [12:57:05]wFMCommunicate request_size=4 [12:57:05]MH_SAM_APDU [12:57:05]CAPDU: 80 13 01 00 [12:57:05]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [12:57:05]Write i2c OK [12:57:05]MH_I2C_Read... [12:57:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:05]Read from MH i2c: E2 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 0E 00 [12:57:05]MH_I2C_Read... [12:57:05]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 76 [12:57:05]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:57:05]wFMCommunicate OK [12:57:05]SAM_PROTO_GetShiftState done [12:57:05]FM_GetShiftState done [12:57:05]opened in 1730074113 [12:57:05]opened+sec_in_day 1730160513 [12:57:05]quantity*price = 70020 [12:57:05]sum+1 = 70021 [12:57:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.20 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 0.00 Безнал.: 700.20 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 91 28.10.2024 12:57 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72563 ФПД: 190166880861851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125705&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72563&fm=190166880861851&tin=02508201610067®Number=0000000000091644&sum=70020 [12:57:06]StoreToDocumentArchive [12:57:06]shift 554 fd 72563 [12:57:06]save to /storage/0554/doc_00072563 [12:57:06]save last doc name /storage/0554/doc_00072563 to /storage/kkm_last_doc_name [12:57:06]save OK [12:57:06]Clear old archive folders... [12:57:06]ProcessDocumentItem done err = 0, tmpTLVsize=250 [12:57:06]tlvbuf is 0195B400 [12:57:06]SAM_PROTO_ClearQueue [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 09 00 00 [12:57:06]Write to MH i2c: E2 08 00 9D 01 80 09 00 00 00 00 00 00 10 [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_ClearQueue done [12:57:06]KKMCreateOFDPacket [12:57:06]OFDProtocolAddRootSTLVToBuf [12:57:06]FM_MakeSignedData [12:57:06]FM_MakeSignedData [12:57:06]SAM_PROTO_SignData [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 01 02 [12:57:06]Write to MH i2c: E2 08 00 9E 01 80 0D 01 02 00 00 00 00 18 [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]wFMCommunicate request_size=255 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 21 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1B 01 00 35 04 06 00 AC F4 [12:57:06]Write to MH i2c: E2 02 01 9F 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 21 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1B 01 00 35 04 06 00 AC F4 00 00 DE [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]wFMCommunicate request_size=9 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 02 02 04 AD 61 BE 9B [12:57:06]Write to MH i2c: E2 0C 00 A0 01 80 0D 02 02 04 00 AD 61 BE 9B 00 00 8A [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [12:57:06]RAPDU: 90 00 [12:57:06]wFMCommunicate OK [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 0D 03 02 [12:57:06]Write to MH i2c: E2 08 00 A1 01 80 0D 03 02 00 00 00 00 1D [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0B 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 0B 00 A1 01 00 DA 9A 8F 48 7A EB 23 2B 90 00 1C [12:57:06]RAPDU: DA 9A 8F 48 7A EB 23 2B 90 00 [12:57:06]wFMCommunicate OK [12:57:06]SAM_PROTO_SignData done [12:57:06]FM_MakeSignedData done [12:57:06]CreateOFDProtocolMessage [12:57:06]wFMCommunicate request_size=4 [12:57:06]MH_SAM_APDU [12:57:06]CAPDU: 80 11 00 00 [12:57:06]Write to MH i2c: E2 08 00 A2 01 80 11 00 00 00 00 00 00 1D [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:06]Read from MH i2c: E2 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 17 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: E2 17 00 A2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 71 [12:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:57:06]wFMCommunicate OK [12:57:06]CreateOFDProtocolMessage done [12:57:06]OFDSenderStorePacket 72563 [12:57:06]StoreOFDPacket docnum=72563 [12:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 36 32 06 01 DD F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 21 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1B 01 00 35 04 06 00 AC F4 AD 61 BE 9B DA 9A 8F 48 7A EB 23 2B [12:57:06]CheckFolder [12:57:06]dirname=/storage/ofd_packets [12:57:06]CheckFolder done [12:57:06]ProducePacketName [12:57:06]name=ofd_packets/00072563 [12:57:06]NVStorageSaveData ofd_packets/00072563 [12:57:06]File name is /storage/ofd_packets/00072563 [12:57:06]Write 300 bytes [12:57:06]NVStorageSaveData done [12:57:06]OFDSenderStorePacket done [12:57:06]KKMCreateOFDPacket done [12:57:06]NVStorageSaveData kkm_last_timestamp [12:57:06]File name is /storage/kkm_last_timestamp [12:57:06]Write 4 bytes [12:57:06]NVStorageSaveData done [12:57:06]ExternCall_PrintAddStr [12:57:06]wPrintStart [12:57:06]Write to MH i2c: 01 00 00 A3 01 A4 [12:57:06]Write i2c OK [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: 01 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: 01 07 00 [12:57:06]MH_I2C_Read... [12:57:06]Read from MH i2c: 01 07 00 A3 01 00 00 00 00 00 FF 0F B9 [12:57:06]RasterBufferAndPrint [12:57:06]line Счет N : (1)952027 [12:57:06]line ИНН: 02508201610067 [12:57:06]line Контрольно-Кассовый Чек [12:57:06]line ПРОДАЖА [12:57:06]line ТРК (МРК, ГНК) : 71 [12:57:06]line Товар: 2711190000 [12:57:06]line ГАЗ-К-3 [12:57:06]line 18.000 * 38.90 [12:57:06]line = 700.20 [12:57:06]line НДС 12% НСП 1% [12:57:06]line > о реализуемом товаре [12:57:06]line ИТОГО: 700.20 [12:57:06]line НСП 1% : 6.20 [12:57:06]line НДС 12% : 74.36 [12:57:06]line Наличными: 0.00 [12:57:06]line Безнал.: 700.20 [12:57:06]line Место: АЗС № 113 "Партнер Нефть" [12:57:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:57:06]line СНО: Общий режим [12:57:06]line Чек 91 28.10.2024 12:57 [12:57:06]line Смена: 554 ФФД: 1.0 [12:57:06]line ЗНМ: 0300000087 [12:57:06]line РНМ: 0000000000091644 [12:57:06]line Версия ККМ: 001 [12:57:06]line Платежная система: O! деньги [12:57:06]line ФМ: 0000000000874662 [12:57:06]line ФД: 72563 [12:57:06]line ФПД: 190166880861851 [12:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125705&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72563&fm=190166880861851&tin=02508201610067®Number=0000000000091644&sum=70020 [12:57:06]written 0, free lines is 4095 [12:57:06]OFD Sender: Processing packet 72563 [packets to send 273, broken 272] [12:57:06]ProducePacketName [12:57:06]name=ofd_packets/00072563 [12:57:06]OFD Sender: To server: pG, [12:57:06]CommunicateWithHost lk.salyk.kg:30040 [12:57:06]ConnectInit lk.salyk.kg [12:57:07]Write to MH i2c: 01 00 00 CD 01 CE [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 DD 0C BE [12:57:07]RasterBufferAndPrint [12:57:07]line [12:57:07]line [12:57:07]line [12:57:07]line [12:57:07]line [12:57:07]written 0, free lines is 3299 [12:57:07]MH_Cut [12:57:07]Write to MH i2c: D1 01 00 D4 01 01 A7 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: D1 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: D1 01 00 [12:57:07]MH_I2C_Read... [12:57:07]Read from MH i2c: D1 01 00 D4 01 00 A6 [12:57:07]Write to MH i2c: 01 00 00 D5 01 D6 [12:57:07]Write i2c OK [12:57:07]MH_I2C_Read... [12:57:08]*** Cut start [12:57:08]*** Partial cut [12:57:08]*** CUTSNS_PIN = 1 [12:57:08]*** CUTSNS_PIN = 0 [12:57:08]*** Brake cut motor [12:57:08]Read from MH i2c: 01 [12:57:08]MH_I2C_Read... [12:57:08]*** Stop cut motor [12:57:08]*** Cut end [12:57:08]Read from MH i2c: 01 07 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [12:57:08]process_action close_receipt done [12:57:08]requested_data is exist [12:57:08]produce_requested_data [12:57:08]requested_item fm.sn is exist - process it [12:57:08]wFMCommunicate request_size=4 [12:57:08]MH_SAM_APDU [12:57:08]CAPDU: 80 11 00 00 [12:57:08]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:08]Read from MH i2c: E2 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 17 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [12:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:57:08]wFMCommunicate OK [12:57:08]requested_item fd.num is exist - process it [12:57:08]SAM_PROTO_GetFieldsCounters [12:57:08]wFMCommunicate request_size=4 [12:57:08]MH_SAM_APDU [12:57:08]CAPDU: 80 13 00 00 [12:57:08]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:08]Connected sock=11 [12:57:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 36 32 06 01 DD F6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 50 46 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 21 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 73 1B 01 00 35 04 06 00 AC F4 AD 61 BE 9B DA 9A 8F 48 7A EB 23 2B [12:57:08]Read from MH i2c: E2 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 62 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 62 00 D7 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [12:57: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 73 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:57:08]wFMCommunicate OK [12:57:08]SAM_PROTO_GetFieldsCounters done [12:57:08]requested_item shift.num is exist - process it [12:57:08]requested_item shift.opened is exist - process it [12:57:08]req_shift_opened [12:57:08]FM_GetShiftState [12:57:08]SAM_PROTO_GetShiftState [12:57:08]wFMCommunicate request_size=4 [12:57:08]MH_SAM_APDU [12:57:08]CAPDU: 80 13 01 00 [12:57:08]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [12:57:08]Write i2c OK [12:57:08]MH_I2C_Read... [12:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:08]Read from MH i2c: E2 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 0E 00 [12:57:08]MH_I2C_Read... [12:57:08]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BE [12:57:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:57:08]wFMCommunicate OK [12:57:08]SAM_PROTO_GetShiftState done [12:57:08]FM_GetShiftState done [12:57:08]req_shift_opened done [12:57:08]requested_item shift.open_date is exist - process it [12:57:08]req_shift_open_date [12:57:08]req_shift_open_date done [12:57:08]produce_requested_data done [12:57:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72563,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:57:08]process_action_free close_receipt [12:57:08]json_value_free [12:57:08]json_value_free done [12:57:08]process_json_proto returns [12:57:08]Send response to host [12:57:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72563,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:57:08]free response buf [12:57:08]execute_script done [12:57:08]execute_script returns [12:57:08]free content buf [12:57:08]Sock 9.Close socket [12:57:08]Sock 9.Thread stoped [12:57:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 05 0F 47 00 E6 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 34 36 36 32 10 04 04 00 73 1B 01 00 F4 03 04 00 E1 34 1F 67 B6 04 01 00 00 85 1D B0 1A 3F AA A0 30 [12:57:09]CommunicateWithHost err = 0 [12:57:09]CheckOFDResponse [12:57:09]1017 (14) - 77093643461234 [12:57:09]1041 (16) - 0000000000874662 [12:57:09]1040 (4) - 72563 [12:57:09]1012 (4) - 28.10.2024 06:53 [12:57:09]1206 (1) - 0 [12:57:09]OFD Sender: Remove packet 72563 [12:57:09]ProducePacketName [12:57:09]name=ofd_packets/00072563 [12:57:09]NVStorageDeleteData [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]recv_with_timeout no data received [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:43]recv_with_timeout no data received [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:53]recv_with_timeout no data received [12:57:54]OFD Sender: No OFD packet to send [12:57:59]OFD Sender: No OFD packet to send [12:58:04]OFD Sender: No OFD packet to send [12:58:09]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:16]accept exits with 10 [12:59:16]New connection [12:59:16]New thread 3067133284 created [12:59:16]Thread 3066989924 joined [12:59:16]Waiting for new connection... [12:59:16] Sock 10.Parse request [12:59:16]Sock 10.Check first char [12:59:16]Sock 10.First char is OK [12:59:16]request: POST /json_proto HTTP/1.0 [12:59:16]Method: POST [12:59:16]URL: /json_proto [12:59:16]Method is POST - this is cgi request [12:59:16]url: /json_proto [12:59:16]query_string will be loaded in cgi processing [12:59:16]execute_cgi json_proto POST (null) [12:59:16]execute_cgi path=json_proto method=POST [12:59:16]POST find Content-Length [12:59:16]Host: 172.17.43.195:8080 [12:59:16]Content-Length: 784 [12:59:16]Content-Type: application/json [12:59:16] [12:59:16]POST finish read [12:59:16]Found Content-Length = 784 [12:59:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:16]execute_script... [12:59: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)952028", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:16]POST & json_proto [12:59:16]process_json_proto [12:59:16]json parsed OK: [12:59:16]protocol is kg_v1.0 [12:59:16]action value=close_receipt [12:59:16]process_action close_receipt [12:59:16]cmd_close_receipt [12:59:16]MH_GetDate [12:59:16]Write to MH i2c: F0 00 00 D9 01 C9 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: F0 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: F0 09 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: F0 09 00 D9 01 00 A5 8A 1F 67 74 2C AD 66 3A [12:59:16]GetLastDocTimeStamp 1730120225 [12:59:16]current date 1730120357 [12:59:16]FM_GetShiftState [12:59:16]SAM_PROTO_GetShiftState [12:59:16]wFMCommunicate request_size=4 [12:59:16]MH_SAM_APDU [12:59:16]CAPDU: 80 13 01 00 [12:59:16]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [12:59:16]Write i2c OK [12:59:16]MH_I2C_Read... [12:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:16]Read from MH i2c: E2 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0E 00 [12:59:16]MH_I2C_Read... [12:59:16]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C0 [12:59:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:59:16]wFMCommunicate OK [12:59:16]SAM_PROTO_GetShiftState done [12:59:16]FM_GetShiftState done [12:59:16]opened in 1730074113 [12:59:16]opened+sec_in_day 1730160513 [12:59:16]quantity*price = 100000 [12:59:16]sum+1 = 100002 [12:59:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 92 28.10.2024 12:59 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72564 ФПД: 163998443991480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125917&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72564&fm=163998443991480&tin=02508201610067®Number=0000000000091644&sum=100001 [12:59:17]StoreToDocumentArchive [12:59:17]shift 554 fd 72564 [12:59:17]save to /storage/0554/doc_00072564 [12:59:17]save last doc name /storage/0554/doc_00072564 to /storage/kkm_last_doc_name [12:59:17]save OK [12:59:17]Clear old archive folders... [12:59:17]ProcessDocumentItem done err = 0, tmpTLVsize=244 [12:59:17]tlvbuf is 0195D010 [12:59:17]SAM_PROTO_ClearQueue [12:59:17]wFMCommunicate request_size=4 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 09 00 00 [12:59:17]Write to MH i2c: E2 08 00 E7 01 80 09 00 00 00 00 00 00 5A [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:17]Read from MH i2c: E2 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 03 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [12:59:17]RAPDU: 90 00 [12:59:17]wFMCommunicate OK [12:59:17]SAM_PROTO_ClearQueue done [12:59:17]KKMCreateOFDPacket [12:59:17]OFDProtocolAddRootSTLVToBuf [12:59:17]FM_MakeSignedData [12:59:17]FM_MakeSignedData [12:59:17]SAM_PROTO_SignData [12:59:17]wFMCommunicate request_size=4 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 0D 01 02 [12:59:17]Write to MH i2c: E2 08 00 E8 01 80 0D 01 02 00 00 00 00 62 [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:17]Read from MH i2c: E2 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 03 00 [12:59:17]MH_I2C_Read... [12:59:17]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [12:59:17]RAPDU: 90 00 [12:59:17]wFMCommunicate OK [12:59:17]wFMCommunicate request_size=253 [12:59:17]MH_SAM_APDU [12:59:17]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1B 01 00 35 04 06 00 95 27 DC FF 71 B8 [12:59:17]Write to MH i2c: E2 00 01 E9 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1B 01 00 35 04 06 00 95 27 DC FF 71 B8 00 00 1E [12:59:17]Write i2c OK [12:59:17]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 03 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [12:59:18]RAPDU: 90 00 [12:59:18]wFMCommunicate OK [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 0D 03 02 [12:59:18]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0B 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 0B 00 EA 01 00 61 DF 5D 53 71 65 75 D5 90 00 77 [12:59:18]RAPDU: 61 DF 5D 53 71 65 75 D5 90 00 [12:59:18]wFMCommunicate OK [12:59:18]SAM_PROTO_SignData done [12:59:18]FM_MakeSignedData done [12:59:18]CreateOFDProtocolMessage [12:59:18]wFMCommunicate request_size=4 [12:59:18]MH_SAM_APDU [12:59:18]CAPDU: 80 11 00 00 [12:59:18]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:18]Read from MH i2c: E2 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 17 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [12:59:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:59:18]wFMCommunicate OK [12:59:18]CreateOFDProtocolMessage done [12:59:18]OFDSenderStorePacket 72564 [12:59:18]StoreOFDPacket docnum=72564 [12:59:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 57 AA 00 01 4C FD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1B 01 00 35 04 06 00 95 27 DC FF 71 B8 61 DF 5D 53 71 65 75 D5 [12:59:18]CheckFolder [12:59:18]dirname=/storage/ofd_packets [12:59:18]CheckFolder done [12:59:18]ProducePacketName [12:59:18]name=ofd_packets/00072564 [12:59:18]NVStorageSaveData ofd_packets/00072564 [12:59:18]File name is /storage/ofd_packets/00072564 [12:59:18]Write 294 bytes [12:59:18]NVStorageSaveData done [12:59:18]OFDSenderStorePacket done [12:59:18]KKMCreateOFDPacket done [12:59:18]NVStorageSaveData kkm_last_timestamp [12:59:18]File name is /storage/kkm_last_timestamp [12:59:18]Write 4 bytes [12:59:18]NVStorageSaveData done [12:59:18]ExternCall_PrintAddStr [12:59:18]wPrintStart [12:59:18]Write to MH i2c: 01 00 00 EC 01 ED [12:59:18]Write i2c OK [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 [12:59:18]MH_I2C_Read... [12:59:18]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [12:59:18]RasterBufferAndPrint [12:59:18]line Счет N : (1)952028 [12:59:18]line ИНН: 02508201610067 [12:59:18]line Контрольно-Кассовый Чек [12:59:18]line ПРОДАЖА [12:59:18]line ТРК (МРК, ГНК) : 51 [12:59:18]line Товар: 50.50.0 [12:59:18]line Super 92 [12:59:18]line 14.620 * 68.40 [12:59:18]line = 1000.01 [12:59:18]line НДС 12% НСП 1% [12:59:18]line > о реализуемом товаре [12:59:18]line ИТОГО: 1000.01 [12:59:18]line НСП 1% : 8.85 [12:59:18]line НДС 12% : 106.20 [12:59:18]line Наличными: 0.00 [12:59:18]line Безнал.: 1000.01 [12:59:18]line Место: АЗС № 113 "Партнер Нефть" [12:59:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [12:59:18]line СНО: Общий режим [12:59:18]line Чек 92 28.10.2024 12:59 [12:59:18]line Смена: 554 ФФД: 1.0 [12:59:18]line ЗНМ: 0300000087 [12:59:18]line РНМ: 0000000000091644 [12:59:18]line Версия ККМ: 001 [12:59:18]line Платежная система: O! деньги [12:59:18]line ФМ: 0000000000874662 [12:59:18]line ФД: 72564 [12:59:18]line ФПД: 163998443991480 [12:59:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T125917&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72564&fm=163998443991480&tin=02508201610067®Number=0000000000091644&sum=100001 [12:59:18]OFD Sender: Processing packet 72564 [packets to send 273, broken 272] [12:59:18]ProducePacketName [12:59:18]name=ofd_packets/00072564 [12:59:18]OFD Sender: To server: pG, [12:59:18]CommunicateWithHost lk.salyk.kg:30040 [12:59:18]ConnectInit lk.salyk.kg [12:59:18]written 0, free lines is 4095 [12:59:19]Write to MH i2c: 01 00 00 16 02 18 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 E6 0C 11 [12:59:19]RasterBufferAndPrint [12:59:19]line [12:59:19]line [12:59:19]line [12:59:19]line [12:59:19]line [12:59:19]written 0, free lines is 3306 [12:59:19]MH_Cut [12:59:19]Write to MH i2c: D1 01 00 1D 02 01 F1 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D1 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D1 01 00 [12:59:19]MH_I2C_Read... [12:59:19]Read from MH i2c: D1 01 00 1D 02 00 F0 [12:59:19]Write to MH i2c: 01 00 00 1E 02 20 [12:59:19]Write i2c OK [12:59:19]MH_I2C_Read... [12:59:19]*** Cut start [12:59:19]*** Partial cut [12:59:19]*** CUTSNS_PIN = 1 [12:59:19]*** CUTSNS_PIN = 0 [12:59:20]*** Brake cut motor [12:59:20]Read from MH i2c: 01 [12:59:20]MH_I2C_Read... [12:59:20]*** Stop cut motor [12:59:20]*** Cut end [12:59:20]Read from MH i2c: 01 07 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [12:59:20]process_action close_receipt done [12:59:20]requested_data is exist [12:59:20]produce_requested_data [12:59:20]requested_item fm.sn is exist - process it [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 11 00 00 [12:59:20]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 17 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [12:59:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [12:59:20]wFMCommunicate OK [12:59:20]requested_item fd.num is exist - process it [12:59:20]SAM_PROTO_GetFieldsCounters [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 13 00 00 [12:59:20]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 62 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 62 00 20 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [12:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 74 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:59:20]wFMCommunicate OK [12:59:20]SAM_PROTO_GetFieldsCounters done [12:59:20]requested_item shift.num is exist - process it [12:59:20]requested_item shift.opened is exist - process it [12:59:20]req_shift_opened [12:59:20]FM_GetShiftState [12:59:20]SAM_PROTO_GetShiftState [12:59:20]wFMCommunicate request_size=4 [12:59:20]MH_SAM_APDU [12:59:20]CAPDU: 80 13 01 00 [12:59:20]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [12:59:20]Write i2c OK [12:59:20]MH_I2C_Read... [12:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:20]Read from MH i2c: E2 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 0E 00 [12:59:20]MH_I2C_Read... [12:59:20]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 08 [12:59:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [12:59:20]wFMCommunicate OK [12:59:20]SAM_PROTO_GetShiftState done [12:59:20]FM_GetShiftState done [12:59:20]req_shift_opened done [12:59:20]requested_item shift.open_date is exist - process it [12:59:20]req_shift_open_date [12:59:20]req_shift_open_date done [12:59:20]produce_requested_data done [12:59:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72564,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [12:59:20]process_action_free close_receipt [12:59:20]json_value_free [12:59:20]json_value_free done [12:59:20]process_json_proto returns [12:59:20]Send response to host [12:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72564,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [12:59:20]free response buf [12:59:20]execute_script done [12:59:20]execute_script returns [12:59:20]free content buf [12:59:20]Sock 10.Close socket [12:59:20]Sock 10.Thread stoped [12:59:24]recv_with_timeout no data received [12:59:50]recv_with_timeout no data received [13:01:29]ConnectInit Can't connect to host [13:01:29]CommunicateWithHost connect error [13:01:29]CommunicateWithHost err = -1 [13:01:29]OFD Sender: Server communicate error [13:01:34]OFD Sender: Processing packet 72564 [packets to send 273, broken 272] [13:01:34]ProducePacketName [13:01:34]name=ofd_packets/00072564 [13:01:34]OFD Sender: To server: pG, [13:01:34]CommunicateWithHost lk.salyk.kg:30040 [13:01:34]ConnectInit lk.salyk.kg [13:01:34]Connected sock=10 [13:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 57 AA 00 01 4C FD 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 A5 8A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1B 01 00 35 04 06 00 95 27 DC FF 71 B8 61 DF 5D 53 71 65 75 D5 [13:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D1 D7 47 00 63 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 74 1B 01 00 F4 03 04 00 EC 35 1F 67 B6 04 01 00 00 20 A9 E2 9A ED 05 D9 21 [13:01:35]CommunicateWithHost err = 0 [13:01:35]CheckOFDResponse [13:01:35]1017 (14) - 77093643461234 [13:01:35]1041 (16) - 0000000000874662 [13:01:35]1040 (4) - 72564 [13:01:35]1012 (4) - 28.10.2024 06:57 [13:01:35]1206 (1) - 0 [13:01:35]OFD Sender: Remove packet 72564 [13:01:35]ProducePacketName [13:01:35]name=ofd_packets/00072564 [13:01:35]NVStorageDeleteData [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:01]recv_with_timeout no data received [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:32]recv_with_timeout no data received [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:43]recv_with_timeout no data received [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:36]OFD Sender: No OFD packet to send [13:03:41]OFD Sender: No OFD packet to send [13:03:46]OFD Sender: No OFD packet to send [13:03:51]OFD Sender: No OFD packet to send [13:03:56]OFD Sender: No OFD packet to send [13:04:01]OFD Sender: No OFD packet to send [13:04:06]OFD Sender: No OFD packet to send [13:04:11]OFD Sender: No OFD packet to send [13:04:16]OFD Sender: No OFD packet to send [13:04:21]OFD Sender: No OFD packet to send [13:04:26]OFD Sender: No OFD packet to send [13:04:31]OFD Sender: No OFD packet to send [13:04:32]recv_with_timeout no data received [13:04:36]OFD Sender: No OFD packet to send [13:04:41]OFD Sender: No OFD packet to send [13:04:43]recv_with_timeout no data received [13:04:46]OFD Sender: No OFD packet to send [13:04:51]OFD Sender: No OFD packet to send [13:04:56]OFD Sender: No OFD packet to send [13:05:01]OFD Sender: No OFD packet to send [13:05:06]OFD Sender: No OFD packet to send [13:05:11]OFD Sender: No OFD packet to send [13:05:16]OFD Sender: No OFD packet to send [13:05:21]OFD Sender: No OFD packet to send [13:05:26]OFD Sender: No OFD packet to send [13:05:31]OFD Sender: No OFD packet to send [13:05:36]OFD Sender: No OFD packet to send [13:05:41]OFD Sender: No OFD packet to send [13:05:46]OFD Sender: No OFD packet to send [13:05:49]recv_with_timeout no data received [13:05:51]OFD Sender: No OFD packet to send [13:05:56]OFD Sender: No OFD packet to send [13:06:01]OFD Sender: No OFD packet to send [13:06:06]OFD Sender: No OFD packet to send [13:06:11]OFD Sender: No OFD packet to send [13:06:16]OFD Sender: No OFD packet to send [13:06:21]OFD Sender: No OFD packet to send [13:06:26]OFD Sender: No OFD packet to send [13:06:31]OFD Sender: No OFD packet to send [13:06:36]OFD Sender: No OFD packet to send [13:06:40]recv_with_timeout no data received [13:06:41]OFD Sender: No OFD packet to send [13:06:46]OFD Sender: No OFD packet to send [13:06:51]OFD Sender: No OFD packet to send [13:06:56]OFD Sender: No OFD packet to send [13:07:01]OFD Sender: No OFD packet to send [13:07:06]OFD Sender: No OFD packet to send [13:07:11]OFD Sender: No OFD packet to send [13:07:16]OFD Sender: No OFD packet to send [13:07:21]OFD Sender: No OFD packet to send [13:07:26]OFD Sender: No OFD packet to send [13:07:31]OFD Sender: No OFD packet to send [13:07:36]OFD Sender: No OFD packet to send [13:07:41]OFD Sender: No OFD packet to send [13:07:46]OFD Sender: No OFD packet to send [13:07:49]recv_with_timeout no data received [13:07:51]OFD Sender: No OFD packet to send [13:07:56]OFD Sender: No OFD packet to send [13:08:01]OFD Sender: No OFD packet to send [13:08:05]recv_with_timeout no data received [13:08:06]OFD Sender: No OFD packet to send [13:08:11]OFD Sender: No OFD packet to send [13:08:16]OFD Sender: No OFD packet to send [13:08:21]OFD Sender: No OFD packet to send [13:08:26]OFD Sender: No OFD packet to send [13:08:31]recv_with_timeout no data received [13:08:31]OFD Sender: No OFD packet to send [13:08:36]OFD Sender: No OFD packet to send [13:08:41]OFD Sender: No OFD packet to send [13:08:46]OFD Sender: No OFD packet to send [13:08:49]recv_with_timeout no data received [13:08:51]OFD Sender: No OFD packet to send [13:08:56]OFD Sender: No OFD packet to send [13:09:01]OFD Sender: No OFD packet to send [13:09:06]OFD Sender: No OFD packet to send [13:09:08]recv_with_timeout no data received [13:09:11]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:09:59]recv_with_timeout no data received [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:14]recv_with_timeout no data received [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:40]recv_with_timeout no data received [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:13]recv_with_timeout no data received [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:49]recv_with_timeout no data received [13:12:52]OFD Sender: No OFD packet to send [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:14]recv_with_timeout no data received [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:26]recv_with_timeout no data received [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:43]recv_with_timeout no data received [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:56]recv_with_timeout no data received [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:19]recv_with_timeout no data received [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:49]recv_with_timeout no data received [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:14:59]recv_with_timeout no data received [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:23]recv_with_timeout no data received [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:14]recv_with_timeout no data received [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:24]recv_with_timeout no data received [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:15]recv_with_timeout no data received [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:31]recv_with_timeout no data received [13:17:32]OFD Sender: No OFD packet to send [13:17:37]OFD Sender: No OFD packet to send [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:56]accept exits with 7 [13:17:56]New connection [13:17:56]New thread 3066989924 created [13:17:56]Thread 3067133284 joined [13:17:56]Waiting for new connection... [13:17:56] Sock 7.Parse request [13:17:56]Sock 7.Check first char [13:17:56]Sock 7.First char is OK [13:17:56]request: POST /json_proto HTTP/1.0 [13:17:56]Method: POST [13:17:56]URL: /json_proto [13:17:56]Method is POST - this is cgi request [13:17:56]url: /json_proto [13:17:56]query_string will be loaded in cgi processing [13:17:56]execute_cgi json_proto POST (null) [13:17:56]execute_cgi path=json_proto method=POST [13:17:56]POST find Content-Length [13:17:56]Host: 172.17.43.195:8080 [13:17:56]Content-Length: 677 [13:17:56]Content-Type: application/json [13:17:56] [13:17:56]POST finish read [13:17:56]Found Content-Length = 677 [13:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:56]execute_script... [13:17: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)952031", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.940, "sum" : 330.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 330.00, "payments": [ { "type": 0, "sum" : 330.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:56]POST & json_proto [13:17:56]process_json_proto [13:17:56]json parsed OK: [13:17:56]protocol is kg_v1.0 [13:17:56]action value=close_receipt [13:17:56]process_action close_receipt [13:17:56]cmd_close_receipt [13:17:56]MH_GetDate [13:17:56]Write to MH i2c: F0 00 00 22 02 13 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 09 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: F0 09 00 22 02 00 05 8F 1F 67 74 2C AD 66 E9 [13:17:56]GetLastDocTimeStamp 1730120357 [13:17:56]current date 1730121477 [13:17:56]FM_GetShiftState [13:17:56]SAM_PROTO_GetShiftState [13:17:56]wFMCommunicate request_size=4 [13:17:56]MH_SAM_APDU [13:17:56]CAPDU: 80 13 01 00 [13:17:56]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [13:17:56]Write i2c OK [13:17:56]MH_I2C_Read... [13:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:56]Read from MH i2c: E2 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 [13:17:56]MH_I2C_Read... [13:17:56]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0A [13:17:56]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:17:56]wFMCommunicate OK [13:17:56]SAM_PROTO_GetShiftState done [13:17:56]FM_GetShiftState done [13:17:56]opened in 1730074113 [13:17:56]opened+sec_in_day 1730160513 [13:17:56]quantity*price = 33048 [13:17:56]sum+1 = 33050 [13:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 330.00 Внесено: 330.00 СДАЧА: 0.00 НСП 1% : 2.92 НДС 12% : 35.10 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 93 28.10.2024 13:17 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72565 ФПД: 208425831590470 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72565&fm=208425831590470&tin=02508201610067®Number=0000000000091644&sum=33000 [13:17:57]StoreToDocumentArchive [13:17:57]shift 554 fd 72565 [13:17:57]save to /storage/0554/doc_00072565 [13:17:57]save last doc name /storage/0554/doc_00072565 to /storage/kkm_last_doc_name [13:17:57]save OK [13:17:57]Clear old archive folders... [13:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:17:57]tlvbuf is 018DAB00 [13:17:57]SAM_PROTO_ClearQueue [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 09 00 00 [13:17:57]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]SAM_PROTO_ClearQueue done [13:17:57]KKMCreateOFDPacket [13:17:57]OFDProtocolAddRootSTLVToBuf [13:17:57]FM_MakeSignedData [13:17:57]FM_MakeSignedData [13:17:57]SAM_PROTO_SignData [13:17:57]wFMCommunicate request_size=4 [13:17:57]MH_SAM_APDU [13:17:57]CAPDU: 80 0D 01 02 [13:17:57]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:57]Read from MH i2c: E2 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 [13:17:57]MH_I2C_Read... [13:17:57]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [13:17:57]RAPDU: 90 00 [13:17:57]wFMCommunicate OK [13:17:57]wFMCommunicate request_size=255 [13:17:57]MH_SAM_APDU [13:17: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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 05 8F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1B 01 00 35 04 06 00 BD [13:17:57]Write to MH i2c: E2 02 01 32 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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 05 8F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1B 01 00 35 04 06 00 BD 00 00 94 [13:17:57]Write i2c OK [13:17:57]MH_I2C_Read... [13:17:57]OFD Sender: No OFD packet to send [13:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]wFMCommunicate request_size=10 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 02 02 05 8F EB A7 6A 46 [13:17:58]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 8F EB A7 6A 46 00 00 8A [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [13:17:58]RAPDU: 90 00 [13:17:58]wFMCommunicate OK [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 0D 03 02 [13:17:58]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0B 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 0B 00 34 02 00 64 39 7B FE 6E 8C F5 C7 90 00 7E [13:17:58]RAPDU: 64 39 7B FE 6E 8C F5 C7 90 00 [13:17:58]wFMCommunicate OK [13:17:58]SAM_PROTO_SignData done [13:17:58]FM_MakeSignedData done [13:17:58]CreateOFDProtocolMessage [13:17:58]wFMCommunicate request_size=4 [13:17:58]MH_SAM_APDU [13:17:58]CAPDU: 80 11 00 00 [13:17:58]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:58]Read from MH i2c: E2 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [13:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:17:58]wFMCommunicate OK [13:17:58]CreateOFDProtocolMessage done [13:17:58]OFDSenderStorePacket 72565 [13:17:58]StoreOFDPacket docnum=72565 [13:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 1C 07 01 61 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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 05 8F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1B 01 00 35 04 06 00 BD 8F EB A7 6A 46 64 39 7B FE 6E 8C F5 C7 [13:17:58]CheckFolder [13:17:58]dirname=/storage/ofd_packets [13:17:58]CheckFolder done [13:17:58]ProducePacketName [13:17:58]name=ofd_packets/00072565 [13:17:58]NVStorageSaveData ofd_packets/00072565 [13:17:58]File name is /storage/ofd_packets/00072565 [13:17:58]Write 301 bytes [13:17:58]NVStorageSaveData done [13:17:58]OFDSenderStorePacket done [13:17:58]KKMCreateOFDPacket done [13:17:58]NVStorageSaveData kkm_last_timestamp [13:17:58]File name is /storage/kkm_last_timestamp [13:17:58]Write 4 bytes [13:17:58]NVStorageSaveData done [13:17:58]ExternCall_PrintAddStr [13:17:58]wPrintStart [13:17:58]Write to MH i2c: 01 00 00 36 02 38 [13:17:58]Write i2c OK [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 [13:17:58]MH_I2C_Read... [13:17:58]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [13:17:58]RasterBufferAndPrint [13:17:58]line Счет N : (1)952031 [13:17:58]line ИНН: 02508201610067 [13:17:58]line Контрольно-Кассовый Чек [13:17:58]line ПРОДАЖА [13:17:58]line ТРК (МРК, ГНК) : 63 [13:17:58]line Товар: 2710124130 [13:17:58]line Аи-92-К-5 [13:17:58]line 4.940 * 66.90 [13:17:58]line = 330.49 [13:17:58]line НДС 12% НСП 1% [13:17:58]line > о реализуемом товаре [13:17:58]line ОКРУГЛЕНИЕ: -0.49 [13:17:58]line ИТОГО: 330.00 [13:17:58]line Внесено: 330.00 [13:17:58]line СДАЧА: 0.00 [13:17:58]line НСП 1% : 2.92 [13:17:58]line НДС 12% : 35.10 [13:17:58]line Наличными: 330.00 [13:17:58]line Безнал.: 0.00 [13:17:58]line Место: АЗС № 113 "Партнер Нефть" [13:17:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:17:58]line СНО: Общий режим [13:17:58]line Чек 93 28.10.2024 13:17 [13:17:58]line Смена: 554 ФФД: 1.0 [13:17:58]line ЗНМ: 0300000087 [13:17:58]line РНМ: 0000000000091644 [13:17:58]line Версия ККМ: 001 [13:17:58]line ФМ: 0000000000874662 [13:17:58]line ФД: 72565 [13:17:58]line ФПД: 208425831590470 [13:17:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T131757&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72565&fm=208425831590470&tin=02508201610067®Number=0000000000091644&sum=33000 [13:17:58]OFD Sender: Processing packet 72565 [packets to send 273, broken 272] [13:17:58]ProducePacketName [13:17:58]name=ofd_packets/00072565 [13:17:58]OFD Sender: To server: pG, [13:17:58]CommunicateWithHost lk.salyk.kg:30040 [13:17:58]ConnectInit lk.salyk.kg [13:17:58]written 0, free lines is 4095 [13:17:59]Write to MH i2c: 01 00 00 61 02 63 [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: 01 07 00 61 02 00 00 00 00 00 CE 0C 44 [13:17:59]RasterBufferAndPrint [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]line [13:17:59]written 0, free lines is 3284 [13:17:59]MH_Cut [13:17:59]Write to MH i2c: D1 01 00 68 02 01 3C [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: D1 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: D1 01 00 [13:17:59]MH_I2C_Read... [13:17:59]Read from MH i2c: D1 01 00 68 02 00 3B [13:17:59]Write to MH i2c: 01 00 00 69 02 6B [13:17:59]Write i2c OK [13:17:59]MH_I2C_Read... [13:17:59]*** Cut start [13:17:59]*** Partial cut [13:17:59]*** CUTSNS_PIN = 1 [13:17:59]*** CUTSNS_PIN = 0 [13:18:00]*** Brake cut motor [13:18:00]Read from MH i2c: 01 [13:18:00]MH_I2C_Read... [13:18:00]*** Stop cut motor [13:18:00]*** Cut end [13:18:00]Read from MH i2c: 01 07 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: 01 07 00 69 02 00 00 00 00 00 FF 0F 80 [13:18:00]process_action close_receipt done [13:18:00]requested_data is exist [13:18:00]produce_requested_data [13:18:00]requested_item fm.sn is exist - process it [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 11 00 00 [13:18:00]Write to MH i2c: E2 08 00 6A 02 80 11 00 00 00 00 00 00 E6 [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:00]Read from MH i2c: E2 17 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 17 00 6A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3A [13:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:18:00]wFMCommunicate OK [13:18:00]requested_item fd.num is exist - process it [13:18:00]SAM_PROTO_GetFieldsCounters [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 13 00 00 [13:18:00]Write to MH i2c: E2 08 00 6B 02 80 13 00 00 00 00 00 00 E9 [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 62 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 62 00 6B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [13:18: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 75 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_GetFieldsCounters done [13:18:00]requested_item shift.num is exist - process it [13:18:00]requested_item shift.opened is exist - process it [13:18:00]req_shift_opened [13:18:00]FM_GetShiftState [13:18:00]SAM_PROTO_GetShiftState [13:18:00]wFMCommunicate request_size=4 [13:18:00]MH_SAM_APDU [13:18:00]CAPDU: 80 13 01 00 [13:18:00]Write to MH i2c: E2 08 00 6C 02 80 13 01 00 00 00 00 00 EB [13:18:00]Write i2c OK [13:18:00]MH_I2C_Read... [13:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:00]Read from MH i2c: E2 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 0E 00 [13:18:00]MH_I2C_Read... [13:18:00]Read from MH i2c: E2 0E 00 6C 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 53 [13:18:00]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:18:00]wFMCommunicate OK [13:18:00]SAM_PROTO_GetShiftState done [13:18:00]FM_GetShiftState done [13:18:00]req_shift_opened done [13:18:00]requested_item shift.open_date is exist - process it [13:18:00]req_shift_open_date [13:18:00]req_shift_open_date done [13:18:00]produce_requested_data done [13:18:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72565,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:18:00]process_action_free close_receipt [13:18:00]json_value_free [13:18:00]json_value_free done [13:18:00]process_json_proto returns [13:18:00]Send response to host [13:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72565,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:18:00]free response buf [13:18:00]execute_script done [13:18:00]execute_script returns [13:18:00]free content buf [13:18:00]Sock 7.Close socket [13:18:00]Sock 7.Thread stoped [13:18:01]Connected sock=11 [13:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F2 1C 07 01 61 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 4C 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 19 81 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 05 8F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1B 01 00 35 04 06 00 BD 8F EB A7 6A 46 64 39 7B FE 6E 8C F5 C7 [13:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 85 51 47 00 A2 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 75 1B 01 00 F4 03 04 00 C6 39 1F 67 B6 04 01 00 00 11 BD B2 DE EA 22 77 50 [13:18:01]CommunicateWithHost err = 0 [13:18:01]CheckOFDResponse [13:18:01]1017 (14) - 77093643461234 [13:18:01]1041 (16) - 0000000000874662 [13:18:01]1040 (4) - 72565 [13:18:01]1012 (4) - 28.10.2024 07:14 [13:18:01]1206 (1) - 0 [13:18:01]OFD Sender: Remove packet 72565 [13:18:01]ProducePacketName [13:18:01]name=ofd_packets/00072565 [13:18:01]NVStorageDeleteData [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:11]recv_with_timeout no data received [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]recv_with_timeout no data received [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:36]recv_with_timeout no data received [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:15]recv_with_timeout no data received [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:36]recv_with_timeout no data received [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:47]recv_with_timeout no data received [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:41]recv_with_timeout no data received [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:51]recv_with_timeout no data received [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:44]recv_with_timeout no data received [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:21]recv_with_timeout no data received [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:30]accept exits with 9 [13:23:30]New connection [13:23:30]New thread 3067133284 created [13:23:30]Thread 3066989924 joined [13:23:30]Waiting for new connection... [13:23:30] Sock 9.Parse request [13:23:30]Sock 9.Check first char [13:23:30]Sock 9.First char is OK [13:23:30]request: POST /json_proto HTTP/1.0 [13:23:30]Method: POST [13:23:30]URL: /json_proto [13:23:30]Method is POST - this is cgi request [13:23:30]url: /json_proto [13:23:30]query_string will be loaded in cgi processing [13:23:30]execute_cgi json_proto POST (null) [13:23:30]execute_cgi path=json_proto method=POST [13:23:30]POST find Content-Length [13:23:30]Host: 172.17.43.195:8080 [13:23:30]Content-Length: 797 [13:23:30]Content-Type: application/json [13:23:30] [13:23:30]POST finish read [13:23:30]Found Content-Length = 797 [13:23:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 14.440, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:30]execute_script... [13:23: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)952032", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 14.440, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:30]POST & json_proto [13:23:30]process_json_proto [13:23:30]json parsed OK: [13:23:30]protocol is kg_v1.0 [13:23:30]action value=close_receipt [13:23:30]process_action close_receipt [13:23:30]cmd_close_receipt [13:23:30]MH_GetDate [13:23:30]Write to MH i2c: F0 00 00 6D 02 5E [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: F0 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: F0 09 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: F0 09 00 6D 02 00 53 90 1F 67 74 2C AD 66 83 [13:23:30]GetLastDocTimeStamp 1730121477 [13:23:30]current date 1730121811 [13:23:30]FM_GetShiftState [13:23:30]SAM_PROTO_GetShiftState [13:23:30]wFMCommunicate request_size=4 [13:23:30]MH_SAM_APDU [13:23:30]CAPDU: 80 13 01 00 [13:23:30]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [13:23:30]Write i2c OK [13:23:30]MH_I2C_Read... [13:23:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:30]Read from MH i2c: E2 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 0E 00 [13:23:30]MH_I2C_Read... [13:23:30]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 55 [13:23:30]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:23:30]wFMCommunicate OK [13:23:30]SAM_PROTO_GetShiftState done [13:23:30]FM_GetShiftState done [13:23:30]opened in 1730074113 [13:23:30]opened+sec_in_day 1730160513 [13:23:30]quantity*price = 0 [13:23:30]sum+1 = 1 [13:23:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 94 28.10.2024 13:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72566 ФПД: 260992823782074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132331&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72566&fm=260992823782074&tin=02508201610067®Number=0000000000091644&sum=0 [13:23:31]StoreToDocumentArchive [13:23:31]shift 554 fd 72566 [13:23:31]save to /storage/0554/doc_00072566 [13:23:31]save last doc name /storage/0554/doc_00072566 to /storage/kkm_last_doc_name [13:23:31]save OK [13:23:31]Clear old archive folders... [13:23:31]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:23:31]tlvbuf is 018DAFC0 [13:23:31]SAM_PROTO_ClearQueue [13:23:31]wFMCommunicate request_size=4 [13:23:31]MH_SAM_APDU [13:23:31]CAPDU: 80 09 00 00 [13:23:31]Write to MH i2c: E2 08 00 7B 02 80 09 00 00 00 00 00 00 EF [13:23:31]Write i2c OK [13:23:31]MH_I2C_Read... [13:23:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:31]Read from MH i2c: E2 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 03 00 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [13:23:31]RAPDU: 90 00 [13:23:31]wFMCommunicate OK [13:23:31]SAM_PROTO_ClearQueue done [13:23:31]KKMCreateOFDPacket [13:23:31]OFDProtocolAddRootSTLVToBuf [13:23:31]FM_MakeSignedData [13:23:31]FM_MakeSignedData [13:23:31]SAM_PROTO_SignData [13:23:31]wFMCommunicate request_size=4 [13:23:31]MH_SAM_APDU [13:23:31]CAPDU: 80 0D 01 02 [13:23:31]Write to MH i2c: E2 08 00 7C 02 80 0D 01 02 00 00 00 00 F7 [13:23:31]Write i2c OK [13:23:31]MH_I2C_Read... [13:23:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:31]Read from MH i2c: E2 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 03 00 [13:23:31]MH_I2C_Read... [13:23:31]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [13:23:31]RAPDU: 90 00 [13:23:31]wFMCommunicate OK [13:23:31]wFMCommunicate request_size=255 [13:23:31]MH_SAM_APDU [13:23:31]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 53 90 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1B 01 00 35 04 06 00 [13:23:31]Write to MH i2c: E2 02 01 7D 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 53 90 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1B 01 00 35 04 06 00 00 00 61 [13:23:31]Write i2c OK [13:23:31]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]wFMCommunicate request_size=11 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 02 02 06 ED 5F 20 8C EA BA [13:23:32]Write to MH i2c: E2 0E 00 7E 02 80 0D 02 02 06 00 ED 5F 20 8C EA BA 00 00 A2 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [13:23:32]RAPDU: 90 00 [13:23:32]wFMCommunicate OK [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 0D 03 02 [13:23:32]Write to MH i2c: E2 08 00 7F 02 80 0D 03 02 00 00 00 00 FC [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0B 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 0B 00 7F 02 00 CA 76 C9 9C 9B E4 65 0D 90 00 93 [13:23:32]RAPDU: CA 76 C9 9C 9B E4 65 0D 90 00 [13:23:32]wFMCommunicate OK [13:23:32]SAM_PROTO_SignData done [13:23:32]FM_MakeSignedData done [13:23:32]CreateOFDProtocolMessage [13:23:32]wFMCommunicate request_size=4 [13:23:32]MH_SAM_APDU [13:23:32]CAPDU: 80 11 00 00 [13:23:32]Write to MH i2c: E2 08 00 80 02 80 11 00 00 00 00 00 00 FC [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:32]Read from MH i2c: E2 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: E2 17 00 80 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 50 [13:23:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:23:32]wFMCommunicate OK [13:23:32]CreateOFDProtocolMessage done [13:23:32]OFDSenderStorePacket 72566 [13:23:32]StoreOFDPacket docnum=72566 [13:23:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 20 0A 08 01 9E 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 53 90 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1B 01 00 35 04 06 00 ED 5F 20 8C EA BA CA 76 C9 9C 9B E4 65 0D [13:23:32]CheckFolder [13:23:32]dirname=/storage/ofd_packets [13:23:32]CheckFolder done [13:23:32]ProducePacketName [13:23:32]name=ofd_packets/00072566 [13:23:32]NVStorageSaveData ofd_packets/00072566 [13:23:32]File name is /storage/ofd_packets/00072566 [13:23:32]Write 302 bytes [13:23:32]NVStorageSaveData done [13:23:32]OFDSenderStorePacket done [13:23:32]KKMCreateOFDPacket done [13:23:32]NVStorageSaveData kkm_last_timestamp [13:23:32]File name is /storage/kkm_last_timestamp [13:23:32]Write 4 bytes [13:23:32]NVStorageSaveData done [13:23:32]OFD Sender: Processing packet 72566 [packets to send 273, broken 272] [13:23:32]ProducePacketName [13:23:32]name=ofd_packets/00072566 [13:23:32]OFD Sender: To server: pG, [13:23:32]CommunicateWithHost lk.salyk.kg:30040 [13:23:32]ConnectInit lk.salyk.kg [13:23:32]ExternCall_PrintAddStr [13:23:32]wPrintStart [13:23:32]Write to MH i2c: 01 00 00 81 02 83 [13:23:32]Write i2c OK [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 07 00 [13:23:32]MH_I2C_Read... [13:23:32]Read from MH i2c: 01 07 00 81 02 00 00 00 00 00 FF 0F 98 [13:23:32]RasterBufferAndPrint [13:23:32]line Счет N : (1)952032 [13:23:32]line ИНН: 02508201610067 [13:23:32]line Контрольно-Кассовый Чек [13:23:32]line ПРОДАЖА [13:23:32]line ТРК (МРК, ГНК) : 43 [13:23:32]line Товар: 2710194210 [13:23:32]line ДТ(л)-К-5 [13:23:32]line 14.440 * 0.00 [13:23:32]line = 0.00 [13:23:32]line НДС 12% НСП 1% [13:23:32]line > о реализуемом товаре [13:23:32]line ИТОГО: 0.00 [13:23:32]line НСП 1% : 0.00 [13:23:32]line НДС 12% : 0.00 [13:23:32]line Наличными: 0.00 [13:23:32]line Безнал.: 0.00 [13:23:32]line Место: АЗС № 113 "Партнер Нефть" [13:23:32]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:23:32]line СНО: Общий режим [13:23:32]line Чек 94 28.10.2024 13:23 [13:23:32]line Смена: 554 ФФД: 1.0 [13:23:32]line ЗНМ: 0300000087 [13:23:32]line РНМ: 0000000000091644 [13:23:32]line Версия ККМ: 001 [13:23:32]line Талоны: Топливная Карта [13:23:32]line 53623 [13:23:32]line ФМ: 0000000000874662 [13:23:32]line ФД: 72566 [13:23:32]line ФПД: 260992823782074 [13:23:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132331&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72566&fm=260992823782074&tin=02508201610067®Number=0000000000091644&sum=0 [13:23:32]written 0, free lines is 4095 [13:23:33]Write to MH i2c: 01 00 00 AB 02 AD [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 07 00 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: 01 07 00 AB 02 00 00 00 00 00 E6 0C A6 [13:23:33]RasterBufferAndPrint [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]line [13:23:33]written 0, free lines is 3309 [13:23:33]MH_Cut [13:23:33]Write to MH i2c: D1 01 00 B2 02 01 86 [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 01 00 [13:23:33]MH_I2C_Read... [13:23:33]Read from MH i2c: D1 01 00 B2 02 00 85 [13:23:33]Write to MH i2c: 01 00 00 B3 02 B5 [13:23:33]Write i2c OK [13:23:33]MH_I2C_Read... [13:23:33]Connected sock=11 [13: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 34 36 36 32 10 01 00 00 20 0A 08 01 9E 5E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 53 90 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1B 01 00 35 04 06 00 ED 5F 20 8C EA BA CA 76 C9 9C 9B E4 65 0D [13:23:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CA 93 47 00 94 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 76 1B 01 00 F4 03 04 00 12 3B 1F 67 B6 04 01 00 00 03 B3 4E 39 FF 39 F6 DA [13:23:33]CommunicateWithHost err = 0 [13:23:33]CheckOFDResponse [13:23:33]1017 (14) - 77093643461234 [13:23:33]1041 (16) - 0000000000874662 [13:23:33]1040 (4) - 72566 [13:23:33]1012 (4) - 28.10.2024 07:19 [13:23:33]1206 (1) - 0 [13:23:33]OFD Sender: Remove packet 72566 [13:23:33]ProducePacketName [13:23:33]name=ofd_packets/00072566 [13:23:33]NVStorageDeleteData [13:23:33]*** Cut start [13:23:33]*** Partial cut [13:23:33]*** CUTSNS_PIN = 1 [13:23:33]*** CUTSNS_PIN = 0 [13:23:34]*** Brake cut motor [13:23:34]OFD Sender: No OFD packet to send [13:23:34]Read from MH i2c: 01 [13:23:34]MH_I2C_Read... [13:23:34]*** Stop cut motor [13:23:34]*** Cut end [13:23:34]Read from MH i2c: 01 07 00 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 FF 0F CA [13:23:34]process_action close_receipt done [13:23:34]requested_data is exist [13:23:34]produce_requested_data [13:23:34]requested_item fm.sn is exist - process it [13:23:34]wFMCommunicate request_size=4 [13:23:34]MH_SAM_APDU [13:23:34]CAPDU: 80 11 00 00 [13:23:34]Write to MH i2c: E2 08 00 B4 02 80 11 00 00 00 00 00 00 30 [13:23:34]Write i2c OK [13:23:34]MH_I2C_Read... [13:23:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:34]Read from MH i2c: E2 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 17 00 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 17 00 B4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 84 [13:23:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:23:34]wFMCommunicate OK [13:23:34]requested_item fd.num is exist - process it [13:23:34]SAM_PROTO_GetFieldsCounters [13:23:34]wFMCommunicate request_size=4 [13:23:34]MH_SAM_APDU [13:23:34]CAPDU: 80 13 00 00 [13:23:34]Write to MH i2c: E2 08 00 B5 02 80 13 00 00 00 00 00 00 33 [13:23:34]Write i2c OK [13:23:34]MH_I2C_Read... [13:23:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:34]Read from MH i2c: E2 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 62 00 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 62 00 B5 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [13:23: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 76 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:34]wFMCommunicate OK [13:23:34]SAM_PROTO_GetFieldsCounters done [13:23:34]requested_item shift.num is exist - process it [13:23:34]requested_item shift.opened is exist - process it [13:23:34]req_shift_opened [13:23:34]FM_GetShiftState [13:23:34]SAM_PROTO_GetShiftState [13:23:34]wFMCommunicate request_size=4 [13:23:34]MH_SAM_APDU [13:23:34]CAPDU: 80 13 01 00 [13:23:34]Write to MH i2c: E2 08 00 B6 02 80 13 01 00 00 00 00 00 35 [13:23:34]Write i2c OK [13:23:34]MH_I2C_Read... [13:23:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:34]Read from MH i2c: E2 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 0E 00 [13:23:34]MH_I2C_Read... [13:23:34]Read from MH i2c: E2 0E 00 B6 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9D [13:23:34]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:23:34]wFMCommunicate OK [13:23:34]SAM_PROTO_GetShiftState done [13:23:34]FM_GetShiftState done [13:23:34]req_shift_opened done [13:23:34]requested_item shift.open_date is exist - process it [13:23:34]req_shift_open_date [13:23:34]req_shift_open_date done [13:23:34]produce_requested_data done [13:23:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72566,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:23:34]process_action_free close_receipt [13:23:34]json_value_free [13:23:34]json_value_free done [13:23:34]process_json_proto returns [13:23:34]Send response to host [13:23:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72566,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:23:34]free response buf [13:23:34]execute_script done [13:23:34]execute_script returns [13:23:34]free content buf [13:23:34]Sock 9.Close socket [13:23:34]Sock 9.Thread stoped [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:58]recv_with_timeout no data received [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:09]recv_with_timeout no data received [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:00]recv_with_timeout no data received [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]recv_with_timeout no data received [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:08]recv_with_timeout no data received [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:47]recv_with_timeout no data received [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:19]recv_with_timeout no data received [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:32]recv_with_timeout no data received [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:40]accept exits with 7 [13:28:40]New connection [13:28:40]New thread 3066989924 created [13:28:40]Thread 3067133284 joined [13:28:40]Waiting for new connection... [13:28:40] Sock 7.Parse request [13:28:40]Sock 7.Check first char [13:28:40]Sock 7.First char is OK [13:28:40]request: POST /json_proto HTTP/1.0 [13:28:40]Method: POST [13:28:40]URL: /json_proto [13:28:40]Method is POST - this is cgi request [13:28:40]url: /json_proto [13:28:40]query_string will be loaded in cgi processing [13:28:40]execute_cgi json_proto POST (null) [13:28:40]execute_cgi path=json_proto method=POST [13:28:40]POST find Content-Length [13:28:40]Host: 172.17.43.195:8080 [13:28:40]Content-Length: 681 [13:28:40]Content-Type: application/json [13:28:40] [13:28:40]POST finish read [13:28:40]Found Content-Length = 681 [13:28:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:40]execute_script... [13: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)952036", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:28:40]POST & json_proto [13:28:40]process_json_proto [13:28:40]json parsed OK: [13:28:40]protocol is kg_v1.0 [13:28:40]action value=close_receipt [13:28:40]process_action close_receipt [13:28:40]cmd_close_receipt [13:28:40]MH_GetDate [13:28:40]Write to MH i2c: F0 00 00 B7 02 A8 [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 09 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: F0 09 00 B7 02 00 89 91 1F 67 74 2C AD 66 04 [13:28:40]GetLastDocTimeStamp 1730121811 [13:28:40]current date 1730122121 [13:28:40]FM_GetShiftState [13:28:40]SAM_PROTO_GetShiftState [13:28:40]wFMCommunicate request_size=4 [13:28:40]MH_SAM_APDU [13:28:40]CAPDU: 80 13 01 00 [13:28:40]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [13:28:40]Write i2c OK [13:28:40]MH_I2C_Read... [13:28:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:40]Read from MH i2c: E2 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 [13:28:40]MH_I2C_Read... [13:28:40]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9F [13:28:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:28:40]wFMCommunicate OK [13:28:40]SAM_PROTO_GetShiftState done [13:28:40]FM_GetShiftState done [13:28:40]opened in 1730074113 [13:28:40]opened+sec_in_day 1730160513 [13:28:40]quantity*price = 85035 [13:28:40]sum+1 = 85036 [13:28:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 95 28.10.2024 13:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72567 ФПД: 114778287029881 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132841&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72567&fm=114778287029881&tin=02508201610067®Number=0000000000091644&sum=85000 [13:28:41]StoreToDocumentArchive [13:28:41]shift 554 fd 72567 [13:28:41]save to /storage/0554/doc_00072567 [13:28:41]save last doc name /storage/0554/doc_00072567 to /storage/kkm_last_doc_name [13:28:41]save OK [13:28:41]Clear old archive folders... [13:28:41]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:28:41]tlvbuf is 01964F80 [13:28:41]SAM_PROTO_ClearQueue [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 09 00 00 [13:28:41]Write to MH i2c: E2 08 00 C5 02 80 09 00 00 00 00 00 00 39 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [13:28:41]RAPDU: 90 00 [13:28:41]wFMCommunicate OK [13:28:41]SAM_PROTO_ClearQueue done [13:28:41]KKMCreateOFDPacket [13:28:41]OFDProtocolAddRootSTLVToBuf [13:28:41]FM_MakeSignedData [13:28:41]FM_MakeSignedData [13:28:41]SAM_PROTO_SignData [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 0D 01 02 [13:28:41]Write to MH i2c: E2 08 00 C6 02 80 0D 01 02 00 00 00 00 41 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [13:28:41]RAPDU: 90 00 [13:28:41]wFMCommunicate OK [13:28:41]wFMCommunicate request_size=255 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 89 91 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1B 01 00 35 04 06 00 68 63 [13:28:41]Write to MH i2c: E2 02 01 C7 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 89 91 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1B 01 00 35 04 06 00 68 63 00 00 F0 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [13:28:41]RAPDU: 90 00 [13:28:41]wFMCommunicate OK [13:28:41]wFMCommunicate request_size=9 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 0D 02 02 04 E7 06 BE 79 [13:28:41]Write to MH i2c: E2 0C 00 C8 02 80 0D 02 02 04 00 E7 06 BE 79 00 00 70 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [13:28:41]RAPDU: 90 00 [13:28:41]wFMCommunicate OK [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 0D 03 02 [13:28:41]Write to MH i2c: E2 08 00 C9 02 80 0D 03 02 00 00 00 00 46 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 0B 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 0B 00 C9 02 00 17 A9 69 5E 29 83 26 E7 90 00 87 [13:28:41]RAPDU: 17 A9 69 5E 29 83 26 E7 90 00 [13:28:41]wFMCommunicate OK [13:28:41]SAM_PROTO_SignData done [13:28:41]FM_MakeSignedData done [13:28:41]CreateOFDProtocolMessage [13:28:41]wFMCommunicate request_size=4 [13:28:41]MH_SAM_APDU [13:28:41]CAPDU: 80 11 00 00 [13:28:41]Write to MH i2c: E2 08 00 CA 02 80 11 00 00 00 00 00 00 46 [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:41]Read from MH i2c: E2 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 17 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: E2 17 00 CA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9A [13:28:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:28:41]wFMCommunicate OK [13:28:41]CreateOFDProtocolMessage done [13:28:41]OFDSenderStorePacket 72567 [13:28:41]StoreOFDPacket docnum=72567 [13:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 14 5E 06 01 F5 C6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 89 91 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1B 01 00 35 04 06 00 68 63 E7 06 BE 79 17 A9 69 5E 29 83 26 E7 [13:28:41]CheckFolder [13:28:41]dirname=/storage/ofd_packets [13:28:41]CheckFolder done [13:28:41]ProducePacketName [13:28:41]name=ofd_packets/00072567 [13:28:41]NVStorageSaveData ofd_packets/00072567 [13:28:41]File name is /storage/ofd_packets/00072567 [13:28:41]Write 300 bytes [13:28:41]NVStorageSaveData done [13:28:41]OFDSenderStorePacket done [13:28:41]KKMCreateOFDPacket done [13:28:41]NVStorageSaveData kkm_last_timestamp [13:28:41]File name is /storage/kkm_last_timestamp [13:28:41]Write 4 bytes [13:28:41]NVStorageSaveData done [13:28:41]ExternCall_PrintAddStr [13:28:41]wPrintStart [13:28:41]Write to MH i2c: 01 00 00 CB 02 CD [13:28:41]Write i2c OK [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: 01 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: 01 07 00 [13:28:41]MH_I2C_Read... [13:28:41]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 FF 0F E2 [13:28:41]RasterBufferAndPrint [13:28:41]line Счет N : (1)952036 [13:28:41]line ИНН: 02508201610067 [13:28:41]line Контрольно-Кассовый Чек [13:28:41]line ПРОДАЖА [13:28:41]line ТРК (МРК, ГНК) : 71 [13:28:41]line Товар: 2711190000 [13:28:41]line ГАЗ-К-3 [13:28:41]line 21.860 * 38.90 [13:28:41]line = 850.35 [13:28:41]line НДС 12% НСП 1% [13:28:41]line > о реализуемом товаре [13:28:41]line ОКРУГЛЕНИЕ: -0.35 [13:28:41]line ИТОГО: 850.00 [13:28:41]line Внесено: 850.00 [13:28:41]line СДАЧА: 0.00 [13:28:41]line НСП 1% : 7.52 [13:28:41]line НДС 12% : 90.30 [13:28:41]line Наличными: 850.00 [13:28:41]line Безнал.: 0.00 [13:28:41]line Место: АЗС № 113 "Партнер Нефть" [13:28:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:28:41]line СНО: Общий режим [13:28:41]line Чек 95 28.10.2024 13:28 [13:28:41]line Смена: 554 ФФД: 1.0 [13:28:41]line ЗНМ: 0300000087 [13:28:41]line РНМ: 0000000000091644 [13:28:41]line Версия ККМ: 001 [13:28:41]line ФМ: 0000000000874662 [13:28:41]line ФД: 72567 [13:28:41]line ФПД: 114778287029881 [13:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T132841&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72567&fm=114778287029881&tin=02508201610067®Number=0000000000091644&sum=85000 [13:28:41]written 0, free lines is 4095 [13:28:41]OFD Sender: Processing packet 72567 [packets to send 273, broken 272] [13:28:41]ProducePacketName [13:28:41]name=ofd_packets/00072567 [13:28:41]OFD Sender: To server: pG, [13:28:41]CommunicateWithHost lk.salyk.kg:30040 [13:28:41]ConnectInit lk.salyk.kg [13:28:42]Write to MH i2c: 01 00 00 F6 02 F8 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 07 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: 01 07 00 F6 02 00 00 00 00 00 CD 0C D8 [13:28:42]RasterBufferAndPrint [13:28:42]line [13:28:42]line [13:28:42]line [13:28:42]line [13:28:42]line [13:28:42]written 0, free lines is 3283 [13:28:42]MH_Cut [13:28:42]Write to MH i2c: D1 01 00 FD 02 01 D1 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: D1 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: D1 01 00 [13:28:42]MH_I2C_Read... [13:28:42]Read from MH i2c: D1 01 00 FD 02 00 D0 [13:28:42]Write to MH i2c: 01 00 00 FE 02 00 [13:28:42]Write i2c OK [13:28:42]MH_I2C_Read... [13:28:43]*** Cut start [13:28:43]*** Partial cut [13:28:43]*** CUTSNS_PIN = 1 [13:28:43]*** CUTSNS_PIN = 0 [13:28:43]*** Brake cut motor [13:28:43]Read from MH i2c: 01 [13:28:43]MH_I2C_Read... [13:28:43]*** Stop cut motor [13:28:43]*** Cut end [13:28:43]Read from MH i2c: 01 07 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 FF 0F 15 [13:28:43]process_action close_receipt done [13:28:43]requested_data is exist [13:28:43]produce_requested_data [13:28:43]requested_item fm.sn is exist - process it [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 11 00 00 [13:28:43]Write to MH i2c: E2 08 00 FF 02 80 11 00 00 00 00 00 00 7B [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 17 00 FF 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CF [13:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:28:43]wFMCommunicate OK [13:28:43]requested_item fd.num is exist - process it [13:28:43]SAM_PROTO_GetFieldsCounters [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 13 00 00 [13:28:43]Write to MH i2c: E2 08 00 00 03 80 13 00 00 00 00 00 00 7F [13:28:43]Write i2c OK [13:28:43]MH_I2C_Read... [13:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:28:43]Read from MH i2c: E2 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 62 00 [13:28:43]MH_I2C_Read... [13:28:43]Read from MH i2c: E2 62 00 00 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [13: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 77 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:28:43]wFMCommunicate OK [13:28:43]SAM_PROTO_GetFieldsCounters done [13:28:43]requested_item shift.num is exist - process it [13:28:43]requested_item shift.opened is exist - process it [13:28:43]req_shift_opened [13:28:43]FM_GetShiftState [13:28:43]SAM_PROTO_GetShiftState [13:28:43]wFMCommunicate request_size=4 [13:28:43]MH_SAM_APDU [13:28:43]CAPDU: 80 13 01 00 [13:28:44]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [13:28:44]Write i2c OK [13:28:44]MH_I2C_Read... [13:28:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:28:44]Read from MH i2c: E2 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 0E 00 [13:28:44]MH_I2C_Read... [13:28:44]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E9 [13:28:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:28:44]wFMCommunicate OK [13:28:44]SAM_PROTO_GetShiftState done [13:28:44]FM_GetShiftState done [13:28:44]req_shift_opened done [13:28:44]requested_item shift.open_date is exist - process it [13:28:44]req_shift_open_date [13:28:44]req_shift_open_date done [13:28:44]produce_requested_data done [13:28:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72567,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:28:44]process_action_free close_receipt [13:28:44]json_value_free [13:28:44]json_value_free done [13:28:44]process_json_proto returns [13:28:44]Send response to host [13:28:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72567,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:28:44]free response buf [13:28:44]execute_script done [13:28:44]execute_script returns [13:28:44]free content buf [13:28:44]Sock 7.Close socket [13:28:44]Sock 7.Thread stoped [13:28:44]Connected sock=11 [13:28:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 14 5E 06 01 F5 C6 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 89 91 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 77 1B 01 00 35 04 06 00 68 63 E7 06 BE 79 17 A9 69 5E 29 83 26 E7 [13:28:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 19 89 47 00 2D 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 34 36 36 32 10 04 04 00 77 1B 01 00 F4 03 04 00 49 3C 1F 67 B6 04 01 00 00 A5 50 1F 86 6B E2 27 5E [13:28:47]CommunicateWithHost err = 0 [13:28:47]CheckOFDResponse [13:28:47]1017 (14) - 77093643461234 [13:28:47]1041 (16) - 0000000000874662 [13:28:47]1040 (4) - 72567 [13:28:47]1012 (4) - 28.10.2024 07:24 [13:28:47]1206 (1) - 0 [13:28:47]OFD Sender: Remove packet 72567 [13:28:47]ProducePacketName [13:28:47]name=ofd_packets/00072567 [13:28:47]NVStorageDeleteData [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:25]recv_with_timeout no data received [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:35]recv_with_timeout no data received [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:53]recv_with_timeout no data received [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:16]accept exits with 10 [13:31:16]New connection [13:31:16]New thread 3067133284 created [13:31:16]Thread 3066989924 joined [13:31:16]Waiting for new connection... [13:31:16] Sock 10.Parse request [13:31:16]Sock 10.Check first char [13:31:16]Sock 10.First char is OK [13:31:16]request: POST /json_proto HTTP/1.0 [13:31:16]Method: POST [13:31:16]URL: /json_proto [13:31:16]Method is POST - this is cgi request [13:31:16]url: /json_proto [13:31:16]query_string will be loaded in cgi processing [13:31:16]execute_cgi json_proto POST (null) [13:31:16]execute_cgi path=json_proto method=POST [13:31:16]POST find Content-Length [13:31:16]Host: 172.17.43.195:8080 [13:31:16]Content-Length: 681 [13:31:16]Content-Type: application/json [13:31:16] [13:31:16]POST finish read [13:31:16]Found Content-Length = 681 [13:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:16]execute_script... [13:31: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)952037", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:31:16]POST & json_proto [13:31:16]process_json_proto [13:31:16]json parsed OK: [13:31:16]protocol is kg_v1.0 [13:31:16]action value=close_receipt [13:31:16]process_action close_receipt [13:31:16]cmd_close_receipt [13:31:16]MH_GetDate [13:31:16]Write to MH i2c: F0 00 00 02 03 F4 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 09 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: F0 09 00 02 03 00 25 92 1F 67 74 2C AD 66 ED [13:31:16]GetLastDocTimeStamp 1730122121 [13:31:16]current date 1730122277 [13:31:16]FM_GetShiftState [13:31:16]SAM_PROTO_GetShiftState [13:31:16]wFMCommunicate request_size=4 [13:31:16]MH_SAM_APDU [13:31:16]CAPDU: 80 13 01 00 [13:31:16]Write to MH i2c: E2 08 00 03 03 80 13 01 00 00 00 00 00 83 [13:31:16]Write i2c OK [13:31:16]MH_I2C_Read... [13:31:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:16]Read from MH i2c: E2 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0E 00 [13:31:16]MH_I2C_Read... [13:31:16]Read from MH i2c: E2 0E 00 03 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EB [13:31:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:31:16]wFMCommunicate OK [13:31:16]SAM_PROTO_GetShiftState done [13:31:16]FM_GetShiftState done [13:31:16]opened in 1730074113 [13:31:16]opened+sec_in_day 1730160513 [13:31:16]quantity*price = 85035 [13:31:16]sum+1 = 85036 [13:31:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 96 28.10.2024 13:31 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72568 ФПД: 141735668791489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72568&fm=141735668791489&tin=02508201610067®Number=0000000000091644&sum=85000 [13:31:18]StoreToDocumentArchive [13:31:18]shift 554 fd 72568 [13:31:18]save to /storage/0554/doc_00072568 [13:31:18]save last doc name /storage/0554/doc_00072568 to /storage/kkm_last_doc_name [13:31:18]save OK [13:31:18]Clear old archive folders... [13:31:18]OFD Sender: No OFD packet to send [13:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:31:18]tlvbuf is 01969440 [13:31:18]SAM_PROTO_ClearQueue [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 09 00 00 [13:31:18]Write to MH i2c: E2 08 00 10 03 80 09 00 00 00 00 00 00 85 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]SAM_PROTO_ClearQueue done [13:31:18]KKMCreateOFDPacket [13:31:18]OFDProtocolAddRootSTLVToBuf [13:31:18]FM_MakeSignedData [13:31:18]FM_MakeSignedData [13:31:18]SAM_PROTO_SignData [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 01 02 [13:31:18]Write to MH i2c: E2 08 00 11 03 80 0D 01 02 00 00 00 00 8D [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=255 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1B 01 00 35 04 06 00 80 E8 [13:31:18]Write to MH i2c: E2 02 01 12 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1B 01 00 35 04 06 00 80 E8 00 00 78 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=9 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 02 02 04 68 30 B8 C1 [13:31:18]Write to MH i2c: E2 0C 00 13 03 80 0D 02 02 04 00 68 30 B8 C1 00 00 A9 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [13:31:18]RAPDU: 90 00 [13:31:18]wFMCommunicate OK [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 0D 03 02 [13:31:18]Write to MH i2c: E2 08 00 14 03 80 0D 03 02 00 00 00 00 92 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 0B 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 0B 00 14 03 00 76 04 1C 81 38 1F 03 D1 90 00 D5 [13:31:18]RAPDU: 76 04 1C 81 38 1F 03 D1 90 00 [13:31:18]wFMCommunicate OK [13:31:18]SAM_PROTO_SignData done [13:31:18]FM_MakeSignedData done [13:31:18]CreateOFDProtocolMessage [13:31:18]wFMCommunicate request_size=4 [13:31:18]MH_SAM_APDU [13:31:18]CAPDU: 80 11 00 00 [13:31:18]Write to MH i2c: E2 08 00 15 03 80 11 00 00 00 00 00 00 92 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:18]Read from MH i2c: E2 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 17 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: E2 17 00 15 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E6 [13:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:31:18]wFMCommunicate OK [13:31:18]CreateOFDProtocolMessage done [13:31:18]OFDSenderStorePacket 72568 [13:31:18]StoreOFDPacket docnum=72568 [13:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 13 21 06 01 BA 01 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1B 01 00 35 04 06 00 80 E8 68 30 B8 C1 76 04 1C 81 38 1F 03 D1 [13:31:18]CheckFolder [13:31:18]dirname=/storage/ofd_packets [13:31:18]CheckFolder done [13:31:18]ProducePacketName [13:31:18]name=ofd_packets/00072568 [13:31:18]NVStorageSaveData ofd_packets/00072568 [13:31:18]File name is /storage/ofd_packets/00072568 [13:31:18]Write 300 bytes [13:31:18]NVStorageSaveData done [13:31:18]OFDSenderStorePacket done [13:31:18]KKMCreateOFDPacket done [13:31:18]NVStorageSaveData kkm_last_timestamp [13:31:18]File name is /storage/kkm_last_timestamp [13:31:18]Write 4 bytes [13:31:18]NVStorageSaveData done [13:31:18]ExternCall_PrintAddStr [13:31:18]wPrintStart [13:31:18]Write to MH i2c: 01 00 00 16 03 19 [13:31:18]Write i2c OK [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 07 00 [13:31:18]MH_I2C_Read... [13:31:18]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [13:31:18]RasterBufferAndPrint [13:31:18]line Счет N : (1)952037 [13:31:18]line ИНН: 02508201610067 [13:31:18]line Контрольно-Кассовый Чек [13:31:18]line ПРОДАЖА [13:31:18]line ТРК (МРК, ГНК) : 71 [13:31:18]line Товар: 2711190000 [13:31:18]line ГАЗ-К-3 [13:31:18]line 21.860 * 38.90 [13:31:18]line = 850.35 [13:31:18]line НДС 12% НСП 1% [13:31:18]line > о реализуемом товаре [13:31:18]line ОКРУГЛЕНИЕ: -0.35 [13:31:18]line ИТОГО: 850.00 [13:31:18]line Внесено: 850.00 [13:31:18]line СДАЧА: 0.00 [13:31:18]line НСП 1% : 7.52 [13:31:18]line НДС 12% : 90.30 [13:31:18]line Наличными: 850.00 [13:31:18]line Безнал.: 0.00 [13:31:18]line Место: АЗС № 113 "Партнер Нефть" [13:31:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:31:18]line СНО: Общий режим [13:31:18]line Чек 96 28.10.2024 13:31 [13:31:18]line Смена: 554 ФФД: 1.0 [13:31:18]line ЗНМ: 0300000087 [13:31:18]line РНМ: 0000000000091644 [13:31:18]line Версия ККМ: 001 [13:31:18]line ФМ: 0000000000874662 [13:31:18]line ФД: 72568 [13:31:18]line ФПД: 141735668791489 [13:31:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133117&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72568&fm=141735668791489&tin=02508201610067®Number=0000000000091644&sum=85000 [13:31:18]OFD Sender: Processing packet 72568 [packets to send 273, broken 272] [13:31:18]ProducePacketName [13:31:18]name=ofd_packets/00072568 [13:31:18]OFD Sender: To server: pG, [13:31:18]CommunicateWithHost lk.salyk.kg:30040 [13:31:18]ConnectInit lk.salyk.kg [13:31:18]written 0, free lines is 4095 [13:31:19]Write to MH i2c: 01 00 00 41 03 44 [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 07 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 CC 0C 23 [13:31:19]RasterBufferAndPrint [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]line [13:31:19]written 0, free lines is 3281 [13:31:19]MH_Cut [13:31:19]Write to MH i2c: D1 01 00 48 03 01 1D [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 01 00 [13:31:19]MH_I2C_Read... [13:31:19]Read from MH i2c: D1 01 00 48 03 00 1C [13:31:19]Write to MH i2c: 01 00 00 49 03 4C [13:31:19]Write i2c OK [13:31:19]MH_I2C_Read... [13:31:19]Connected sock=9 [13:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 13 21 06 01 BA 01 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 25 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1B 01 00 35 04 06 00 80 E8 68 30 B8 C1 76 04 1C 81 38 1F 03 D1 [13:31:20]*** Cut start [13:31:20]*** Partial cut [13:31:20]*** CUTSNS_PIN = 1 [13:31:20]*** CUTSNS_PIN = 0 [13:31:20]*** Brake cut motor [13:31:20]Read from MH i2c: 01 [13:31:20]MH_I2C_Read... [13:31:20]*** Stop cut motor [13:31:20]*** Cut end [13:31:20]Read from MH i2c: 01 07 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [13:31:20]process_action close_receipt done [13:31:20]requested_data is exist [13:31:20]produce_requested_data [13:31:20]requested_item fm.sn is exist - process it [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 11 00 00 [13:31:20]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:20]Read from MH i2c: E2 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 17 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [13:31:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:31:20]wFMCommunicate OK [13:31:20]requested_item fd.num is exist - process it [13:31:20]SAM_PROTO_GetFieldsCounters [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 13 00 00 [13:31:20]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:20]Read from MH i2c: E2 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 62 00 [13:31:20]MH_I2C_Read... [13:31:20]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 78 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [13:31: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 78 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:20]wFMCommunicate OK [13:31:20]SAM_PROTO_GetFieldsCounters done [13:31:20]requested_item shift.num is exist - process it [13:31:20]requested_item shift.opened is exist - process it [13:31:20]req_shift_opened [13:31:20]FM_GetShiftState [13:31:20]SAM_PROTO_GetShiftState [13:31:20]wFMCommunicate request_size=4 [13:31:20]MH_SAM_APDU [13:31:20]CAPDU: 80 13 01 00 [13:31:20]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [13:31:20]Write i2c OK [13:31:20]MH_I2C_Read... [13:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:21]Read from MH i2c: E2 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: E2 0E 00 [13:31:21]MH_I2C_Read... [13:31:21]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 34 [13:31:21]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:31:21]wFMCommunicate OK [13:31:21]SAM_PROTO_GetShiftState done [13:31:21]FM_GetShiftState done [13:31:21]req_shift_opened done [13:31:21]requested_item shift.open_date is exist - process it [13:31:21]req_shift_open_date [13:31:21]req_shift_open_date done [13:31:21]produce_requested_data done [13:31:21]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72568,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:31:21]process_action_free close_receipt [13:31:21]json_value_free [13:31:21]json_value_free done [13:31:21]process_json_proto returns [13:31:21]Send response to host [13:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72568,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:31:21]free response buf [13:31:21]execute_script done [13:31:21]execute_script returns [13:31:21]free content buf [13:31:21]Sock 10.Close socket [13:31:21]Sock 10.Thread stoped [13:31:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 93 A3 47 00 03 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 78 1B 01 00 F4 03 04 00 E4 3C 1F 67 B6 04 01 00 00 EA 5C 3F 5A C6 5B 0C 99 [13:31:21]CommunicateWithHost err = 0 [13:31:21]CheckOFDResponse [13:31:21]1017 (14) - 77093643461234 [13:31:21]1041 (16) - 0000000000874662 [13:31:21]1040 (4) - 72568 [13:31:21]1012 (4) - 28.10.2024 07:27 [13:31:21]1206 (1) - 0 [13:31:21]OFD Sender: Remove packet 72568 [13:31:21]ProducePacketName [13:31:21]name=ofd_packets/00072568 [13:31:21]NVStorageDeleteData [13:31:21]OFD Sender: No OFD packet to send [13:31:26]OFD Sender: No OFD packet to send [13:31:31]OFD Sender: No OFD packet to send [13:31:34]recv_with_timeout no data received [13:31:36]OFD Sender: No OFD packet to send [13:31:41]OFD Sender: No OFD packet to send [13:31:46]OFD Sender: No OFD packet to send [13:31:51]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:07]recv_with_timeout no data received [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:19]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:33:58]accept exits with 7 [13:33:58]New connection [13:33:58]New thread 3066989924 created [13:33:58]Thread 3067133284 joined [13:33:58]Waiting for new connection... [13:33:58] Sock 7.Parse request [13:33:58]Sock 7.Check first char [13:33:58]Sock 7.First char is OK [13:33:58]request: POST /json_proto HTTP/1.0 [13:33:58]Method: POST [13:33:58]URL: /json_proto [13:33:58]Method is POST - this is cgi request [13:33:58]url: /json_proto [13:33:58]query_string will be loaded in cgi processing [13:33:58]execute_cgi json_proto POST (null) [13:33:58]execute_cgi path=json_proto method=POST [13:33:58]POST find Content-Length [13:33:58]Host: 172.17.43.195:8080 [13:33:58]Content-Length: 681 [13:33:58]Content-Type: application/json [13:33:58] [13:33:58]POST finish read [13:33:58]Found Content-Length = 681 [13:33:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:58]execute_script... [13:33: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)952038", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:58]POST & json_proto [13:33:58]process_json_proto [13:33:58]json parsed OK: [13:33:58]protocol is kg_v1.0 [13:33:58]action value=close_receipt [13:33:58]process_action close_receipt [13:33:58]cmd_close_receipt [13:33:58]MH_GetDate [13:33:58]Write to MH i2c: F0 00 00 4D 03 3F [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: F0 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: F0 09 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: F0 09 00 4D 03 00 C7 92 1F 67 74 2C AD 66 DA [13:33:58]GetLastDocTimeStamp 1730122277 [13:33:58]current date 1730122439 [13:33:58]FM_GetShiftState [13:33:58]SAM_PROTO_GetShiftState [13:33:58]wFMCommunicate request_size=4 [13:33:58]MH_SAM_APDU [13:33:58]CAPDU: 80 13 01 00 [13:33:58]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [13:33:58]Write i2c OK [13:33:58]MH_I2C_Read... [13:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:58]Read from MH i2c: E2 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 0E 00 [13:33:58]MH_I2C_Read... [13:33:58]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 36 [13:33:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:33:58]wFMCommunicate OK [13:33:58]SAM_PROTO_GetShiftState done [13:33:58]FM_GetShiftState done [13:33:58]opened in 1730074113 [13:33:58]opened+sec_in_day 1730160513 [13:33:58]quantity*price = 85035 [13:33:58]sum+1 = 85036 [13:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 97 28.10.2024 13:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72569 ФПД: 70609727408462 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133359&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72569&fm=70609727408462&tin=02508201610067®Number=0000000000091644&sum=85000 [13:33:59]StoreToDocumentArchive [13:33:59]shift 554 fd 72569 [13:33:59]save to /storage/0554/doc_00072569 [13:33:59]save last doc name /storage/0554/doc_00072569 to /storage/kkm_last_doc_name [13:33:59]save OK [13:33:59]Clear old archive folders... [13:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:33:59]tlvbuf is 019672B0 [13:33:59]SAM_PROTO_ClearQueue [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 09 00 00 [13:33:59]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [13:33:59]RAPDU: 90 00 [13:33:59]wFMCommunicate OK [13:33:59]SAM_PROTO_ClearQueue done [13:33:59]KKMCreateOFDPacket [13:33:59]OFDProtocolAddRootSTLVToBuf [13:33:59]FM_MakeSignedData [13:33:59]FM_MakeSignedData [13:33:59]SAM_PROTO_SignData [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 0D 01 02 [13:33:59]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [13:33:59]RAPDU: 90 00 [13:33:59]wFMCommunicate OK [13:33:59]wFMCommunicate request_size=255 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1B 01 00 35 04 06 00 40 38 [13:33:59]Write to MH i2c: E2 02 01 5D 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1B 01 00 35 04 06 00 40 38 00 00 77 [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [13:33:59]RAPDU: 90 00 [13:33:59]wFMCommunicate OK [13:33:59]wFMCommunicate request_size=9 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 0D 02 02 04 1B B8 49 4E [13:33:59]Write to MH i2c: E2 0C 00 5E 03 80 0D 02 02 04 00 1B B8 49 4E 00 00 4D [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [13:33:59]RAPDU: 90 00 [13:33:59]wFMCommunicate OK [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 0D 03 02 [13:33:59]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:59]Read from MH i2c: E2 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 0B 00 [13:33:59]MH_I2C_Read... [13:33:59]Read from MH i2c: E2 0B 00 5F 03 00 5E E2 7F D2 45 A6 EC 1E 90 00 64 [13:33:59]RAPDU: 5E E2 7F D2 45 A6 EC 1E 90 00 [13:33:59]wFMCommunicate OK [13:33:59]SAM_PROTO_SignData done [13:33:59]FM_MakeSignedData done [13:33:59]CreateOFDProtocolMessage [13:33:59]wFMCommunicate request_size=4 [13:33:59]MH_SAM_APDU [13:33:59]CAPDU: 80 11 00 00 [13:33:59]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [13:33:59]Write i2c OK [13:33:59]MH_I2C_Read... [13:34:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:00]Read from MH i2c: E2 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 17 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [13:34:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:34:00]wFMCommunicate OK [13:34:00]CreateOFDProtocolMessage done [13:34:00]OFDSenderStorePacket 72569 [13:34:00]StoreOFDPacket docnum=72569 [13:34:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 26 55 06 01 71 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1B 01 00 35 04 06 00 40 38 1B B8 49 4E 5E E2 7F D2 45 A6 EC 1E [13:34:00]CheckFolder [13:34:00]dirname=/storage/ofd_packets [13:34:00]CheckFolder done [13:34:00]ProducePacketName [13:34:00]name=ofd_packets/00072569 [13:34:00]NVStorageSaveData ofd_packets/00072569 [13:34:00]File name is /storage/ofd_packets/00072569 [13:34:00]Write 300 bytes [13:34:00]NVStorageSaveData done [13:34:00]OFDSenderStorePacket done [13:34:00]KKMCreateOFDPacket done [13:34:00]NVStorageSaveData kkm_last_timestamp [13:34:00]File name is /storage/kkm_last_timestamp [13:34:00]Write 4 bytes [13:34:00]NVStorageSaveData done [13:34:00]ExternCall_PrintAddStr [13:34:00]wPrintStart [13:34:00]Write to MH i2c: 01 00 00 61 03 64 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 07 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [13:34:00]RasterBufferAndPrint [13:34:00]line Счет N : (1)952038 [13:34:00]line ИНН: 02508201610067 [13:34:00]line Контрольно-Кассовый Чек [13:34:00]line ПРОДАЖА [13:34:00]line ТРК (МРК, ГНК) : 71 [13:34:00]line Товар: 2711190000 [13:34:00]line ГАЗ-К-3 [13:34:00]line 21.860 * 38.90 [13:34:00]line = 850.35 [13:34:00]line НДС 12% НСП 1% [13:34:00]line > о реализуемом товаре [13:34:00]line ОКРУГЛЕНИЕ: -0.35 [13:34:00]line ИТОГО: 850.00 [13:34:00]line Внесено: 850.00 [13:34:00]line СДАЧА: 0.00 [13:34:00]line НСП 1% : 7.52 [13:34:00]line НДС 12% : 90.30 [13:34:00]line Наличными: 850.00 [13:34:00]line Безнал.: 0.00 [13:34:00]line Место: АЗС № 113 "Партнер Нефть" [13:34:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:34:00]line СНО: Общий режим [13:34:00]line Чек 97 28.10.2024 13:33 [13:34:00]line Смена: 554 ФФД: 1.0 [13:34:00]line ЗНМ: 0300000087 [13:34:00]line РНМ: 0000000000091644 [13:34:00]line Версия ККМ: 001 [13:34:00]line ФМ: 0000000000874662 [13:34:00]line ФД: 72569 [13:34:00]line ФПД: 70609727408462 [13:34:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T133359&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72569&fm=70609727408462&tin=02508201610067®Number=0000000000091644&sum=85000 [13:34:00]written 0, free lines is 4095 [13:34:00]OFD Sender: Processing packet 72569 [packets to send 273, broken 272] [13:34:00]ProducePacketName [13:34:00]name=ofd_packets/00072569 [13:34:00]OFD Sender: To server: pG, [13:34:00]CommunicateWithHost lk.salyk.kg:30040 [13:34:00]ConnectInit lk.salyk.kg [13:34:00]Write to MH i2c: 01 00 00 8C 03 8F [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 07 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: 01 07 00 8C 03 00 00 00 00 00 CF 0C 71 [13:34:00]RasterBufferAndPrint [13:34:00]line [13:34:00]line [13:34:00]line [13:34:00]line [13:34:00]line [13:34:00]written 0, free lines is 3286 [13:34:00]MH_Cut [13:34:00]Write to MH i2c: D1 01 00 93 03 01 68 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: D1 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: D1 01 00 [13:34:00]MH_I2C_Read... [13:34:00]Read from MH i2c: D1 01 00 93 03 00 67 [13:34:00]Write to MH i2c: 01 00 00 94 03 97 [13:34:00]Write i2c OK [13:34:00]MH_I2C_Read... [13:34:01]Connected sock=9 [13: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 34 36 36 32 0E 01 00 00 26 55 06 01 71 07 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 C7 92 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 79 1B 01 00 35 04 06 00 40 38 1B B8 49 4E 5E E2 7F D2 45 A6 EC 1E [13:34:01]*** Cut start [13:34:01]*** Partial cut [13:34:01]*** CUTSNS_PIN = 1 [13:34:01]*** CUTSNS_PIN = 0 [13:34:01]*** Brake cut motor [13:34:01]Read from MH i2c: 01 [13:34:01]MH_I2C_Read... [13:34:01]*** Stop cut motor [13:34:01]*** Cut end [13:34:01]Read from MH i2c: 01 07 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 FF 0F AC [13:34:01]process_action close_receipt done [13:34:01]requested_data is exist [13:34:01]produce_requested_data [13:34:01]requested_item fm.sn is exist - process it [13:34:01]wFMCommunicate request_size=4 [13:34:01]MH_SAM_APDU [13:34:01]CAPDU: 80 11 00 00 [13:34:01]Write to MH i2c: E2 08 00 95 03 80 11 00 00 00 00 00 00 12 [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:01]Read from MH i2c: E2 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 17 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: E2 17 00 95 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 66 [13:34:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:34:01]wFMCommunicate OK [13:34:01]requested_item fd.num is exist - process it [13:34:01]SAM_PROTO_GetFieldsCounters [13:34:01]wFMCommunicate request_size=4 [13:34:01]MH_SAM_APDU [13:34:01]CAPDU: 80 13 00 00 [13:34:01]Write to MH i2c: E2 08 00 96 03 80 13 00 00 00 00 00 00 15 [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:02]Read from MH i2c: E2 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 62 00 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 62 00 96 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [13: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 79 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:02]wFMCommunicate OK [13:34:02]SAM_PROTO_GetFieldsCounters done [13:34:02]requested_item shift.num is exist - process it [13:34:02]requested_item shift.opened is exist - process it [13:34:02]req_shift_opened [13:34:02]FM_GetShiftState [13:34:02]SAM_PROTO_GetShiftState [13:34:02]wFMCommunicate request_size=4 [13:34:02]MH_SAM_APDU [13:34:02]CAPDU: 80 13 01 00 [13:34:02]Write to MH i2c: E2 08 00 97 03 80 13 01 00 00 00 00 00 17 [13:34:02]Write i2c OK [13:34:02]MH_I2C_Read... [13:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:02]Read from MH i2c: E2 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 97 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7F [13:34:02]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:34:02]wFMCommunicate OK [13:34:02]SAM_PROTO_GetShiftState done [13:34:02]FM_GetShiftState done [13:34:02]req_shift_opened done [13:34:02]requested_item shift.open_date is exist - process it [13:34:02]req_shift_open_date [13:34:02]req_shift_open_date done [13:34:02]produce_requested_data done [13:34:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72569,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:34:02]process_action_free close_receipt [13:34:02]json_value_free [13:34:02]json_value_free done [13:34:02]process_json_proto returns [13:34:02]Send response to host [13:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72569,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:34:02]free response buf [13:34:02]execute_script done [13:34:02]execute_script returns [13:34:02]free content buf [13:34:02]Sock 7.Close socket [13:34:02]Sock 7.Thread stoped [13:34:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 A9 96 47 00 D7 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 34 36 36 32 10 04 04 00 79 1B 01 00 F4 03 04 00 86 3D 1F 67 B6 04 01 00 00 15 12 54 56 3D FD 23 5F [13:34:03]CommunicateWithHost err = 0 [13:34:03]CheckOFDResponse [13:34:03]1017 (14) - 77093643461234 [13:34:03]1041 (16) - 0000000000874662 [13:34:03]1040 (4) - 72569 [13:34:03]1012 (4) - 28.10.2024 07:30 [13:34:03]1206 (1) - 0 [13:34:03]OFD Sender: Remove packet 72569 [13:34:03]ProducePacketName [13:34:03]name=ofd_packets/00072569 [13:34:03]NVStorageDeleteData [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:09]recv_with_timeout no data received [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:23]OFD Sender: No OFD packet to send [13:34:24]recv_with_timeout no data received [13:34:28]OFD Sender: No OFD packet to send [13:34:33]OFD Sender: No OFD packet to send [13:34:37]recv_with_timeout no data received [13:34:38]OFD Sender: No OFD packet to send [13:34:43]OFD Sender: No OFD packet to send [13:34:48]OFD Sender: No OFD packet to send [13:34:53]OFD Sender: No OFD packet to send [13:34:58]OFD Sender: No OFD packet to send [13:34:59]recv_with_timeout no data received [13:35:03]OFD Sender: No OFD packet to send [13:35:08]OFD Sender: No OFD packet to send [13:35:10]recv_with_timeout no data received [13:35:13]OFD Sender: No OFD packet to send [13:35:18]OFD Sender: No OFD packet to send [13:35:23]OFD Sender: No OFD packet to send [13:35:28]OFD Sender: No OFD packet to send [13:35:33]OFD Sender: No OFD packet to send [13:35:38]OFD Sender: No OFD packet to send [13:35:43]OFD Sender: No OFD packet to send [13:35:47]recv_with_timeout no data received [13:35:48]OFD Sender: No OFD packet to send [13:35:53]OFD Sender: No OFD packet to send [13:35:58]recv_with_timeout no data received [13:35:58]OFD Sender: No OFD packet to send [13:36:03]OFD Sender: No OFD packet to send [13:36:08]OFD Sender: No OFD packet to send [13:36:13]OFD Sender: No OFD packet to send [13:36:18]OFD Sender: No OFD packet to send [13:36:23]OFD Sender: No OFD packet to send [13:36:28]OFD Sender: No OFD packet to send [13:36:33]OFD Sender: No OFD packet to send [13:36:38]OFD Sender: No OFD packet to send [13:36:43]OFD Sender: No OFD packet to send [13:36:44]accept exits with 10 [13:36:44]New connection [13:36:44]New thread 3067133284 created [13:36:44]Thread 3066989924 joined [13:36:44]Waiting for new connection... [13:36:44] Sock 10.Parse request [13:36:44]Sock 10.Check first char [13:36:44]Sock 10.First char is OK [13:36:44]request: POST /json_proto HTTP/1.0 [13:36:44]Method: POST [13:36:44]URL: /json_proto [13:36:44]Method is POST - this is cgi request [13:36:44]url: /json_proto [13:36:44]query_string will be loaded in cgi processing [13:36:44]execute_cgi json_proto POST (null) [13:36:44]execute_cgi path=json_proto method=POST [13:36:44]POST find Content-Length [13:36:44]Host: 172.17.43.195:8080 [13:36:44]Content-Length: 681 [13:36:44]Content-Type: application/json [13:36:44] [13:36:44]POST finish read [13:36:44]Found Content-Length = 681 [13:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:44]execute_script... [13:36: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)952039", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 21.860, "sum" : 850.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 850.00, "total" : 850.00, "payments": [ { "type": 0, "sum" : 850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:36:44]POST & json_proto [13:36:44]process_json_proto [13:36:44]json parsed OK: [13:36:44]protocol is kg_v1.0 [13:36:44]action value=close_receipt [13:36:44]process_action close_receipt [13:36:44]cmd_close_receipt [13:36:44]MH_GetDate [13:36:44]Write to MH i2c: F0 00 00 98 03 8A [13:36:44]Write i2c OK [13:36:44]MH_I2C_Read... [13:36:44]Read from MH i2c: F0 [13:36:44]MH_I2C_Read... [13:36:44]Read from MH i2c: F0 09 00 [13:36:44]MH_I2C_Read... [13:36:44]Read from MH i2c: F0 09 00 98 03 00 6D 93 1F 67 74 2C AD 66 CC [13:36:44]GetLastDocTimeStamp 1730122439 [13:36:44]current date 1730122605 [13:36:44]FM_GetShiftState [13:36:44]SAM_PROTO_GetShiftState [13:36:44]wFMCommunicate request_size=4 [13:36:44]MH_SAM_APDU [13:36:44]CAPDU: 80 13 01 00 [13:36:44]Write to MH i2c: E2 08 00 99 03 80 13 01 00 00 00 00 00 19 [13:36:44]Write i2c OK [13:36:44]MH_I2C_Read... [13:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:36:44]Read from MH i2c: E2 [13:36:44]MH_I2C_Read... [13:36:44]Read from MH i2c: E2 0E 00 [13:36:44]MH_I2C_Read... [13:36:44]Read from MH i2c: E2 0E 00 99 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 81 [13:36:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:36:44]wFMCommunicate OK [13:36:44]SAM_PROTO_GetShiftState done [13:36:44]FM_GetShiftState done [13:36:44]opened in 1730074113 [13:36:44]opened+sec_in_day 1730160513 [13:36:44]quantity*price = 85035 [13:36:44]sum+1 = 85036 [13:36:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.35 ИТОГО: 850.00 Внесено: 850.00 СДАЧА: 0.00 НСП 1% : 7.52 НДС 12% : 90.30 Наличными: 850.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 99 28.10.2024 13:40 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72571 ФПД: 137187581512074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134015&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72571&fm=137187581512074&tin=02508201610067®Number=0000000000091644&sum=85000 [13:40:15]StoreToDocumentArchive [13:40:15]shift 554 fd 72571 [13:40:15]save to /storage/0554/doc_00072571 [13:40:15]save last doc name /storage/0554/doc_00072571 to /storage/kkm_last_doc_name [13:40:15]save OK [13:40:15]Clear old archive folders... [13:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:40:15]tlvbuf is 004299C0 [13:40:15]SAM_PROTO_ClearQueue [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 09 00 00 [13:40:15]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]SAM_PROTO_ClearQueue done [13:40:15]KKMCreateOFDPacket [13:40:15]OFDProtocolAddRootSTLVToBuf [13:40:15]FM_MakeSignedData [13:40:15]FM_MakeSignedData [13:40:15]SAM_PROTO_SignData [13:40:15]wFMCommunicate request_size=4 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 01 02 [13:40:15]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:15]Read from MH i2c: E2 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 [13:40:15]MH_I2C_Read... [13:40:15]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:40:15]RAPDU: 90 00 [13:40:15]wFMCommunicate OK [13:40:15]wFMCommunicate request_size=255 [13:40:15]MH_SAM_APDU [13:40:15]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 94 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1B 01 00 35 04 06 00 7C C5 [13:40:15]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 94 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1B 01 00 35 04 06 00 7C C5 00 00 8B [13:40:15]Write i2c OK [13:40:15]MH_I2C_Read... [13:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:16]Read from MH i2c: E2 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 03 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:40:16]RAPDU: 90 00 [13:40:16]wFMCommunicate OK [13:40:16]wFMCommunicate request_size=9 [13:40:16]MH_SAM_APDU [13:40:16]CAPDU: 80 0D 02 02 04 79 10 49 8A [13:40:16]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 79 10 49 8A 00 00 0C [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:16]Read from MH i2c: E2 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 03 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:40:16]RAPDU: 90 00 [13:40:16]wFMCommunicate OK [13:40:16]wFMCommunicate request_size=4 [13:40:16]MH_SAM_APDU [13:40:16]CAPDU: 80 0D 03 02 [13:40:16]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:16]Read from MH i2c: E2 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 0B 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 0B 00 2F 00 00 DC A5 02 65 FD 87 1E 24 90 00 59 [13:40:16]RAPDU: DC A5 02 65 FD 87 1E 24 90 00 [13:40:16]wFMCommunicate OK [13:40:16]SAM_PROTO_SignData done [13:40:16]FM_MakeSignedData done [13:40:16]CreateOFDProtocolMessage [13:40:16]wFMCommunicate request_size=4 [13:40:16]MH_SAM_APDU [13:40:16]CAPDU: 80 11 00 00 [13:40:16]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:16]Read from MH i2c: E2 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: E2 17 00 [13:40:16]MH_I2C_Read... [13:40:16]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 34 36 36 32 90 00 FE [13:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:40:16]wFMCommunicate OK [13:40:16]CreateOFDProtocolMessage done [13:40:16]OFDSenderStorePacket 72571 [13:40:16]StoreOFDPacket docnum=72571 [13:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 0A 1C 06 01 75 5F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 94 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1B 01 00 35 04 06 00 7C C5 79 10 49 8A DC A5 02 65 FD 87 1E 24 [13:40:16]CheckFolder [13:40:16]dirname=/storage/ofd_packets [13:40:16]CheckFolder done [13:40:16]ProducePacketName [13:40:16]name=ofd_packets/00072571 [13:40:16]NVStorageSaveData ofd_packets/00072571 [13:40:16]File name is /storage/ofd_packets/00072571 [13:40:16]Write 300 bytes [13:40:16]NVStorageSaveData done [13:40:16]OFDSenderStorePacket done [13:40:16]KKMCreateOFDPacket done [13:40:16]NVStorageSaveData kkm_last_timestamp [13:40:16]File name is /storage/kkm_last_timestamp [13:40:16]Write 4 bytes [13:40:16]NVStorageSaveData done [13:40:16]ExternCall_PrintAddStr [13:40:16]wPrintStart [13:40:16]Write to MH i2c: 01 00 00 31 00 31 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:40:16]RasterBufferAndPrint [13:40:16]line Счет N : (1)952041 [13:40:16]line ИНН: 02508201610067 [13:40:16]line Контрольно-Кассовый Чек [13:40:16]line ПРОДАЖА [13:40:16]line ТРК (МРК, ГНК) : 71 [13:40:16]line Товар: 2711190000 [13:40:16]line ГАЗ-К-3 [13:40:16]line 21.860 * 38.90 [13:40:16]line = 850.35 [13:40:16]line НДС 12% НСП 1% [13:40:16]line > о реализуемом товаре [13:40:16]line ОКРУГЛЕНИЕ: -0.35 [13:40:16]line ИТОГО: 850.00 [13:40:16]line Внесено: 850.00 [13:40:16]line СДАЧА: 0.00 [13:40:16]line НСП 1% : 7.52 [13:40:16]line НДС 12% : 90.30 [13:40:16]line Наличными: 850.00 [13:40:16]line Безнал.: 0.00 [13:40:16]line Место: АЗС № 113 "Партнер Нефть" [13:40:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [13:40:16]line СНО: Общий режим [13:40:16]line Чек 99 28.10.2024 13:40 [13:40:16]line Смена: 554 ФФД: 1.0 [13:40:16]line ЗНМ: 0300000087 [13:40:16]line РНМ: 0000000000091644 [13:40:16]line Версия ККМ: 001 [13:40:16]line ФМ: 0000000000874662 [13:40:16]line ФД: 72571 [13:40:16]line ФПД: 137187581512074 [13:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T134015&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72571&fm=137187581512074&tin=02508201610067®Number=0000000000091644&sum=85000 [13:40:16]written 0, free lines is 4095 [13:40:16]OFD Sender: Processing packet 72571 [packets to send 274, broken 273] [13:40:16]ProducePacketName [13:40:16]name=ofd_packets/00072571 [13:40:16]OFD Sender: To server: pG, [13:40:16]CommunicateWithHost lk.salyk.kg:30040 [13:40:16]ConnectInit lk.salyk.kg [13:40:16]Write to MH i2c: 01 00 00 5C 00 5C [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 D8 0C 47 [13:40:16]RasterBufferAndPrint [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]line [13:40:16]written 0, free lines is 3310 [13:40:16]MH_Cut [13:40:16]Write to MH i2c: D1 01 00 63 00 01 35 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 [13:40:16]MH_I2C_Read... [13:40:16]Read from MH i2c: D1 01 00 63 00 00 34 [13:40:16]Write to MH i2c: 01 00 00 64 00 64 [13:40:16]Write i2c OK [13:40:16]MH_I2C_Read... [13:40:17]*** Cut start [13:40:17]*** Partial cut [13:40:17]*** CUTSNS_PIN = 1 [13:40:17]*** CUTSNS_PIN = 0 [13:40:17]*** Brake cut motor [13:40:18]Read from MH i2c: 01 [13:40:18]MH_I2C_Read... [13:40:18]*** Stop cut motor [13:40:18]*** Cut end [13:40:18]Read from MH i2c: 01 07 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [13:40:18]process_action close_receipt done [13:40:18]requested_data is exist [13:40:18]produce_requested_data [13:40:18]requested_item fm.sn is exist - process it [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 11 00 00 [13:40:18]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 33 [13:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [13:40:18]wFMCommunicate OK [13:40:18]requested_item fd.num is exist - process it [13:40:18]SAM_PROTO_GetFieldsCounters [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 13 00 00 [13:40:18]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 62 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [13:40: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_GetFieldsCounters done [13:40:18]requested_item shift.num is exist - process it [13:40:18]requested_item shift.opened is exist - process it [13:40:18]req_shift_opened [13:40:18]FM_GetShiftState [13:40:18]SAM_PROTO_GetShiftState [13:40:18]wFMCommunicate request_size=4 [13:40:18]MH_SAM_APDU [13:40:18]CAPDU: 80 13 01 00 [13:40:18]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [13:40:18]Write i2c OK [13:40:18]MH_I2C_Read... [13:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:18]Read from MH i2c: E2 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 [13:40:18]MH_I2C_Read... [13:40:18]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4C [13:40:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [13:40:18]wFMCommunicate OK [13:40:18]SAM_PROTO_GetShiftState done [13:40:18]FM_GetShiftState done [13:40:18]req_shift_opened done [13:40:18]requested_item shift.open_date is exist - process it [13:40:18]req_shift_open_date [13:40:18]req_shift_open_date done [13:40:18]produce_requested_data done [13:40:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72571,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [13:40:18]process_action_free close_receipt [13:40:18]json_value_free [13:40:18]json_value_free done [13:40:18]process_json_proto returns [13:40:18]Send response to host [13:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72571,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [13:40:18]free response buf [13:40:18]execute_script done [13:40:18]execute_script returns [13:40:18]free content buf [13:40:18]Sock 9.Close socket [13:40:18]Sock 9.Thread stoped [13:40:18]recv_with_timeout no data received [13:40:19]Connected sock=11 [13:40:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 0A 1C 06 01 75 5F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 64 55 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 2B 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 46 23 00 00 00 00 07 04 06 00 08 4C 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 3F 94 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7B 1B 01 00 35 04 06 00 7C C5 79 10 49 8A DC A5 02 65 FD 87 1E 24 [13:40:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 CD 29 47 00 65 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 34 36 36 32 10 04 04 00 7B 1B 01 00 F4 03 04 00 00 3F 1F 67 B6 04 01 00 00 1A B3 A9 52 BE F1 73 CE [13:40:22]CommunicateWithHost err = 0 [13:40:22]CheckOFDResponse [13:40:22]1017 (14) - 77093643461234 [13:40:22]1041 (16) - 0000000000874662 [13:40:22]1040 (4) - 72571 [13:40:22]1012 (4) - 28.10.2024 07:36 [13:40:22]1206 (1) - 0 [13:40:22]OFD Sender: Remove packet 72571 [13:40:22]ProducePacketName [13:40:22]name=ofd_packets/00072571 [13:40:22]NVStorageDeleteData [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:47]recv_with_timeout no data received [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:09]recv_with_timeout no data received [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:26]recv_with_timeout no data received [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:58]OFD Sender: No OFD packet to send [13:43:03]OFD Sender: No OFD packet to send [13:43:08]OFD Sender: No OFD packet to send [13:43:10]recv_with_timeout no data received [13:43:13]OFD Sender: No OFD packet to send [13:43:18]OFD Sender: No OFD packet to send [13:43:21]recv_with_timeout no data received [13:43:23]OFD Sender: No OFD packet to send [13:43:28]OFD Sender: No OFD packet to send [13:43:33]OFD Sender: No OFD packet to send [13:43:38]OFD Sender: No OFD packet to send [13:43:43]OFD Sender: No OFD packet to send [13:43:48]OFD Sender: No OFD packet to send [13:43:53]OFD Sender: No OFD packet to send [13:43:58]OFD Sender: No OFD packet to send [13:44:03]OFD Sender: No OFD packet to send [13:44:08]OFD Sender: No OFD packet to send [13:44:13]OFD Sender: No OFD packet to send [13:44:17]recv_with_timeout no data received [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:42]recv_with_timeout no data received [13:44:43]OFD Sender: No OFD packet to send [13:44:48]OFD Sender: No OFD packet to send [13:44:53]OFD Sender: No OFD packet to send [13:44:58]OFD Sender: No OFD packet to send [13:45:03]OFD Sender: No OFD packet to send [13:45:08]OFD Sender: No OFD packet to send [13:45:13]OFD Sender: No OFD packet to send [13:45:18]OFD Sender: No OFD packet to send [13:45:23]OFD Sender: No OFD packet to send [13:45:28]OFD Sender: No OFD packet to send [13:45:33]OFD Sender: No OFD packet to send [13:45:38]OFD Sender: No OFD packet to send [13:45:43]OFD Sender: No OFD packet to send [13:45:48]OFD Sender: No OFD packet to send [13:45:53]OFD Sender: No OFD packet to send [13:45:55]recv_with_timeout no data received [13:45:58]OFD Sender: No OFD packet to send [13:46:03]OFD Sender: No OFD packet to send [13:46:05]recv_with_timeout no data received [13:46:08]OFD Sender: No OFD packet to send [13:46:13]OFD Sender: No OFD packet to send [13:46:17]recv_with_timeout no data received [13:46:18]OFD Sender: No OFD packet to send [13:46:23]OFD Sender: No OFD packet to send [13:46:28]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:47]recv_with_timeout no data received [13:48:48]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:45]recv_with_timeout no data received [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:16]recv_with_timeout no data received [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:19]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:20]recv_with_timeout no data received [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:37]recv_with_timeout no data received [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:47]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:18]recv_with_timeout no data received [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]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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]recv_with_timeout no data received [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:42]recv_with_timeout no data received [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:09]recv_with_timeout no data received [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:39]OFD Sender: No OFD packet to send [13:57:44]OFD Sender: No OFD packet to send [13:57:49]OFD Sender: No OFD packet to send [13:57:54]OFD Sender: No OFD packet to send [13:57:59]OFD Sender: No OFD packet to send [13:58:04]OFD Sender: No OFD packet to send [13:58:09]OFD Sender: No OFD packet to send [13:58:14]OFD Sender: No OFD packet to send [13:58:19]OFD Sender: No OFD packet to send [13:58:24]OFD Sender: No OFD packet to send [13:58:29]OFD Sender: No OFD packet to send [13:58:34]OFD Sender: No OFD packet to send [13:58:39]OFD Sender: No OFD packet to send [13:58:44]OFD Sender: No OFD packet to send [13:58:49]OFD Sender: No OFD packet to send [13:58:51]recv_with_timeout no data received [13:58:54]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:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:16]recv_with_timeout no data received [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:41]recv_with_timeout no data received [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:18:06]ConnectInit Can't connect to host [14:18:09]OFD Sender: Processing packet 72572 [packets to send 275, broken 273] [14:18:09]ProducePacketName [14:18:09]name=ofd_packets/00072572 [14:18:09]OFD Sender: To server: pG, [14:18:09]CommunicateWithHost lk.salyk.kg:30040 [14:18:09]ConnectInit lk.salyk.kg [14:20:24]ConnectInit Can't connect to host [14:20:24]CommunicateWithHost connect error [14:20:24]CommunicateWithHost err = -1 [14:20:24]OFD Sender: Server communicate error [14:20:29]OFD Sender: Processing packet 72572 [packets to send 275, broken 273] [14:20:29]ProducePacketName [14:20:29]name=ofd_packets/00072572 [14:20:29]OFD Sender: To server: pG, [14:20:29]CommunicateWithHost lk.salyk.kg:30040 [14:20:29]ConnectInit lk.salyk.kg [14:20:29]Connected sock=7 [14:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 EA 87 06 01 BB 06 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 C8 B4 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 3D BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D BF 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 36 9A 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7C 1B 01 00 35 04 06 00 07 89 00 02 FA 75 A4 3C 06 4C 00 0E 09 61 [14:20:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 62 94 47 00 D4 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 34 36 36 32 10 04 04 00 7C 1B 01 00 F4 03 04 00 6B 48 1F 67 B6 04 01 00 00 95 66 D1 2F 3F 29 0F EC [14:20:30]CommunicateWithHost err = 0 [14:20:30]CheckOFDResponse [14:20:30]1017 (14) - 77093643461234 [14:20:30]1041 (16) - 0000000000874662 [14:20:30]1040 (4) - 72572 [14:20:30]1012 (4) - 28.10.2024 08:16 [14:20:30]1206 (1) - 0 [14:20:30]OFD Sender: Remove packet 72572 [14:20:30]ProducePacketName [14:20:30]name=ofd_packets/00072572 [14:20:30]NVStorageDeleteData [14:20:30]OFD Sender: Processing packet 72573 [packets to send 274, broken 273] [14:20:30]ProducePacketName [14:20:30]name=ofd_packets/00072573 [14:20:30]OFD Sender: To server: pG, [14:20:30]CommunicateWithHost lk.salyk.kg:30040 [14:20:30]ConnectInit lk.salyk.kg [14:20:31]Connected sock=7 [14:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 A4 47 08 01 D6 33 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AA 19 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8F C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 69 9C 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7D 1B 01 00 35 04 06 00 67 0E 2B EB 63 5D A1 1D CB 95 2A 37 1F BF [14:20:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 31 A4 47 00 DC 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 34 36 36 32 10 04 04 00 7D 1B 01 00 F4 03 04 00 6C 48 1F 67 B6 04 01 00 00 03 65 43 B8 85 3E E6 72 [14:20:32]CommunicateWithHost err = 0 [14:20:32]CheckOFDResponse [14:20:32]1017 (14) - 77093643461234 [14:20:32]1041 (16) - 0000000000874662 [14:20:32]1040 (4) - 72573 [14:20:32]1012 (4) - 28.10.2024 08:16 [14:20:32]1206 (1) - 0 [14:20:32]OFD Sender: Remove packet 72573 [14:20:32]ProducePacketName [14:20:32]name=ofd_packets/00072573 [14:20:32]NVStorageDeleteData [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [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]recv_with_timeout no data received [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]recv_with_timeout no data received [14:22:27]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:56]recv_with_timeout no data received [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:21]recv_with_timeout no data received [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:49]recv_with_timeout no data received [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:00]recv_with_timeout no data received [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:06]recv_with_timeout no data received [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25: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:09]recv_with_timeout no data received [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:56]recv_with_timeout no data received [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:07]recv_with_timeout no data received [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:30]accept exits with 12 [14:27:30]New connection [14:27:30]New thread 3066666340 created [14:27:30]Thread 3066809700 joined [14:27:30]Waiting for new connection... [14:27:30] Sock 12.Parse request [14:27:30]Sock 12.Check first char [14:27:30]Sock 12.First char is OK [14:27:30]request: POST /json_proto HTTP/1.0 [14:27:30]Method: POST [14:27:30]URL: /json_proto [14:27:30]Method is POST - this is cgi request [14:27:30]url: /json_proto [14:27:30]query_string will be loaded in cgi processing [14:27:30]execute_cgi json_proto POST (null) [14:27:30]execute_cgi path=json_proto method=POST [14:27:30]POST find Content-Length [14:27:30]Host: 172.17.43.195:8080 [14:27:30]Content-Length: 792 [14:27:30]Content-Type: application/json [14:27:30] [14:27:30]POST finish read [14:27:30]Found Content-Length = 792 [14:27:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]execute_script... [14:27: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)952048", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:30]POST & json_proto [14:27:30]process_json_proto [14:27:30]json parsed OK: [14:27:30]protocol is kg_v1.0 [14:27:30]action value=close_receipt [14:27:30]process_action close_receipt [14:27:30]cmd_close_receipt [14:27:30]MH_GetDate [14:27:30]Write to MH i2c: F0 00 00 FD 00 EC [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: F0 09 00 FD 00 00 53 9F 1F 67 74 2C AD 66 20 [14:27:30]GetLastDocTimeStamp 1730124905 [14:27:30]current date 1730125651 [14:27:30]FM_GetShiftState [14:27:30]SAM_PROTO_GetShiftState [14:27:30]wFMCommunicate request_size=4 [14:27:30]MH_SAM_APDU [14:27:30]CAPDU: 80 13 01 00 [14:27:30]Write to MH i2c: E2 08 00 FE 00 80 13 01 00 00 00 00 00 7B [14:27:30]Write i2c OK [14:27:30]MH_I2C_Read... [14:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:30]Read from MH i2c: E2 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 [14:27:30]MH_I2C_Read... [14:27:30]Read from MH i2c: E2 0E 00 FE 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E3 [14:27:30]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:27:30]wFMCommunicate OK [14:27:30]SAM_PROTO_GetShiftState done [14:27:30]FM_GetShiftState done [14:27:30]opened in 1730074113 [14:27:30]opened+sec_in_day 1730160513 [14:27:30]quantity*price = 0 [14:27:30]sum+1 = 1 [14:27:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 102 28.10.2024 14:27 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72574 ФПД: 215763848610590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142731&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72574&fm=215763848610590&tin=02508201610067®Number=0000000000091644&sum=0 [14:27:31]StoreToDocumentArchive [14:27:31]shift 554 fd 72574 [14:27:31]save to /storage/0554/doc_00072574 [14:27:31]save last doc name /storage/0554/doc_00072574 to /storage/kkm_last_doc_name [14:27:31]save OK [14:27:31]Clear old archive folders... [14:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:27:31]tlvbuf is 004444B0 [14:27:31]SAM_PROTO_ClearQueue [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 09 00 00 [14:27:31]Write to MH i2c: E2 08 00 0B 01 80 09 00 00 00 00 00 00 7E [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_ClearQueue done [14:27:31]KKMCreateOFDPacket [14:27:31]OFDProtocolAddRootSTLVToBuf [14:27:31]FM_MakeSignedData [14:27:31]FM_MakeSignedData [14:27:31]SAM_PROTO_SignData [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 01 02 [14:27:31]Write to MH i2c: E2 08 00 0C 01 80 0D 01 02 00 00 00 00 86 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=255 [14:27:31]MH_SAM_APDU [14:27: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 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 66 00 00 00 F4 03 04 00 53 9F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1B 01 00 35 04 06 00 C4 [14:27:31]Write to MH i2c: E2 02 01 0D 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 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 66 00 00 00 F4 03 04 00 53 9F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1B 01 00 35 04 06 00 C4 00 00 0B [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=10 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 02 02 05 3C 6F 8D 43 1E [14:27:31]Write to MH i2c: E2 0D 00 0E 01 80 0D 02 02 05 00 3C 6F 8D 43 1E 00 00 2C [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [14:27:31]RAPDU: 90 00 [14:27:31]wFMCommunicate OK [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 0D 03 02 [14:27:31]Write to MH i2c: E2 08 00 0F 01 80 0D 03 02 00 00 00 00 8B [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 0B 00 0F 01 00 15 9F D1 A1 A2 A7 44 00 90 00 3F [14:27:31]RAPDU: 15 9F D1 A1 A2 A7 44 00 90 00 [14:27:31]wFMCommunicate OK [14:27:31]SAM_PROTO_SignData done [14:27:31]FM_MakeSignedData done [14:27:31]CreateOFDProtocolMessage [14:27:31]wFMCommunicate request_size=4 [14:27:31]MH_SAM_APDU [14:27:31]CAPDU: 80 11 00 00 [14:27:31]Write to MH i2c: E2 08 00 10 01 80 11 00 00 00 00 00 00 8B [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:31]Read from MH i2c: E2 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: E2 17 00 10 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DF [14:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:31]wFMCommunicate OK [14:27:31]CreateOFDProtocolMessage done [14:27:31]OFDSenderStorePacket 72574 [14:27:31]StoreOFDPacket docnum=72574 [14:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AB B9 07 01 2B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 53 9F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1B 01 00 35 04 06 00 C4 3C 6F 8D 43 1E 15 9F D1 A1 A2 A7 44 00 [14:27:31]CheckFolder [14:27:31]dirname=/storage/ofd_packets [14:27:31]CheckFolder done [14:27:31]ProducePacketName [14:27:31]name=ofd_packets/00072574 [14:27:31]NVStorageSaveData ofd_packets/00072574 [14:27:31]File name is /storage/ofd_packets/00072574 [14:27:31]Write 301 bytes [14:27:31]NVStorageSaveData done [14:27:31]OFDSenderStorePacket done [14:27:31]KKMCreateOFDPacket done [14:27:31]NVStorageSaveData kkm_last_timestamp [14:27:31]File name is /storage/kkm_last_timestamp [14:27:31]Write 4 bytes [14:27:31]NVStorageSaveData done [14:27:31]ExternCall_PrintAddStr [14:27:31]wPrintStart [14:27:31]Write to MH i2c: 01 00 00 11 01 12 [14:27:31]Write i2c OK [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 [14:27:31]MH_I2C_Read... [14:27:31]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 FF 0F 27 [14:27:31]RasterBufferAndPrint [14:27:31]line Счет N : (1)952048 [14:27:31]line ИНН: 02508201610067 [14:27:31]line Контрольно-Кассовый Чек [14:27:31]line ПРОДАЖА [14:27:31]line ТРК (МРК, ГНК) : 53 [14:27:31]line Товар: 2710124130 [14:27:31]line Аи-92-К-5 [14:27:31]line 50.000 * 0.00 [14:27:31]line = 0.00 [14:27:31]line НДС 12% НСП 1% [14:27:31]line > о реализуемом товаре [14:27:31]line ИТОГО: 0.00 [14:27:31]line НСП 1% : 0.00 [14:27:31]line НДС 12% : 0.00 [14:27:31]line Наличными: 0.00 [14:27:31]line Безнал.: 0.00 [14:27:31]line Место: АЗС № 113 "Партнер Нефть" [14:27:31]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:27:31]line СНО: Общий режим [14:27:31]line Чек 102 28.10.2024 14:27 [14:27:31]line Смена: 554 ФФД: 1.0 [14:27:31]line ЗНМ: 0300000087 [14:27:31]line РНМ: 0000000000091644 [14:27:31]line Версия ККМ: 001 [14:27:31]line Талоны: Топливная Карта [14:27:31]line 03047 [14:27:31]line ФМ: 0000000000874662 [14:27:31]line ФД: 72574 [14:27:31]line ФПД: 215763848610590 [14:27:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T142731&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72574&fm=215763848610590&tin=02508201610067®Number=0000000000091644&sum=0 [14:27:32]OFD Sender: Processing packet 72574 [packets to send 274, broken 273] [14:27:32]ProducePacketName [14:27:32]name=ofd_packets/00072574 [14:27:32]OFD Sender: To server: pG, [14:27:32]CommunicateWithHost lk.salyk.kg:30040 [14:27:32]ConnectInit lk.salyk.kg [14:27:32]written 0, free lines is 4095 [14:27:32]Write to MH i2c: 01 00 00 3B 01 3C [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: 01 07 00 3B 01 00 00 00 00 00 DA 0C 29 [14:27:32]RasterBufferAndPrint [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]line [14:27:32]written 0, free lines is 3296 [14:27:32]MH_Cut [14:27:32]Write to MH i2c: D1 01 00 42 01 01 15 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 [14:27:32]MH_I2C_Read... [14:27:32]Read from MH i2c: D1 01 00 42 01 00 14 [14:27:32]Write to MH i2c: 01 00 00 43 01 44 [14:27:32]Write i2c OK [14:27:32]MH_I2C_Read... [14:27:33]*** Cut start [14:27:33]*** Partial cut [14:27:33]*** CUTSNS_PIN = 1 [14:27:33]*** CUTSNS_PIN = 0 [14:27:33]*** Brake cut motor [14:27:34]Connected sock=7 [14:27:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 AB B9 07 01 2B E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 66 00 00 00 F4 03 04 00 53 9F 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7E 1B 01 00 35 04 06 00 C4 3C 6F 8D 43 1E 15 9F D1 A1 A2 A7 44 00 [14:27:34]Read from MH i2c: 01 [14:27:34]MH_I2C_Read... [14:27:34]*** Stop cut motor [14:27:34]*** Cut end [14:27:34]Read from MH i2c: 01 07 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: 01 07 00 43 01 00 00 00 00 00 FF 0F 59 [14:27:34]process_action close_receipt done [14:27:34]requested_data is exist [14:27:34]produce_requested_data [14:27:34]requested_item fm.sn is exist - process it [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 11 00 00 [14:27:34]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 13 [14:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:27:34]wFMCommunicate OK [14:27:34]requested_item fd.num is exist - process it [14:27:34]SAM_PROTO_GetFieldsCounters [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 00 00 [14:27:34]Write to MH i2c: E2 08 00 45 01 80 13 00 00 00 00 00 00 C2 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 62 00 45 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:27: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetFieldsCounters done [14:27:34]requested_item shift.num is exist - process it [14:27:34]requested_item shift.opened is exist - process it [14:27:34]req_shift_opened [14:27:34]FM_GetShiftState [14:27:34]SAM_PROTO_GetShiftState [14:27:34]wFMCommunicate request_size=4 [14:27:34]MH_SAM_APDU [14:27:34]CAPDU: 80 13 01 00 [14:27:34]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [14:27:34]Write i2c OK [14:27:34]MH_I2C_Read... [14:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:34]Read from MH i2c: E2 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 [14:27:34]MH_I2C_Read... [14:27:34]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [14:27:34]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:27:34]wFMCommunicate OK [14:27:34]SAM_PROTO_GetShiftState done [14:27:34]FM_GetShiftState done [14:27:34]req_shift_opened done [14:27:34]requested_item shift.open_date is exist - process it [14:27:34]req_shift_open_date [14:27:34]req_shift_open_date done [14:27:34]produce_requested_data done [14:27:34]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72574,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [14:27:34]process_action_free close_receipt [14:27:34]json_value_free [14:27:34]json_value_free done [14:27:34]process_json_proto returns [14:27:34]Send response to host [14:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72574,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [14:27:34]free response buf [14:27:34]execute_script done [14:27:34]execute_script returns [14:27:34]free content buf [14:27:34]Sock 12.Close socket [14:27:34]Sock 12.Thread stoped [14:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E9 15 47 00 72 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 34 36 36 32 10 04 04 00 7E 1B 01 00 F4 03 04 00 13 4A 1F 67 B6 04 01 00 00 CF C7 E9 66 CF F0 F9 BA [14:27:35]CommunicateWithHost err = 0 [14:27:35]CheckOFDResponse [14:27:35]1017 (14) - 77093643461234 [14:27:35]1041 (16) - 0000000000874662 [14:27:35]1040 (4) - 72574 [14:27:35]1012 (4) - 28.10.2024 08:23 [14:27:35]1206 (1) - 0 [14:27:35]OFD Sender: Remove packet 72574 [14:27:35]ProducePacketName [14:27:35]name=ofd_packets/00072574 [14:27:35]NVStorageDeleteData [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]recv_with_timeout no data received [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:48]recv_with_timeout no data received [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]recv_with_timeout no data received [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:42]recv_with_timeout no data received [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:54]recv_with_timeout no data received [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:29]recv_with_timeout no data received [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34: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:25]recv_with_timeout no data received [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:58]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:44]accept exits with 9 [14:35:44]New connection [14:35:44]New thread 3066809700 created [14:35:44]Thread 3066666340 joined [14:35:44]Waiting for new connection... [14:35:44] Sock 9.Parse request [14:35:44]Sock 9.Check first char [14:35:44]Sock 9.First char is OK [14:35:44]request: POST /json_proto HTTP/1.0 [14:35:44]Method: POST [14:35:44]URL: /json_proto [14:35:44]Method is POST - this is cgi request [14:35:44]url: /json_proto [14:35:44]query_string will be loaded in cgi processing [14:35:44]execute_cgi json_proto POST (null) [14:35:44]execute_cgi path=json_proto method=POST [14:35:44]POST find Content-Length [14:35:44]Host: 172.17.43.195:8080 [14:35:44]Content-Length: 805 [14:35:44]Content-Type: application/json [14:35:44] [14:35:44]POST finish read [14:35:44]Found Content-Length = 805 [14:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A4379521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:44]execute_script... [14:35:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952049", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\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\u000A4379521", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:44]POST & json_proto [14:35:44]process_json_proto [14:35:44]json parsed OK: [14:35:44]protocol is kg_v1.0 [14:35:44]action value=close_receipt [14:35:44]process_action close_receipt [14:35:44]cmd_close_receipt [14:35:44]MH_GetDate [14:35:44]Write to MH i2c: F0 00 00 47 01 37 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 09 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: F0 09 00 47 01 00 41 A1 1F 67 74 2C AD 66 5B [14:35:44]GetLastDocTimeStamp 1730125651 [14:35:44]current date 1730126145 [14:35:44]FM_GetShiftState [14:35:44]SAM_PROTO_GetShiftState [14:35:44]wFMCommunicate request_size=4 [14:35:44]MH_SAM_APDU [14:35:44]CAPDU: 80 13 01 00 [14:35:44]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [14:35:44]Write i2c OK [14:35:44]MH_I2C_Read... [14:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:44]Read from MH i2c: E2 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 [14:35:44]MH_I2C_Read... [14:35:44]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2E [14:35:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:35:44]wFMCommunicate OK [14:35:44]SAM_PROTO_GetShiftState done [14:35:44]FM_GetShiftState done [14:35:44]opened in 1730074113 [14:35:44]opened+sec_in_day 1730160513 [14:35:44]quantity*price = 0 [14:35:44]sum+1 = 1 [14:35:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 103 28.10.2024 14:35 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливные Талоны 4379521 ФМ: 0000000000874662 ФД: 72575 ФПД: 233871503555244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143545&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72575&fm=233871503555244&tin=02508201610067®Number=0000000000091644&sum=0 [14:35:45]StoreToDocumentArchive [14:35:45]shift 554 fd 72575 [14:35:45]save to /storage/0554/doc_00072575 [14:35:45]save last doc name /storage/0554/doc_00072575 to /storage/kkm_last_doc_name [14:35:45]save OK [14:35:45]Clear old archive folders... [14:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:35:45]tlvbuf is 003BF1A0 [14:35:45]SAM_PROTO_ClearQueue [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 09 00 00 [14:35:45]Write to MH i2c: E2 08 00 55 01 80 09 00 00 00 00 00 00 C8 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [14:35:45]RAPDU: 90 00 [14:35:45]wFMCommunicate OK [14:35:45]SAM_PROTO_ClearQueue done [14:35:45]KKMCreateOFDPacket [14:35:45]OFDProtocolAddRootSTLVToBuf [14:35:45]FM_MakeSignedData [14:35:45]FM_MakeSignedData [14:35:45]SAM_PROTO_SignData [14:35:45]wFMCommunicate request_size=4 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 0D 01 02 [14:35:45]Write to MH i2c: E2 08 00 56 01 80 0D 01 02 00 00 00 00 D0 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:45]Read from MH i2c: E2 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 [14:35:45]MH_I2C_Read... [14:35:45]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [14:35:45]RAPDU: 90 00 [14:35:45]wFMCommunicate OK [14:35:45]wFMCommunicate request_size=255 [14:35:45]MH_SAM_APDU [14:35:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 67 00 00 00 F4 03 04 00 41 A1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1B 01 00 35 04 06 00 [14:35:45]Write to MH i2c: E2 02 01 57 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 67 00 00 00 F4 03 04 00 41 A1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1B 01 00 35 04 06 00 00 00 19 [14:35:45]Write i2c OK [14:35:45]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [14:35:46]RAPDU: 90 00 [14:35:46]wFMCommunicate OK [14:35:46]wFMCommunicate request_size=11 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 0D 02 02 06 D4 B4 73 E4 7A AC [14:35:46]Write to MH i2c: E2 0E 00 58 01 80 0D 02 02 06 00 D4 B4 73 E4 7A AC 00 00 E4 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [14:35:46]RAPDU: 90 00 [14:35:46]wFMCommunicate OK [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 0D 03 02 [14:35:46]Write to MH i2c: E2 08 00 59 01 80 0D 03 02 00 00 00 00 D5 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0B 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 0B 00 59 01 00 11 7B 18 A5 52 DE D5 56 90 00 7A [14:35:46]RAPDU: 11 7B 18 A5 52 DE D5 56 90 00 [14:35:46]wFMCommunicate OK [14:35:46]SAM_PROTO_SignData done [14:35:46]FM_MakeSignedData done [14:35:46]CreateOFDProtocolMessage [14:35:46]wFMCommunicate request_size=4 [14:35:46]MH_SAM_APDU [14:35:46]CAPDU: 80 11 00 00 [14:35:46]Write to MH i2c: E2 08 00 5A 01 80 11 00 00 00 00 00 00 D5 [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:46]Read from MH i2c: E2 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: E2 17 00 5A 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 29 [14:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:35:46]wFMCommunicate OK [14:35:46]CreateOFDProtocolMessage done [14:35:46]OFDSenderStorePacket 72575 [14:35:46]StoreOFDPacket docnum=72575 [14:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AB E8 08 01 94 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 67 00 00 00 F4 03 04 00 41 A1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1B 01 00 35 04 06 00 D4 B4 73 E4 7A AC 11 7B 18 A5 52 DE D5 56 [14:35:46]CheckFolder [14:35:46]dirname=/storage/ofd_packets [14:35:46]CheckFolder done [14:35:46]ProducePacketName [14:35:46]name=ofd_packets/00072575 [14:35:46]NVStorageSaveData ofd_packets/00072575 [14:35:46]File name is /storage/ofd_packets/00072575 [14:35:46]Write 302 bytes [14:35:46]NVStorageSaveData done [14:35:46]OFDSenderStorePacket done [14:35:46]KKMCreateOFDPacket done [14:35:46]NVStorageSaveData kkm_last_timestamp [14:35:46]File name is /storage/kkm_last_timestamp [14:35:46]Write 4 bytes [14:35:46]NVStorageSaveData done [14:35:46]OFD Sender: Processing packet 72575 [packets to send 274, broken 273] [14:35:46]ProducePacketName [14:35:46]name=ofd_packets/00072575 [14:35:46]OFD Sender: To server: pG, [14:35:46]CommunicateWithHost lk.salyk.kg:30040 [14:35:46]ConnectInit lk.salyk.kg [14:35:46]ExternCall_PrintAddStr [14:35:46]wPrintStart [14:35:46]Write to MH i2c: 01 00 00 5B 01 5C [14:35:46]Write i2c OK [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 [14:35:46]MH_I2C_Read... [14:35:46]Read from MH i2c: 01 07 00 5B 01 00 00 00 00 00 FF 0F 71 [14:35:46]RasterBufferAndPrint [14:35:46]line Счет N : (1)952049 [14:35:46]line ИНН: 02508201610067 [14:35:46]line Контрольно-Кассовый Чек [14:35:46]line ПРОДАЖА [14:35:46]line ТРК (МРК, ГНК) : 33 [14:35:46]line Товар: 2710194210 [14:35:46]line ДТ(л)-К-5 [14:35:46]line 20.000 * 0.00 [14:35:46]line = 0.00 [14:35:46]line НДС 12% НСП 1% [14:35:46]line > о реализуемом товаре [14:35:46]line ИТОГО: 0.00 [14:35:46]line НСП 1% : 0.00 [14:35:46]line НДС 12% : 0.00 [14:35:46]line Наличными: 0.00 [14:35:46]line Безнал.: 0.00 [14:35:46]line Место: АЗС № 113 "Партнер Нефть" [14:35:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:35:46]line СНО: Общий режим [14:35:46]line Чек 103 28.10.2024 14:35 [14:35:46]line Смена: 554 ФФД: 1.0 [14:35:46]line ЗНМ: 0300000087 [14:35:46]line РНМ: 0000000000091644 [14:35:46]line Версия ККМ: 001 [14:35:46]line Талоны: Топливные Талоны [14:35:46]line 4379521 [14:35:46]line ФМ: 0000000000874662 [14:35:46]line ФД: 72575 [14:35:46]line ФПД: 233871503555244 [14:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T143545&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72575&fm=233871503555244&tin=02508201610067®Number=0000000000091644&sum=0 [14:35:46]written 0, free lines is 4095 [14:35:47]Write to MH i2c: 01 00 00 85 01 86 [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: 01 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: 01 07 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: 01 07 00 85 01 00 00 00 00 00 E0 0C 79 [14:35:47]RasterBufferAndPrint [14:35:47]line [14:35:47]line [14:35:47]line [14:35:47]line [14:35:47]line [14:35:47]written 0, free lines is 3302 [14:35:47]MH_Cut [14:35:47]Write to MH i2c: D1 01 00 8C 01 01 5F [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: D1 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: D1 01 00 [14:35:47]MH_I2C_Read... [14:35:47]Read from MH i2c: D1 01 00 8C 01 00 5E [14:35:47]Write to MH i2c: 01 00 00 8D 01 8E [14:35:47]Write i2c OK [14:35:47]MH_I2C_Read... [14:35:47]Connected sock=11 [14:35:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 AB E8 08 01 94 C0 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 67 00 00 00 F4 03 04 00 41 A1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 7F 1B 01 00 35 04 06 00 D4 B4 73 E4 7A AC 11 7B 18 A5 52 DE D5 56 [14:35:47]*** Cut start [14:35:47]*** Partial cut [14:35:47]*** CUTSNS_PIN = 1 [14:35:47]*** CUTSNS_PIN = 0 [14:35:48]*** Brake cut motor [14:35:48]Read from MH i2c: 01 [14:35:48]MH_I2C_Read... [14:35:48]*** Stop cut motor [14:35:48]*** Cut end [14:35:48]Read from MH i2c: 01 07 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: 01 07 00 8D 01 00 00 00 00 00 FF 0F A3 [14:35:48]process_action close_receipt done [14:35:48]requested_data is exist [14:35:48]produce_requested_data [14:35:48]requested_item fm.sn is exist - process it [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 11 00 00 [14:35:48]Write to MH i2c: E2 08 00 8E 01 80 11 00 00 00 00 00 00 09 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 17 00 8E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5D [14:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:35:48]wFMCommunicate OK [14:35:48]requested_item fd.num is exist - process it [14:35:48]SAM_PROTO_GetFieldsCounters [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 13 00 00 [14:35:48]Write to MH i2c: E2 08 00 8F 01 80 13 00 00 00 00 00 00 0C [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 62 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 62 00 8F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [14:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 7F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_GetFieldsCounters done [14:35:48]requested_item shift.num is exist - process it [14:35:48]requested_item shift.opened is exist - process it [14:35:48]req_shift_opened [14:35:48]FM_GetShiftState [14:35:48]SAM_PROTO_GetShiftState [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 13 01 00 [14:35:48]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 76 [14:35:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_GetShiftState done [14:35:48]FM_GetShiftState done [14:35:48]req_shift_opened done [14:35:48]requested_item shift.open_date is exist - process it [14:35:48]req_shift_open_date [14:35:48]req_shift_open_date done [14:35:48]produce_requested_data done [14:35:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72575,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [14:35:48]process_action_free close_receipt [14:35:48]json_value_free [14:35:48]json_value_free done [14:35:48]process_json_proto returns [14:35:48]Send response to host [14:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72575,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [14:35:48]free response buf [14:35:48]execute_script done [14:35:48]execute_script returns [14:35:48]free content buf [14:35:48]Sock 9.Close socket [14:35:48]Sock 9.Thread stoped [14:35:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B1 63 47 00 9B 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 34 36 36 32 10 04 04 00 7F 1B 01 00 F4 03 04 00 00 4C 1F 67 B6 04 01 00 00 DA 9B 10 35 67 F7 F5 55 [14:35:49]CommunicateWithHost err = 0 [14:35:49]CheckOFDResponse [14:35:49]1017 (14) - 77093643461234 [14:35:49]1041 (16) - 0000000000874662 [14:35:49]1040 (4) - 72575 [14:35:49]1012 (4) - 28.10.2024 08:32 [14:35:49]1206 (1) - 0 [14:35:49]OFD Sender: Remove packet 72575 [14:35:49]ProducePacketName [14:35:49]name=ofd_packets/00072575 [14:35:49]NVStorageDeleteData [14:35:49]OFD Sender: No OFD packet to send [14:35:52]recv_with_timeout no data received [14:35:54]OFD Sender: No OFD packet to send [14:35:59]OFD Sender: No OFD packet to send [14:36:02]recv_with_timeout no data received [14:36:04]OFD Sender: No OFD packet to send [14:36:09]OFD Sender: No OFD packet to send [14:36:14]OFD Sender: No OFD packet to send [14:36:16]recv_with_timeout no data received [14:36:19]OFD Sender: No OFD packet to send [14:36:24]OFD Sender: No OFD packet to send [14:36:29]OFD Sender: No OFD packet to send [14:36:34]OFD Sender: No OFD packet to send [14:36:39]OFD Sender: No OFD packet to send [14:36:44]OFD Sender: No OFD packet to send [14:36:49]OFD Sender: No OFD packet to send [14:36:54]OFD Sender: No OFD packet to send [14:36:59]OFD Sender: No OFD packet to send [14:37:04]OFD Sender: No OFD packet to send [14:37:08]recv_with_timeout no data received [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]recv_with_timeout no data received [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:44]OFD Sender: No OFD packet to send [14:38:49]OFD Sender: No OFD packet to send [14:38:54]OFD Sender: No OFD packet to send [14:38:59]OFD Sender: No OFD packet to send [14:39:04]recv_with_timeout no data received [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:38]recv_with_timeout no data received [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:17]recv_with_timeout no data received [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:49]recv_with_timeout no data received [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:05]recv_with_timeout no data received [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:22]recv_with_timeout no data received [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:44]recv_with_timeout no data received [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:41]recv_with_timeout no data received [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:49]recv_with_timeout no data received [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]recv_with_timeout no data received [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:27]recv_with_timeout no data received [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:46]recv_with_timeout no data received [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:19]recv_with_timeout no data received [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]recv_with_timeout no data received [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:49]recv_with_timeout no data received [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]recv_with_timeout no data received [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:36]recv_with_timeout no data received [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:11]accept exits with 7 [14:48:11]New connection [14:48:11]New thread 3066666340 created [14:48:11]Thread 3066809700 joined [14:48:11]Waiting for new connection... [14:48:11] Sock 7.Parse request [14:48:11]Sock 7.Check first char [14:48:11]Sock 7.First char is OK [14:48:11]request: POST /json_proto HTTP/1.0 [14:48:11]Method: POST [14:48:11]URL: /json_proto [14:48:11]Method is POST - this is cgi request [14:48:11]url: /json_proto [14:48:11]query_string will be loaded in cgi processing [14:48:11]execute_cgi json_proto POST (null) [14:48:11]execute_cgi path=json_proto method=POST [14:48:11]POST find Content-Length [14:48:11]Host: 172.17.43.195:8080 [14:48:11]Content-Length: 792 [14:48:11]Content-Type: application/json [14:48:11] [14:48:11]POST finish read [14:48:11]Found Content-Length = 792 [14:48:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:11]execute_script... [14:48: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)952050", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:11]POST & json_proto [14:48:11]process_json_proto [14:48:11]json parsed OK: [14:48:11]protocol is kg_v1.0 [14:48:11]action value=close_receipt [14:48:11]process_action close_receipt [14:48:11]cmd_close_receipt [14:48:11]MH_GetDate [14:48:11]Write to MH i2c: F0 00 00 91 01 81 [14:48:11]Write i2c OK [14:48:11]MH_I2C_Read... [14:48:11]Read from MH i2c: F0 [14:48:11]MH_I2C_Read... [14:48:11]Read from MH i2c: F0 09 00 [14:48:11]MH_I2C_Read... [14:48:11]Read from MH i2c: F0 09 00 91 01 00 2C A4 1F 67 74 2C AD 66 93 [14:48:11]GetLastDocTimeStamp 1730126145 [14:48:11]current date 1730126892 [14:48:11]FM_GetShiftState [14:48:11]SAM_PROTO_GetShiftState [14:48:11]wFMCommunicate request_size=4 [14:48:11]MH_SAM_APDU [14:48:11]CAPDU: 80 13 01 00 [14:48:11]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [14:48:11]Write i2c OK [14:48:11]MH_I2C_Read... [14:48:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:11]Read from MH i2c: E2 [14:48:11]MH_I2C_Read... [14:48:11]Read from MH i2c: E2 0E 00 [14:48:11]MH_I2C_Read... [14:48:11]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 78 [14:48:11]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:48:11]wFMCommunicate OK [14:48:11]SAM_PROTO_GetShiftState done [14:48:11]FM_GetShiftState done [14:48:11]opened in 1730074113 [14:48:11]opened+sec_in_day 1730160513 [14:48:11]quantity*price = 0 [14:48:11]sum+1 = 1 [14:48:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 104 28.10.2024 14:48 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72576 ФПД: 105883459258118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144812&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72576&fm=105883459258118&tin=02508201610067®Number=0000000000091644&sum=0 [14:48:12]StoreToDocumentArchive [14:48:12]shift 554 fd 72576 [14:48:12]save to /storage/0554/doc_00072576 [14:48:12]save last doc name /storage/0554/doc_00072576 to /storage/kkm_last_doc_name [14:48:12]save OK [14:48:12]Clear old archive folders... [14:48:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:12]tlvbuf is 003D14A0 [14:48:12]SAM_PROTO_ClearQueue [14:48:12]wFMCommunicate request_size=4 [14:48:12]MH_SAM_APDU [14:48:12]CAPDU: 80 09 00 00 [14:48:12]Write to MH i2c: E2 08 00 9F 01 80 09 00 00 00 00 00 00 12 [14:48:12]Write i2c OK [14:48:12]MH_I2C_Read... [14:48:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:12]Read from MH i2c: E2 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 03 00 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [14:48:12]RAPDU: 90 00 [14:48:12]wFMCommunicate OK [14:48:12]SAM_PROTO_ClearQueue done [14:48:12]KKMCreateOFDPacket [14:48:12]OFDProtocolAddRootSTLVToBuf [14:48:12]FM_MakeSignedData [14:48:12]FM_MakeSignedData [14:48:12]SAM_PROTO_SignData [14:48:12]wFMCommunicate request_size=4 [14:48:12]MH_SAM_APDU [14:48:12]CAPDU: 80 0D 01 02 [14:48:12]Write to MH i2c: E2 08 00 A0 01 80 0D 01 02 00 00 00 00 1A [14:48:12]Write i2c OK [14:48:12]MH_I2C_Read... [14:48:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:12]Read from MH i2c: E2 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 03 00 [14:48:12]MH_I2C_Read... [14:48:12]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [14:48:12]RAPDU: 90 00 [14:48:12]wFMCommunicate OK [14:48:12]wFMCommunicate request_size=255 [14:48:12]MH_SAM_APDU [14:48:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2C A4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1B 01 00 35 04 06 00 60 [14:48:12]Write to MH i2c: E2 02 01 A1 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2C A4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1B 01 00 35 04 06 00 60 00 00 4A [14:48:12]Write i2c OK [14:48:12]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]wFMCommunicate request_size=10 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 02 02 05 4C E9 FA 07 06 [14:48:13]Write to MH i2c: E2 0D 00 A2 01 80 0D 02 02 05 00 4C E9 FA 07 06 00 00 63 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [14:48:13]RAPDU: 90 00 [14:48:13]wFMCommunicate OK [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 0D 03 02 [14:48:13]Write to MH i2c: E2 08 00 A3 01 80 0D 03 02 00 00 00 00 1F [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 0B 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 0B 00 A3 01 00 C6 4C 20 66 C3 E4 28 EB 90 00 72 [14:48:13]RAPDU: C6 4C 20 66 C3 E4 28 EB 90 00 [14:48:13]wFMCommunicate OK [14:48:13]SAM_PROTO_SignData done [14:48:13]FM_MakeSignedData done [14:48:13]CreateOFDProtocolMessage [14:48:13]wFMCommunicate request_size=4 [14:48:13]MH_SAM_APDU [14:48:13]CAPDU: 80 11 00 00 [14:48:13]Write to MH i2c: E2 08 00 A4 01 80 11 00 00 00 00 00 00 1F [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:13]Read from MH i2c: E2 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 17 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: E2 17 00 A4 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 73 [14:48:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:48:13]wFMCommunicate OK [14:48:13]CreateOFDProtocolMessage done [14:48:13]OFDSenderStorePacket 72576 [14:48:13]StoreOFDPacket docnum=72576 [14:48:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BF BC 07 01 05 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2C A4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1B 01 00 35 04 06 00 60 4C E9 FA 07 06 C6 4C 20 66 C3 E4 28 EB [14:48:13]CheckFolder [14:48:13]dirname=/storage/ofd_packets [14:48:13]CheckFolder done [14:48:13]ProducePacketName [14:48:13]name=ofd_packets/00072576 [14:48:13]NVStorageSaveData ofd_packets/00072576 [14:48:13]File name is /storage/ofd_packets/00072576 [14:48:13]Write 301 bytes [14:48:13]NVStorageSaveData done [14:48:13]OFDSenderStorePacket done [14:48:13]KKMCreateOFDPacket done [14:48:13]NVStorageSaveData kkm_last_timestamp [14:48:13]File name is /storage/kkm_last_timestamp [14:48:13]Write 4 bytes [14:48:13]NVStorageSaveData done [14:48:13]ExternCall_PrintAddStr [14:48:13]wPrintStart [14:48:13]Write to MH i2c: 01 00 00 A5 01 A6 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 A5 01 00 00 00 00 00 FF 0F BB [14:48:13]RasterBufferAndPrint [14:48:13]line Счет N : (1)952050 [14:48:13]line ИНН: 02508201610067 [14:48:13]line Контрольно-Кассовый Чек [14:48:13]line ПРОДАЖА [14:48:13]line ТРК (МРК, ГНК) : 63 [14:48:13]line Товар: 2710124130 [14:48:13]line Аи-92-К-5 [14:48:13]line 29.900 * 0.00 [14:48:13]line = 0.00 [14:48:13]line НДС 12% НСП 1% [14:48:13]line > о реализуемом товаре [14:48:13]line ИТОГО: 0.00 [14:48:13]line НСП 1% : 0.00 [14:48:13]line НДС 12% : 0.00 [14:48:13]line Наличными: 0.00 [14:48:13]line Безнал.: 0.00 [14:48:13]line Место: АЗС № 113 "Партнер Нефть" [14:48:13]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:48:13]line СНО: Общий режим [14:48:13]line Чек 104 28.10.2024 14:48 [14:48:13]line Смена: 554 ФФД: 1.0 [14:48:13]line ЗНМ: 0300000087 [14:48:13]line РНМ: 0000000000091644 [14:48:13]line Версия ККМ: 001 [14:48:13]line Талоны: Топливная Карта [14:48:13]line 03047 [14:48:13]line ФМ: 0000000000874662 [14:48:13]line ФД: 72576 [14:48:13]line ФПД: 105883459258118 [14:48:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T144812&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72576&fm=105883459258118&tin=02508201610067®Number=0000000000091644&sum=0 [14:48:13]written 0, free lines is 4095 [14:48:13]OFD Sender: Processing packet 72576 [packets to send 274, broken 273] [14:48:13]ProducePacketName [14:48:13]name=ofd_packets/00072576 [14:48:13]OFD Sender: To server: pG, [14:48:13]CommunicateWithHost lk.salyk.kg:30040 [14:48:13]ConnectInit lk.salyk.kg [14:48:13]Write to MH i2c: 01 00 00 CF 01 D0 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: 01 07 00 CF 01 00 00 00 00 00 E6 0C C9 [14:48:13]RasterBufferAndPrint [14:48:13]line [14:48:13]line [14:48:13]line [14:48:13]line [14:48:13]line [14:48:13]written 0, free lines is 3309 [14:48:13]MH_Cut [14:48:13]Write to MH i2c: D1 01 00 D6 01 01 A9 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: D1 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: D1 01 00 [14:48:13]MH_I2C_Read... [14:48:13]Read from MH i2c: D1 01 00 D6 01 00 A8 [14:48:13]Write to MH i2c: 01 00 00 D7 01 D8 [14:48:13]Write i2c OK [14:48:13]MH_I2C_Read... [14:48:14]*** Cut start [14:48:14]*** Partial cut [14:48:14]*** CUTSNS_PIN = 1 [14:48:14]*** CUTSNS_PIN = 0 [14:48:14]*** Brake cut motor [14:48:15]Read from MH i2c: 01 [14:48:15]MH_I2C_Read... [14:48:15]*** Stop cut motor [14:48:15]*** Cut end [14:48:15]Read from MH i2c: 01 07 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: 01 07 00 D7 01 00 00 00 00 00 FF 0F ED [14:48:15]process_action close_receipt done [14:48:15]requested_data is exist [14:48:15]produce_requested_data [14:48:15]requested_item fm.sn is exist - process it [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 11 00 00 [14:48:15]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 17 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A7 [14:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:48:15]wFMCommunicate OK [14:48:15]requested_item fd.num is exist - process it [14:48:15]SAM_PROTO_GetFieldsCounters [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 13 00 00 [14:48:15]Write to MH i2c: E2 08 00 D9 01 80 13 00 00 00 00 00 00 56 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 62 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 62 00 D9 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [14:48:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 80 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:15]wFMCommunicate OK [14:48:15]SAM_PROTO_GetFieldsCounters done [14:48:15]requested_item shift.num is exist - process it [14:48:15]requested_item shift.opened is exist - process it [14:48:15]req_shift_opened [14:48:15]FM_GetShiftState [14:48:15]SAM_PROTO_GetShiftState [14:48:15]wFMCommunicate request_size=4 [14:48:15]MH_SAM_APDU [14:48:15]CAPDU: 80 13 01 00 [14:48:15]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [14:48:15]Write i2c OK [14:48:15]MH_I2C_Read... [14:48:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:15]Read from MH i2c: E2 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0E 00 [14:48:15]MH_I2C_Read... [14:48:15]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C0 [14:48:15]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:48:15]wFMCommunicate OK [14:48:15]SAM_PROTO_GetShiftState done [14:48:15]FM_GetShiftState done [14:48:15]req_shift_opened done [14:48:15]requested_item shift.open_date is exist - process it [14:48:15]req_shift_open_date [14:48:15]req_shift_open_date done [14:48:15]produce_requested_data done [14:48:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72576,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [14:48:15]process_action_free close_receipt [14:48:15]json_value_free [14:48:15]json_value_free done [14:48:15]process_json_proto returns [14:48:15]Send response to host [14:48:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72576,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [14:48:15]free response buf [14:48:15]execute_script done [14:48:15]execute_script returns [14:48:15]free content buf [14:48:15]Sock 7.Close socket [14:48:15]Sock 7.Thread stoped [14:48:17]Connected sock=11 [14:48:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BF BC 07 01 05 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 2C A4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 80 1B 01 00 35 04 06 00 60 4C E9 FA 07 06 C6 4C 20 66 C3 E4 28 EB [14:48:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BD 2D 47 00 43 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 34 36 36 32 10 04 04 00 80 1B 01 00 F4 03 04 00 EE 4E 1F 67 B6 04 01 00 00 30 C1 0D 6F 15 41 D3 63 [14:48:18]CommunicateWithHost err = 0 [14:48:18]CheckOFDResponse [14:48:18]1017 (14) - 77093643461234 [14:48:18]1041 (16) - 0000000000874662 [14:48:18]1040 (4) - 72576 [14:48:18]1012 (4) - 28.10.2024 08:44 [14:48:18]1206 (1) - 0 [14:48:18]OFD Sender: Remove packet 72576 [14:48:18]ProducePacketName [14:48:18]name=ofd_packets/00072576 [14:48:18]NVStorageDeleteData [14:48:18]OFD Sender: No OFD packet to send [14:48:23]OFD Sender: No OFD packet to send [14:48:28]OFD Sender: No OFD packet to send [14:48:33]OFD Sender: No OFD packet to send [14:48:36]recv_with_timeout no data received [14:48:38]OFD Sender: No OFD packet to send [14:48:43]OFD Sender: No OFD packet to send [14:48:46]recv_with_timeout no data received [14:48:48]OFD Sender: No OFD packet to send [14:48:53]OFD Sender: No OFD packet to send [14:48:58]OFD Sender: No OFD packet to send [14:49:03]OFD Sender: No OFD packet to send [14:49:08]OFD Sender: No OFD packet to send [14:49:13]OFD Sender: No OFD packet to send [14:49:18]OFD Sender: No OFD packet to send [14:49:23]OFD Sender: No OFD packet to send [14:49:28]OFD Sender: No OFD packet to send [14:49:33]OFD Sender: No OFD packet to send [14:49:38]OFD Sender: No OFD packet to send [14:49:39]recv_with_timeout no data received [14:49:43]OFD Sender: No OFD packet to send [14:49:48]OFD Sender: No OFD packet to send [14:49:53]OFD Sender: No OFD packet to send [14:49:58]OFD Sender: No OFD packet to send [14:49:58]recv_with_timeout no data received [14:50:03]OFD Sender: No OFD packet to send [14:50:08]OFD Sender: No OFD packet to send [14:50:13]OFD Sender: No OFD packet to send [14:50:17]recv_with_timeout no data received [14:50:18]OFD Sender: No OFD packet to send [14:50:23]OFD Sender: No OFD packet to send [14:50:28]OFD Sender: No OFD packet to send [14:50:33]OFD Sender: No OFD packet to send [14:50:38]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:48]recv_with_timeout no data received [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:16]recv_with_timeout no data received [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:26]recv_with_timeout no data received [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:36]recv_with_timeout no data received [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:06]recv_with_timeout no data received [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:29]OFD Sender: No OFD packet to send [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:40]recv_with_timeout no data received [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:40]recv_with_timeout no data received [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:14]recv_with_timeout no data received [14:54:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:44]OFD Sender: No OFD packet to send [14:54:49]OFD Sender: No OFD packet to send [14:54:54]OFD Sender: No OFD packet to send [14:54:59]OFD Sender: No OFD packet to send [14:54:59]accept exits with 10 [14:54:59]New connection [14:54:59]New thread 3066809700 created [14:54:59]Thread 3066666340 joined [14:54:59]Waiting for new connection... [14:54:59] Sock 10.Parse request [14:54:59]Sock 10.Check first char [14:54:59]Sock 10.First char is OK [14:54:59]request: POST /json_proto HTTP/1.0 [14:54:59]Method: POST [14:54:59]URL: /json_proto [14:54:59]Method is POST - this is cgi request [14:54:59]url: /json_proto [14:54:59]query_string will be loaded in cgi processing [14:54:59]execute_cgi json_proto POST (null) [14:54:59]execute_cgi path=json_proto method=POST [14:54:59]POST find Content-Length [14:54:59]Host: 172.17.43.195:8080 [14:54:59]Content-Length: 800 [14:54:59]Content-Type: application/json [14:54:59] [14:54:59]POST finish read [14:54:59]Found Content-Length = 800 [14:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:59]execute_script... [14:54: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)952051", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:59]POST & json_proto [14:54:59]process_json_proto [14:54:59]json parsed OK: [14:54:59]protocol is kg_v1.0 [14:54:59]action value=close_receipt [14:54:59]process_action close_receipt [14:54:59]cmd_close_receipt [14:54:59]MH_GetDate [14:54:59]Write to MH i2c: F0 00 00 DB 01 CB [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: F0 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: F0 09 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: F0 09 00 DB 01 00 C4 A5 1F 67 74 2C AD 66 76 [14:54:59]GetLastDocTimeStamp 1730126892 [14:54:59]current date 1730127300 [14:54:59]FM_GetShiftState [14:54:59]SAM_PROTO_GetShiftState [14:54:59]wFMCommunicate request_size=4 [14:54:59]MH_SAM_APDU [14:54:59]CAPDU: 80 13 01 00 [14:54:59]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [14:54:59]Write i2c OK [14:54:59]MH_I2C_Read... [14:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:59]Read from MH i2c: E2 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 [14:54:59]MH_I2C_Read... [14:54:59]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C2 [14:54:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:54:59]wFMCommunicate OK [14:54:59]SAM_PROTO_GetShiftState done [14:54:59]FM_GetShiftState done [14:54:59]opened in 1730074113 [14:54:59]opened+sec_in_day 1730160513 [14:54:59]quantity*price = 50041 [14:54:59]sum+1 = 50042 [14:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 105 28.10.2024 14:55 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72577 ФПД: 189717679884038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145501&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72577&fm=189717679884038&tin=02508201610067®Number=0000000000091644&sum=50041 [14:55:01]StoreToDocumentArchive [14:55:01]shift 554 fd 72577 [14:55:01]save to /storage/0554/doc_00072577 [14:55:01]save last doc name /storage/0554/doc_00072577 to /storage/kkm_last_doc_name [14:55:01]save OK [14:55:01]Clear old archive folders... [14:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:55:01]tlvbuf is 003C6E60 [14:55:01]SAM_PROTO_ClearQueue [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 09 00 00 [14:55:01]Write to MH i2c: E2 08 00 E9 01 80 09 00 00 00 00 00 00 5C [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [14:55:01]RAPDU: 90 00 [14:55:01]wFMCommunicate OK [14:55:01]SAM_PROTO_ClearQueue done [14:55:01]KKMCreateOFDPacket [14:55:01]OFDProtocolAddRootSTLVToBuf [14:55:01]FM_MakeSignedData [14:55:01]FM_MakeSignedData [14:55:01]SAM_PROTO_SignData [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 0D 01 02 [14:55:01]Write to MH i2c: E2 08 00 EA 01 80 0D 01 02 00 00 00 00 64 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [14:55:01]RAPDU: 90 00 [14:55:01]wFMCommunicate OK [14:55:01]wFMCommunicate request_size=255 [14:55:01]MH_SAM_APDU [14:55: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 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 69 00 00 00 F4 03 04 00 C5 A5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1B 01 00 35 04 06 00 AC [14:55:01]Write to MH i2c: E2 02 01 EB 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 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 69 00 00 00 F4 03 04 00 C5 A5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1B 01 00 35 04 06 00 AC 00 00 13 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [14:55:01]RAPDU: 90 00 [14:55:01]wFMCommunicate OK [14:55:01]wFMCommunicate request_size=10 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 0D 02 02 05 8C 16 EA C7 06 [14:55:01]Write to MH i2c: E2 0D 00 EC 01 80 0D 02 02 05 00 8C 16 EA C7 06 00 00 CA [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [14:55:01]RAPDU: 90 00 [14:55:01]wFMCommunicate OK [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 0D 03 02 [14:55:01]Write to MH i2c: E2 08 00 ED 01 80 0D 03 02 00 00 00 00 69 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 0B 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 0B 00 ED 01 00 D2 70 64 92 CA C9 AF 8E 90 00 72 [14:55:01]RAPDU: D2 70 64 92 CA C9 AF 8E 90 00 [14:55:01]wFMCommunicate OK [14:55:01]SAM_PROTO_SignData done [14:55:01]FM_MakeSignedData done [14:55:01]CreateOFDProtocolMessage [14:55:01]wFMCommunicate request_size=4 [14:55:01]MH_SAM_APDU [14:55:01]CAPDU: 80 11 00 00 [14:55:01]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:01]Read from MH i2c: E2 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 17 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BD [14:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:55:01]wFMCommunicate OK [14:55:01]CreateOFDProtocolMessage done [14:55:01]OFDSenderStorePacket 72577 [14:55:01]StoreOFDPacket docnum=72577 [14:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BE 1E 07 01 DC 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 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 69 00 00 00 F4 03 04 00 C5 A5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1B 01 00 35 04 06 00 AC 8C 16 EA C7 06 D2 70 64 92 CA C9 AF 8E [14:55:01]CheckFolder [14:55:01]dirname=/storage/ofd_packets [14:55:01]CheckFolder done [14:55:01]ProducePacketName [14:55:01]name=ofd_packets/00072577 [14:55:01]NVStorageSaveData ofd_packets/00072577 [14:55:01]File name is /storage/ofd_packets/00072577 [14:55:01]Write 301 bytes [14:55:01]NVStorageSaveData done [14:55:01]OFDSenderStorePacket done [14:55:01]KKMCreateOFDPacket done [14:55:01]NVStorageSaveData kkm_last_timestamp [14:55:01]File name is /storage/kkm_last_timestamp [14:55:01]Write 4 bytes [14:55:01]NVStorageSaveData done [14:55:01]ExternCall_PrintAddStr [14:55:01]wPrintStart [14:55:01]Write to MH i2c: 01 00 00 EF 01 F0 [14:55:01]Write i2c OK [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: 01 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: 01 07 00 [14:55:01]MH_I2C_Read... [14:55:01]Read from MH i2c: 01 07 00 EF 01 00 00 00 00 00 FF 0F 05 [14:55:01]RasterBufferAndPrint [14:55:01]line Счет N : (1)952051 [14:55:01]line ИНН: 02508201610067 [14:55:01]line Контрольно-Кассовый Чек [14:55:01]line ПРОДАЖА [14:55:01]line ТРК (МРК, ГНК) : 53 [14:55:01]line Товар: 2710124130 [14:55:01]line Аи-92-К-5 [14:55:01]line 7.480 * 66.90 [14:55:01]line = 500.41 [14:55:01]line НДС 12% НСП 1% [14:55:01]line > о реализуемом товаре [14:55:01]line ИТОГО: 500.41 [14:55:01]line НСП 1% : 4.43 [14:55:01]line НДС 12% : 53.14 [14:55:01]line Наличными: 0.00 [14:55:01]line Безнал.: 500.41 [14:55:01]line Место: АЗС № 113 "Партнер Нефть" [14:55:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:55:01]line СНО: Общий режим [14:55:01]line Чек 105 28.10.2024 14:55 [14:55:01]line Смена: 554 ФФД: 1.0 [14:55:01]line ЗНМ: 0300000087 [14:55:01]line РНМ: 0000000000091644 [14:55:01]line Версия ККМ: 001 [14:55:01]line Платежная система: O! деньги [14:55:01]line ФМ: 0000000000874662 [14:55:01]line ФД: 72577 [14:55:01]line ФПД: 189717679884038 [14:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145501&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72577&fm=189717679884038&tin=02508201610067®Number=0000000000091644&sum=50041 [14:55:01]written 0, free lines is 4095 [14:55:01]OFD Sender: Processing packet 72577 [packets to send 274, broken 273] [14:55:01]ProducePacketName [14:55:01]name=ofd_packets/00072577 [14:55:01]OFD Sender: To server: pG, [14:55:01]CommunicateWithHost lk.salyk.kg:30040 [14:55:01]ConnectInit lk.salyk.kg [14:55:02]Write to MH i2c: 01 00 00 19 02 1B [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: 01 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: 01 07 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: 01 07 00 19 02 00 00 00 00 00 E5 0C 13 [14:55:02]RasterBufferAndPrint [14:55:02]line [14:55:02]line [14:55:02]line [14:55:02]line [14:55:02]line [14:55:02]written 0, free lines is 3304 [14:55:02]MH_Cut [14:55:02]Write to MH i2c: D1 01 00 20 02 01 F4 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: D1 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: D1 01 00 [14:55:02]MH_I2C_Read... [14:55:02]Read from MH i2c: D1 01 00 20 02 00 F3 [14:55:02]Write to MH i2c: 01 00 00 21 02 23 [14:55:02]Write i2c OK [14:55:02]MH_I2C_Read... [14:55:02]*** Cut start [14:55:02]*** Partial cut [14:55:02]*** CUTSNS_PIN = 1 [14:55:02]*** CUTSNS_PIN = 0 [14:55:03]*** Brake cut motor [14:55:03]Connected sock=9 [14:55:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BE 1E 07 01 DC 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 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 69 00 00 00 F4 03 04 00 C5 A5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 81 1B 01 00 35 04 06 00 AC 8C 16 EA C7 06 D2 70 64 92 CA C9 AF 8E [14:55:03]Read from MH i2c: 01 [14:55:03]MH_I2C_Read... [14:55:03]*** Stop cut motor [14:55:03]*** Cut end [14:55:03]Read from MH i2c: 01 07 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: 01 07 00 21 02 00 00 00 00 00 FF 0F 38 [14:55:03]process_action close_receipt done [14:55:03]requested_data is exist [14:55:03]produce_requested_data [14:55:03]requested_item fm.sn is exist - process it [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 11 00 00 [14:55:03]Write to MH i2c: E2 08 00 22 02 80 11 00 00 00 00 00 00 9E [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 17 00 22 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [14:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:55:03]wFMCommunicate OK [14:55:03]requested_item fd.num is exist - process it [14:55:03]SAM_PROTO_GetFieldsCounters [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 13 00 00 [14:55:03]Write to MH i2c: E2 08 00 23 02 80 13 00 00 00 00 00 00 A1 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 62 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 62 00 23 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:55: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 81 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_GetFieldsCounters done [14:55:03]requested_item shift.num is exist - process it [14:55:03]requested_item shift.opened is exist - process it [14:55:03]req_shift_opened [14:55:03]FM_GetShiftState [14:55:03]SAM_PROTO_GetShiftState [14:55:03]wFMCommunicate request_size=4 [14:55:03]MH_SAM_APDU [14:55:03]CAPDU: 80 13 01 00 [14:55:03]Write to MH i2c: E2 08 00 24 02 80 13 01 00 00 00 00 00 A3 [14:55:03]Write i2c OK [14:55:03]MH_I2C_Read... [14:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:03]Read from MH i2c: E2 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0E 00 [14:55:03]MH_I2C_Read... [14:55:03]Read from MH i2c: E2 0E 00 24 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0B [14:55:03]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:55:03]wFMCommunicate OK [14:55:03]SAM_PROTO_GetShiftState done [14:55:03]FM_GetShiftState done [14:55:03]req_shift_opened done [14:55:03]requested_item shift.open_date is exist - process it [14:55:03]req_shift_open_date [14:55:03]req_shift_open_date done [14:55:03]produce_requested_data done [14:55:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72577,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [14:55:03]process_action_free close_receipt [14:55:03]json_value_free [14:55:03]json_value_free done [14:55:03]process_json_proto returns [14:55:03]Send response to host [14:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72577,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [14:55:03]free response buf [14:55:03]execute_script done [14:55:03]execute_script returns [14:55:03]free content buf [14:55:03]Sock 10.Close socket [14:55:03]Sock 10.Thread stoped [14:55:07]recv_with_timeout no data received [14:55:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C2 20 47 00 74 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 34 36 36 32 10 04 04 00 81 1B 01 00 F4 03 04 00 87 50 1F 67 B6 04 01 00 00 08 0E 1A 9D 8C E2 0E 56 [14:55:08]CommunicateWithHost err = 0 [14:55:08]CheckOFDResponse [14:55:08]1017 (14) - 77093643461234 [14:55:08]1041 (16) - 0000000000874662 [14:55:08]1040 (4) - 72577 [14:55:08]1012 (4) - 28.10.2024 08:51 [14:55:08]1206 (1) - 0 [14:55:08]OFD Sender: Remove packet 72577 [14:55:08]ProducePacketName [14:55:08]name=ofd_packets/00072577 [14:55:08]NVStorageDeleteData [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]recv_with_timeout no data received [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:39]recv_with_timeout no data received [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:50]recv_with_timeout no data received [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:44]recv_with_timeout no data received [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:05]recv_with_timeout no data received [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:29]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:20]recv_with_timeout no data received [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:32]recv_with_timeout no data received [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:47]accept exits with 7 [14:59:47]New connection [14:59:47]New thread 3066666340 created [14:59:47]Thread 3066809700 joined [14:59:47]Waiting for new connection... [14:59:47] Sock 7.Parse request [14:59:47]Sock 7.Check first char [14:59:47]Sock 7.First char is OK [14:59:47]request: POST /json_proto HTTP/1.0 [14:59:47]Method: POST [14:59:47]URL: /json_proto [14:59:47]Method is POST - this is cgi request [14:59:47]url: /json_proto [14:59:47]query_string will be loaded in cgi processing [14:59:47]execute_cgi json_proto POST (null) [14:59:47]execute_cgi path=json_proto method=POST [14:59:47]POST find Content-Length [14:59:47]Host: 172.17.43.195:8080 [14:59:47]Content-Length: 803 [14:59:47]Content-Type: application/json [14:59:47] [14:59:47]POST finish read [14:59:47]Found Content-Length = 803 [14:59:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:47]execute_script... [14:59: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)952052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:47]POST & json_proto [14:59:47]process_json_proto [14:59:47]json parsed OK: [14:59:47]protocol is kg_v1.0 [14:59:47]action value=close_receipt [14:59:47]process_action close_receipt [14:59:47]cmd_close_receipt [14:59:47]MH_GetDate [14:59:47]Write to MH i2c: F0 00 00 25 02 16 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 09 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: F0 09 00 25 02 00 E4 A6 1F 67 74 2C AD 66 E2 [14:59:47]GetLastDocTimeStamp 1730127301 [14:59:47]current date 1730127588 [14:59:47]FM_GetShiftState [14:59:47]SAM_PROTO_GetShiftState [14:59:47]wFMCommunicate request_size=4 [14:59:47]MH_SAM_APDU [14:59:47]CAPDU: 80 13 01 00 [14:59:47]Write to MH i2c: E2 08 00 26 02 80 13 01 00 00 00 00 00 A5 [14:59:47]Write i2c OK [14:59:47]MH_I2C_Read... [14:59:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:47]Read from MH i2c: E2 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0E 00 [14:59:47]MH_I2C_Read... [14:59:47]Read from MH i2c: E2 0E 00 26 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0D [14:59:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:59:47]wFMCommunicate OK [14:59:47]SAM_PROTO_GetShiftState done [14:59:47]FM_GetShiftState done [14:59:47]opened in 1730074113 [14:59:47]opened+sec_in_day 1730160513 [14:59:47]quantity*price = 300046 [14:59:47]sum+1 = 300048 [14:59:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 106 28.10.2024 14:59 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72578 ФПД: 6866985714680 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145948&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72578&fm=6866985714680&tin=02508201610067®Number=0000000000091644&sum=300047 [14:59:48]StoreToDocumentArchive [14:59:48]shift 554 fd 72578 [14:59:48]save to /storage/0554/doc_00072578 [14:59:48]save last doc name /storage/0554/doc_00072578 to /storage/kkm_last_doc_name [14:59:48]save OK [14:59:48]Clear old archive folders... [14:59:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:48]tlvbuf is 003C8A70 [14:59:48]SAM_PROTO_ClearQueue [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 09 00 00 [14:59:48]Write to MH i2c: E2 08 00 33 02 80 09 00 00 00 00 00 00 A7 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [14:59:48]RAPDU: 90 00 [14:59:48]wFMCommunicate OK [14:59:48]SAM_PROTO_ClearQueue done [14:59:48]KKMCreateOFDPacket [14:59:48]OFDProtocolAddRootSTLVToBuf [14:59:48]FM_MakeSignedData [14:59:48]FM_MakeSignedData [14:59:48]SAM_PROTO_SignData [14:59:48]wFMCommunicate request_size=4 [14:59:48]MH_SAM_APDU [14:59:48]CAPDU: 80 0D 01 02 [14:59:48]Write to MH i2c: E2 08 00 34 02 80 0D 01 02 00 00 00 00 AF [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:48]Read from MH i2c: E2 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 [14:59:48]MH_I2C_Read... [14:59:48]Read from MH i2c: E2 03 00 34 02 00 90 00 AA [14:59:48]RAPDU: 90 00 [14:59:48]wFMCommunicate OK [14:59:48]wFMCommunicate request_size=255 [14:59:48]MH_SAM_APDU [14:59: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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E4 A6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1B 01 00 35 04 06 00 06 [14:59:48]Write to MH i2c: E2 02 01 35 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E4 A6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1B 01 00 35 04 06 00 06 00 00 71 [14:59:48]Write i2c OK [14:59:48]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 35 02 00 90 00 AB [14:59:49]RAPDU: 90 00 [14:59:49]wFMCommunicate OK [14:59:49]wFMCommunicate request_size=10 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 0D 02 02 05 3E D8 3E 83 F8 [14:59:49]Write to MH i2c: E2 0D 00 36 02 80 0D 02 02 05 00 3E D8 3E 83 F8 00 00 8B [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [14:59:49]RAPDU: 90 00 [14:59:49]wFMCommunicate OK [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 0D 03 02 [14:59:49]Write to MH i2c: E2 08 00 37 02 80 0D 03 02 00 00 00 00 B4 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0B 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 0B 00 37 02 00 CE 10 CE F7 28 42 7C 13 90 00 51 [14:59:49]RAPDU: CE 10 CE F7 28 42 7C 13 90 00 [14:59:49]wFMCommunicate OK [14:59:49]SAM_PROTO_SignData done [14:59:49]FM_MakeSignedData done [14:59:49]CreateOFDProtocolMessage [14:59:49]wFMCommunicate request_size=4 [14:59:49]MH_SAM_APDU [14:59:49]CAPDU: 80 11 00 00 [14:59:49]Write to MH i2c: E2 08 00 38 02 80 11 00 00 00 00 00 00 B4 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:49]Read from MH i2c: E2 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 17 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: E2 17 00 38 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 08 [14:59:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:59:49]wFMCommunicate OK [14:59:49]CreateOFDProtocolMessage done [14:59:49]OFDSenderStorePacket 72578 [14:59:49]StoreOFDPacket docnum=72578 [14:59:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EA 08 07 01 6F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E4 A6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1B 01 00 35 04 06 00 06 3E D8 3E 83 F8 CE 10 CE F7 28 42 7C 13 [14:59:49]CheckFolder [14:59:49]dirname=/storage/ofd_packets [14:59:49]CheckFolder done [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00072578 [14:59:49]NVStorageSaveData ofd_packets/00072578 [14:59:49]File name is /storage/ofd_packets/00072578 [14:59:49]Write 301 bytes [14:59:49]NVStorageSaveData done [14:59:49]OFDSenderStorePacket done [14:59:49]KKMCreateOFDPacket done [14:59:49]NVStorageSaveData kkm_last_timestamp [14:59:49]File name is /storage/kkm_last_timestamp [14:59:49]Write 4 bytes [14:59:49]NVStorageSaveData done [14:59:49]ExternCall_PrintAddStr [14:59:49]wPrintStart [14:59:49]Write to MH i2c: 01 00 00 39 02 3B [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 39 02 00 00 00 00 00 FF 0F 50 [14:59:49]RasterBufferAndPrint [14:59:49]line Счет N : (1)952052 [14:59:49]line ИНН: 02508201610067 [14:59:49]line Контрольно-Кассовый Чек [14:59:49]line ПРОДАЖА [14:59:49]line ТРК (МРК, ГНК) : 53 [14:59:49]line Товар: 2710124130 [14:59:49]line Аи-92-К-5 [14:59:49]line 44.850 * 66.90 [14:59:49]line = 3000.47 [14:59:49]line НДС 12% НСП 1% [14:59:49]line > о реализуемом товаре [14:59:49]line ИТОГО: 3000.47 [14:59:49]line НСП 1% : 26.55 [14:59:49]line НДС 12% : 318.63 [14:59:49]line Наличными: 0.00 [14:59:49]line Безнал.: 3000.47 [14:59:49]line Место: АЗС № 113 "Партнер Нефть" [14:59:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [14:59:49]line СНО: Общий режим [14:59:49]line Чек 106 28.10.2024 14:59 [14:59:49]line Смена: 554 ФФД: 1.0 [14:59:49]line ЗНМ: 0300000087 [14:59:49]line РНМ: 0000000000091644 [14:59:49]line Версия ККМ: 001 [14:59:49]line Платежная система: O! деньги [14:59:49]line ФМ: 0000000000874662 [14:59:49]line ФД: 72578 [14:59:49]line ФПД: 6866985714680 [14:59:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T145948&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72578&fm=6866985714680&tin=02508201610067®Number=0000000000091644&sum=300047 [14:59:49]written 0, free lines is 4095 [14:59:49]OFD Sender: Processing packet 72578 [packets to send 274, broken 273] [14:59:49]ProducePacketName [14:59:49]name=ofd_packets/00072578 [14:59:49]OFD Sender: To server: pG, [14:59:49]CommunicateWithHost lk.salyk.kg:30040 [14:59:49]ConnectInit lk.salyk.kg [14:59:49]Connected sock=10 [14:59:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 EA 08 07 01 6F CB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 E4 A6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1B 01 00 35 04 06 00 06 3E D8 3E 83 F8 CE 10 CE F7 28 42 7C 13 [14:59:49]Write to MH i2c: 01 00 00 63 02 65 [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: 01 07 00 63 02 00 00 00 00 00 F5 0C 6D [14:59:49]RasterBufferAndPrint [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]line [14:59:49]written 0, free lines is 3326 [14:59:49]MH_Cut [14:59:49]Write to MH i2c: D1 01 00 6A 02 01 3E [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: D1 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: D1 01 00 [14:59:49]MH_I2C_Read... [14:59:49]Read from MH i2c: D1 01 00 6A 02 00 3D [14:59:49]Write to MH i2c: 01 00 00 6B 02 6D [14:59:49]Write i2c OK [14:59:49]MH_I2C_Read... [14:59:50]*** Cut start [14:59:50]*** Partial cut [14:59:50]*** CUTSNS_PIN = 1 [14:59:50]*** CUTSNS_PIN = 0 [14:59:50]*** Brake cut motor [14:59:51]Read from MH i2c: 01 [14:59:51]MH_I2C_Read... [14:59:51]*** Stop cut motor [14:59:51]*** Cut end [14:59:51]Read from MH i2c: 01 07 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: 01 07 00 6B 02 00 00 00 00 00 FF 0F 82 [14:59:51]process_action close_receipt done [14:59:51]requested_data is exist [14:59:51]produce_requested_data [14:59:51]requested_item fm.sn is exist - process it [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 11 00 00 [14:59:51]Write to MH i2c: E2 08 00 6C 02 80 11 00 00 00 00 00 00 E8 [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 17 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 17 00 6C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3C [14:59:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [14:59:51]wFMCommunicate OK [14:59:51]requested_item fd.num is exist - process it [14:59:51]SAM_PROTO_GetFieldsCounters [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 13 00 00 [14:59:51]Write to MH i2c: E2 08 00 6D 02 80 13 00 00 00 00 00 00 EB [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9A 4E 47 00 ED 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 82 1B 01 00 F4 03 04 00 A2 51 1F 67 B6 04 01 00 00 BE C9 BB 04 E4 39 04 B7 [14:59:51]CommunicateWithHost err = 0 [14:59:51]CheckOFDResponse [14:59:51]1017 (14) - 77093643461234 [14:59:51]1041 (16) - 0000000000874662 [14:59:51]1040 (4) - 72578 [14:59:51]1012 (4) - 28.10.2024 08:56 [14:59:51]1206 (1) - 0 [14:59:51]OFD Sender: Remove packet 72578 [14:59:51]ProducePacketName [14:59:51]name=ofd_packets/00072578 [14:59:51]NVStorageDeleteData [14:59:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 62 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 62 00 6D 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [14:59: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 82 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:51]wFMCommunicate OK [14:59:51]SAM_PROTO_GetFieldsCounters done [14:59:51]requested_item shift.num is exist - process it [14:59:51]requested_item shift.opened is exist - process it [14:59:51]req_shift_opened [14:59:51]FM_GetShiftState [14:59:51]SAM_PROTO_GetShiftState [14:59:51]wFMCommunicate request_size=4 [14:59:51]MH_SAM_APDU [14:59:51]CAPDU: 80 13 01 00 [14:59:51]Write to MH i2c: E2 08 00 6E 02 80 13 01 00 00 00 00 00 ED [14:59:51]Write i2c OK [14:59:51]MH_I2C_Read... [14:59:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:51]Read from MH i2c: E2 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 0E 00 [14:59:51]MH_I2C_Read... [14:59:51]Read from MH i2c: E2 0E 00 6E 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 55 [14:59:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [14:59:51]wFMCommunicate OK [14:59:51]SAM_PROTO_GetShiftState done [14:59:51]FM_GetShiftState done [14:59:51]req_shift_opened done [14:59:51]requested_item shift.open_date is exist - process it [14:59:51]req_shift_open_date [14:59:51]req_shift_open_date done [14:59:51]produce_requested_data done [14:59:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72578,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [14:59:51]process_action_free close_receipt [14:59:51]json_value_free [14:59:51]json_value_free done [14:59:51]process_json_proto returns [14:59:51]Send response to host [14:59:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72578,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [14:59:51]free response buf [14:59:51]execute_script done [14:59:51]execute_script returns [14:59:51]free content buf [14:59:51]Sock 7.Close socket [14:59:51]Sock 7.Thread stoped [14:59:51]OFD Sender: No OFD packet to send [14:59:56]OFD Sender: No OFD packet to send [15:00:01]OFD Sender: No OFD packet to send [15:00:06]OFD Sender: No OFD packet to send [15:00:11]OFD Sender: No OFD packet to send [15:00:16]OFD Sender: No OFD packet to send [15:00:21]OFD Sender: No OFD packet to send [15:00:26]OFD Sender: No OFD packet to send [15:00:31]OFD Sender: No OFD packet to send [15:00:36]OFD Sender: No OFD packet to send [15:00:41]OFD Sender: No OFD packet to send [15:00:46]OFD Sender: No OFD packet to send [15:00:51]OFD Sender: No OFD packet to send [15:00:56]OFD Sender: No OFD packet to send [15:01:01]OFD Sender: No OFD packet to send [15:01:06]OFD Sender: No OFD packet to send [15:01:11]OFD Sender: No OFD packet to send [15:01:16]OFD Sender: No OFD packet to send [15:01:21]OFD Sender: No OFD packet to send [15:01:26]OFD Sender: No OFD packet to send [15:01:31]OFD Sender: No OFD packet to send [15:01:36]OFD Sender: No OFD packet to send [15:01:41]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]recv_with_timeout no data received [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]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:37]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:05]accept exits with 9 [15:07:05]New connection [15:07:05]New thread 3066809700 created [15:07:05]Thread 3066666340 joined [15:07:05]Waiting for new connection... [15:07:05] Sock 9.Parse request [15:07:05]Sock 9.Check first char [15:07:05]Sock 9.First char is OK [15:07:05]request: POST /json_proto HTTP/1.0 [15:07:05]Method: POST [15:07:05]URL: /json_proto [15:07:05]Method is POST - this is cgi request [15:07:05]url: /json_proto [15:07:05]query_string will be loaded in cgi processing [15:07:05]execute_cgi json_proto POST (null) [15:07:05]execute_cgi path=json_proto method=POST [15:07:05]POST find Content-Length [15:07:05]Host: 172.17.43.195:8080 [15:07:05]Content-Length: 792 [15:07:05]Content-Type: application/json [15:07:05] [15:07:05]POST finish read [15:07:05]Found Content-Length = 792 [15:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:05]execute_script... [15:07: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)952054", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02804", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:07:05]POST & json_proto [15:07:05]process_json_proto [15:07:05]json parsed OK: [15:07:05]protocol is kg_v1.0 [15:07:05]action value=close_receipt [15:07:05]process_action close_receipt [15:07:05]cmd_close_receipt [15:07:05]MH_GetDate [15:07:05]Write to MH i2c: F0 00 00 6F 02 60 [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 09 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: F0 09 00 6F 02 00 9A A8 1F 67 74 2C AD 66 E4 [15:07:05]GetLastDocTimeStamp 1730127588 [15:07:05]current date 1730128026 [15:07:05]FM_GetShiftState [15:07:05]SAM_PROTO_GetShiftState [15:07:05]wFMCommunicate request_size=4 [15:07:05]MH_SAM_APDU [15:07:05]CAPDU: 80 13 01 00 [15:07:05]Write to MH i2c: E2 08 00 70 02 80 13 01 00 00 00 00 00 EF [15:07:05]Write i2c OK [15:07:05]MH_I2C_Read... [15:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:05]Read from MH i2c: E2 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 [15:07:05]MH_I2C_Read... [15:07:05]Read from MH i2c: E2 0E 00 70 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 57 [15:07:05]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:07:05]wFMCommunicate OK [15:07:05]SAM_PROTO_GetShiftState done [15:07:05]FM_GetShiftState done [15:07:05]opened in 1730074113 [15:07:05]opened+sec_in_day 1730160513 [15:07:05]quantity*price = 0 [15:07:05]sum+1 = 1 [15:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 107 28.10.2024 15:07 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02804 ФМ: 0000000000874662 ФД: 72579 ФПД: 81454098665040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150706&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72579&fm=81454098665040&tin=02508201610067®Number=0000000000091644&sum=0 [15:07:06]StoreToDocumentArchive [15:07:06]shift 554 fd 72579 [15:07:06]save to /storage/0554/doc_00072579 [15:07:06]save last doc name /storage/0554/doc_00072579 to /storage/kkm_last_doc_name [15:07:06]save OK [15:07:06]Clear old archive folders... [15:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:07:06]tlvbuf is 003BD8B0 [15:07:06]SAM_PROTO_ClearQueue [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 09 00 00 [15:07:06]Write to MH i2c: E2 08 00 7D 02 80 09 00 00 00 00 00 00 F1 [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]SAM_PROTO_ClearQueue done [15:07:06]KKMCreateOFDPacket [15:07:06]OFDProtocolAddRootSTLVToBuf [15:07:06]FM_MakeSignedData [15:07:06]FM_MakeSignedData [15:07:06]SAM_PROTO_SignData [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 01 02 [15:07:06]Write to MH i2c: E2 08 00 7E 02 80 0D 01 02 00 00 00 00 F9 [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 7E 02 00 90 00 F4 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]wFMCommunicate request_size=255 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 6B 00 00 00 F4 03 04 00 9A A8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1B 01 00 35 04 06 00 4A [15:07:06]Write to MH i2c: E2 02 01 7F 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9A A8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1B 01 00 35 04 06 00 4A 00 00 BB [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 7F 02 00 90 00 F5 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]wFMCommunicate request_size=10 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 02 02 05 15 02 9D CE 50 [15:07:06]Write to MH i2c: E2 0D 00 80 02 80 0D 02 02 05 00 15 02 9D CE 50 00 00 D8 [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 [15:07:06]MH_I2C_Read... [15:07:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:07:06]Read from MH i2c: E2 03 00 [15:07:06]MH_I2C_Read... [15:07:06]Read from MH i2c: E2 03 00 80 02 00 90 00 F6 [15:07:06]RAPDU: 90 00 [15:07:06]wFMCommunicate OK [15:07:06]wFMCommunicate request_size=4 [15:07:06]MH_SAM_APDU [15:07:06]CAPDU: 80 0D 03 02 [15:07:06]Write to MH i2c: E2 08 00 81 02 80 0D 03 02 00 00 00 00 FE [15:07:06]Write i2c OK [15:07:06]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0B 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 0B 00 81 02 00 CA 59 B3 D4 0D F1 CF 5E 90 00 D4 [15:07:07]RAPDU: CA 59 B3 D4 0D F1 CF 5E 90 00 [15:07:07]wFMCommunicate OK [15:07:07]SAM_PROTO_SignData done [15:07:07]FM_MakeSignedData done [15:07:07]CreateOFDProtocolMessage [15:07:07]wFMCommunicate request_size=4 [15:07:07]MH_SAM_APDU [15:07:07]CAPDU: 80 11 00 00 [15:07:07]Write to MH i2c: E2 08 00 82 02 80 11 00 00 00 00 00 00 FE [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:07]Read from MH i2c: E2 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: E2 17 00 82 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 52 [15:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:07:07]wFMCommunicate OK [15:07:07]CreateOFDProtocolMessage done [15:07:07]OFDSenderStorePacket 72579 [15:07:07]StoreOFDPacket docnum=72579 [15:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6F 41 07 01 F6 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9A A8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1B 01 00 35 04 06 00 4A 15 02 9D CE 50 CA 59 B3 D4 0D F1 CF 5E [15:07:07]CheckFolder [15:07:07]dirname=/storage/ofd_packets [15:07:07]CheckFolder done [15:07:07]ProducePacketName [15:07:07]name=ofd_packets/00072579 [15:07:07]NVStorageSaveData ofd_packets/00072579 [15:07:07]File name is /storage/ofd_packets/00072579 [15:07:07]Write 301 bytes [15:07:07]NVStorageSaveData done [15:07:07]OFDSenderStorePacket done [15:07:07]KKMCreateOFDPacket done [15:07:07]NVStorageSaveData kkm_last_timestamp [15:07:07]File name is /storage/kkm_last_timestamp [15:07:07]Write 4 bytes [15:07:07]NVStorageSaveData done [15:07:07]ExternCall_PrintAddStr [15:07:07]wPrintStart [15:07:07]Write to MH i2c: 01 00 00 83 02 85 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [15:07:07]RasterBufferAndPrint [15:07:07]line Счет N : (1)952054 [15:07:07]line ИНН: 02508201610067 [15:07:07]line Контрольно-Кассовый Чек [15:07:07]line ПРОДАЖА [15:07:07]line ТРК (МРК, ГНК) : 41 [15:07:07]line Товар: 2710124500 [15:07:07]line Аи-95-К-3 [15:07:07]line 20.000 * 0.00 [15:07:07]line = 0.00 [15:07:07]line НДС 12% НСП 1% [15:07:07]line > о реализуемом товаре [15:07:07]line ИТОГО: 0.00 [15:07:07]line НСП 1% : 0.00 [15:07:07]line НДС 12% : 0.00 [15:07:07]line Наличными: 0.00 [15:07:07]line Безнал.: 0.00 [15:07:07]line Место: АЗС № 113 "Партнер Нефть" [15:07:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:07:07]line СНО: Общий режим [15:07:07]line Чек 107 28.10.2024 15:07 [15:07:07]line Смена: 554 ФФД: 1.0 [15:07:07]line ЗНМ: 0300000087 [15:07:07]line РНМ: 0000000000091644 [15:07:07]line Версия ККМ: 001 [15:07:07]line Талоны: Топливная Карта [15:07:07]line 02804 [15:07:07]line ФМ: 0000000000874662 [15:07:07]line ФД: 72579 [15:07:07]line ФПД: 81454098665040 [15:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T150706&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72579&fm=81454098665040&tin=02508201610067®Number=0000000000091644&sum=0 [15:07:07]written 0, free lines is 4095 [15:07:07]OFD Sender: Processing packet 72579 [packets to send 274, broken 273] [15:07:07]ProducePacketName [15:07:07]name=ofd_packets/00072579 [15:07:07]OFD Sender: To server: pG, [15:07:07]CommunicateWithHost lk.salyk.kg:30040 [15:07:07]ConnectInit lk.salyk.kg [15:07:07]Write to MH i2c: 01 00 00 AD 02 AF [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: 01 07 00 AD 02 00 00 00 00 00 DE 0C A0 [15:07:07]RasterBufferAndPrint [15:07:07]line [15:07:07]line [15:07:07]line [15:07:07]line [15:07:07]line [15:07:07]written 0, free lines is 3300 [15:07:07]MH_Cut [15:07:07]Write to MH i2c: D1 01 00 B4 02 01 88 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: D1 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: D1 01 00 [15:07:07]MH_I2C_Read... [15:07:07]Read from MH i2c: D1 01 00 B4 02 00 87 [15:07:07]Write to MH i2c: 01 00 00 B5 02 B7 [15:07:07]Write i2c OK [15:07:07]MH_I2C_Read... [15:07:08]*** Cut start [15:07:08]*** Partial cut [15:07:08]*** CUTSNS_PIN = 1 [15:07:08]*** CUTSNS_PIN = 0 [15:07:08]*** Brake cut motor [15:07:08]Read from MH i2c: 01 [15:07:08]MH_I2C_Read... [15:07:08]*** Stop cut motor [15:07:08]*** Cut end [15:07:08]Read from MH i2c: 01 07 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: 01 07 00 B5 02 00 00 00 00 00 FF 0F CC [15:07:08]process_action close_receipt done [15:07:08]requested_data is exist [15:07:08]produce_requested_data [15:07:08]requested_item fm.sn is exist - process it [15:07:08]wFMCommunicate request_size=4 [15:07:08]MH_SAM_APDU [15:07:08]CAPDU: 80 11 00 00 [15:07:08]Write to MH i2c: E2 08 00 B6 02 80 11 00 00 00 00 00 00 32 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:07:08]Read from MH i2c: E2 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 17 00 [15:07:08]MH_I2C_Read... [15:07:08]Read from MH i2c: E2 17 00 B6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 86 [15:07:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:07:08]wFMCommunicate OK [15:07:08]requested_item fd.num is exist - process it [15:07:08]SAM_PROTO_GetFieldsCounters [15:07:08]wFMCommunicate request_size=4 [15:07:08]MH_SAM_APDU [15:07:08]CAPDU: 80 13 00 00 [15:07:08]Write to MH i2c: E2 08 00 B7 02 80 13 00 00 00 00 00 00 35 [15:07:08]Write i2c OK [15:07:08]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 62 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 62 00 B7 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:07: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 83 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:07:09]wFMCommunicate OK [15:07:09]SAM_PROTO_GetFieldsCounters done [15:07:09]requested_item shift.num is exist - process it [15:07:09]requested_item shift.opened is exist - process it [15:07:09]req_shift_opened [15:07:09]FM_GetShiftState [15:07:09]SAM_PROTO_GetShiftState [15:07:09]wFMCommunicate request_size=4 [15:07:09]MH_SAM_APDU [15:07:09]CAPDU: 80 13 01 00 [15:07:09]Write to MH i2c: E2 08 00 B8 02 80 13 01 00 00 00 00 00 37 [15:07:09]Write i2c OK [15:07:09]MH_I2C_Read... [15:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:07:09]Read from MH i2c: E2 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 [15:07:09]MH_I2C_Read... [15:07:09]Read from MH i2c: E2 0E 00 B8 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9F [15:07:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:07:09]wFMCommunicate OK [15:07:09]SAM_PROTO_GetShiftState done [15:07:09]FM_GetShiftState done [15:07:09]req_shift_opened done [15:07:09]requested_item shift.open_date is exist - process it [15:07:09]req_shift_open_date [15:07:09]req_shift_open_date done [15:07:09]produce_requested_data done [15:07:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72579,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [15:07:09]process_action_free close_receipt [15:07:09]json_value_free [15:07:09]json_value_free done [15:07:09]process_json_proto returns [15:07:09]Send response to host [15:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72579,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [15:07:09]free response buf [15:07:09]execute_script done [15:07:09]execute_script returns [15:07:09]free content buf [15:07:09]Sock 9.Close socket [15:07:09]Sock 9.Thread stoped [15:07:09]Connected sock=11 [15:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 6F 41 07 01 F6 3D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 9A A8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1B 01 00 35 04 06 00 4A 15 02 9D CE 50 CA 59 B3 D4 0D F1 CF 5E [15:07:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 53 66 47 00 92 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 83 1B 01 00 F4 03 04 00 5A 53 1F 67 B6 04 01 00 00 06 F1 3B FF DA 25 22 97 [15:07:09]CommunicateWithHost err = 0 [15:07:09]CheckOFDResponse [15:07:09]1017 (14) - 77093643461234 [15:07:09]1041 (16) - 0000000000874662 [15:07:09]1040 (4) - 72579 [15:07:09]1012 (4) - 28.10.2024 09:03 [15:07:09]1206 (1) - 0 [15:07:09]OFD Sender: Remove packet 72579 [15:07:09]ProducePacketName [15:07:09]name=ofd_packets/00072579 [15:07:09]NVStorageDeleteData [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:29]recv_with_timeout no data received [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:44]recv_with_timeout no data received [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:01]recv_with_timeout no data received [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:32]recv_with_timeout no data received [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:49]recv_with_timeout no data received [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:09]recv_with_timeout no data received [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:42]recv_with_timeout no data received [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:08]recv_with_timeout no data received [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:18]recv_with_timeout no data received [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:46]OFD Sender: No OFD packet to send [15:13:51]OFD Sender: No OFD packet to send [15:13:56]OFD Sender: No OFD packet to send [15:14:01]OFD Sender: No OFD packet to send [15:14:06]OFD Sender: No OFD packet to send [15:14:11]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:29]recv_with_timeout no data received [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:47]recv_with_timeout no data received [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:38]recv_with_timeout no data received [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:16]recv_with_timeout no data received [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:27]recv_with_timeout no data received [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:27]recv_with_timeout no data received [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:38]recv_with_timeout no data received [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:20:59]recv_with_timeout no data received [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:09]recv_with_timeout no data received [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]recv_with_timeout no data received [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:21:57]recv_with_timeout no data received [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:07]recv_with_timeout no data received [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:25]recv_with_timeout no data received [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:36]OFD Sender: No OFD packet to send [15:22:41]OFD Sender: No OFD packet to send [15:22:43]recv_with_timeout no data received [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:21]OFD Sender: No OFD packet to send [15:23:26]OFD Sender: No OFD packet to send [15:23:31]OFD Sender: No OFD packet to send [15:23:34]recv_with_timeout no data received [15:23:36]OFD Sender: No OFD packet to send [15:23:41]OFD Sender: No OFD packet to send [15:23:46]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:01]recv_with_timeout no data received [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:14]accept exits with 7 [15:24:14]New connection [15:24:14]New thread 3066666340 created [15:24:14]Thread 3066809700 joined [15:24:14]Waiting for new connection... [15:24:14] Sock 7.Parse request [15:24:14]Sock 7.Check first char [15:24:14]Sock 7.First char is OK [15:24:14]request: POST /json_proto HTTP/1.0 [15:24:14]Method: POST [15:24:14]URL: /json_proto [15:24:14]Method is POST - this is cgi request [15:24:14]url: /json_proto [15:24:14]query_string will be loaded in cgi processing [15:24:14]execute_cgi json_proto POST (null) [15:24:14]execute_cgi path=json_proto method=POST [15:24:14]POST find Content-Length [15:24:14]Host: 172.17.43.195:8080 [15:24:14]Content-Length: 797 [15:24:14]Content-Type: application/json [15:24:14] [15:24:14]POST finish read [15:24:14]Found Content-Length = 797 [15:24:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:14]execute_script... [15:24: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)952056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:24:14]POST & json_proto [15:24:14]process_json_proto [15:24:14]json parsed OK: [15:24:14]protocol is kg_v1.0 [15:24:14]action value=close_receipt [15:24:14]process_action close_receipt [15:24:14]cmd_close_receipt [15:24:14]MH_GetDate [15:24:14]Write to MH i2c: F0 00 00 B9 02 AA [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 09 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: F0 09 00 B9 02 00 9F AC 1F 67 74 2C AD 66 37 [15:24:14]GetLastDocTimeStamp 1730128026 [15:24:14]current date 1730129055 [15:24:14]FM_GetShiftState [15:24:14]SAM_PROTO_GetShiftState [15:24:14]wFMCommunicate request_size=4 [15:24:14]MH_SAM_APDU [15:24:14]CAPDU: 80 13 01 00 [15:24:14]Write to MH i2c: E2 08 00 BA 02 80 13 01 00 00 00 00 00 39 [15:24:14]Write i2c OK [15:24:14]MH_I2C_Read... [15:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:14]Read from MH i2c: E2 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 0E 00 [15:24:14]MH_I2C_Read... [15:24:14]Read from MH i2c: E2 0E 00 BA 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A1 [15:24:14]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:24:14]wFMCommunicate OK [15:24:14]SAM_PROTO_GetShiftState done [15:24:14]FM_GetShiftState done [15:24:14]opened in 1730074113 [15:24:14]opened+sec_in_day 1730160513 [15:24:14]quantity*price = 0 [15:24:14]sum+1 = 1 [15:24:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 108 28.10.2024 15:24 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72580 ФПД: 239738059553838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152415&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72580&fm=239738059553838&tin=02508201610067®Number=0000000000091644&sum=0 [15:24:15]StoreToDocumentArchive [15:24:15]shift 554 fd 72580 [15:24:15]save to /storage/0554/doc_00072580 [15:24:15]save last doc name /storage/0554/doc_00072580 to /storage/kkm_last_doc_name [15:24:15]save OK [15:24:15]Clear old archive folders... [15:24:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [15:24:15]tlvbuf is 003BF310 [15:24:15]SAM_PROTO_ClearQueue [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 09 00 00 [15:24:15]Write to MH i2c: E2 08 00 C7 02 80 09 00 00 00 00 00 00 3B [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 03 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [15:24:15]RAPDU: 90 00 [15:24:15]wFMCommunicate OK [15:24:15]SAM_PROTO_ClearQueue done [15:24:15]KKMCreateOFDPacket [15:24:15]OFDProtocolAddRootSTLVToBuf [15:24:15]FM_MakeSignedData [15:24:15]FM_MakeSignedData [15:24:15]SAM_PROTO_SignData [15:24:15]wFMCommunicate request_size=4 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 0D 01 02 [15:24:15]Write to MH i2c: E2 08 00 C8 02 80 0D 01 02 00 00 00 00 43 [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:24:15]Read from MH i2c: E2 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 03 00 [15:24:15]MH_I2C_Read... [15:24:15]Read from MH i2c: E2 03 00 C8 02 00 90 00 3E [15:24:15]RAPDU: 90 00 [15:24:15]wFMCommunicate OK [15:24:15]wFMCommunicate request_size=255 [15:24:15]MH_SAM_APDU [15:24:15]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F AC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1B 01 00 35 04 06 00 [15:24:15]Write to MH i2c: E2 02 01 C9 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F AC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1B 01 00 35 04 06 00 00 00 0E [15:24:15]Write i2c OK [15:24:15]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 C9 02 00 90 00 3F [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]wFMCommunicate request_size=11 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 02 02 06 DA 0A 5D E0 FC 2E [15:24:16]Write to MH i2c: E2 0E 00 CA 02 80 0D 02 02 06 00 DA 0A 5D E0 FC 2E 00 00 9D [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 03 00 CA 02 00 90 00 40 [15:24:16]RAPDU: 90 00 [15:24:16]wFMCommunicate OK [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 0D 03 02 [15:24:16]Write to MH i2c: E2 08 00 CB 02 80 0D 03 02 00 00 00 00 48 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 0B 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 0B 00 CB 02 00 CA 3F 80 4E 55 51 16 9E 90 00 7A [15:24:16]RAPDU: CA 3F 80 4E 55 51 16 9E 90 00 [15:24:16]wFMCommunicate OK [15:24:16]SAM_PROTO_SignData done [15:24:16]FM_MakeSignedData done [15:24:16]CreateOFDProtocolMessage [15:24:16]wFMCommunicate request_size=4 [15:24:16]MH_SAM_APDU [15:24:16]CAPDU: 80 11 00 00 [15:24:16]Write to MH i2c: E2 08 00 CC 02 80 11 00 00 00 00 00 00 48 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:16]Read from MH i2c: E2 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 17 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: E2 17 00 CC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9C [15:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:24:16]wFMCommunicate OK [15:24:16]CreateOFDProtocolMessage done [15:24:16]OFDSenderStorePacket 72580 [15:24:16]StoreOFDPacket docnum=72580 [15:24:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C6 67 08 01 BF CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F AC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1B 01 00 35 04 06 00 DA 0A 5D E0 FC 2E CA 3F 80 4E 55 51 16 9E [15:24:16]CheckFolder [15:24:16]dirname=/storage/ofd_packets [15:24:16]CheckFolder done [15:24:16]ProducePacketName [15:24:16]name=ofd_packets/00072580 [15:24:16]NVStorageSaveData ofd_packets/00072580 [15:24:16]File name is /storage/ofd_packets/00072580 [15:24:16]Write 302 bytes [15:24:16]NVStorageSaveData done [15:24:16]OFDSenderStorePacket done [15:24:16]KKMCreateOFDPacket done [15:24:16]NVStorageSaveData kkm_last_timestamp [15:24:16]File name is /storage/kkm_last_timestamp [15:24:16]Write 4 bytes [15:24:16]NVStorageSaveData done [15:24:16]ExternCall_PrintAddStr [15:24:16]wPrintStart [15:24:16]Write to MH i2c: 01 00 00 CD 02 CF [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 CD 02 00 00 00 00 00 FF 0F E4 [15:24:16]RasterBufferAndPrint [15:24:16]line Счет N : (1)952056 [15:24:16]line ИНН: 02508201610067 [15:24:16]line Контрольно-Кассовый Чек [15:24:16]line ПРОДАЖА [15:24:16]line ТРК (МРК, ГНК) : 33 [15:24:16]line Товар: 2710194210 [15:24:16]line ДТ(л)-К-5 [15:24:16]line 13.130 * 0.00 [15:24:16]line = 0.00 [15:24:16]line НДС 12% НСП 1% [15:24:16]line > о реализуемом товаре [15:24:16]line ИТОГО: 0.00 [15:24:16]line НСП 1% : 0.00 [15:24:16]line НДС 12% : 0.00 [15:24:16]line Наличными: 0.00 [15:24:16]line Безнал.: 0.00 [15:24:16]line Место: АЗС № 113 "Партнер Нефть" [15:24:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:24:16]line СНО: Общий режим [15:24:16]line Чек 108 28.10.2024 15:24 [15:24:16]line Смена: 554 ФФД: 1.0 [15:24:16]line ЗНМ: 0300000087 [15:24:16]line РНМ: 0000000000091644 [15:24:16]line Версия ККМ: 001 [15:24:16]line Талоны: Топливная Карта [15:24:16]line 53623 [15:24:16]line ФМ: 0000000000874662 [15:24:16]line ФД: 72580 [15:24:16]line ФПД: 239738059553838 [15:24:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T152415&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72580&fm=239738059553838&tin=02508201610067®Number=0000000000091644&sum=0 [15:24:16]written 0, free lines is 4095 [15:24:16]OFD Sender: Processing packet 72580 [packets to send 274, broken 273] [15:24:16]ProducePacketName [15:24:16]name=ofd_packets/00072580 [15:24:16]OFD Sender: To server: pG, [15:24:16]CommunicateWithHost lk.salyk.kg:30040 [15:24:16]ConnectInit lk.salyk.kg [15:24:16]Write to MH i2c: 01 00 00 F7 02 F9 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 E2 0C EE [15:24:16]RasterBufferAndPrint [15:24:16]line [15:24:16]line [15:24:16]line [15:24:16]line [15:24:16]line [15:24:16]written 0, free lines is 3304 [15:24:16]MH_Cut [15:24:16]Write to MH i2c: D1 01 00 FE 02 01 D2 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: D1 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: D1 01 00 [15:24:16]MH_I2C_Read... [15:24:16]Read from MH i2c: D1 01 00 FE 02 00 D1 [15:24:16]Write to MH i2c: 01 00 00 FF 02 01 [15:24:16]Write i2c OK [15:24:16]MH_I2C_Read... [15:24:17]Connected sock=9 [15:24:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C6 67 08 01 BF CA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F AC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1B 01 00 35 04 06 00 DA 0A 5D E0 FC 2E CA 3F 80 4E 55 51 16 9E [15:24:17]*** Cut start [15:24:17]*** Partial cut [15:24:17]*** CUTSNS_PIN = 1 [15:24:17]*** CUTSNS_PIN = 0 [15:24:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F5 65 47 00 AE 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 84 1B 01 00 F4 03 04 00 5E 57 1F 67 B6 04 01 00 00 50 04 11 11 39 9D 60 49 [15:24:17]CommunicateWithHost err = 0 [15:24:17]CheckOFDResponse [15:24:17]1017 (14) - 77093643461234 [15:24:17]1041 (16) - 0000000000874662 [15:24:17]1040 (4) - 72580 [15:24:17]1012 (4) - 28.10.2024 09:20 [15:24:17]1206 (1) - 0 [15:24:17]OFD Sender: Remove packet 72580 [15:24:17]ProducePacketName [15:24:17]name=ofd_packets/00072580 [15:24:17]NVStorageDeleteData [15:24:17]*** Brake cut motor [15:24:18]Read from MH i2c: 01 [15:24:18]MH_I2C_Read... [15:24:18]*** Stop cut motor [15:24:18]*** Cut end [15:24:18]Read from MH i2c: 01 07 00 [15:24:18]MH_I2C_Read... [15:24:18]OFD Sender: No OFD packet to send [15:24:18]Read from MH i2c: 01 07 00 FF 02 00 00 00 00 00 FF 0F 16 [15:24:18]process_action close_receipt done [15:24:18]requested_data is exist [15:24:18]produce_requested_data [15:24:18]requested_item fm.sn is exist - process it [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 11 00 00 [15:24:18]Write to MH i2c: E2 08 00 00 03 80 11 00 00 00 00 00 00 7D [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 17 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 17 00 00 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D1 [15:24:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:24:18]wFMCommunicate OK [15:24:18]requested_item fd.num is exist - process it [15:24:18]SAM_PROTO_GetFieldsCounters [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 13 00 00 [15:24:18]Write to MH i2c: E2 08 00 01 03 80 13 00 00 00 00 00 00 80 [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 62 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 62 00 01 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [15:24: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 84 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:24:18]wFMCommunicate OK [15:24:18]SAM_PROTO_GetFieldsCounters done [15:24:18]requested_item shift.num is exist - process it [15:24:18]requested_item shift.opened is exist - process it [15:24:18]req_shift_opened [15:24:18]FM_GetShiftState [15:24:18]SAM_PROTO_GetShiftState [15:24:18]wFMCommunicate request_size=4 [15:24:18]MH_SAM_APDU [15:24:18]CAPDU: 80 13 01 00 [15:24:18]Write to MH i2c: E2 08 00 02 03 80 13 01 00 00 00 00 00 82 [15:24:18]Write i2c OK [15:24:18]MH_I2C_Read... [15:24:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:24:18]Read from MH i2c: E2 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 0E 00 [15:24:18]MH_I2C_Read... [15:24:18]Read from MH i2c: E2 0E 00 02 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EA [15:24:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:24:18]wFMCommunicate OK [15:24:18]SAM_PROTO_GetShiftState done [15:24:18]FM_GetShiftState done [15:24:18]req_shift_opened done [15:24:18]requested_item shift.open_date is exist - process it [15:24:18]req_shift_open_date [15:24:18]req_shift_open_date done [15:24:18]produce_requested_data done [15:24:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72580,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [15:24:18]process_action_free close_receipt [15:24:18]json_value_free [15:24:18]json_value_free done [15:24:18]process_json_proto returns [15:24:18]Send response to host [15:24:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72580,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [15:24:18]free response buf [15:24:18]execute_script done [15:24:18]execute_script returns [15:24:18]free content buf [15:24:18]Sock 7.Close socket [15:24:18]Sock 7.Thread stoped [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:46]recv_with_timeout no data received [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:09]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:25]recv_with_timeout no data received [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]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:48]recv_with_timeout no data received [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:27:59]recv_with_timeout no data received [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:17]recv_with_timeout no data received [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:28]OFD Sender: No OFD packet to send [15:29:33]OFD Sender: No OFD packet to send [15:29:38]OFD Sender: No OFD packet to send [15:29:43]OFD Sender: No OFD packet to send [15:29:48]OFD Sender: No OFD packet to send [15:29:53]OFD Sender: No OFD packet to send [15:29:58]OFD Sender: No OFD packet to send [15:30:03]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:16]recv_with_timeout no data received [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:27]recv_with_timeout no data received [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:37]recv_with_timeout no data received [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:53]OFD Sender: No OFD packet to send [15:30:58]OFD Sender: No OFD packet to send [15:31:00]recv_with_timeout no data received [15:31:03]OFD Sender: No OFD packet to send [15:31:08]OFD Sender: No OFD packet to send [15:31:12]recv_with_timeout no data received [15:31:13]OFD Sender: No OFD packet to send [15:31:18]OFD Sender: No OFD packet to send [15:31:23]OFD Sender: No OFD packet to send [15:31:28]OFD Sender: No OFD packet to send [15:31:33]OFD Sender: No OFD packet to send [15:31:38]OFD Sender: No OFD packet to send [15:31:43]OFD Sender: No OFD packet to send [15:31:48]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:57]recv_with_timeout no data received [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:22]recv_with_timeout no data received [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:46]recv_with_timeout no data received [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:03]recv_with_timeout no data received [15:33:04]OFD Sender: No OFD packet to send [15:33:09]OFD Sender: No OFD packet to send [15:33:14]OFD Sender: No OFD packet to send [15:33:19]OFD Sender: No OFD packet to send [15:33:24]OFD Sender: No OFD packet to send [15:33:29]OFD Sender: No OFD packet to send [15:33:34]OFD Sender: No OFD packet to send [15:33:39]OFD Sender: No OFD packet to send [15:33:44]OFD Sender: No OFD packet to send [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:57]recv_with_timeout no data received [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:24]OFD Sender: No OFD packet to send [15:34:29]OFD Sender: No OFD packet to send [15:34:34]OFD Sender: No OFD packet to send [15:34:39]OFD Sender: No OFD packet to send [15:34:44]OFD Sender: No OFD packet to send [15:34:49]OFD Sender: No OFD packet to send [15:34:54]OFD Sender: No OFD packet to send [15:34:59]OFD Sender: No OFD packet to send [15:35:04]OFD Sender: No OFD packet to send [15:35:09]OFD Sender: No OFD packet to send [15:35:10]recv_with_timeout no data received [15:35:14]OFD Sender: No OFD packet to send [15:35:19]OFD Sender: No OFD packet to send [15:35:24]OFD Sender: No OFD packet to send [15:35:29]OFD Sender: No OFD packet to send [15:35:34]OFD Sender: No OFD packet to send [15:35:37]recv_with_timeout no data received [15:35:39]OFD Sender: No OFD packet to send [15:35:44]OFD Sender: No OFD packet to send [15:35:49]OFD Sender: No OFD packet to send [15:35:54]OFD Sender: No OFD packet to send [15:35:59]OFD Sender: No OFD packet to send [15:36:04]OFD Sender: No OFD packet to send [15:36:09]OFD Sender: No OFD packet to send [15:36:14]OFD Sender: No OFD packet to send [15:36:19]OFD Sender: No OFD packet to send [15:36:21]recv_with_timeout no data received [15:36:24]OFD Sender: No OFD packet to send [15:36:29]OFD Sender: No OFD packet to send [15:36:34]OFD Sender: No OFD packet to send [15:36:39]OFD Sender: No OFD packet to send [15:36:40]recv_with_timeout no data received [15:36:44]OFD Sender: No OFD packet to send [15:36:49]OFD Sender: No OFD packet to send [15:36:54]OFD Sender: No OFD packet to send [15:36:59]OFD Sender: No OFD packet to send [15:37:04]OFD Sender: No OFD packet to send [15:37:09]OFD Sender: No OFD packet to send [15:37:14]OFD Sender: No OFD packet to send [15:37:19]OFD Sender: No OFD packet to send [15:37:24]OFD Sender: No OFD packet to send [15:37:29]OFD Sender: No OFD packet to send [15:37:34]OFD Sender: No OFD packet to send [15:37:39]OFD Sender: No OFD packet to send [15:37:44]OFD Sender: No OFD packet to send [15:37:49]OFD Sender: No OFD packet to send [15:37:54]accept exits with 10 [15:37:54]New connection [15:37:54]New thread 3066809700 created [15:37:54]Thread 3066666340 joined [15:37:54]Waiting for new connection... [15:37:54] Sock 10.Parse request [15:37:54]Sock 10.Check first char [15:37:54]Sock 10.First char is OK [15:37:54]request: POST /json_proto HTTP/1.0 [15:37:54]Method: POST [15:37:54]URL: /json_proto [15:37:54]Method is POST - this is cgi request [15:37:54]url: /json_proto [15:37:54]query_string will be loaded in cgi processing [15:37:54]execute_cgi json_proto POST (null) [15:37:54]execute_cgi path=json_proto method=POST [15:37:54]POST find Content-Length [15:37:54]Host: 172.17.43.195:8080 [15:37:54]Content-Length: 792 [15:37:54]Content-Type: application/json [15:37:54] [15:37:54]POST finish read [15:37:54]Found Content-Length = 792 [15:37:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]execute_script... [15:37: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)952058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:37:54]POST & json_proto [15:37:54]process_json_proto [15:37:54]json parsed OK: [15:37:54]protocol is kg_v1.0 [15:37:54]action value=close_receipt [15:37:54]process_action close_receipt [15:37:54]cmd_close_receipt [15:37:54]MH_GetDate [15:37:54]Write to MH i2c: F0 00 00 03 03 F5 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: F0 09 00 03 03 00 D3 AF 1F 67 74 2C AD 66 B9 [15:37:54]GetLastDocTimeStamp 1730129055 [15:37:54]current date 1730129875 [15:37:54]FM_GetShiftState [15:37:54]SAM_PROTO_GetShiftState [15:37:54]wFMCommunicate request_size=4 [15:37:54]MH_SAM_APDU [15:37:54]CAPDU: 80 13 01 00 [15:37:54]Write to MH i2c: E2 08 00 04 03 80 13 01 00 00 00 00 00 84 [15:37:54]Write i2c OK [15:37:54]MH_I2C_Read... [15:37:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:54]Read from MH i2c: E2 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 [15:37:54]MH_I2C_Read... [15:37:54]Read from MH i2c: E2 0E 00 04 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 EC [15:37:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:37:54]wFMCommunicate OK [15:37:54]SAM_PROTO_GetShiftState done [15:37:54]FM_GetShiftState done [15:37:54]opened in 1730074113 [15:37:54]opened+sec_in_day 1730160513 [15:37:54]quantity*price = 0 [15:37:54]sum+1 = 1 [15:37:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 109 28.10.2024 15:37 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72581 ФПД: 56357881039957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153755&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72581&fm=56357881039957&tin=02508201610067®Number=0000000000091644&sum=0 [15:37:55]StoreToDocumentArchive [15:37:55]shift 554 fd 72581 [15:37:55]save to /storage/0554/doc_00072581 [15:37:55]save last doc name /storage/0554/doc_00072581 to /storage/kkm_last_doc_name [15:37:55]save OK [15:37:55]Clear old archive folders... [15:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:37:55]tlvbuf is 003CF210 [15:37:55]SAM_PROTO_ClearQueue [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 09 00 00 [15:37:55]Write to MH i2c: E2 08 00 11 03 80 09 00 00 00 00 00 00 86 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]SAM_PROTO_ClearQueue done [15:37:55]KKMCreateOFDPacket [15:37:55]OFDProtocolAddRootSTLVToBuf [15:37:55]FM_MakeSignedData [15:37:55]FM_MakeSignedData [15:37:55]SAM_PROTO_SignData [15:37:55]wFMCommunicate request_size=4 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 01 02 [15:37:55]Write to MH i2c: E2 08 00 12 03 80 0D 01 02 00 00 00 00 8E [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:37:55]Read from MH i2c: E2 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 [15:37:55]MH_I2C_Read... [15:37:55]Read from MH i2c: E2 03 00 12 03 00 90 00 89 [15:37:55]RAPDU: 90 00 [15:37:55]wFMCommunicate OK [15:37:55]wFMCommunicate request_size=255 [15:37:55]MH_SAM_APDU [15:37:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 D3 AF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1B 01 00 35 04 06 00 33 [15:37:55]Write to MH i2c: E2 02 01 13 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 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 6D 00 00 00 F4 03 04 00 D3 AF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1B 01 00 35 04 06 00 33 00 00 44 [15:37:55]Write i2c OK [15:37:55]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 13 03 00 90 00 8A [15:37:56]RAPDU: 90 00 [15:37:56]wFMCommunicate OK [15:37:56]wFMCommunicate request_size=10 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 0D 02 02 05 41 D7 7A CC 55 [15:37:56]Write to MH i2c: E2 0D 00 14 03 80 0D 02 02 05 00 41 D7 7A CC 55 00 00 4E [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 03 00 14 03 00 90 00 8B [15:37:56]RAPDU: 90 00 [15:37:56]wFMCommunicate OK [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 0D 03 02 [15:37:56]Write to MH i2c: E2 08 00 15 03 80 0D 03 02 00 00 00 00 93 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0B 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 0B 00 15 03 00 F0 8C A0 47 80 E0 8F 58 90 00 3E [15:37:56]RAPDU: F0 8C A0 47 80 E0 8F 58 90 00 [15:37:56]wFMCommunicate OK [15:37:56]SAM_PROTO_SignData done [15:37:56]FM_MakeSignedData done [15:37:56]CreateOFDProtocolMessage [15:37:56]wFMCommunicate request_size=4 [15:37:56]MH_SAM_APDU [15:37:56]CAPDU: 80 11 00 00 [15:37:56]Write to MH i2c: E2 08 00 16 03 80 11 00 00 00 00 00 00 93 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:56]Read from MH i2c: E2 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 17 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: E2 17 00 16 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [15:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:37:56]wFMCommunicate OK [15:37:56]CreateOFDProtocolMessage done [15:37:56]OFDSenderStorePacket 72581 [15:37:56]StoreOFDPacket docnum=72581 [15:37:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 19 D5 07 01 BF 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 D3 AF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1B 01 00 35 04 06 00 33 41 D7 7A CC 55 F0 8C A0 47 80 E0 8F 58 [15:37:56]CheckFolder [15:37:56]dirname=/storage/ofd_packets [15:37:56]CheckFolder done [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00072581 [15:37:56]NVStorageSaveData ofd_packets/00072581 [15:37:56]File name is /storage/ofd_packets/00072581 [15:37:56]Write 301 bytes [15:37:56]NVStorageSaveData done [15:37:56]OFDSenderStorePacket done [15:37:56]KKMCreateOFDPacket done [15:37:56]NVStorageSaveData kkm_last_timestamp [15:37:56]File name is /storage/kkm_last_timestamp [15:37:56]Write 4 bytes [15:37:56]NVStorageSaveData done [15:37:56]ExternCall_PrintAddStr [15:37:56]wPrintStart [15:37:56]Write to MH i2c: 01 00 00 17 03 1A [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 17 03 00 00 00 00 00 FF 0F 2F [15:37:56]RasterBufferAndPrint [15:37:56]line Счет N : (1)952058 [15:37:56]line ИНН: 02508201610067 [15:37:56]line Контрольно-Кассовый Чек [15:37:56]line ПРОДАЖА [15:37:56]line ТРК (МРК, ГНК) : 63 [15:37:56]line Товар: 2710124130 [15:37:56]line Аи-92-К-5 [15:37:56]line 10.000 * 0.00 [15:37:56]line = 0.00 [15:37:56]line НДС 12% НСП 1% [15:37:56]line > о реализуемом товаре [15:37:56]line ИТОГО: 0.00 [15:37:56]line НСП 1% : 0.00 [15:37:56]line НДС 12% : 0.00 [15:37:56]line Наличными: 0.00 [15:37:56]line Безнал.: 0.00 [15:37:56]line Место: АЗС № 113 "Партнер Нефть" [15:37:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:37:56]line СНО: Общий режим [15:37:56]line Чек 109 28.10.2024 15:37 [15:37:56]line Смена: 554 ФФД: 1.0 [15:37:56]line ЗНМ: 0300000087 [15:37:56]line РНМ: 0000000000091644 [15:37:56]line Версия ККМ: 001 [15:37:56]line Талоны: Топливная Карта [15:37:56]line 03047 [15:37:56]line ФМ: 0000000000874662 [15:37:56]line ФД: 72581 [15:37:56]line ФПД: 56357881039957 [15:37:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T153755&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72581&fm=56357881039957&tin=02508201610067®Number=0000000000091644&sum=0 [15:37:56]OFD Sender: Processing packet 72581 [packets to send 274, broken 273] [15:37:56]ProducePacketName [15:37:56]name=ofd_packets/00072581 [15:37:56]OFD Sender: To server: pG, [15:37:56]CommunicateWithHost lk.salyk.kg:30040 [15:37:56]ConnectInit lk.salyk.kg [15:37:56]recv_with_timeout no data received [15:37:56]written 0, free lines is 4095 [15:37:56]Write to MH i2c: 01 00 00 41 03 44 [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: 01 07 00 41 03 00 00 00 00 00 E0 0C 37 [15:37:56]RasterBufferAndPrint [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]line [15:37:56]written 0, free lines is 3302 [15:37:56]MH_Cut [15:37:56]Write to MH i2c: D1 01 00 48 03 01 1D [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 01 00 [15:37:56]MH_I2C_Read... [15:37:56]Read from MH i2c: D1 01 00 48 03 00 1C [15:37:56]Write to MH i2c: 01 00 00 49 03 4C [15:37:56]Write i2c OK [15:37:56]MH_I2C_Read... [15:37:57]*** Cut start [15:37:57]*** Partial cut [15:37:57]*** CUTSNS_PIN = 1 [15:37:57]*** CUTSNS_PIN = 0 [15:37:57]*** Brake cut motor [15:37:58]Read from MH i2c: 01 [15:37:58]MH_I2C_Read... [15:37:58]*** Stop cut motor [15:37:58]*** Cut end [15:37:58]Read from MH i2c: 01 07 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 FF 0F 61 [15:37:58]process_action close_receipt done [15:37:58]requested_data is exist [15:37:58]produce_requested_data [15:37:58]requested_item fm.sn is exist - process it [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 11 00 00 [15:37:58]Write to MH i2c: E2 08 00 4A 03 80 11 00 00 00 00 00 00 C7 [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 17 00 4A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1B [15:37:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:37:58]wFMCommunicate OK [15:37:58]requested_item fd.num is exist - process it [15:37:58]SAM_PROTO_GetFieldsCounters [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 00 00 [15:37:58]Write to MH i2c: E2 08 00 4B 03 80 13 00 00 00 00 00 00 CA [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 62 00 4B 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 FF [15:37: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 85 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetFieldsCounters done [15:37:58]requested_item shift.num is exist - process it [15:37:58]requested_item shift.opened is exist - process it [15:37:58]req_shift_opened [15:37:58]FM_GetShiftState [15:37:58]SAM_PROTO_GetShiftState [15:37:58]wFMCommunicate request_size=4 [15:37:58]MH_SAM_APDU [15:37:58]CAPDU: 80 13 01 00 [15:37:58]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [15:37:58]Write i2c OK [15:37:58]MH_I2C_Read... [15:37:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:37:58]Read from MH i2c: E2 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 [15:37:58]MH_I2C_Read... [15:37:58]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 34 [15:37:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:37:58]wFMCommunicate OK [15:37:58]SAM_PROTO_GetShiftState done [15:37:58]FM_GetShiftState done [15:37:58]req_shift_opened done [15:37:58]requested_item shift.open_date is exist - process it [15:37:58]req_shift_open_date [15:37:58]req_shift_open_date done [15:37:58]produce_requested_data done [15:37:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72581,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [15:37:58]process_action_free close_receipt [15:37:58]json_value_free [15:37:58]json_value_free done [15:37:58]process_json_proto returns [15:37:58]Send response to host [15:37:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72581,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [15:37:58]free response buf [15:37:58]execute_script done [15:37:58]execute_script returns [15:37:58]free content buf [15:37:58]Sock 10.Close socket [15:37:58]Sock 10.Thread stoped [15:38:01]ConnectInit Can't take IP for lk.salyk.kg [15:38:01]CommunicateWithHost connect error [15:38:01]CommunicateWithHost err = -1 [15:38:01]OFD Sender: Server communicate error [15:38:06]OFD Sender: Processing packet 72581 [packets to send 274, broken 273] [15:38:06]ProducePacketName [15:38:06]name=ofd_packets/00072581 [15:38:06]OFD Sender: To server: pG, [15:38:06]CommunicateWithHost lk.salyk.kg:30040 [15:38:06]ConnectInit lk.salyk.kg [15:38:06]Connected sock=7 [15:38:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 19 D5 07 01 BF 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 6D 00 00 00 F4 03 04 00 D3 AF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 85 1B 01 00 35 04 06 00 33 41 D7 7A CC 55 F0 8C A0 47 80 E0 8F 58 [15:38:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4C CB 47 00 36 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 34 36 36 32 10 04 04 00 85 1B 01 00 F4 03 04 00 9B 5A 1F 67 B6 04 01 00 00 0B 1A 9B 15 E8 B3 35 B9 [15:38:07]CommunicateWithHost err = 0 [15:38:07]CheckOFDResponse [15:38:07]1017 (14) - 77093643461234 [15:38:07]1041 (16) - 0000000000874662 [15:38:07]1040 (4) - 72581 [15:38:07]1012 (4) - 28.10.2024 09:34 [15:38:07]1206 (1) - 0 [15:38:07]OFD Sender: Remove packet 72581 [15:38:07]ProducePacketName [15:38:07]name=ofd_packets/00072581 [15:38:07]NVStorageDeleteData [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]recv_with_timeout no data received [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:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:09]recv_with_timeout no data received [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:39]recv_with_timeout no data received [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:50]recv_with_timeout no data received [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:07]recv_with_timeout no data received [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:08]recv_with_timeout no data received [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:19]recv_with_timeout no data received [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:29]recv_with_timeout no data received [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:18]OFD Sender: No OFD packet to send [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:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:51]recv_with_timeout no data received [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:18]recv_with_timeout no data received [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:40]recv_with_timeout no data received [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:17]recv_with_timeout no data received [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:47]recv_with_timeout no data received [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:10]recv_with_timeout no data received [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:39]OFD Sender: No OFD packet to send [15:51:44]OFD Sender: No OFD packet to send [15:51:49]OFD Sender: No OFD packet to send [15:51:54]OFD Sender: No OFD packet to send [15:51:59]OFD Sender: No OFD packet to send [15:52:02]recv_with_timeout no data received [15:52:04]OFD Sender: No OFD packet to send [15:52:09]OFD Sender: No OFD packet to send [15:52:14]OFD Sender: No OFD packet to send [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:27]recv_with_timeout no data received [15:52:29]OFD Sender: No OFD packet to send [15:52:34]OFD Sender: No OFD packet to send [15:52:39]OFD Sender: No OFD packet to send [15:52:44]OFD Sender: No OFD packet to send [15:52:49]OFD Sender: No OFD packet to send [15:52:54]OFD Sender: No OFD packet to send [15:52:59]OFD Sender: No OFD packet to send [15:53:04]OFD Sender: No OFD packet to send [15:53:09]OFD Sender: No OFD packet to send [15:53:14]OFD Sender: No OFD packet to send [15:53:18]recv_with_timeout no data received [15:53:19]OFD Sender: No OFD packet to send [15:53:20]accept exits with 9 [15:53:20]New connection [15:53:20]New thread 3066666340 created [15:53:20]Thread 3066809700 joined [15:53:20]Waiting for new connection... [15:53:20] Sock 9.Parse request [15:53:20]Sock 9.Check first char [15:53:20]Sock 9.First char is OK [15:53:20]request: POST /json_proto HTTP/1.0 [15:53:20]Method: POST [15:53:20]URL: /json_proto [15:53:20]Method is POST - this is cgi request [15:53:20]url: /json_proto [15:53:20]query_string will be loaded in cgi processing [15:53:20]execute_cgi json_proto POST (null) [15:53:20]execute_cgi path=json_proto method=POST [15:53:20]POST find Content-Length [15:53:20]Host: 172.17.43.195:8080 [15:53:20]Content-Length: 791 [15:53:20]Content-Type: application/json [15:53:20] [15:53:20]POST finish read [15:53:20]Found Content-Length = 791 [15:53:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:20]execute_script... [15:53: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)952060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:53:20]POST & json_proto [15:53:20]process_json_proto [15:53:20]json parsed OK: [15:53:20]protocol is kg_v1.0 [15:53:20]action value=close_receipt [15:53:20]process_action close_receipt [15:53:20]cmd_close_receipt [15:53:20]MH_GetDate [15:53:20]Write to MH i2c: F0 00 00 4D 03 3F [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: F0 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: F0 09 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: F0 09 00 4D 03 00 71 B3 1F 67 74 2C AD 66 A5 [15:53:20]GetLastDocTimeStamp 1730129875 [15:53:20]current date 1730130801 [15:53:20]FM_GetShiftState [15:53:20]SAM_PROTO_GetShiftState [15:53:20]wFMCommunicate request_size=4 [15:53:20]MH_SAM_APDU [15:53:20]CAPDU: 80 13 01 00 [15:53:20]Write to MH i2c: E2 08 00 4E 03 80 13 01 00 00 00 00 00 CE [15:53:20]Write i2c OK [15:53:20]MH_I2C_Read... [15:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:20]Read from MH i2c: E2 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 0E 00 [15:53:20]MH_I2C_Read... [15:53:20]Read from MH i2c: E2 0E 00 4E 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 36 [15:53:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:53:20]wFMCommunicate OK [15:53:20]SAM_PROTO_GetShiftState done [15:53:20]FM_GetShiftState done [15:53:20]opened in 1730074113 [15:53:20]opened+sec_in_day 1730160513 [15:53:20]quantity*price = 0 [15:53:20]sum+1 = 1 [15:53:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 110 28.10.2024 15:53 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72582 ФПД: 67648966261536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T155321&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72582&fm=67648966261536&tin=02508201610067®Number=0000000000091644&sum=0 [15:53:21]StoreToDocumentArchive [15:53:21]shift 554 fd 72582 [15:53:21]save to /storage/0554/doc_00072582 [15:53:21]save last doc name /storage/0554/doc_00072582 to /storage/kkm_last_doc_name [15:53:21]save OK [15:53:21]Clear old archive folders... [15:53:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:53:21]tlvbuf is 003CBFC0 [15:53:21]SAM_PROTO_ClearQueue [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 09 00 00 [15:53:21]Write to MH i2c: E2 08 00 5B 03 80 09 00 00 00 00 00 00 D0 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [15:53:21]RAPDU: 90 00 [15:53:21]wFMCommunicate OK [15:53:21]SAM_PROTO_ClearQueue done [15:53:21]KKMCreateOFDPacket [15:53:21]OFDProtocolAddRootSTLVToBuf [15:53:21]FM_MakeSignedData [15:53:21]FM_MakeSignedData [15:53:21]SAM_PROTO_SignData [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 0D 01 02 [15:53:21]Write to MH i2c: E2 08 00 5C 03 80 0D 01 02 00 00 00 00 D8 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [15:53:21]RAPDU: 90 00 [15:53:21]wFMCommunicate OK [15:53:21]wFMCommunicate request_size=255 [15:53:21]MH_SAM_APDU [15:53: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 71 B3 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1B 01 00 35 04 06 00 3D [15:53:21]Write to MH i2c: E2 02 01 5D 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 71 B3 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1B 01 00 35 04 06 00 3D 00 00 A0 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 5D 03 00 90 00 D4 [15:53:21]RAPDU: 90 00 [15:53:21]wFMCommunicate OK [15:53:21]wFMCommunicate request_size=10 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 0D 02 02 05 86 C0 9A 7B 20 [15:53:21]Write to MH i2c: E2 0D 00 5E 03 80 0D 02 02 05 00 86 C0 9A 7B 20 00 00 60 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 03 00 5E 03 00 90 00 D5 [15:53:21]RAPDU: 90 00 [15:53:21]wFMCommunicate OK [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 0D 03 02 [15:53:21]Write to MH i2c: E2 08 00 5F 03 80 0D 03 02 00 00 00 00 DD [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 0B 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 0B 00 5F 03 00 79 13 60 BA 3E F5 EE 1F 90 00 C4 [15:53:21]RAPDU: 79 13 60 BA 3E F5 EE 1F 90 00 [15:53:21]wFMCommunicate OK [15:53:21]SAM_PROTO_SignData done [15:53:21]FM_MakeSignedData done [15:53:21]CreateOFDProtocolMessage [15:53:21]wFMCommunicate request_size=4 [15:53:21]MH_SAM_APDU [15:53:21]CAPDU: 80 11 00 00 [15:53:21]Write to MH i2c: E2 08 00 60 03 80 11 00 00 00 00 00 00 DD [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:21]Read from MH i2c: E2 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: E2 17 00 60 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [15:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:53:21]wFMCommunicate OK [15:53:21]CreateOFDProtocolMessage done [15:53:21]OFDSenderStorePacket 72582 [15:53:21]StoreOFDPacket docnum=72582 [15:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 55 9F 07 01 97 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 71 B3 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1B 01 00 35 04 06 00 3D 86 C0 9A 7B 20 79 13 60 BA 3E F5 EE 1F [15:53:21]CheckFolder [15:53:21]dirname=/storage/ofd_packets [15:53:21]CheckFolder done [15:53:21]ProducePacketName [15:53:21]name=ofd_packets/00072582 [15:53:21]NVStorageSaveData ofd_packets/00072582 [15:53:21]File name is /storage/ofd_packets/00072582 [15:53:21]Write 301 bytes [15:53:21]NVStorageSaveData done [15:53:21]OFDSenderStorePacket done [15:53:21]KKMCreateOFDPacket done [15:53:21]NVStorageSaveData kkm_last_timestamp [15:53:21]File name is /storage/kkm_last_timestamp [15:53:21]Write 4 bytes [15:53:21]NVStorageSaveData done [15:53:21]ExternCall_PrintAddStr [15:53:21]wPrintStart [15:53:21]Write to MH i2c: 01 00 00 61 03 64 [15:53:21]Write i2c OK [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 [15:53:21]MH_I2C_Read... [15:53:21]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [15:53:21]RasterBufferAndPrint [15:53:21]line Счет N : (1)952060 [15:53:21]line ИНН: 02508201610067 [15:53:21]line Контрольно-Кассовый Чек [15:53:21]line ПРОДАЖА [15:53:21]line ТРК (МРК, ГНК) : 63 [15:53:21]line Товар: 2710124130 [15:53:21]line Аи-92-К-5 [15:53:21]line 5.000 * 0.00 [15:53:21]line = 0.00 [15:53:21]line НДС 12% НСП 1% [15:53:21]line > о реализуемом товаре [15:53:21]line ИТОГО: 0.00 [15:53:21]line НСП 1% : 0.00 [15:53:21]line НДС 12% : 0.00 [15:53:21]line Наличными: 0.00 [15:53:21]line Безнал.: 0.00 [15:53:21]line Место: АЗС № 113 "Партнер Нефть" [15:53:21]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [15:53:21]line СНО: Общий режим [15:53:21]line Чек 110 28.10.2024 15:53 [15:53:21]line Смена: 554 ФФД: 1.0 [15:53:21]line ЗНМ: 0300000087 [15:53:21]line РНМ: 0000000000091644 [15:53:21]line Версия ККМ: 001 [15:53:21]line Талоны: Топливная Карта [15:53:21]line 03047 [15:53:21]line ФМ: 0000000000874662 [15:53:21]line ФД: 72582 [15:53:21]line ФПД: 67648966261536 [15:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T155321&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72582&fm=67648966261536&tin=02508201610067®Number=0000000000091644&sum=0 [15:53:21]written 0, free lines is 4095 [15:53:21]OFD Sender: Processing packet 72582 [packets to send 274, broken 273] [15:53:21]ProducePacketName [15:53:21]name=ofd_packets/00072582 [15:53:21]OFD Sender: To server: pG, [15:53:21]CommunicateWithHost lk.salyk.kg:30040 [15:53:21]ConnectInit lk.salyk.kg [15:53:22]Write to MH i2c: 01 00 00 8B 03 8E [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: 01 07 00 8B 03 00 00 00 00 00 DE 0C 7F [15:53:22]RasterBufferAndPrint [15:53:22]line [15:53:22]line [15:53:22]line [15:53:22]line [15:53:22]line [15:53:22]written 0, free lines is 3300 [15:53:22]MH_Cut [15:53:22]Write to MH i2c: D1 01 00 92 03 01 67 [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: D1 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: D1 01 00 [15:53:22]MH_I2C_Read... [15:53:22]Read from MH i2c: D1 01 00 92 03 00 66 [15:53:22]Write to MH i2c: 01 00 00 93 03 96 [15:53:22]Write i2c OK [15:53:22]MH_I2C_Read... [15:53:22]*** Cut start [15:53:22]*** Partial cut [15:53:22]*** CUTSNS_PIN = 1 [15:53:22]*** CUTSNS_PIN = 0 [15:53:23]*** Brake cut motor [15:53:23]Read from MH i2c: 01 [15:53:23]MH_I2C_Read... [15:53:23]*** Stop cut motor [15:53:23]*** Cut end [15:53:23]Read from MH i2c: 01 07 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 FF 0F AB [15:53:23]process_action close_receipt done [15:53:23]requested_data is exist [15:53:23]produce_requested_data [15:53:23]requested_item fm.sn is exist - process it [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 11 00 00 [15:53:23]Write to MH i2c: E2 08 00 94 03 80 11 00 00 00 00 00 00 11 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 17 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 17 00 94 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 65 [15:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [15:53:23]wFMCommunicate OK [15:53:23]requested_item fd.num is exist - process it [15:53:23]SAM_PROTO_GetFieldsCounters [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 13 00 00 [15:53:23]Write to MH i2c: E2 08 00 95 03 80 13 00 00 00 00 00 00 14 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 62 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 62 00 95 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [15:53: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 86 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_GetFieldsCounters done [15:53:23]requested_item shift.num is exist - process it [15:53:23]requested_item shift.opened is exist - process it [15:53:23]req_shift_opened [15:53:23]FM_GetShiftState [15:53:23]SAM_PROTO_GetShiftState [15:53:23]wFMCommunicate request_size=4 [15:53:23]MH_SAM_APDU [15:53:23]CAPDU: 80 13 01 00 [15:53:23]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [15:53:23]Write i2c OK [15:53:23]MH_I2C_Read... [15:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:53:23]Read from MH i2c: E2 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 0E 00 [15:53:23]MH_I2C_Read... [15:53:23]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7E [15:53:23]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [15:53:23]wFMCommunicate OK [15:53:23]SAM_PROTO_GetShiftState done [15:53:23]FM_GetShiftState done [15:53:23]req_shift_opened done [15:53:23]requested_item shift.open_date is exist - process it [15:53:23]req_shift_open_date [15:53:23]req_shift_open_date done [15:53:23]produce_requested_data done [15:53:23]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72582,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [15:53:23]process_action_free close_receipt [15:53:23]json_value_free [15:53:23]json_value_free done [15:53:23]process_json_proto returns [15:53:23]Send response to host [15:53:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72582,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [15:53:23]free response buf [15:53:23]execute_script done [15:53:23]execute_script returns [15:53:23]free content buf [15:53:23]Sock 9.Close socket [15:53:23]Sock 9.Thread stoped [15:53:26]ConnectInit Can't take IP for lk.salyk.kg [15:53:26]CommunicateWithHost connect error [15:53:26]CommunicateWithHost err = -1 [15:53:26]OFD Sender: Server communicate error [15:53:31]OFD Sender: Processing packet 72582 [packets to send 274, broken 273] [15:53:31]ProducePacketName [15:53:31]name=ofd_packets/00072582 [15:53:31]OFD Sender: To server: pG, [15:53:31]CommunicateWithHost lk.salyk.kg:30040 [15:53:31]ConnectInit lk.salyk.kg [15:53:33]Connected sock=9 [15:53:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 55 9F 07 01 97 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 71 B3 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1B 01 00 35 04 06 00 3D 86 C0 9A 7B 20 79 13 60 BA 3E F5 EE 1F [15:53:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C 12 47 00 2F 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 86 1B 01 00 F4 03 04 00 3A 5E 1F 67 B6 04 01 00 00 56 13 8E 5B FB 21 EE 1A [15:53:34]CommunicateWithHost err = 0 [15:53:34]CheckOFDResponse [15:53:34]1017 (14) - 77093643461234 [15:53:34]1041 (16) - 0000000000874662 [15:53:34]1040 (4) - 72582 [15:53:34]1012 (4) - 28.10.2024 09:49 [15:53:34]1206 (1) - 0 [15:53:34]OFD Sender: Remove packet 72582 [15:53:34]ProducePacketName [15:53:34]name=ofd_packets/00072582 [15:53:34]NVStorageDeleteData [15:53:34]OFD Sender: No OFD packet to send [15:53:39]OFD Sender: No OFD packet to send [15:53:43]recv_with_timeout no data received [15:53:44]OFD Sender: No OFD packet to send [15:53:49]OFD Sender: No OFD packet to send [15:53:54]OFD Sender: No OFD packet to send [15:53:59]OFD Sender: No OFD packet to send [15:54:03]recv_with_timeout no data received [15:54:04]OFD Sender: No OFD packet to send [15:54:09]OFD Sender: No OFD packet to send [15:54:14]recv_with_timeout no data received [15:54:14]OFD Sender: No OFD packet to send [15:54:19]OFD Sender: No OFD packet to send [15:54:24]OFD Sender: No OFD packet to send [15:54:29]OFD Sender: No OFD packet to send [15:54:32]recv_with_timeout no data received [15:54:34]OFD Sender: No OFD packet to send [15:54:39]OFD Sender: No OFD packet to send [15:54:43]recv_with_timeout no data received [15:54:44]OFD Sender: No OFD packet to send [15:54:49]OFD Sender: No OFD packet to send [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:22]recv_with_timeout no data received [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:34]OFD Sender: No OFD packet to send [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:47]recv_with_timeout no data received [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:42]recv_with_timeout no data received [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:04]OFD Sender: No OFD packet to send [15:57:09]OFD Sender: No OFD packet to send [15:57:14]OFD Sender: No OFD packet to send [15:57:19]OFD Sender: No OFD packet to send [15:57:24]OFD Sender: No OFD packet to send [15:57:29]OFD Sender: No OFD packet to send [15:57:34]OFD Sender: No OFD packet to send [15:57:39]OFD Sender: No OFD packet to send [15:57:44]OFD Sender: No OFD packet to send [15:57:49]OFD Sender: No OFD packet to send [15:57:54]OFD Sender: No OFD packet to send [15:57:57]recv_with_timeout no data received [15:57:59]OFD Sender: No OFD packet to send [15:58:04]OFD Sender: No OFD packet to send [15:58:09]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:50]OFD Sender: No OFD packet to send [15:58:55]OFD Sender: No OFD packet to send [15:59:00]OFD Sender: No OFD packet to send [15:59:05]OFD Sender: No OFD packet to send [15:59:10]OFD Sender: No OFD packet to send [15:59:15]OFD Sender: No OFD packet to send [15:59:19]recv_with_timeout no data received [15:59:20]OFD Sender: No OFD packet to send [15:59:25]OFD Sender: No OFD packet to send [15:59:30]OFD Sender: No OFD packet to send [15:59:35]OFD Sender: No OFD packet to send [15:59:40]OFD Sender: No OFD packet to send [15:59:45]OFD Sender: No OFD packet to send [15:59:50]OFD Sender: No OFD packet to send [15:59:55]OFD Sender: No OFD packet to send [16:00:00]OFD Sender: No OFD packet to send [16:00:05]OFD Sender: No OFD packet to send [16:00:10]OFD Sender: No OFD packet to send [16:00:15]OFD Sender: No OFD packet to send [16:00:20]OFD Sender: No OFD packet to send [16:00:25]OFD Sender: No OFD packet to send [16:00:28]recv_with_timeout no data received [16:00:30]OFD Sender: No OFD packet to send [16:00:35]OFD Sender: No OFD packet to send [16:00:40]OFD Sender: No OFD packet to send [16:00:45]OFD Sender: No OFD packet to send [16:00:50]OFD Sender: No OFD packet to send [16:00:55]OFD Sender: No OFD packet to send [16:01:00]OFD Sender: No OFD packet to send [16:01:05]OFD Sender: No OFD packet to send [16:01:10]OFD Sender: No OFD packet to send [16:01:15]OFD Sender: No OFD packet to send [16:01:20]OFD Sender: No OFD packet to send [16:01:25]OFD Sender: No OFD packet to send [16:01:28]recv_with_timeout no data received [16:01:30]OFD Sender: No OFD packet to send [16:01:35]OFD Sender: No OFD packet to send [16:01:40]OFD Sender: No OFD packet to send [16:01:45]OFD Sender: No OFD packet to send [16:01:47]accept exits with 7 [16:01:47]New connection [16:01:47]New thread 3066809700 created [16:01:47]Thread 3066666340 joined [16:01:47]Waiting for new connection... [16:01:47] Sock 7.Parse request [16:01:47]Sock 7.Check first char [16:01:47]Sock 7.First char is OK [16:01:47]request: POST /json_proto HTTP/1.0 [16:01:47]Method: POST [16:01:47]URL: /json_proto [16:01:47]Method is POST - this is cgi request [16:01:47]url: /json_proto [16:01:47]query_string will be loaded in cgi processing [16:01:47]execute_cgi json_proto POST (null) [16:01:47]execute_cgi path=json_proto method=POST [16:01:47]POST find Content-Length [16:01:47]Host: 172.17.43.195:8080 [16:01:47]Content-Length: 791 [16:01:47]Content-Type: application/json [16:01:47] [16:01:47]POST finish read [16:01:47]Found Content-Length = 791 [16:01:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:47]execute_script... [16: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)952062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:01:47]POST & json_proto [16:01:47]process_json_proto [16:01:47]json parsed OK: [16:01:47]protocol is kg_v1.0 [16:01:47]action value=close_receipt [16:01:47]process_action close_receipt [16:01:47]cmd_close_receipt [16:01:47]MH_GetDate [16:01:47]Write to MH i2c: F0 00 00 97 03 89 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: F0 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: F0 09 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: F0 09 00 97 03 00 6D B5 1F 67 74 2C AD 66 ED [16:01:47]GetLastDocTimeStamp 1730130801 [16:01:47]current date 1730131309 [16:01:47]FM_GetShiftState [16:01:47]SAM_PROTO_GetShiftState [16:01:47]wFMCommunicate request_size=4 [16:01:47]MH_SAM_APDU [16:01:47]CAPDU: 80 13 01 00 [16:01:47]Write to MH i2c: E2 08 00 98 03 80 13 01 00 00 00 00 00 18 [16:01:47]Write i2c OK [16:01:47]MH_I2C_Read... [16:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:47]Read from MH i2c: E2 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0E 00 [16:01:47]MH_I2C_Read... [16:01:47]Read from MH i2c: E2 0E 00 98 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 80 [16:01:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:01:47]wFMCommunicate OK [16:01:47]SAM_PROTO_GetShiftState done [16:01:47]FM_GetShiftState done [16:01:47]opened in 1730074113 [16:01:47]opened+sec_in_day 1730160513 [16:01:47]quantity*price = 0 [16:01:47]sum+1 = 1 [16:01:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 111 28.10.2024 16:01 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72583 ФПД: 234633762693769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160149&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72583&fm=234633762693769&tin=02508201610067®Number=0000000000091644&sum=0 [16:01:48]StoreToDocumentArchive [16:01:48]shift 554 fd 72583 [16:01:48]save to /storage/0554/doc_00072583 [16:01:48]save last doc name /storage/0554/doc_00072583 to /storage/kkm_last_doc_name [16:01:48]save OK [16:01:48]Clear old archive folders... [16:01:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:01:48]tlvbuf is 00447900 [16:01:48]SAM_PROTO_ClearQueue [16:01:48]wFMCommunicate request_size=4 [16:01:48]MH_SAM_APDU [16:01:48]CAPDU: 80 09 00 00 [16:01:48]Write to MH i2c: E2 08 00 A5 03 80 09 00 00 00 00 00 00 1A [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:01:48]Read from MH i2c: E2 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: E2 03 00 [16:01:48]MH_I2C_Read... [16:01:48]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [16:01:48]RAPDU: 90 00 [16:01:48]wFMCommunicate OK [16:01:48]SAM_PROTO_ClearQueue done [16:01:48]KKMCreateOFDPacket [16:01:48]OFDProtocolAddRootSTLVToBuf [16:01:48]FM_MakeSignedData [16:01:48]FM_MakeSignedData [16:01:48]SAM_PROTO_SignData [16:01:48]wFMCommunicate request_size=4 [16:01:48]MH_SAM_APDU [16:01:48]CAPDU: 80 0D 01 02 [16:01:48]Write to MH i2c: E2 08 00 A6 03 80 0D 01 02 00 00 00 00 22 [16:01:48]Write i2c OK [16:01:48]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [16:01:49]RAPDU: 90 00 [16:01:49]wFMCommunicate OK [16:01:49]wFMCommunicate request_size=255 [16:01:49]MH_SAM_APDU [16: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6D B5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1B 01 00 35 04 06 00 D5 [16:01:49]Write to MH i2c: E2 02 01 A7 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6D B5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1B 01 00 35 04 06 00 D5 00 00 82 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 A7 03 00 90 00 1E [16:01:49]RAPDU: 90 00 [16:01:49]wFMCommunicate OK [16:01:49]wFMCommunicate request_size=10 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 0D 02 02 05 65 EE 13 E2 89 [16:01:49]Write to MH i2c: E2 0D 00 A8 03 80 0D 02 02 05 00 65 EE 13 E2 89 00 00 00 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 03 00 A8 03 00 90 00 1F [16:01:49]RAPDU: 90 00 [16:01:49]wFMCommunicate OK [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 0D 03 02 [16:01:49]Write to MH i2c: E2 08 00 A9 03 80 0D 03 02 00 00 00 00 27 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0B 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 0B 00 A9 03 00 63 FE 2B 83 43 DD 84 0A 90 00 E5 [16:01:49]RAPDU: 63 FE 2B 83 43 DD 84 0A 90 00 [16:01:49]wFMCommunicate OK [16:01:49]SAM_PROTO_SignData done [16:01:49]FM_MakeSignedData done [16:01:49]CreateOFDProtocolMessage [16:01:49]wFMCommunicate request_size=4 [16:01:49]MH_SAM_APDU [16:01:49]CAPDU: 80 11 00 00 [16:01:49]Write to MH i2c: E2 08 00 AA 03 80 11 00 00 00 00 00 00 27 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:49]Read from MH i2c: E2 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 17 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: E2 17 00 AA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [16:01:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:01:49]wFMCommunicate OK [16:01:49]CreateOFDProtocolMessage done [16:01:49]OFDSenderStorePacket 72583 [16:01:49]StoreOFDPacket docnum=72583 [16:01:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 48 AA 07 01 B1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6D B5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1B 01 00 35 04 06 00 D5 65 EE 13 E2 89 63 FE 2B 83 43 DD 84 0A [16:01:49]CheckFolder [16:01:49]dirname=/storage/ofd_packets [16:01:49]CheckFolder done [16:01:49]ProducePacketName [16:01:49]name=ofd_packets/00072583 [16:01:49]NVStorageSaveData ofd_packets/00072583 [16:01:49]File name is /storage/ofd_packets/00072583 [16:01:49]Write 301 bytes [16:01:49]NVStorageSaveData done [16:01:49]OFDSenderStorePacket done [16:01:49]KKMCreateOFDPacket done [16:01:49]NVStorageSaveData kkm_last_timestamp [16:01:49]File name is /storage/kkm_last_timestamp [16:01:49]Write 4 bytes [16:01:49]NVStorageSaveData done [16:01:49]ExternCall_PrintAddStr [16:01:49]wPrintStart [16:01:49]Write to MH i2c: 01 00 00 AB 03 AE [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 FF 0F C3 [16:01:49]RasterBufferAndPrint [16:01:49]line Счет N : (1)952062 [16:01:49]line ИНН: 02508201610067 [16:01:49]line Контрольно-Кассовый Чек [16:01:49]line ПРОДАЖА [16:01:49]line ТРК (МРК, ГНК) : 63 [16:01:49]line Товар: 2710124130 [16:01:49]line Аи-92-К-5 [16:01:49]line 5.000 * 0.00 [16:01:49]line = 0.00 [16:01:49]line НДС 12% НСП 1% [16:01:49]line > о реализуемом товаре [16:01:49]line ИТОГО: 0.00 [16:01:49]line НСП 1% : 0.00 [16:01:49]line НДС 12% : 0.00 [16:01:49]line Наличными: 0.00 [16:01:49]line Безнал.: 0.00 [16:01:49]line Место: АЗС № 113 "Партнер Нефть" [16:01:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:01:49]line СНО: Общий режим [16:01:49]line Чек 111 28.10.2024 16:01 [16:01:49]line Смена: 554 ФФД: 1.0 [16:01:49]line ЗНМ: 0300000087 [16:01:49]line РНМ: 0000000000091644 [16:01:49]line Версия ККМ: 001 [16:01:49]line Талоны: Топливная Карта [16:01:49]line 03047 [16:01:49]line ФМ: 0000000000874662 [16:01:49]line ФД: 72583 [16:01:49]line ФПД: 234633762693769 [16:01:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160149&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72583&fm=234633762693769&tin=02508201610067®Number=0000000000091644&sum=0 [16:01:49]written 0, free lines is 4095 [16:01:49]OFD Sender: Processing packet 72583 [packets to send 274, broken 273] [16:01:49]ProducePacketName [16:01:49]name=ofd_packets/00072583 [16:01:49]OFD Sender: To server: pG, [16:01:49]CommunicateWithHost lk.salyk.kg:30040 [16:01:49]ConnectInit lk.salyk.kg [16:01:49]Write to MH i2c: 01 00 00 D5 03 D8 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: 01 07 00 D5 03 00 00 00 00 00 E4 0C CF [16:01:49]RasterBufferAndPrint [16:01:49]line [16:01:49]line [16:01:49]line [16:01:49]line [16:01:49]line [16:01:49]written 0, free lines is 3306 [16:01:49]MH_Cut [16:01:49]Write to MH i2c: D1 01 00 DC 03 01 B1 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: D1 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: D1 01 00 [16:01:49]MH_I2C_Read... [16:01:49]Read from MH i2c: D1 01 00 DC 03 00 B0 [16:01:49]Write to MH i2c: 01 00 00 DD 03 E0 [16:01:49]Write i2c OK [16:01:49]MH_I2C_Read... [16:01:50]Connected sock=10 [16: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 34 36 36 32 0F 01 00 00 48 AA 07 01 B1 C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 6D B5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 87 1B 01 00 35 04 06 00 D5 65 EE 13 E2 89 63 FE 2B 83 43 DD 84 0A [16:01:50]*** Cut start [16:01:50]*** Partial cut [16:01:50]*** CUTSNS_PIN = 1 [16:01:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E2 3F 47 00 35 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 34 36 36 32 10 04 04 00 87 1B 01 00 F4 03 04 00 2B 60 1F 67 B6 04 01 00 00 92 9C 17 A3 2D 60 B1 AB [16:01:50]CommunicateWithHost err = 0 [16:01:50]CheckOFDResponse [16:01:50]1017 (14) - 77093643461234 [16:01:50]1041 (16) - 0000000000874662 [16:01:50]1040 (4) - 72583 [16:01:50]1012 (4) - 28.10.2024 09:58 [16:01:50]1206 (1) - 0 [16:01:50]OFD Sender: Remove packet 72583 [16:01:50]ProducePacketName [16:01:50]name=ofd_packets/00072583 [16:01:50]NVStorageDeleteData [16:01:50]*** CUTSNS_PIN = 0 [16:01:50]*** Brake cut motor [16:01:51]OFD Sender: No OFD packet to send [16:01:51]Read from MH i2c: 01 [16:01:51]MH_I2C_Read... [16:01:51]*** Stop cut motor [16:01:51]*** Cut end [16:01:51]Read from MH i2c: 01 07 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: 01 07 00 DD 03 00 00 00 00 00 FF 0F F5 [16:01:51]process_action close_receipt done [16:01:51]requested_data is exist [16:01:51]produce_requested_data [16:01:51]requested_item fm.sn is exist - process it [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 11 00 00 [16:01:51]Write to MH i2c: E2 08 00 DE 03 80 11 00 00 00 00 00 00 5B [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 17 00 DE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AF [16:01:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:01:51]wFMCommunicate OK [16:01:51]requested_item fd.num is exist - process it [16:01:51]SAM_PROTO_GetFieldsCounters [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 13 00 00 [16:01:51]Write to MH i2c: E2 08 00 DF 03 80 13 00 00 00 00 00 00 5E [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 62 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 62 00 DF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [16:01: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 87 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_GetFieldsCounters done [16:01:51]requested_item shift.num is exist - process it [16:01:51]requested_item shift.opened is exist - process it [16:01:51]req_shift_opened [16:01:51]FM_GetShiftState [16:01:51]SAM_PROTO_GetShiftState [16:01:51]wFMCommunicate request_size=4 [16:01:51]MH_SAM_APDU [16:01:51]CAPDU: 80 13 01 00 [16:01:51]Write to MH i2c: E2 08 00 E0 03 80 13 01 00 00 00 00 00 60 [16:01:51]Write i2c OK [16:01:51]MH_I2C_Read... [16:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:01:51]Read from MH i2c: E2 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 0E 00 [16:01:51]MH_I2C_Read... [16:01:51]Read from MH i2c: E2 0E 00 E0 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C8 [16:01:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:01:51]wFMCommunicate OK [16:01:51]SAM_PROTO_GetShiftState done [16:01:51]FM_GetShiftState done [16:01:51]req_shift_opened done [16:01:51]requested_item shift.open_date is exist - process it [16:01:51]req_shift_open_date [16:01:51]req_shift_open_date done [16:01:51]produce_requested_data done [16:01:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72583,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:01:51]process_action_free close_receipt [16:01:51]json_value_free [16:01:51]json_value_free done [16:01:51]process_json_proto returns [16:01:51]Send response to host [16:01:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72583,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:01:51]free response buf [16:01:51]execute_script done [16:01:51]execute_script returns [16:01:51]free content buf [16:01:51]Sock 7.Close socket [16:01:51]Sock 7.Thread stoped [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:41]OFD Sender: No OFD packet to send [16:02:46]OFD Sender: No OFD packet to send [16:02:51]OFD Sender: No OFD packet to send [16:02:56]OFD Sender: No OFD packet to send [16:03:01]OFD Sender: No OFD packet to send [16:03:06]OFD Sender: No OFD packet to send [16:03:11]OFD Sender: No OFD packet to send [16:03:16]OFD Sender: No OFD packet to send [16:03:21]OFD Sender: No OFD packet to send [16:03:26]OFD Sender: No OFD packet to send [16:03:27]recv_with_timeout no data received [16:03:31]OFD Sender: No OFD packet to send [16:03:36]OFD Sender: No OFD packet to send [16:03:41]OFD Sender: No OFD packet to send [16:03:46]OFD Sender: No OFD packet to send [16:03:51]OFD Sender: No OFD packet to send [16:03:56]OFD Sender: No OFD packet to send [16:03:59]recv_with_timeout no data received [16:04:01]OFD Sender: No OFD packet to send [16:04:06]OFD Sender: No OFD packet to send [16:04:11]OFD Sender: No OFD packet to send [16:04:16]OFD Sender: No OFD packet to send [16:04:21]OFD Sender: No OFD packet to send [16:04:26]OFD Sender: No OFD packet to send [16:04:31]recv_with_timeout no data received [16:04:31]OFD Sender: No OFD packet to send [16:04:36]OFD Sender: No OFD packet to send [16:04:41]OFD Sender: No OFD packet to send [16:04:46]OFD Sender: No OFD packet to send [16:04:49]recv_with_timeout no data received [16:04:51]OFD Sender: No OFD packet to send [16:04:56]OFD Sender: No OFD packet to send [16:05:01]OFD Sender: No OFD packet to send [16:05:06]OFD Sender: No OFD packet to send [16:05:11]OFD Sender: No OFD packet to send [16:05:16]OFD Sender: No OFD packet to send [16:05:21]OFD Sender: No OFD packet to send [16:05:26]OFD Sender: No OFD packet to send [16:05:31]OFD Sender: No OFD packet to send [16:05:36]OFD Sender: No OFD packet to send [16:05:39]recv_with_timeout no data received [16:05:41]OFD Sender: No OFD packet to send [16:05:46]OFD Sender: No OFD packet to send [16:05:51]OFD Sender: No OFD packet to send [16:05:56]OFD Sender: No OFD packet to send [16:06:01]OFD Sender: No OFD packet to send [16:06:06]OFD Sender: No OFD packet to send [16:06:11]recv_with_timeout no data received [16:06:11]OFD Sender: No OFD packet to send [16:06:16]OFD Sender: No OFD packet to send [16:06:21]OFD Sender: No OFD packet to send [16:06:26]OFD Sender: No OFD packet to send [16:06:31]OFD Sender: No OFD packet to send [16:06:36]OFD Sender: No OFD packet to send [16:06:41]OFD Sender: No OFD packet to send [16:06:44]accept exits with 9 [16:06:44]New connection [16:06:44]New thread 3066666340 created [16:06:44]Thread 3066809700 joined [16:06:44]Waiting for new connection... [16:06:44] Sock 9.Parse request [16:06:44]Sock 9.Check first char [16:06:44]Sock 9.First char is OK [16:06:44]request: POST /json_proto HTTP/1.0 [16:06:44]Method: POST [16:06:44]URL: /json_proto [16:06:44]Method is POST - this is cgi request [16:06:44]url: /json_proto [16:06:44]query_string will be loaded in cgi processing [16:06:44]execute_cgi json_proto POST (null) [16:06:44]execute_cgi path=json_proto method=POST [16:06:44]POST find Content-Length [16:06:44]Host: 172.17.43.195:8080 [16:06:44]Content-Length: 816 [16:06:44]Content-Type: application/json [16:06:44] [16:06:44]POST finish read [16:06:44]Found Content-Length = 816 [16:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:44]execute_script... [16:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:44]POST & json_proto [16:06:44]process_json_proto [16:06:44]json parsed OK: [16:06:44]protocol is kg_v1.0 [16:06:44]action value=close_receipt [16:06:44]process_action close_receipt [16:06:44]cmd_close_receipt [16:06:44]MH_GetDate [16:06:44]Write to MH i2c: F0 00 00 E1 03 D3 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: F0 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: F0 09 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: F0 09 00 E1 03 00 95 B6 1F 67 74 2C AD 66 60 [16:06:44]GetLastDocTimeStamp 1730131309 [16:06:44]current date 1730131605 [16:06:44]FM_GetShiftState [16:06:44]SAM_PROTO_GetShiftState [16:06:44]wFMCommunicate request_size=4 [16:06:44]MH_SAM_APDU [16:06:44]CAPDU: 80 13 01 00 [16:06:44]Write to MH i2c: E2 08 00 E2 03 80 13 01 00 00 00 00 00 62 [16:06:44]Write i2c OK [16:06:44]MH_I2C_Read... [16:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:44]Read from MH i2c: E2 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0E 00 [16:06:44]MH_I2C_Read... [16:06:44]Read from MH i2c: E2 0E 00 E2 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 CA [16:06:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:06:44]wFMCommunicate OK [16:06:44]SAM_PROTO_GetShiftState done [16:06:44]FM_GetShiftState done [16:06:44]opened in 1730074113 [16:06:44]opened+sec_in_day 1730160513 [16:06:44]quantity*price = 50041 [16:06:44]sum+1 = 50042 [16:06:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 112 28.10.2024 16:06 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72584 ФПД: 203615581484313 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160645&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72584&fm=203615581484313&tin=02508201610067®Number=0000000000091644&sum=50041 [16:06:45]StoreToDocumentArchive [16:06:45]shift 554 fd 72584 [16:06:45]save to /storage/0554/doc_00072584 [16:06:45]save last doc name /storage/0554/doc_00072584 to /storage/kkm_last_doc_name [16:06:45]save OK [16:06:45]Clear old archive folders... [16:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:06:45]tlvbuf is 00448C90 [16:06:45]SAM_PROTO_ClearQueue [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 09 00 00 [16:06:45]Write to MH i2c: E2 08 00 EF 03 80 09 00 00 00 00 00 00 64 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]SAM_PROTO_ClearQueue done [16:06:45]KKMCreateOFDPacket [16:06:45]OFDProtocolAddRootSTLVToBuf [16:06:45]FM_MakeSignedData [16:06:45]FM_MakeSignedData [16:06:45]SAM_PROTO_SignData [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 01 02 [16:06:45]Write to MH i2c: E2 08 00 F0 03 80 0D 01 02 00 00 00 00 6C [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=255 [16:06:45]MH_SAM_APDU [16:06: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 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 70 00 00 00 F4 03 04 00 95 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1B 01 00 35 04 06 00 B9 [16:06:45]Write to MH i2c: E2 02 01 F1 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 70 00 00 00 F4 03 04 00 95 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1B 01 00 35 04 06 00 B9 00 00 17 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=10 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 02 02 05 2F F2 67 B5 19 [16:06:45]Write to MH i2c: E2 0D 00 F2 03 80 0D 02 02 05 00 2F F2 67 B5 19 00 00 CF [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 03 00 F2 03 00 90 00 69 [16:06:45]RAPDU: 90 00 [16:06:45]wFMCommunicate OK [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 0D 03 02 [16:06:45]Write to MH i2c: E2 08 00 F3 03 80 0D 03 02 00 00 00 00 71 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 0B 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 0B 00 F3 03 00 5F F2 10 5D D3 FF 0B BE 90 00 CB [16:06:45]RAPDU: 5F F2 10 5D D3 FF 0B BE 90 00 [16:06:45]wFMCommunicate OK [16:06:45]SAM_PROTO_SignData done [16:06:45]FM_MakeSignedData done [16:06:45]CreateOFDProtocolMessage [16:06:45]wFMCommunicate request_size=4 [16:06:45]MH_SAM_APDU [16:06:45]CAPDU: 80 11 00 00 [16:06:45]Write to MH i2c: E2 08 00 F4 03 80 11 00 00 00 00 00 00 71 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:45]Read from MH i2c: E2 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 17 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: E2 17 00 F4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [16:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:06:45]wFMCommunicate OK [16:06:45]CreateOFDProtocolMessage done [16:06:45]OFDSenderStorePacket 72584 [16:06:45]StoreOFDPacket docnum=72584 [16:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 38 07 01 3D BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 70 00 00 00 F4 03 04 00 95 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1B 01 00 35 04 06 00 B9 2F F2 67 B5 19 5F F2 10 5D D3 FF 0B BE [16:06:45]CheckFolder [16:06:45]dirname=/storage/ofd_packets [16:06:45]CheckFolder done [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00072584 [16:06:45]NVStorageSaveData ofd_packets/00072584 [16:06:45]File name is /storage/ofd_packets/00072584 [16:06:45]Write 301 bytes [16:06:45]NVStorageSaveData done [16:06:45]OFDSenderStorePacket done [16:06:45]KKMCreateOFDPacket done [16:06:45]NVStorageSaveData kkm_last_timestamp [16:06:45]File name is /storage/kkm_last_timestamp [16:06:45]Write 4 bytes [16:06:45]NVStorageSaveData done [16:06:45]ExternCall_PrintAddStr [16:06:45]wPrintStart [16:06:45]Write to MH i2c: 01 00 00 F5 03 F8 [16:06:45]Write i2c OK [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 [16:06:45]MH_I2C_Read... [16:06:45]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [16:06:45]RasterBufferAndPrint [16:06:45]line Счет N : (1)952063 [16:06:45]line ИНН: 02508201610067 [16:06:45]line Контрольно-Кассовый Чек [16:06:45]line ПРОДАЖА [16:06:45]line ТРК (МРК, ГНК) : 63 [16:06:45]line Товар: 2710124130 [16:06:45]line Аи-92-К-5 [16:06:45]line 7.480 * 66.90 [16:06:45]line = 500.41 [16:06:45]line НДС 12% НСП 1% [16:06:45]line > о реализуемом товаре [16:06:45]line ИТОГО: 500.41 [16:06:45]line НСП 1% : 4.43 [16:06:45]line НДС 12% : 53.14 [16:06:45]line Наличными: 0.00 [16:06:45]line Безнал.: 500.41 [16:06:45]line Место: АЗС № 113 "Партнер Нефть" [16:06:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:06:45]line СНО: Общий режим [16:06:45]line Чек 112 28.10.2024 16:06 [16:06:45]line Смена: 554 ФФД: 1.0 [16:06:45]line ЗНМ: 0300000087 [16:06:45]line РНМ: 0000000000091644 [16:06:45]line Версия ККМ: 001 [16:06:45]line Платежная система: Бакай банк [16:06:45]line ФМ: 0000000000874662 [16:06:45]line ФД: 72584 [16:06:45]line ФПД: 203615581484313 [16:06:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160645&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72584&fm=203615581484313&tin=02508201610067®Number=0000000000091644&sum=50041 [16:06:45]written 0, free lines is 4095 [16:06:45]OFD Sender: Processing packet 72584 [packets to send 274, broken 273] [16:06:45]ProducePacketName [16:06:45]name=ofd_packets/00072584 [16:06:45]OFD Sender: To server: pG, [16:06:45]CommunicateWithHost lk.salyk.kg:30040 [16:06:45]ConnectInit lk.salyk.kg [16:06:46]Write to MH i2c: 01 00 00 1F 04 23 [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 07 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 E2 0C 18 [16:06:46]RasterBufferAndPrint [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]line [16:06:46]written 0, free lines is 3304 [16:06:46]MH_Cut [16:06:46]Write to MH i2c: D1 01 00 26 04 01 FC [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 01 00 [16:06:46]MH_I2C_Read... [16:06:46]Read from MH i2c: D1 01 00 26 04 00 FB [16:06:46]Write to MH i2c: 01 00 00 27 04 2B [16:06:46]Write i2c OK [16:06:46]MH_I2C_Read... [16:06:46]Connected sock=11 [16:06:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 38 07 01 3D BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 70 00 00 00 F4 03 04 00 95 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1B 01 00 35 04 06 00 B9 2F F2 67 B5 19 5F F2 10 5D D3 FF 0B BE [16:06:46]*** Cut start [16:06:46]*** Partial cut [16:06:46]*** CUTSNS_PIN = 1 [16:06:47]*** CUTSNS_PIN = 0 [16:06:47]*** Brake cut motor [16:06:47]Read from MH i2c: 01 [16:06:47]MH_I2C_Read... [16:06:47]*** Stop cut motor [16:06:47]*** Cut end [16:06:47]Read from MH i2c: 01 07 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [16:06:47]process_action close_receipt done [16:06:47]requested_data is exist [16:06:47]produce_requested_data [16:06:47]requested_item fm.sn is exist - process it [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 11 00 00 [16:06:47]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [16:06:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:06:47]wFMCommunicate OK [16:06:47]requested_item fd.num is exist - process it [16:06:47]SAM_PROTO_GetFieldsCounters [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 00 00 [16:06:47]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 62 00 29 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [16:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 88 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetFieldsCounters done [16:06:47]requested_item shift.num is exist - process it [16:06:47]requested_item shift.opened is exist - process it [16:06:47]req_shift_opened [16:06:47]FM_GetShiftState [16:06:47]SAM_PROTO_GetShiftState [16:06:47]wFMCommunicate request_size=4 [16:06:47]MH_SAM_APDU [16:06:47]CAPDU: 80 13 01 00 [16:06:47]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [16:06:47]Write i2c OK [16:06:47]MH_I2C_Read... [16:06:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:47]Read from MH i2c: E2 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 [16:06:47]MH_I2C_Read... [16:06:47]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 13 [16:06:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:06:47]wFMCommunicate OK [16:06:47]SAM_PROTO_GetShiftState done [16:06:47]FM_GetShiftState done [16:06:47]req_shift_opened done [16:06:47]requested_item shift.open_date is exist - process it [16:06:47]req_shift_open_date [16:06:47]req_shift_open_date done [16:06:47]produce_requested_data done [16:06:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72584,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:06:47]process_action_free close_receipt [16:06:47]json_value_free [16:06:47]json_value_free done [16:06:47]process_json_proto returns [16:06:47]Send response to host [16:06:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72584,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:06:47]free response buf [16:06:47]execute_script done [16:06:47]execute_script returns [16:06:47]free content buf [16:06:47]Sock 9.Close socket [16:06:47]Sock 9.Thread stoped [16:06:51]recv_with_timeout no data received [16:06:51]CommunicateWithHost answer receiving error [16:06:51]CommunicateWithHost err = -3 [16:06:51]OFD Sender: Server communicate error [16:06:56]OFD Sender: Processing packet 72584 [packets to send 274, broken 273] [16:06:56]ProducePacketName [16:06:56]name=ofd_packets/00072584 [16:06:56]OFD Sender: To server: pG, [16:06:56]CommunicateWithHost lk.salyk.kg:30040 [16:06:56]ConnectInit lk.salyk.kg [16:06:58]Connected sock=9 [16:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 38 07 01 3D BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 70 00 00 00 F4 03 04 00 95 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 88 1B 01 00 35 04 06 00 B9 2F F2 67 B5 19 5F F2 10 5D D3 FF 0B BE [16:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 AB 01 47 00 E9 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 34 36 36 32 10 04 04 00 88 1B 01 00 F4 03 04 00 5F 61 1F 67 B6 04 01 00 00 0D 20 67 C6 04 A8 F9 48 [16:06:58]CommunicateWithHost err = 0 [16:06:58]CheckOFDResponse [16:06:58]1017 (14) - 77093643461234 [16:06:58]1041 (16) - 0000000000874662 [16:06:58]1040 (4) - 72584 [16:06:58]1012 (4) - 28.10.2024 10:03 [16:06:58]1206 (1) - 0 [16:06:58]OFD Sender: Remove packet 72584 [16:06:58]ProducePacketName [16:06:58]name=ofd_packets/00072584 [16:06:58]NVStorageDeleteData [16:06:59]OFD Sender: No OFD packet to send [16:07:04]OFD Sender: No OFD packet to send [16:07:09]OFD Sender: No OFD packet to send [16:07:14]OFD Sender: No OFD packet to send [16:07:18]accept exits with 10 [16:07:18]New connection [16:07:18]New thread 3066809700 created [16:07:18]Thread 3066666340 joined [16:07:18]Waiting for new connection... [16:07:18] Sock 10.Parse request [16:07:18]Sock 10.Check first char [16:07:18]Sock 10.First char is OK [16:07:18]request: POST /json_proto HTTP/1.0 [16:07:18]Method: POST [16:07:18]URL: /json_proto [16:07:18]Method is POST - this is cgi request [16:07:18]url: /json_proto [16:07:18]query_string will be loaded in cgi processing [16:07:18]execute_cgi json_proto POST (null) [16:07:18]execute_cgi path=json_proto method=POST [16:07:18]POST find Content-Length [16:07:18]Host: 172.17.43.195:8080 [16:07:18]Content-Length: 797 [16:07:18]Content-Type: application/json [16:07:18] [16:07:18]POST finish read [16:07:18]Found Content-Length = 797 [16:07:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:18]execute_script... [16:07: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)952064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 13.130, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:07:18]POST & json_proto [16:07:18]process_json_proto [16:07:18]json parsed OK: [16:07:18]protocol is kg_v1.0 [16:07:18]action value=close_receipt [16:07:18]process_action close_receipt [16:07:18]cmd_close_receipt [16:07:18]MH_GetDate [16:07:18]Write to MH i2c: F0 00 00 2B 04 1E [16:07:18]Write i2c OK [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 09 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: F0 09 00 2B 04 00 B7 B6 1F 67 74 2C AD 66 CD [16:07:18]GetLastDocTimeStamp 1730131605 [16:07:18]current date 1730131639 [16:07:18]FM_GetShiftState [16:07:18]SAM_PROTO_GetShiftState [16:07:18]wFMCommunicate request_size=4 [16:07:18]MH_SAM_APDU [16:07:18]CAPDU: 80 13 01 00 [16:07:18]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [16:07:18]Write i2c OK [16:07:18]MH_I2C_Read... [16:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:18]Read from MH i2c: E2 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 [16:07:18]MH_I2C_Read... [16:07:18]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 15 [16:07:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:07:18]wFMCommunicate OK [16:07:18]SAM_PROTO_GetShiftState done [16:07:18]FM_GetShiftState done [16:07:18]opened in 1730074113 [16:07:18]opened+sec_in_day 1730160513 [16:07:18]quantity*price = 0 [16:07:18]sum+1 = 1 [16:07:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 113 28.10.2024 16:07 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72585 ФПД: 186479478589014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160719&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72585&fm=186479478589014&tin=02508201610067®Number=0000000000091644&sum=0 [16:07:19]StoreToDocumentArchive [16:07:19]shift 554 fd 72585 [16:07:19]save to /storage/0554/doc_00072585 [16:07:19]save last doc name /storage/0554/doc_00072585 to /storage/kkm_last_doc_name [16:07:19]save OK [16:07:19]Clear old archive folders... [16:07:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:07:19]tlvbuf is 003D4EA0 [16:07:19]SAM_PROTO_ClearQueue [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 09 00 00 [16:07:19]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]SAM_PROTO_ClearQueue done [16:07:19]KKMCreateOFDPacket [16:07:19]OFDProtocolAddRootSTLVToBuf [16:07:19]FM_MakeSignedData [16:07:19]FM_MakeSignedData [16:07:19]SAM_PROTO_SignData [16:07:19]wFMCommunicate request_size=4 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 01 02 [16:07:19]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:07:19]Read from MH i2c: E2 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 [16:07:19]MH_I2C_Read... [16:07:19]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [16:07:19]RAPDU: 90 00 [16:07:19]wFMCommunicate OK [16:07:19]wFMCommunicate request_size=255 [16:07:19]MH_SAM_APDU [16:07:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1B 01 00 35 04 06 00 [16:07:19]Write to MH i2c: E2 02 01 3B 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1B 01 00 35 04 06 00 00 00 AE [16:07:19]Write i2c OK [16:07:19]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 03 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [16:07:20]RAPDU: 90 00 [16:07:20]wFMCommunicate OK [16:07:20]wFMCommunicate request_size=11 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 0D 02 02 06 A9 9A 23 14 46 56 [16:07:20]Write to MH i2c: E2 0E 00 3C 04 80 0D 02 02 06 00 A9 9A 23 14 46 56 00 00 DC [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 03 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [16:07:20]RAPDU: 90 00 [16:07:20]wFMCommunicate OK [16:07:20]wFMCommunicate request_size=4 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 0D 03 02 [16:07:20]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 0B 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 0B 00 3D 04 00 FE 87 82 8E 0F 14 DE E5 90 00 38 [16:07:20]RAPDU: FE 87 82 8E 0F 14 DE E5 90 00 [16:07:20]wFMCommunicate OK [16:07:20]SAM_PROTO_SignData done [16:07:20]FM_MakeSignedData done [16:07:20]CreateOFDProtocolMessage [16:07:20]wFMCommunicate request_size=4 [16:07:20]MH_SAM_APDU [16:07:20]CAPDU: 80 11 00 00 [16:07:20]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:20]Read from MH i2c: E2 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 17 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [16:07:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:07:20]wFMCommunicate OK [16:07:20]CreateOFDProtocolMessage done [16:07:20]OFDSenderStorePacket 72585 [16:07:20]StoreOFDPacket docnum=72585 [16:07:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 08 81 08 01 FD 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1B 01 00 35 04 06 00 A9 9A 23 14 46 56 FE 87 82 8E 0F 14 DE E5 [16:07:20]CheckFolder [16:07:20]dirname=/storage/ofd_packets [16:07:20]CheckFolder done [16:07:20]ProducePacketName [16:07:20]name=ofd_packets/00072585 [16:07:20]NVStorageSaveData ofd_packets/00072585 [16:07:20]File name is /storage/ofd_packets/00072585 [16:07:20]Write 302 bytes [16:07:20]NVStorageSaveData done [16:07:20]OFDSenderStorePacket done [16:07:20]KKMCreateOFDPacket done [16:07:20]NVStorageSaveData kkm_last_timestamp [16:07:20]File name is /storage/kkm_last_timestamp [16:07:20]Write 4 bytes [16:07:20]NVStorageSaveData done [16:07:20]ExternCall_PrintAddStr [16:07:20]wPrintStart [16:07:20]Write to MH i2c: 01 00 00 3F 04 43 [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [16:07:20]RasterBufferAndPrint [16:07:20]line Счет N : (1)952064 [16:07:20]line ИНН: 02508201610067 [16:07:20]line Контрольно-Кассовый Чек [16:07:20]line ПРОДАЖА [16:07:20]line ТРК (МРК, ГНК) : 22 [16:07:20]line Товар: 2710194210 [16:07:20]line ДТ(л)-К-5 [16:07:20]line 13.130 * 0.00 [16:07:20]line = 0.00 [16:07:20]line НДС 12% НСП 1% [16:07:20]line > о реализуемом товаре [16:07:20]line ИТОГО: 0.00 [16:07:20]line НСП 1% : 0.00 [16:07:20]line НДС 12% : 0.00 [16:07:20]line Наличными: 0.00 [16:07:20]line Безнал.: 0.00 [16:07:20]line Место: АЗС № 113 "Партнер Нефть" [16:07:20]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:07:20]line СНО: Общий режим [16:07:20]line Чек 113 28.10.2024 16:07 [16:07:20]line Смена: 554 ФФД: 1.0 [16:07:20]line ЗНМ: 0300000087 [16:07:20]line РНМ: 0000000000091644 [16:07:20]line Версия ККМ: 001 [16:07:20]line Талоны: Топливная Карта [16:07:20]line 02083 [16:07:20]line ФМ: 0000000000874662 [16:07:20]line ФД: 72585 [16:07:20]line ФПД: 186479478589014 [16:07:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160719&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72585&fm=186479478589014&tin=02508201610067®Number=0000000000091644&sum=0 [16:07:20]written 0, free lines is 4095 [16:07:20]OFD Sender: Processing packet 72585 [packets to send 274, broken 273] [16:07:20]ProducePacketName [16:07:20]name=ofd_packets/00072585 [16:07:20]OFD Sender: To server: pG, [16:07:20]CommunicateWithHost lk.salyk.kg:30040 [16:07:20]ConnectInit lk.salyk.kg [16:07:20]Write to MH i2c: 01 00 00 69 04 6D [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: 01 07 00 69 04 00 00 00 00 00 DE 0C 5E [16:07:20]RasterBufferAndPrint [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]line [16:07:20]written 0, free lines is 3300 [16:07:20]MH_Cut [16:07:20]Write to MH i2c: D1 01 00 70 04 01 46 [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: D1 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: D1 01 00 [16:07:20]MH_I2C_Read... [16:07:20]Read from MH i2c: D1 01 00 70 04 00 45 [16:07:20]Write to MH i2c: 01 00 00 71 04 75 [16:07:20]Write i2c OK [16:07:20]MH_I2C_Read... [16:07:21]*** Cut start [16:07:21]*** Partial cut [16:07:21]*** CUTSNS_PIN = 1 [16:07:21]*** CUTSNS_PIN = 0 [16:07:21]*** Brake cut motor [16:07:22]Read from MH i2c: 01 [16:07:22]MH_I2C_Read... [16:07:22]*** Stop cut motor [16:07:22]*** Cut end [16:07:22]Read from MH i2c: 01 07 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: 01 07 00 71 04 00 00 00 00 00 FF 0F 8A [16:07:22]process_action close_receipt done [16:07:22]requested_data is exist [16:07:22]produce_requested_data [16:07:22]requested_item fm.sn is exist - process it [16:07:22]wFMCommunicate request_size=4 [16:07:22]MH_SAM_APDU [16:07:22]CAPDU: 80 11 00 00 [16:07:22]Write to MH i2c: E2 08 00 72 04 80 11 00 00 00 00 00 00 F0 [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:07:22]recv_with_timeout no data received [16:07:22]Read from MH i2c: E2 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 17 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 17 00 72 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 44 [16:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:07:22]wFMCommunicate OK [16:07:22]requested_item fd.num is exist - process it [16:07:22]SAM_PROTO_GetFieldsCounters [16:07:22]wFMCommunicate request_size=4 [16:07:22]MH_SAM_APDU [16:07:22]CAPDU: 80 13 00 00 [16:07:22]Write to MH i2c: E2 08 00 73 04 80 13 00 00 00 00 00 00 F3 [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:07:22]Read from MH i2c: E2 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 62 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 62 00 73 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 89 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [16:07: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 89 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:07:22]wFMCommunicate OK [16:07:22]SAM_PROTO_GetFieldsCounters done [16:07:22]requested_item shift.num is exist - process it [16:07:22]requested_item shift.opened is exist - process it [16:07:22]req_shift_opened [16:07:22]FM_GetShiftState [16:07:22]SAM_PROTO_GetShiftState [16:07:22]wFMCommunicate request_size=4 [16:07:22]MH_SAM_APDU [16:07:22]CAPDU: 80 13 01 00 [16:07:22]Write to MH i2c: E2 08 00 74 04 80 13 01 00 00 00 00 00 F5 [16:07:22]Write i2c OK [16:07:22]MH_I2C_Read... [16:07:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:07:22]Read from MH i2c: E2 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 0E 00 [16:07:22]MH_I2C_Read... [16:07:22]Read from MH i2c: E2 0E 00 74 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 5D [16:07:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:07:22]wFMCommunicate OK [16:07:22]SAM_PROTO_GetShiftState done [16:07:22]FM_GetShiftState done [16:07:22]req_shift_opened done [16:07:22]requested_item shift.open_date is exist - process it [16:07:22]req_shift_open_date [16:07:22]req_shift_open_date done [16:07:22]produce_requested_data done [16:07:22]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72585,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:07:22]process_action_free close_receipt [16:07:22]json_value_free [16:07:22]json_value_free done [16:07:22]process_json_proto returns [16:07:22]Send response to host [16:07:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72585,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:07:22]free response buf [16:07:22]execute_script done [16:07:22]execute_script returns [16:07:22]free content buf [16:07:22]Sock 10.Close socket [16:07:22]Sock 10.Thread stoped [16:07:25]ConnectInit Can't take IP for lk.salyk.kg [16:07:25]CommunicateWithHost connect error [16:07:25]CommunicateWithHost err = -1 [16:07:25]OFD Sender: Server communicate error [16:07:30]OFD Sender: Processing packet 72585 [packets to send 274, broken 273] [16:07:30]ProducePacketName [16:07:30]name=ofd_packets/00072585 [16:07:30]OFD Sender: To server: pG, [16:07:30]CommunicateWithHost lk.salyk.kg:30040 [16:07:30]ConnectInit lk.salyk.kg [16:07:34]Connected sock=10 [16:07:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 08 81 08 01 FD 49 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 B7 B6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1B 01 00 35 04 06 00 A9 9A 23 14 46 56 FE 87 82 8E 0F 14 DE E5 [16:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FD E6 47 00 47 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 89 1B 01 00 F4 03 04 00 84 61 1F 67 B6 04 01 00 00 02 DB 0E CE 97 A7 1D 29 [16:07:35]CommunicateWithHost err = 0 [16:07:35]CheckOFDResponse [16:07:35]1017 (14) - 77093643461234 [16:07:35]1041 (16) - 0000000000874662 [16:07:35]1040 (4) - 72585 [16:07:35]1012 (4) - 28.10.2024 10:03 [16:07:35]1206 (1) - 0 [16:07:35]OFD Sender: Remove packet 72585 [16:07:35]ProducePacketName [16:07:35]name=ofd_packets/00072585 [16:07:35]NVStorageDeleteData [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:44]recv_with_timeout no data received [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:17]recv_with_timeout no data received [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:31]OFD Sender: No OFD packet to send [16:08:36]OFD Sender: No OFD packet to send [16:08:38]recv_with_timeout no data received [16:08:41]OFD Sender: No OFD packet to send [16:08:46]OFD Sender: No OFD packet to send [16:08:51]OFD Sender: No OFD packet to send [16:08:56]OFD Sender: No OFD packet to send [16:08:57]recv_with_timeout no data received [16:09:01]OFD Sender: No OFD packet to send [16:09:06]OFD Sender: No OFD packet to send [16:09:11]OFD Sender: No OFD packet to send [16:09:15]recv_with_timeout no data received [16:09:16]OFD Sender: No OFD packet to send [16:09:21]OFD Sender: No OFD packet to send [16:09:26]OFD Sender: No OFD packet to send [16:09:26]recv_with_timeout no data received [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:48]accept exits with 9 [16:09:48]New connection [16:09:48]New thread 3066666340 created [16:09:48]Thread 3066809700 joined [16:09:48]Waiting for new connection... [16:09:48] Sock 9.Parse request [16:09:48]Sock 9.Check first char [16:09:48]Sock 9.First char is OK [16:09:48]request: POST /json_proto HTTP/1.0 [16:09:48]Method: POST [16:09:48]URL: /json_proto [16:09:48]Method is POST - this is cgi request [16:09:48]url: /json_proto [16:09:48]query_string will be loaded in cgi processing [16:09:48]execute_cgi json_proto POST (null) [16:09:48]execute_cgi path=json_proto method=POST [16:09:48]POST find Content-Length [16:09:48]Host: 172.17.43.195:8080 [16:09:48]Content-Length: 791 [16:09:48]Content-Type: application/json [16:09:48] [16:09:48]POST finish read [16:09:48]Found Content-Length = 791 [16:09:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:48]execute_script... [16:09:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:09:48]POST & json_proto [16:09:48]process_json_proto [16:09:48]json parsed OK: [16:09:48]protocol is kg_v1.0 [16:09:48]action value=close_receipt [16:09:48]process_action close_receipt [16:09:48]cmd_close_receipt [16:09:48]MH_GetDate [16:09:48]Write to MH i2c: F0 00 00 75 04 68 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: F0 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: F0 09 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: F0 09 00 75 04 00 4D B7 1F 67 74 2C AD 66 AE [16:09:48]GetLastDocTimeStamp 1730131639 [16:09:48]current date 1730131789 [16:09:48]FM_GetShiftState [16:09:48]SAM_PROTO_GetShiftState [16:09:48]wFMCommunicate request_size=4 [16:09:48]MH_SAM_APDU [16:09:48]CAPDU: 80 13 01 00 [16:09:48]Write to MH i2c: E2 08 00 76 04 80 13 01 00 00 00 00 00 F7 [16:09:48]Write i2c OK [16:09:48]MH_I2C_Read... [16:09:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:48]Read from MH i2c: E2 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0E 00 [16:09:48]MH_I2C_Read... [16:09:48]Read from MH i2c: E2 0E 00 76 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 5F [16:09:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:09:48]wFMCommunicate OK [16:09:48]SAM_PROTO_GetShiftState done [16:09:48]FM_GetShiftState done [16:09:48]opened in 1730074113 [16:09:48]opened+sec_in_day 1730160513 [16:09:48]quantity*price = 0 [16:09:48]sum+1 = 1 [16:09:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 114 28.10.2024 16:09 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72586 ФПД: 275222888959805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160949&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72586&fm=275222888959805&tin=02508201610067®Number=0000000000091644&sum=0 [16:09:49]StoreToDocumentArchive [16:09:49]shift 554 fd 72586 [16:09:49]save to /storage/0554/doc_00072586 [16:09:49]save last doc name /storage/0554/doc_00072586 to /storage/kkm_last_doc_name [16:09:49]save OK [16:09:49]Clear old archive folders... [16:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:09:49]tlvbuf is 003D68C0 [16:09:49]SAM_PROTO_ClearQueue [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 09 00 00 [16:09:49]Write to MH i2c: E2 08 00 83 04 80 09 00 00 00 00 00 00 F9 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 83 04 00 90 00 FB [16:09:49]RAPDU: 90 00 [16:09:49]wFMCommunicate OK [16:09:49]SAM_PROTO_ClearQueue done [16:09:49]KKMCreateOFDPacket [16:09:49]OFDProtocolAddRootSTLVToBuf [16:09:49]FM_MakeSignedData [16:09:49]FM_MakeSignedData [16:09:49]SAM_PROTO_SignData [16:09:49]wFMCommunicate request_size=4 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 0D 01 02 [16:09:49]Write to MH i2c: E2 08 00 84 04 80 0D 01 02 00 00 00 00 01 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [16:09:49]RAPDU: 90 00 [16:09:49]wFMCommunicate OK [16:09:49]wFMCommunicate request_size=255 [16:09:49]MH_SAM_APDU [16:09: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1B 01 00 35 04 06 00 FA [16:09:49]Write to MH i2c: E2 02 01 85 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1B 01 00 35 04 06 00 FA 00 00 6E [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:49]Read from MH i2c: E2 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 [16:09:49]MH_I2C_Read... [16:09:49]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [16:09:49]RAPDU: 90 00 [16:09:49]wFMCommunicate OK [16:09:49]wFMCommunicate request_size=10 [16:09:49]MH_SAM_APDU [16:09:49]CAPDU: 80 0D 02 02 05 50 52 87 CF 3D [16:09:49]Write to MH i2c: E2 0D 00 86 04 80 0D 02 02 05 00 50 52 87 CF 3D 00 00 43 [16:09:49]Write i2c OK [16:09:49]MH_I2C_Read... [16:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 03 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [16:09:50]RAPDU: 90 00 [16:09:50]wFMCommunicate OK [16:09:50]wFMCommunicate request_size=4 [16:09:50]MH_SAM_APDU [16:09:50]CAPDU: 80 0D 03 02 [16:09:50]Write to MH i2c: E2 08 00 87 04 80 0D 03 02 00 00 00 00 06 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 0B 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 0B 00 87 04 00 88 79 D7 17 F8 DC 83 B4 90 00 01 [16:09:50]RAPDU: 88 79 D7 17 F8 DC 83 B4 90 00 [16:09:50]wFMCommunicate OK [16:09:50]SAM_PROTO_SignData done [16:09:50]FM_MakeSignedData done [16:09:50]CreateOFDProtocolMessage [16:09:50]wFMCommunicate request_size=4 [16:09:50]MH_SAM_APDU [16:09:50]CAPDU: 80 11 00 00 [16:09:50]Write to MH i2c: E2 08 00 88 04 80 11 00 00 00 00 00 00 06 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:50]Read from MH i2c: E2 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 17 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: E2 17 00 88 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [16:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:09:50]wFMCommunicate OK [16:09:50]CreateOFDProtocolMessage done [16:09:50]OFDSenderStorePacket 72586 [16:09:50]StoreOFDPacket docnum=72586 [16:09:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 43 07 01 3C 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1B 01 00 35 04 06 00 FA 50 52 87 CF 3D 88 79 D7 17 F8 DC 83 B4 [16:09:50]CheckFolder [16:09:50]dirname=/storage/ofd_packets [16:09:50]CheckFolder done [16:09:50]ProducePacketName [16:09:50]name=ofd_packets/00072586 [16:09:50]NVStorageSaveData ofd_packets/00072586 [16:09:50]File name is /storage/ofd_packets/00072586 [16:09:50]Write 301 bytes [16:09:50]NVStorageSaveData done [16:09:50]OFDSenderStorePacket done [16:09:50]KKMCreateOFDPacket done [16:09:50]NVStorageSaveData kkm_last_timestamp [16:09:50]File name is /storage/kkm_last_timestamp [16:09:50]Write 4 bytes [16:09:50]NVStorageSaveData done [16:09:50]ExternCall_PrintAddStr [16:09:50]wPrintStart [16:09:50]Write to MH i2c: 01 00 00 89 04 8D [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 89 04 00 00 00 00 00 FF 0F A2 [16:09:50]RasterBufferAndPrint [16:09:50]line Счет N : (1)952065 [16:09:50]line ИНН: 02508201610067 [16:09:50]line Контрольно-Кассовый Чек [16:09:50]line ПРОДАЖА [16:09:50]line ТРК (МРК, ГНК) : 63 [16:09:50]line Товар: 2710124130 [16:09:50]line Аи-92-К-5 [16:09:50]line 5.000 * 0.00 [16:09:50]line = 0.00 [16:09:50]line НДС 12% НСП 1% [16:09:50]line > о реализуемом товаре [16:09:50]line ИТОГО: 0.00 [16:09:50]line НСП 1% : 0.00 [16:09:50]line НДС 12% : 0.00 [16:09:50]line Наличными: 0.00 [16:09:50]line Безнал.: 0.00 [16:09:50]line Место: АЗС № 113 "Партнер Нефть" [16:09:50]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:09:50]line СНО: Общий режим [16:09:50]line Чек 114 28.10.2024 16:09 [16:09:50]line Смена: 554 ФФД: 1.0 [16:09:50]line ЗНМ: 0300000087 [16:09:50]line РНМ: 0000000000091644 [16:09:50]line Версия ККМ: 001 [16:09:50]line Талоны: Топливная Карта [16:09:50]line 03047 [16:09:50]line ФМ: 0000000000874662 [16:09:50]line ФД: 72586 [16:09:50]line ФПД: 275222888959805 [16:09:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T160949&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72586&fm=275222888959805&tin=02508201610067®Number=0000000000091644&sum=0 [16:09:50]written 0, free lines is 4095 [16:09:50]OFD Sender: Processing packet 72586 [packets to send 274, broken 273] [16:09:50]ProducePacketName [16:09:50]name=ofd_packets/00072586 [16:09:50]OFD Sender: To server: pG, [16:09:50]CommunicateWithHost lk.salyk.kg:30040 [16:09:50]ConnectInit lk.salyk.kg [16:09:50]Write to MH i2c: 01 00 00 B3 04 B7 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: 01 07 00 B3 04 00 00 00 00 00 E4 0C AE [16:09:50]RasterBufferAndPrint [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]line [16:09:50]written 0, free lines is 3306 [16:09:50]MH_Cut [16:09:50]Write to MH i2c: D1 01 00 BA 04 01 90 [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 01 00 [16:09:50]MH_I2C_Read... [16:09:50]Read from MH i2c: D1 01 00 BA 04 00 8F [16:09:50]Write to MH i2c: 01 00 00 BB 04 BF [16:09:50]Write i2c OK [16:09:50]MH_I2C_Read... [16:09:51]Connected sock=7 [16:09:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 97 43 07 01 3C 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 4D B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8A 1B 01 00 35 04 06 00 FA 50 52 87 CF 3D 88 79 D7 17 F8 DC 83 B4 [16:09:51]*** Cut start [16:09:51]*** Partial cut [16:09:51]*** CUTSNS_PIN = 1 [16:09:51]*** CUTSNS_PIN = 0 [16:09:51]*** Brake cut motor [16:09:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8F E0 47 00 64 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 34 36 36 32 10 04 04 00 8A 1B 01 00 F4 03 04 00 0C 62 1F 67 B6 04 01 00 00 E1 F1 9B B0 37 D9 A5 EB [16:09:51]CommunicateWithHost err = 0 [16:09:51]CheckOFDResponse [16:09:51]1017 (14) - 77093643461234 [16:09:51]1041 (16) - 0000000000874662 [16:09:51]1040 (4) - 72586 [16:09:51]1012 (4) - 28.10.2024 10:06 [16:09:51]1206 (1) - 0 [16:09:51]OFD Sender: Remove packet 72586 [16:09:51]ProducePacketName [16:09:51]name=ofd_packets/00072586 [16:09:51]NVStorageDeleteData [16:09:51]Read from MH i2c: 01 [16:09:51]MH_I2C_Read... [16:09:51]*** Stop cut motor [16:09:51]*** Cut end [16:09:51]Read from MH i2c: 01 07 00 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: 01 07 00 BB 04 00 00 00 00 00 FF 0F D4 [16:09:51]process_action close_receipt done [16:09:51]requested_data is exist [16:09:51]produce_requested_data [16:09:51]requested_item fm.sn is exist - process it [16:09:51]wFMCommunicate request_size=4 [16:09:51]MH_SAM_APDU [16:09:51]CAPDU: 80 11 00 00 [16:09:51]Write to MH i2c: E2 08 00 BC 04 80 11 00 00 00 00 00 00 3A [16:09:51]Write i2c OK [16:09:51]MH_I2C_Read... [16:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:09:51]Read from MH i2c: E2 [16:09:51]MH_I2C_Read... [16:09:51]Read from MH i2c: E2 17 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 17 00 BC 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8E [16:09:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:09:52]wFMCommunicate OK [16:09:52]requested_item fd.num is exist - process it [16:09:52]SAM_PROTO_GetFieldsCounters [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 13 00 00 [16:09:52]Write to MH i2c: E2 08 00 BD 04 80 13 00 00 00 00 00 00 3D [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 62 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 62 00 BD 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [16:09: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8A 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:09:52]wFMCommunicate OK [16:09:52]SAM_PROTO_GetFieldsCounters done [16:09:52]requested_item shift.num is exist - process it [16:09:52]requested_item shift.opened is exist - process it [16:09:52]req_shift_opened [16:09:52]FM_GetShiftState [16:09:52]SAM_PROTO_GetShiftState [16:09:52]wFMCommunicate request_size=4 [16:09:52]MH_SAM_APDU [16:09:52]CAPDU: 80 13 01 00 [16:09:52]Write to MH i2c: E2 08 00 BE 04 80 13 01 00 00 00 00 00 3F [16:09:52]Write i2c OK [16:09:52]MH_I2C_Read... [16:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:09:52]Read from MH i2c: E2 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0E 00 [16:09:52]MH_I2C_Read... [16:09:52]Read from MH i2c: E2 0E 00 BE 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A7 [16:09:52]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:09:52]wFMCommunicate OK [16:09:52]SAM_PROTO_GetShiftState done [16:09:52]FM_GetShiftState done [16:09:52]req_shift_opened done [16:09:52]requested_item shift.open_date is exist - process it [16:09:52]req_shift_open_date [16:09:52]req_shift_open_date done [16:09:52]produce_requested_data done [16:09:52]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72586,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:09:52]process_action_free close_receipt [16:09:52]json_value_free [16:09:52]json_value_free done [16:09:52]process_json_proto returns [16:09:52]Send response to host [16:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72586,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:09:52]free response buf [16:09:52]execute_script done [16:09:52]execute_script returns [16:09:52]free content buf [16:09:52]Sock 9.Close socket [16:09:52]Sock 9.Thread stoped [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:10]recv_with_timeout no data received [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:24]recv_with_timeout no data received [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]recv_with_timeout no data received [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:53]accept exits with 10 [16:11:53]New connection [16:11:53]New thread 3066809700 created [16:11:53]Thread 3066666340 joined [16:11:53]Waiting for new connection... [16:11:53] Sock 10.Parse request [16:11:53]Sock 10.Check first char [16:11:53]Sock 10.First char is OK [16:11:53]request: POST /json_proto HTTP/1.0 [16:11:53]Method: POST [16:11:53]URL: /json_proto [16:11:53]Method is POST - this is cgi request [16:11:53]url: /json_proto [16:11:53]query_string will be loaded in cgi processing [16:11:53]execute_cgi json_proto POST (null) [16:11:53]execute_cgi path=json_proto method=POST [16:11:53]POST find Content-Length [16:11:53]Host: 172.17.43.195:8080 [16:11:53]Content-Length: 677 [16:11:53]Content-Type: application/json [16:11:53] [16:11:53]POST finish read [16:11:53]Found Content-Length = 677 [16:11:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:53]execute_script... [16:11: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)952066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:11:53]POST & json_proto [16:11:53]process_json_proto [16:11:53]json parsed OK: [16:11:53]protocol is kg_v1.0 [16:11:53]action value=close_receipt [16:11:53]process_action close_receipt [16:11:53]cmd_close_receipt [16:11:53]MH_GetDate [16:11:53]Write to MH i2c: F0 00 00 BF 04 B2 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: F0 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: F0 09 00 [16:11:53]MH_I2C_Read... [16:11:53]Read from MH i2c: F0 09 00 BF 04 00 CB B7 1F 67 74 2C AD 66 76 [16:11:53]GetLastDocTimeStamp 1730131789 [16:11:53]current date 1730131915 [16:11:53]FM_GetShiftState [16:11:53]SAM_PROTO_GetShiftState [16:11:53]wFMCommunicate request_size=4 [16:11:53]MH_SAM_APDU [16:11:53]CAPDU: 80 13 01 00 [16:11:53]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [16:11:53]Write i2c OK [16:11:53]MH_I2C_Read... [16:11:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:54]Read from MH i2c: E2 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 0E 00 [16:11:54]MH_I2C_Read... [16:11:54]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A9 [16:11:54]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:11:54]wFMCommunicate OK [16:11:54]SAM_PROTO_GetShiftState done [16:11:54]FM_GetShiftState done [16:11:54]opened in 1730074113 [16:11:54]opened+sec_in_day 1730160513 [16:11:54]quantity*price = 50010 [16:11:54]sum+1 = 50012 [16:11:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 115 28.10.2024 16:11 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72587 ФПД: 177471251133828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161155&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72587&fm=177471251133828&tin=02508201610067®Number=0000000000091644&sum=50000 [16:11:55]StoreToDocumentArchive [16:11:55]shift 554 fd 72587 [16:11:55]save to /storage/0554/doc_00072587 [16:11:55]save last doc name /storage/0554/doc_00072587 to /storage/kkm_last_doc_name [16:11:55]save OK [16:11:55]Clear old archive folders... [16:11:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:11:55]tlvbuf is 003C3340 [16:11:55]SAM_PROTO_ClearQueue [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 09 00 00 [16:11:55]Write to MH i2c: E2 08 00 CD 04 80 09 00 00 00 00 00 00 43 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 CD 04 00 90 00 45 [16:11:55]RAPDU: 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_ClearQueue done [16:11:55]KKMCreateOFDPacket [16:11:55]OFDProtocolAddRootSTLVToBuf [16:11:55]FM_MakeSignedData [16:11:55]FM_MakeSignedData [16:11:55]SAM_PROTO_SignData [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 0D 01 02 [16:11:55]Write to MH i2c: E2 08 00 CE 04 80 0D 01 02 00 00 00 00 4B [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 CE 04 00 90 00 46 [16:11:55]RAPDU: 90 00 [16:11:55]wFMCommunicate OK [16:11:55]wFMCommunicate request_size=255 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CB B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1B 01 00 35 04 06 00 A1 [16:11:55]Write to MH i2c: E2 02 01 CF 04 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CB B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1B 01 00 35 04 06 00 A1 00 00 9F [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [16:11:55]RAPDU: 90 00 [16:11:55]wFMCommunicate OK [16:11:55]wFMCommunicate request_size=10 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 0D 02 02 05 68 BE E1 B5 84 [16:11:55]Write to MH i2c: E2 0D 00 D0 04 80 0D 02 02 05 00 68 BE E1 B5 84 00 00 98 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [16:11:55]RAPDU: 90 00 [16:11:55]wFMCommunicate OK [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 0D 03 02 [16:11:55]Write to MH i2c: E2 08 00 D1 04 80 0D 03 02 00 00 00 00 50 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0B 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 0B 00 D1 04 00 0E 7C 3C FC 8C DF D3 28 90 00 79 [16:11:55]RAPDU: 0E 7C 3C FC 8C DF D3 28 90 00 [16:11:55]wFMCommunicate OK [16:11:55]SAM_PROTO_SignData done [16:11:55]FM_MakeSignedData done [16:11:55]CreateOFDProtocolMessage [16:11:55]wFMCommunicate request_size=4 [16:11:55]MH_SAM_APDU [16:11:55]CAPDU: 80 11 00 00 [16:11:55]Write to MH i2c: E2 08 00 D2 04 80 11 00 00 00 00 00 00 50 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:55]Read from MH i2c: E2 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 17 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: E2 17 00 D2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A4 [16:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:55]wFMCommunicate OK [16:11:55]CreateOFDProtocolMessage done [16:11:55]OFDSenderStorePacket 72587 [16:11:55]StoreOFDPacket docnum=72587 [16:11:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C0 06 07 01 D0 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CB B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1B 01 00 35 04 06 00 A1 68 BE E1 B5 84 0E 7C 3C FC 8C DF D3 28 [16:11:55]CheckFolder [16:11:55]dirname=/storage/ofd_packets [16:11:55]CheckFolder done [16:11:55]ProducePacketName [16:11:55]name=ofd_packets/00072587 [16:11:55]NVStorageSaveData ofd_packets/00072587 [16:11:55]File name is /storage/ofd_packets/00072587 [16:11:55]Write 301 bytes [16:11:55]NVStorageSaveData done [16:11:55]OFDSenderStorePacket done [16:11:55]KKMCreateOFDPacket done [16:11:55]NVStorageSaveData kkm_last_timestamp [16:11:55]File name is /storage/kkm_last_timestamp [16:11:55]Write 4 bytes [16:11:55]NVStorageSaveData done [16:11:55]ExternCall_PrintAddStr [16:11:55]wPrintStart [16:11:55]Write to MH i2c: 01 00 00 D3 04 D7 [16:11:55]Write i2c OK [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: 01 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: 01 07 00 [16:11:55]MH_I2C_Read... [16:11:55]Read from MH i2c: 01 07 00 D3 04 00 00 00 00 00 FF 0F EC [16:11:55]RasterBufferAndPrint [16:11:55]line Счет N : (1)952066 [16:11:55]line ИНН: 02508201610067 [16:11:55]line Контрольно-Кассовый Чек [16:11:55]line ПРОДАЖА [16:11:55]line ТРК (МРК, ГНК) : 52 [16:11:55]line Товар: 2710124500 [16:11:55]line Аи-95-К-3 [16:11:55]line 6.740 * 74.20 [16:11:55]line = 500.11 [16:11:55]line НДС 12% НСП 1% [16:11:55]line > о реализуемом товаре [16:11:55]line ОКРУГЛЕНИЕ: -0.11 [16:11:55]line ИТОГО: 500.00 [16:11:55]line Внесено: 500.00 [16:11:55]line СДАЧА: 0.00 [16:11:55]line НСП 1% : 4.43 [16:11:55]line НДС 12% : 53.11 [16:11:55]line Наличными: 500.00 [16:11:55]line Безнал.: 0.00 [16:11:55]line Место: АЗС № 113 "Партнер Нефть" [16:11:55]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:11:55]line СНО: Общий режим [16:11:55]line Чек 115 28.10.2024 16:11 [16:11:55]line Смена: 554 ФФД: 1.0 [16:11:55]line ЗНМ: 0300000087 [16:11:55]line РНМ: 0000000000091644 [16:11:55]line Версия ККМ: 001 [16:11:55]line ФМ: 0000000000874662 [16:11:55]line ФД: 72587 [16:11:55]line ФПД: 177471251133828 [16:11:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161155&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72587&fm=177471251133828&tin=02508201610067®Number=0000000000091644&sum=50000 [16:11:55]written 0, free lines is 4095 [16:11:55]OFD Sender: Processing packet 72587 [packets to send 274, broken 273] [16:11:55]ProducePacketName [16:11:55]name=ofd_packets/00072587 [16:11:55]OFD Sender: To server: pG, [16:11:55]CommunicateWithHost lk.salyk.kg:30040 [16:11:55]ConnectInit lk.salyk.kg [16:11:56]Write to MH i2c: 01 00 00 FE 04 02 [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: 01 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: 01 07 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: 01 07 00 FE 04 00 00 00 00 00 CC 0C E1 [16:11:56]RasterBufferAndPrint [16:11:56]line [16:11:56]line [16:11:56]line [16:11:56]line [16:11:56]line [16:11:56]written 0, free lines is 3282 [16:11:56]MH_Cut [16:11:56]Write to MH i2c: D1 01 00 05 05 01 DC [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: D1 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: D1 01 00 [16:11:56]MH_I2C_Read... [16:11:56]Read from MH i2c: D1 01 00 05 05 00 DB [16:11:56]Write to MH i2c: 01 00 00 06 05 0B [16:11:56]Write i2c OK [16:11:56]MH_I2C_Read... [16:11:56]*** Cut start [16:11:56]*** Partial cut [16:11:56]*** CUTSNS_PIN = 1 [16:11:56]*** CUTSNS_PIN = 0 [16:11:57]*** Brake cut motor [16:11:57]Read from MH i2c: 01 [16:11:57]MH_I2C_Read... [16:11:57]*** Stop cut motor [16:11:57]*** Cut end [16:11:57]Read from MH i2c: 01 07 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: 01 07 00 06 05 00 00 00 00 00 FF 0F 20 [16:11:57]process_action close_receipt done [16:11:57]requested_data is exist [16:11:57]produce_requested_data [16:11:57]requested_item fm.sn is exist - process it [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 11 00 00 [16:11:57]Write to MH i2c: E2 08 00 07 05 80 11 00 00 00 00 00 00 86 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 17 00 07 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DA [16:11:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:11:57]wFMCommunicate OK [16:11:57]requested_item fd.num is exist - process it [16:11:57]SAM_PROTO_GetFieldsCounters [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 13 00 00 [16:11:57]Write to MH i2c: E2 08 00 08 05 80 13 00 00 00 00 00 00 89 [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 62 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 62 00 08 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [16:11: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:11:57]wFMCommunicate OK [16:11:57]SAM_PROTO_GetFieldsCounters done [16:11:57]requested_item shift.num is exist - process it [16:11:57]requested_item shift.opened is exist - process it [16:11:57]req_shift_opened [16:11:57]FM_GetShiftState [16:11:57]SAM_PROTO_GetShiftState [16:11:57]wFMCommunicate request_size=4 [16:11:57]MH_SAM_APDU [16:11:57]CAPDU: 80 13 01 00 [16:11:57]Write to MH i2c: E2 08 00 09 05 80 13 01 00 00 00 00 00 8B [16:11:57]Write i2c OK [16:11:57]MH_I2C_Read... [16:11:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:11:57]Read from MH i2c: E2 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0E 00 [16:11:57]MH_I2C_Read... [16:11:57]Read from MH i2c: E2 0E 00 09 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F3 [16:11:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:11:57]wFMCommunicate OK [16:11:57]SAM_PROTO_GetShiftState done [16:11:57]FM_GetShiftState done [16:11:57]req_shift_opened done [16:11:57]requested_item shift.open_date is exist - process it [16:11:57]req_shift_open_date [16:11:57]req_shift_open_date done [16:11:57]produce_requested_data done [16:11:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72587,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:11:57]process_action_free close_receipt [16:11:57]json_value_free [16:11:57]json_value_free done [16:11:57]process_json_proto returns [16:11:57]Send response to host [16:11:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72587,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:11:57]free response buf [16:11:57]execute_script done [16:11:57]execute_script returns [16:11:57]free content buf [16:11:57]Sock 10.Close socket [16:11:57]Sock 10.Thread stoped [16:12:00]ConnectInit Can't take IP for lk.salyk.kg [16:12:00]CommunicateWithHost connect error [16:12:00]CommunicateWithHost err = -1 [16:12:00]OFD Sender: Server communicate error [16:12:05]OFD Sender: Processing packet 72587 [packets to send 274, broken 273] [16:12:05]ProducePacketName [16:12:05]name=ofd_packets/00072587 [16:12:05]OFD Sender: To server: pG, [16:12:05]CommunicateWithHost lk.salyk.kg:30040 [16:12:05]ConnectInit lk.salyk.kg [16:12:09]recv_with_timeout no data received [16:12:12]Connected sock=10 [16:12:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C0 06 07 01 D0 7A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 CB B7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1B 01 00 35 04 06 00 A1 68 BE E1 B5 84 0E 7C 3C FC 8C DF D3 28 [16:12:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 06 F5 47 00 2B B2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8B 1B 01 00 F4 03 04 00 99 62 1F 67 B6 04 01 00 00 A4 C2 96 33 48 AF 65 D7 [16:12:12]CommunicateWithHost err = 0 [16:12:12]CheckOFDResponse [16:12:12]1017 (14) - 77093643461234 [16:12:12]1041 (16) - 0000000000874662 [16:12:12]1040 (4) - 72587 [16:12:12]1012 (4) - 28.10.2024 10:08 [16:12:12]1206 (1) - 0 [16:12:12]OFD Sender: Remove packet 72587 [16:12:12]ProducePacketName [16:12:12]name=ofd_packets/00072587 [16:12:12]NVStorageDeleteData [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:36]recv_with_timeout no data received [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:12:50]recv_with_timeout no data received [16:12:53]OFD Sender: No OFD packet to send [16:12:58]OFD Sender: No OFD packet to send [16:13:03]OFD Sender: No OFD packet to send [16:13:08]recv_with_timeout no data received [16:13:08]OFD Sender: No OFD packet to send [16:13:13]OFD Sender: No OFD packet to send [16:13:18]OFD Sender: No OFD packet to send [16:13:21]recv_with_timeout no data received [16:13:23]OFD Sender: No OFD packet to send [16:13:28]OFD Sender: No OFD packet to send [16:13:33]OFD Sender: No OFD packet to send [16:13:38]OFD Sender: No OFD packet to send [16:13:43]OFD Sender: No OFD packet to send [16:13:48]OFD Sender: No OFD packet to send [16:13:53]OFD Sender: No OFD packet to send [16:13:58]OFD Sender: No OFD packet to send [16:14:02]recv_with_timeout no data received [16:14:03]OFD Sender: No OFD packet to send [16:14:08]OFD Sender: No OFD packet to send [16:14:13]OFD Sender: No OFD packet to send [16:14:18]OFD Sender: No OFD packet to send [16:14:23]OFD Sender: No OFD packet to send [16:14:28]OFD Sender: No OFD packet to send [16:14:33]OFD Sender: No OFD packet to send [16:14:38]OFD Sender: No OFD packet to send [16:14:43]OFD Sender: No OFD packet to send [16:14:48]OFD Sender: No OFD packet to send [16:14:51]recv_with_timeout no data received [16:14:53]OFD Sender: No OFD packet to send [16:14:58]OFD Sender: No OFD packet to send [16:15:03]OFD Sender: No OFD packet to send [16:15:08]OFD Sender: No OFD packet to send [16:15:13]OFD Sender: No OFD packet to send [16:15:18]recv_with_timeout no data received [16:15:18]OFD Sender: No OFD packet to send [16:15:23]OFD Sender: No OFD packet to send [16:15:28]OFD Sender: No OFD packet to send [16:15:33]OFD Sender: No OFD packet to send [16:15:38]OFD Sender: No OFD packet to send [16:15:43]OFD Sender: No OFD packet to send [16:15:48]OFD Sender: No OFD packet to send [16:15:53]OFD Sender: No OFD packet to send [16:15:58]OFD Sender: No OFD packet to send [16:16:03]OFD Sender: No OFD packet to send [16:16:08]OFD Sender: No OFD packet to send [16:16:13]OFD Sender: No OFD packet to send [16:16:18]OFD Sender: No OFD packet to send [16:16:23]OFD Sender: No OFD packet to send [16:16:28]OFD Sender: No OFD packet to send [16:16:28]accept exits with 9 [16:16:28]New connection [16:16:28]New thread 3066666340 created [16:16:28]Thread 3066809700 joined [16:16:28]Waiting for new connection... [16:16:28] Sock 9.Parse request [16:16:28]Sock 9.Check first char [16:16:28]Sock 9.First char is OK [16:16:28]request: POST /json_proto HTTP/1.0 [16:16:28]Method: POST [16:16:28]URL: /json_proto [16:16:28]Method is POST - this is cgi request [16:16:28]url: /json_proto [16:16:28]query_string will be loaded in cgi processing [16:16:28]execute_cgi json_proto POST (null) [16:16:28]execute_cgi path=json_proto method=POST [16:16:28]POST find Content-Length [16:16:28]Host: 172.17.43.195:8080 [16:16:28]Content-Length: 792 [16:16:28]Content-Type: application/json [16:16:28] [16:16:28]POST finish read [16:16:28]Found Content-Length = 792 [16:16:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:28]execute_script... [16:16: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)952067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 29.900, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:16:28]POST & json_proto [16:16:28]process_json_proto [16:16:28]json parsed OK: [16:16:28]protocol is kg_v1.0 [16:16:28]action value=close_receipt [16:16:28]process_action close_receipt [16:16:28]cmd_close_receipt [16:16:28]MH_GetDate [16:16:28]Write to MH i2c: F0 00 00 0A 05 FE [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: F0 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: F0 09 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: F0 09 00 0A 05 00 DE B8 1F 67 74 2C AD 66 D6 [16:16:28]GetLastDocTimeStamp 1730131915 [16:16:28]current date 1730132190 [16:16:28]FM_GetShiftState [16:16:28]SAM_PROTO_GetShiftState [16:16:28]wFMCommunicate request_size=4 [16:16:28]MH_SAM_APDU [16:16:28]CAPDU: 80 13 01 00 [16:16:28]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [16:16:28]Write i2c OK [16:16:28]MH_I2C_Read... [16:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:28]Read from MH i2c: E2 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0E 00 [16:16:28]MH_I2C_Read... [16:16:28]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F5 [16:16:28]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:16:28]wFMCommunicate OK [16:16:28]SAM_PROTO_GetShiftState done [16:16:28]FM_GetShiftState done [16:16:28]opened in 1730074113 [16:16:28]opened+sec_in_day 1730160513 [16:16:28]quantity*price = 0 [16:16:28]sum+1 = 1 [16:16:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 116 28.10.2024 16:16 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72588 ФПД: 253061303323021 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72588&fm=253061303323021&tin=02508201610067®Number=0000000000091644&sum=0 [16:16:30]StoreToDocumentArchive [16:16:30]shift 554 fd 72588 [16:16:30]save to /storage/0554/doc_00072588 [16:16:30]save last doc name /storage/0554/doc_00072588 to /storage/kkm_last_doc_name [16:16:30]save OK [16:16:30]Clear old archive folders... [16:16:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:16:30]tlvbuf is B6E850E0 [16:16:30]SAM_PROTO_ClearQueue [16:16:30]wFMCommunicate request_size=4 [16:16:30]MH_SAM_APDU [16:16:30]CAPDU: 80 09 00 00 [16:16:30]Write to MH i2c: E2 08 00 18 05 80 09 00 00 00 00 00 00 8F [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 18 05 00 90 00 91 [16:16:30]RAPDU: 90 00 [16:16:30]wFMCommunicate OK [16:16:30]SAM_PROTO_ClearQueue done [16:16:30]KKMCreateOFDPacket [16:16:30]OFDProtocolAddRootSTLVToBuf [16:16:30]FM_MakeSignedData [16:16:30]FM_MakeSignedData [16:16:30]SAM_PROTO_SignData [16:16:30]wFMCommunicate request_size=4 [16:16:30]MH_SAM_APDU [16:16:30]CAPDU: 80 0D 01 02 [16:16:30]Write to MH i2c: E2 08 00 19 05 80 0D 01 02 00 00 00 00 97 [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:16:30]Read from MH i2c: E2 03 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 19 05 00 90 00 92 [16:16:30]RAPDU: 90 00 [16:16:30]wFMCommunicate OK [16:16:30]wFMCommunicate request_size=255 [16:16:30]MH_SAM_APDU [16:16: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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DE B8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1B 01 00 35 04 06 00 E6 [16:16:30]Write to MH i2c: E2 02 01 1A 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DE B8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1B 01 00 35 04 06 00 E6 00 00 2B [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [16:16:30]RAPDU: 90 00 [16:16:30]wFMCommunicate OK [16:16:30]wFMCommunicate request_size=10 [16:16:30]MH_SAM_APDU [16:16:30]CAPDU: 80 0D 02 02 05 28 6D 17 49 8D [16:16:30]Write to MH i2c: E2 0D 00 1B 05 80 0D 02 02 05 00 28 6D 17 49 8D 00 00 26 [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [16:16:30]RAPDU: 90 00 [16:16:30]wFMCommunicate OK [16:16:30]wFMCommunicate request_size=4 [16:16:30]MH_SAM_APDU [16:16:30]CAPDU: 80 0D 03 02 [16:16:30]Write to MH i2c: E2 08 00 1C 05 80 0D 03 02 00 00 00 00 9C [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 0B 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 0B 00 1C 05 00 3A 45 FF 1D 9B F9 A7 86 90 00 F9 [16:16:30]RAPDU: 3A 45 FF 1D 9B F9 A7 86 90 00 [16:16:30]wFMCommunicate OK [16:16:30]SAM_PROTO_SignData done [16:16:30]FM_MakeSignedData done [16:16:30]CreateOFDProtocolMessage [16:16:30]wFMCommunicate request_size=4 [16:16:30]MH_SAM_APDU [16:16:30]CAPDU: 80 11 00 00 [16:16:30]Write to MH i2c: E2 08 00 1D 05 80 11 00 00 00 00 00 00 9C [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:30]Read from MH i2c: E2 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 17 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: E2 17 00 1D 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F0 [16:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:16:30]wFMCommunicate OK [16:16:30]CreateOFDProtocolMessage done [16:16:30]OFDSenderStorePacket 72588 [16:16:30]StoreOFDPacket docnum=72588 [16:16:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BA 23 07 01 C3 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DE B8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1B 01 00 35 04 06 00 E6 28 6D 17 49 8D 3A 45 FF 1D 9B F9 A7 86 [16:16:30]CheckFolder [16:16:30]dirname=/storage/ofd_packets [16:16:30]CheckFolder done [16:16:30]ProducePacketName [16:16:30]name=ofd_packets/00072588 [16:16:30]NVStorageSaveData ofd_packets/00072588 [16:16:30]File name is /storage/ofd_packets/00072588 [16:16:30]Write 301 bytes [16:16:30]NVStorageSaveData done [16:16:30]OFDSenderStorePacket done [16:16:30]KKMCreateOFDPacket done [16:16:30]NVStorageSaveData kkm_last_timestamp [16:16:30]File name is /storage/kkm_last_timestamp [16:16:30]Write 4 bytes [16:16:30]NVStorageSaveData done [16:16:30]ExternCall_PrintAddStr [16:16:30]wPrintStart [16:16:30]Write to MH i2c: 01 00 00 1E 05 23 [16:16:30]Write i2c OK [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 [16:16:30]MH_I2C_Read... [16:16:30]Read from MH i2c: 01 07 00 1E 05 00 00 00 00 00 FF 0F 38 [16:16:30]RasterBufferAndPrint [16:16:30]line Счет N : (1)952067 [16:16:30]line ИНН: 02508201610067 [16:16:30]line Контрольно-Кассовый Чек [16:16:30]line ПРОДАЖА [16:16:30]line ТРК (МРК, ГНК) : 63 [16:16:30]line Товар: 2710124130 [16:16:30]line Аи-92-К-5 [16:16:30]line 29.900 * 0.00 [16:16:30]line = 0.00 [16:16:30]line НДС 12% НСП 1% [16:16:30]line > о реализуемом товаре [16:16:30]line ИТОГО: 0.00 [16:16:30]line НСП 1% : 0.00 [16:16:30]line НДС 12% : 0.00 [16:16:30]line Наличными: 0.00 [16:16:30]line Безнал.: 0.00 [16:16:30]line Место: АЗС № 113 "Партнер Нефть" [16:16:30]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:16:30]line СНО: Общий режим [16:16:30]line Чек 116 28.10.2024 16:16 [16:16:30]line Смена: 554 ФФД: 1.0 [16:16:30]line ЗНМ: 0300000087 [16:16:30]line РНМ: 0000000000091644 [16:16:30]line Версия ККМ: 001 [16:16:30]line Талоны: Топливная Карта [16:16:30]line 03047 [16:16:30]line ФМ: 0000000000874662 [16:16:30]line ФД: 72588 [16:16:30]line ФПД: 253061303323021 [16:16:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161630&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72588&fm=253061303323021&tin=02508201610067®Number=0000000000091644&sum=0 [16:16:30]written 0, free lines is 4095 [16:16:30]OFD Sender: Processing packet 72588 [packets to send 274, broken 273] [16:16:30]ProducePacketName [16:16:30]name=ofd_packets/00072588 [16:16:30]OFD Sender: To server: pG, [16:16:30]CommunicateWithHost lk.salyk.kg:30040 [16:16:30]ConnectInit lk.salyk.kg [16:16:30]Write to MH i2c: 01 00 00 48 05 4D [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: 01 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: 01 07 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: 01 07 00 48 05 00 00 00 00 00 ED 0C 4D [16:16:31]RasterBufferAndPrint [16:16:31]line [16:16:31]line [16:16:31]line [16:16:31]line [16:16:31]line [16:16:31]written 0, free lines is 3316 [16:16:31]MH_Cut [16:16:31]Write to MH i2c: D1 01 00 4F 05 01 26 [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: D1 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: D1 01 00 [16:16:31]MH_I2C_Read... [16:16:31]Read from MH i2c: D1 01 00 4F 05 00 25 [16:16:31]Write to MH i2c: 01 00 00 50 05 55 [16:16:31]Write i2c OK [16:16:31]MH_I2C_Read... [16:16:31]*** Cut start [16:16:31]*** Partial cut [16:16:31]*** CUTSNS_PIN = 1 [16:16:31]*** CUTSNS_PIN = 0 [16:16:32]*** Brake cut motor [16:16:32]Read from MH i2c: 01 [16:16:32]MH_I2C_Read... [16:16:32]*** Stop cut motor [16:16:32]*** Cut end [16:16:32]Read from MH i2c: 01 07 00 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: 01 07 00 50 05 00 00 00 00 00 FF 0F 6A [16:16:32]process_action close_receipt done [16:16:32]requested_data is exist [16:16:32]produce_requested_data [16:16:32]requested_item fm.sn is exist - process it [16:16:32]wFMCommunicate request_size=4 [16:16:32]MH_SAM_APDU [16:16:32]CAPDU: 80 11 00 00 [16:16:32]Write to MH i2c: E2 08 00 51 05 80 11 00 00 00 00 00 00 D0 [16:16:32]Write i2c OK [16:16:32]MH_I2C_Read... [16:16:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:16:32]Read from MH i2c: E2 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 17 00 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 17 00 51 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 24 [16:16:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:16:32]wFMCommunicate OK [16:16:32]requested_item fd.num is exist - process it [16:16:32]SAM_PROTO_GetFieldsCounters [16:16:32]wFMCommunicate request_size=4 [16:16:32]MH_SAM_APDU [16:16:32]CAPDU: 80 13 00 00 [16:16:32]Write to MH i2c: E2 08 00 52 05 80 13 00 00 00 00 00 00 D3 [16:16:32]Write i2c OK [16:16:32]MH_I2C_Read... [16:16:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:16:32]Read from MH i2c: E2 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 62 00 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 62 00 52 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [16:16: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:16:32]wFMCommunicate OK [16:16:32]SAM_PROTO_GetFieldsCounters done [16:16:32]requested_item shift.num is exist - process it [16:16:32]requested_item shift.opened is exist - process it [16:16:32]req_shift_opened [16:16:32]FM_GetShiftState [16:16:32]SAM_PROTO_GetShiftState [16:16:32]wFMCommunicate request_size=4 [16:16:32]MH_SAM_APDU [16:16:32]CAPDU: 80 13 01 00 [16:16:32]Write to MH i2c: E2 08 00 53 05 80 13 01 00 00 00 00 00 D5 [16:16:32]Write i2c OK [16:16:32]MH_I2C_Read... [16:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:16:32]Read from MH i2c: E2 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 0E 00 [16:16:32]MH_I2C_Read... [16:16:32]Read from MH i2c: E2 0E 00 53 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 3D [16:16:32]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:16:32]wFMCommunicate OK [16:16:32]SAM_PROTO_GetShiftState done [16:16:32]FM_GetShiftState done [16:16:32]req_shift_opened done [16:16:32]requested_item shift.open_date is exist - process it [16:16:32]req_shift_open_date [16:16:32]req_shift_open_date done [16:16:32]produce_requested_data done [16:16:32]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72588,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:16:32]process_action_free close_receipt [16:16:32]json_value_free [16:16:32]json_value_free done [16:16:32]process_json_proto returns [16:16:32]Send response to host [16:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72588,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:16:32]free response buf [16:16:32]execute_script done [16:16:32]execute_script returns [16:16:32]free content buf [16:16:32]Sock 9.Close socket [16:16:32]Sock 9.Thread stoped [16:16:33]Connected sock=11 [16:16:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 BA 23 07 01 C3 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 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 DE B8 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1B 01 00 35 04 06 00 E6 28 6D 17 49 8D 3A 45 FF 1D 9B F9 A7 86 [16:16:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F5 9C 47 00 75 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8C 1B 01 00 F4 03 04 00 9F 63 1F 67 B6 04 01 00 00 EE F4 4B 9D D6 2A 36 94 [16:16:34]CommunicateWithHost err = 0 [16:16:34]CheckOFDResponse [16:16:34]1017 (14) - 77093643461234 [16:16:34]1041 (16) - 0000000000874662 [16:16:34]1040 (4) - 72588 [16:16:34]1012 (4) - 28.10.2024 10:12 [16:16:34]1206 (1) - 0 [16:16:34]OFD Sender: Remove packet 72588 [16:16:34]ProducePacketName [16:16:34]name=ofd_packets/00072588 [16:16:34]NVStorageDeleteData [16:16:34]OFD Sender: No OFD packet to send [16:16:39]OFD Sender: No OFD packet to send [16:16:44]OFD Sender: No OFD packet to send [16:16:49]OFD Sender: No OFD packet to send [16:16:54]OFD Sender: No OFD packet to send [16:16:59]OFD Sender: No OFD packet to send [16:17:04]OFD Sender: No OFD packet to send [16:17:09]OFD Sender: No OFD packet to send [16:17:14]OFD Sender: No OFD packet to send [16:17:19]OFD Sender: No OFD packet to send [16:17:24]OFD Sender: No OFD packet to send [16:17:29]OFD Sender: No OFD packet to send [16:17:31]recv_with_timeout no data received [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:53]accept exits with 7 [16:17:53]New connection [16:17:53]New thread 3066809700 created [16:17:53]Thread 3066666340 joined [16:17:53]Waiting for new connection... [16:17:53] Sock 7.Parse request [16:17:53]Sock 7.Check first char [16:17:53]Sock 7.First char is OK [16:17:53]request: POST /json_proto HTTP/1.0 [16:17:53]Method: POST [16:17:53]URL: /json_proto [16:17:53]Method is POST - this is cgi request [16:17:53]url: /json_proto [16:17:53]query_string will be loaded in cgi processing [16:17:53]execute_cgi json_proto POST (null) [16:17:53]execute_cgi path=json_proto method=POST [16:17:53]POST find Content-Length [16:17:53]Host: 172.17.43.195:8080 [16:17:53]Content-Length: 792 [16:17:53]Content-Type: application/json [16:17:53] [16:17:53]POST finish read [16:17:53]Found Content-Length = 792 [16:17:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:53]execute_script... [16:17: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)952068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:17:53]POST & json_proto [16:17:53]process_json_proto [16:17:53]json parsed OK: [16:17:53]protocol is kg_v1.0 [16:17:53]action value=close_receipt [16:17:53]process_action close_receipt [16:17:53]cmd_close_receipt [16:17:53]MH_GetDate [16:17:53]Write to MH i2c: F0 00 00 54 05 48 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: F0 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: F0 09 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: F0 09 00 54 05 00 32 B9 1F 67 74 2C AD 66 75 [16:17:53]GetLastDocTimeStamp 1730132190 [16:17:53]current date 1730132274 [16:17:53]FM_GetShiftState [16:17:53]SAM_PROTO_GetShiftState [16:17:53]wFMCommunicate request_size=4 [16:17:53]MH_SAM_APDU [16:17:53]CAPDU: 80 13 01 00 [16:17:53]Write to MH i2c: E2 08 00 55 05 80 13 01 00 00 00 00 00 D7 [16:17:53]Write i2c OK [16:17:53]MH_I2C_Read... [16:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:53]Read from MH i2c: E2 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 0E 00 [16:17:53]MH_I2C_Read... [16:17:53]Read from MH i2c: E2 0E 00 55 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 3F [16:17:53]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:17:53]wFMCommunicate OK [16:17:53]SAM_PROTO_GetShiftState done [16:17:53]FM_GetShiftState done [16:17:53]opened in 1730074113 [16:17:53]opened+sec_in_day 1730160513 [16:17:53]quantity*price = 0 [16:17:53]sum+1 = 1 [16:17:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 117 28.10.2024 16:17 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72589 ФПД: 226148965185245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161754&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72589&fm=226148965185245&tin=02508201610067®Number=0000000000091644&sum=0 [16:17:54]StoreToDocumentArchive [16:17:54]shift 554 fd 72589 [16:17:54]save to /storage/0554/doc_00072589 [16:17:54]save last doc name /storage/0554/doc_00072589 to /storage/kkm_last_doc_name [16:17:54]save OK [16:17:54]Clear old archive folders... [16:17:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:17:54]tlvbuf is B6F358F0 [16:17:54]SAM_PROTO_ClearQueue [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 09 00 00 [16:17:54]Write to MH i2c: E2 08 00 62 05 80 09 00 00 00 00 00 00 D9 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 62 05 00 90 00 DB [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]SAM_PROTO_ClearQueue done [16:17:54]KKMCreateOFDPacket [16:17:54]OFDProtocolAddRootSTLVToBuf [16:17:54]FM_MakeSignedData [16:17:54]FM_MakeSignedData [16:17:54]SAM_PROTO_SignData [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 0D 01 02 [16:17:54]Write to MH i2c: E2 08 00 63 05 80 0D 01 02 00 00 00 00 E1 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 63 05 00 90 00 DC [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=255 [16:17:54]MH_SAM_APDU [16:17: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 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 75 00 00 00 F4 03 04 00 32 B9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1B 01 00 35 04 06 00 CD [16:17:54]Write to MH i2c: E2 02 01 64 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 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 75 00 00 00 F4 03 04 00 32 B9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1B 01 00 35 04 06 00 CD 00 00 E1 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 64 05 00 90 00 DD [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=10 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 0D 02 02 05 AE 68 BC 76 DD [16:17:54]Write to MH i2c: E2 0D 00 65 05 80 0D 02 02 05 00 AE 68 BC 76 DD 00 00 13 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 03 00 65 05 00 90 00 DE [16:17:54]RAPDU: 90 00 [16:17:54]wFMCommunicate OK [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 0D 03 02 [16:17:54]Write to MH i2c: E2 08 00 66 05 80 0D 03 02 00 00 00 00 E6 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 0B 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 0B 00 66 05 00 CA 05 83 82 D2 08 85 72 90 00 8C [16:17:54]RAPDU: CA 05 83 82 D2 08 85 72 90 00 [16:17:54]wFMCommunicate OK [16:17:54]SAM_PROTO_SignData done [16:17:54]FM_MakeSignedData done [16:17:54]CreateOFDProtocolMessage [16:17:54]wFMCommunicate request_size=4 [16:17:54]MH_SAM_APDU [16:17:54]CAPDU: 80 11 00 00 [16:17:54]Write to MH i2c: E2 08 00 67 05 80 11 00 00 00 00 00 00 E6 [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:54]Read from MH i2c: E2 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: E2 17 00 67 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3A [16:17:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:17:54]wFMCommunicate OK [16:17:54]CreateOFDProtocolMessage done [16:17:54]OFDSenderStorePacket 72589 [16:17:54]StoreOFDPacket docnum=72589 [16:17:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 94 01 07 01 3A 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 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 75 00 00 00 F4 03 04 00 32 B9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1B 01 00 35 04 06 00 CD AE 68 BC 76 DD CA 05 83 82 D2 08 85 72 [16:17:54]CheckFolder [16:17:54]dirname=/storage/ofd_packets [16:17:54]CheckFolder done [16:17:54]ProducePacketName [16:17:54]name=ofd_packets/00072589 [16:17:54]NVStorageSaveData ofd_packets/00072589 [16:17:54]File name is /storage/ofd_packets/00072589 [16:17:54]Write 301 bytes [16:17:54]NVStorageSaveData done [16:17:54]OFDSenderStorePacket done [16:17:54]KKMCreateOFDPacket done [16:17:54]NVStorageSaveData kkm_last_timestamp [16:17:54]File name is /storage/kkm_last_timestamp [16:17:54]Write 4 bytes [16:17:54]NVStorageSaveData done [16:17:54]ExternCall_PrintAddStr [16:17:54]wPrintStart [16:17:54]Write to MH i2c: 01 00 00 68 05 6D [16:17:54]Write i2c OK [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 [16:17:54]MH_I2C_Read... [16:17:54]Read from MH i2c: 01 07 00 68 05 00 00 00 00 00 FF 0F 82 [16:17:54]RasterBufferAndPrint [16:17:54]line Счет N : (1)952068 [16:17:54]line ИНН: 02508201610067 [16:17:54]line Контрольно-Кассовый Чек [16:17:54]line ПРОДАЖА [16:17:54]line ТРК (МРК, ГНК) : 53 [16:17:54]line Товар: 2710124130 [16:17:54]line Аи-92-К-5 [16:17:54]line 20.000 * 0.00 [16:17:54]line = 0.00 [16:17:54]line НДС 12% НСП 1% [16:17:54]line > о реализуемом товаре [16:17:54]line ИТОГО: 0.00 [16:17:54]line НСП 1% : 0.00 [16:17:54]line НДС 12% : 0.00 [16:17:54]line Наличными: 0.00 [16:17:54]line Безнал.: 0.00 [16:17:54]line Место: АЗС № 113 "Партнер Нефть" [16:17:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:17:54]line СНО: Общий режим [16:17:54]line Чек 117 28.10.2024 16:17 [16:17:54]line Смена: 554 ФФД: 1.0 [16:17:54]line ЗНМ: 0300000087 [16:17:54]line РНМ: 0000000000091644 [16:17:54]line Версия ККМ: 001 [16:17:54]line Талоны: Топливная Карта [16:17:54]line 03047 [16:17:54]line ФМ: 0000000000874662 [16:17:54]line ФД: 72589 [16:17:54]line ФПД: 226148965185245 [16:17:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T161754&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72589&fm=226148965185245&tin=02508201610067®Number=0000000000091644&sum=0 [16:17:55]OFD Sender: Processing packet 72589 [packets to send 274, broken 273] [16:17:55]ProducePacketName [16:17:55]name=ofd_packets/00072589 [16:17:55]OFD Sender: To server: pG, [16:17:55]CommunicateWithHost lk.salyk.kg:30040 [16:17:55]ConnectInit lk.salyk.kg [16:17:55]written 0, free lines is 4095 [16:17:55]Write to MH i2c: 01 00 00 92 05 97 [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: 01 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: 01 07 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: 01 07 00 92 05 00 00 00 00 00 ED 0C 97 [16:17:55]RasterBufferAndPrint [16:17:55]line [16:17:55]line [16:17:55]line [16:17:55]line [16:17:55]line [16:17:55]written 0, free lines is 3316 [16:17:55]MH_Cut [16:17:55]Write to MH i2c: D1 01 00 99 05 01 70 [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: D1 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: D1 01 00 [16:17:55]MH_I2C_Read... [16:17:55]Read from MH i2c: D1 01 00 99 05 00 6F [16:17:55]Write to MH i2c: 01 00 00 9A 05 9F [16:17:55]Write i2c OK [16:17:55]MH_I2C_Read... [16:17:56]*** Cut start [16:17:56]*** Partial cut [16:17:56]*** CUTSNS_PIN = 1 [16:17:56]*** CUTSNS_PIN = 0 [16:17:56]*** Brake cut motor [16:17:57]Read from MH i2c: 01 [16:17:57]MH_I2C_Read... [16:17:57]*** Stop cut motor [16:17:57]*** Cut end [16:17:57]Read from MH i2c: 01 07 00 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FF 0F B4 [16:17:57]process_action close_receipt done [16:17:57]requested_data is exist [16:17:57]produce_requested_data [16:17:57]requested_item fm.sn is exist - process it [16:17:57]wFMCommunicate request_size=4 [16:17:57]MH_SAM_APDU [16:17:57]CAPDU: 80 11 00 00 [16:17:57]Write to MH i2c: E2 08 00 9B 05 80 11 00 00 00 00 00 00 1A [16:17:57]Write i2c OK [16:17:57]MH_I2C_Read... [16:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:57]Read from MH i2c: E2 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 17 00 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 17 00 9B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6E [16:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:17:57]wFMCommunicate OK [16:17:57]requested_item fd.num is exist - process it [16:17:57]SAM_PROTO_GetFieldsCounters [16:17:57]wFMCommunicate request_size=4 [16:17:57]MH_SAM_APDU [16:17:57]CAPDU: 80 13 00 00 [16:17:57]Write to MH i2c: E2 08 00 9C 05 80 13 00 00 00 00 00 00 1D [16:17:57]Write i2c OK [16:17:57]MH_I2C_Read... [16:17:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:57]Read from MH i2c: E2 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 62 00 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 62 00 9C 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [16:17: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:57]wFMCommunicate OK [16:17:57]SAM_PROTO_GetFieldsCounters done [16:17:57]requested_item shift.num is exist - process it [16:17:57]requested_item shift.opened is exist - process it [16:17:57]req_shift_opened [16:17:57]FM_GetShiftState [16:17:57]SAM_PROTO_GetShiftState [16:17:57]wFMCommunicate request_size=4 [16:17:57]MH_SAM_APDU [16:17:57]CAPDU: 80 13 01 00 [16:17:57]Write to MH i2c: E2 08 00 9D 05 80 13 01 00 00 00 00 00 1F [16:17:57]Write i2c OK [16:17:57]MH_I2C_Read... [16:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:57]Read from MH i2c: E2 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 0E 00 [16:17:57]MH_I2C_Read... [16:17:57]Read from MH i2c: E2 0E 00 9D 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 87 [16:17:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:17:57]wFMCommunicate OK [16:17:57]SAM_PROTO_GetShiftState done [16:17:57]FM_GetShiftState done [16:17:57]req_shift_opened done [16:17:57]requested_item shift.open_date is exist - process it [16:17:57]req_shift_open_date [16:17:57]req_shift_open_date done [16:17:57]produce_requested_data done [16:17:57]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72589,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:17:57]process_action_free close_receipt [16:17:57]json_value_free [16:17:57]json_value_free done [16:17:57]process_json_proto returns [16:17:57]Send response to host [16:17:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72589,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:17:57]free response buf [16:17:57]execute_script done [16:17:57]execute_script returns [16:17:57]free content buf [16:17:57]Sock 7.Close socket [16:17:57]Sock 7.Thread stoped [16:17:57]Connected sock=11 [16:17:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 94 01 07 01 3A 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 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 75 00 00 00 F4 03 04 00 32 B9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8D 1B 01 00 35 04 06 00 CD AE 68 BC 76 DD CA 05 83 82 D2 08 85 72 [16:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 51 54 47 00 BD 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 34 36 36 32 10 04 04 00 8D 1B 01 00 F4 03 04 00 F2 63 1F 67 B6 04 01 00 00 BB 48 CE 15 9F E8 4A E2 [16:17:59]CommunicateWithHost err = 0 [16:17:59]CheckOFDResponse [16:17:59]1017 (14) - 77093643461234 [16:17:59]1041 (16) - 0000000000874662 [16:17:59]1040 (4) - 72589 [16:17:59]1012 (4) - 28.10.2024 10:14 [16:17:59]1206 (1) - 0 [16:17:59]OFD Sender: Remove packet 72589 [16:17:59]ProducePacketName [16:17:59]name=ofd_packets/00072589 [16:17:59]NVStorageDeleteData [16:17:59]OFD Sender: No OFD packet to send [16:18:04]OFD Sender: No OFD packet to send [16:18:09]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:20]OFD Sender: No OFD packet to send [16:21:25]OFD Sender: No OFD packet to send [16:21:30]OFD Sender: No OFD packet to send [16:21:35]OFD Sender: No OFD packet to send [16:21:40]recv_with_timeout no data received [16:21:40]OFD Sender: No OFD packet to send [16:21:45]OFD Sender: No OFD packet to send [16:21:50]OFD Sender: No OFD packet to send [16:21:50]recv_with_timeout no data received [16:21:55]OFD Sender: No OFD packet to send [16:22:00]OFD Sender: No OFD packet to send [16:22:00]recv_with_timeout no data received [16:22:05]OFD Sender: No OFD packet to send [16:22:10]OFD Sender: No OFD packet to send [16:22:15]OFD Sender: No OFD packet to send [16:22:19]recv_with_timeout no data received [16:22:20]OFD Sender: No OFD packet to send [16:22:25]OFD Sender: No OFD packet to send [16:22:30]OFD Sender: No OFD packet to send [16:22:35]OFD Sender: No OFD packet to send [16:22:39]recv_with_timeout no data received [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:09]accept exits with 9 [16:23:09]New connection [16:23:09]New thread 3066666340 created [16:23:09]Thread 3066809700 joined [16:23:09]Waiting for new connection... [16:23:09] Sock 9.Parse request [16:23:09]Sock 9.Check first char [16:23:09]Sock 9.First char is OK [16:23:09]request: POST /json_proto HTTP/1.0 [16:23:09]Method: POST [16:23:09]URL: /json_proto [16:23:09]Method is POST - this is cgi request [16:23:09]url: /json_proto [16:23:09]query_string will be loaded in cgi processing [16:23:09]execute_cgi json_proto POST (null) [16:23:09]execute_cgi path=json_proto method=POST [16:23:09]POST find Content-Length [16:23:09]Host: 172.17.43.195:8080 [16:23:09]Content-Length: 677 [16:23:09]Content-Type: application/json [16:23:09] [16:23:09]POST finish read [16:23:09]Found Content-Length = 677 [16:23:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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:23:09]execute_script... [16:23:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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:23:09]POST & json_proto [16:23:09]process_json_proto [16:23:09]json parsed OK: [16:23:09]protocol is kg_v1.0 [16:23:09]action value=close_receipt [16:23:09]process_action close_receipt [16:23:09]cmd_close_receipt [16:23:09]MH_GetDate [16:23:09]Write to MH i2c: F0 00 00 9E 05 92 [16:23:09]Write i2c OK [16:23:09]MH_I2C_Read... [16:23:09]Read from MH i2c: F0 [16:23:09]MH_I2C_Read... [16:23:09]Read from MH i2c: F0 09 00 [16:23:09]MH_I2C_Read... [16:23:09]Read from MH i2c: F0 09 00 9E 05 00 6F BA 1F 67 74 2C AD 66 FD [16:23:09]GetLastDocTimeStamp 1730132274 [16:23:09]current date 1730132591 [16:23:09]FM_GetShiftState [16:23:09]SAM_PROTO_GetShiftState [16:23:09]wFMCommunicate request_size=4 [16:23:09]MH_SAM_APDU [16:23:09]CAPDU: 80 13 01 00 [16:23:09]Write to MH i2c: E2 08 00 9F 05 80 13 01 00 00 00 00 00 21 [16:23:09]Write i2c OK [16:23:09]MH_I2C_Read... [16:23:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:09]Read from MH i2c: E2 [16:23:09]MH_I2C_Read... [16:23:09]Read from MH i2c: E2 0E 00 [16:23:09]MH_I2C_Read... [16:23:09]Read from MH i2c: E2 0E 00 9F 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 89 [16:23:09]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:23:09]wFMCommunicate OK [16:23:09]SAM_PROTO_GetShiftState done [16:23:09]FM_GetShiftState done [16:23:09]opened in 1730074113 [16:23:09]opened+sec_in_day 1730160513 [16:23:09]quantity*price = 20003 [16:23:09]sum+1 = 20004 [16:23:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 118 28.10.2024 16:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72590 ФПД: 157414888084492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162311&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72590&fm=157414888084492&tin=02508201610067®Number=0000000000091644&sum=20000 [16:23:11]StoreToDocumentArchive [16:23:11]shift 554 fd 72590 [16:23:11]save to /storage/0554/doc_00072590 [16:23:11]save last doc name /storage/0554/doc_00072590 to /storage/kkm_last_doc_name [16:23:11]save OK [16:23:11]Clear old archive folders... [16:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:23:11]tlvbuf is 003A50C0 [16:23:11]SAM_PROTO_ClearQueue [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 09 00 00 [16:23:11]Write to MH i2c: E2 08 00 AC 05 80 09 00 00 00 00 00 00 23 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 AC 05 00 90 00 25 [16:23:11]RAPDU: 90 00 [16:23:11]wFMCommunicate OK [16:23:11]SAM_PROTO_ClearQueue done [16:23:11]KKMCreateOFDPacket [16:23:11]OFDProtocolAddRootSTLVToBuf [16:23:11]FM_MakeSignedData [16:23:11]FM_MakeSignedData [16:23:11]SAM_PROTO_SignData [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 0D 01 02 [16:23:11]Write to MH i2c: E2 08 00 AD 05 80 0D 01 02 00 00 00 00 2B [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 AD 05 00 90 00 26 [16:23:11]RAPDU: 90 00 [16:23:11]wFMCommunicate OK [16:23:11]wFMCommunicate request_size=255 [16:23:11]MH_SAM_APDU [16:23: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 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 76 00 00 00 F4 03 04 00 6F BA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1B 01 00 35 04 06 00 8F [16:23:11]Write to MH i2c: E2 02 01 AE 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 76 00 00 00 F4 03 04 00 6F BA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1B 01 00 35 04 06 00 8F 00 00 06 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 AE 05 00 90 00 27 [16:23:11]RAPDU: 90 00 [16:23:11]wFMCommunicate OK [16:23:11]wFMCommunicate request_size=10 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 0D 02 02 05 2B 02 7C 94 0C [16:23:11]Write to MH i2c: E2 0D 00 AF 05 80 0D 02 02 05 00 2B 02 7C 94 0C 00 00 81 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 03 00 AF 05 00 90 00 28 [16:23:11]RAPDU: 90 00 [16:23:11]wFMCommunicate OK [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 0D 03 02 [16:23:11]Write to MH i2c: E2 08 00 B0 05 80 0D 03 02 00 00 00 00 30 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0B 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 0B 00 B0 05 00 13 91 52 17 30 25 66 55 90 00 4E [16:23:11]RAPDU: 13 91 52 17 30 25 66 55 90 00 [16:23:11]wFMCommunicate OK [16:23:11]SAM_PROTO_SignData done [16:23:11]FM_MakeSignedData done [16:23:11]CreateOFDProtocolMessage [16:23:11]wFMCommunicate request_size=4 [16:23:11]MH_SAM_APDU [16:23:11]CAPDU: 80 11 00 00 [16:23:11]Write to MH i2c: E2 08 00 B1 05 80 11 00 00 00 00 00 00 30 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:11]Read from MH i2c: E2 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 17 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: E2 17 00 B1 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 84 [16:23:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:23:11]wFMCommunicate OK [16:23:11]CreateOFDProtocolMessage done [16:23:11]OFDSenderStorePacket 72590 [16:23:11]StoreOFDPacket docnum=72590 [16:23:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 54 07 01 1B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 6F BA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1B 01 00 35 04 06 00 8F 2B 02 7C 94 0C 13 91 52 17 30 25 66 55 [16:23:11]CheckFolder [16:23:11]dirname=/storage/ofd_packets [16:23:11]CheckFolder done [16:23:11]ProducePacketName [16:23:11]name=ofd_packets/00072590 [16:23:11]NVStorageSaveData ofd_packets/00072590 [16:23:11]File name is /storage/ofd_packets/00072590 [16:23:11]Write 301 bytes [16:23:11]NVStorageSaveData done [16:23:11]OFDSenderStorePacket done [16:23:11]KKMCreateOFDPacket done [16:23:11]NVStorageSaveData kkm_last_timestamp [16:23:11]File name is /storage/kkm_last_timestamp [16:23:11]Write 4 bytes [16:23:11]NVStorageSaveData done [16:23:11]ExternCall_PrintAddStr [16:23:11]wPrintStart [16:23:11]Write to MH i2c: 01 00 00 B2 05 B7 [16:23:11]Write i2c OK [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: 01 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: 01 07 00 [16:23:11]MH_I2C_Read... [16:23:11]Read from MH i2c: 01 07 00 B2 05 00 00 00 00 00 FF 0F CC [16:23:11]RasterBufferAndPrint [16:23:11]line Счет N : (1)952069 [16:23:11]line ИНН: 02508201610067 [16:23:11]line Контрольно-Кассовый Чек [16:23:11]line ПРОДАЖА [16:23:11]line ТРК (МРК, ГНК) : 63 [16:23:11]line Товар: 2710124130 [16:23:11]line Аи-92-К-5 [16:23:11]line 2.990 * 66.90 [16:23:11]line = 200.03 [16:23:11]line НДС 12% НСП 1% [16:23:11]line > о реализуемом товаре [16:23:11]line ОКРУГЛЕНИЕ: -0.03 [16:23:11]line ИТОГО: 200.00 [16:23:11]line Внесено: 200.00 [16:23:11]line СДАЧА: 0.00 [16:23:11]line НСП 1% : 1.77 [16:23:11]line НДС 12% : 21.24 [16:23:11]line Наличными: 200.00 [16:23:11]line Безнал.: 0.00 [16:23:11]line Место: АЗС № 113 "Партнер Нефть" [16:23:11]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:23:11]line СНО: Общий режим [16:23:11]line Чек 118 28.10.2024 16:23 [16:23:11]line Смена: 554 ФФД: 1.0 [16:23:11]line ЗНМ: 0300000087 [16:23:11]line РНМ: 0000000000091644 [16:23:11]line Версия ККМ: 001 [16:23:11]line ФМ: 0000000000874662 [16:23:11]line ФД: 72590 [16:23:11]line ФПД: 157414888084492 [16:23:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162311&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72590&fm=157414888084492&tin=02508201610067®Number=0000000000091644&sum=20000 [16:23:11]written 0, free lines is 4095 [16:23:11]OFD Sender: Processing packet 72590 [packets to send 274, broken 273] [16:23:11]ProducePacketName [16:23:11]name=ofd_packets/00072590 [16:23:11]OFD Sender: To server: pG, [16:23:11]CommunicateWithHost lk.salyk.kg:30040 [16:23:11]ConnectInit lk.salyk.kg [16:23:12]Write to MH i2c: 01 00 00 DD 05 E2 [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: 01 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: 01 07 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: 01 07 00 DD 05 00 00 00 00 00 D4 0C C9 [16:23:12]RasterBufferAndPrint [16:23:12]line [16:23:12]line [16:23:12]line [16:23:12]line [16:23:12]line [16:23:12]written 0, free lines is 3292 [16:23:12]MH_Cut [16:23:12]Write to MH i2c: D1 01 00 E4 05 01 BB [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: D1 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: D1 01 00 [16:23:12]MH_I2C_Read... [16:23:12]Read from MH i2c: D1 01 00 E4 05 00 BA [16:23:12]Write to MH i2c: 01 00 00 E5 05 EA [16:23:12]Write i2c OK [16:23:12]MH_I2C_Read... [16:23:12]Connected sock=10 [16:23:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 54 07 01 1B 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 76 00 00 00 F4 03 04 00 6F BA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8E 1B 01 00 35 04 06 00 8F 2B 02 7C 94 0C 13 91 52 17 30 25 66 55 [16:23:12]*** Cut start [16:23:12]*** Partial cut [16:23:12]*** CUTSNS_PIN = 1 [16:23:12]*** CUTSNS_PIN = 0 [16:23:13]*** Brake cut motor [16:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D9 E6 47 00 27 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 34 36 36 32 10 04 04 00 8E 1B 01 00 F4 03 04 00 2E 65 1F 67 B6 04 01 00 00 8F 92 F0 E8 C5 84 54 77 [16:23:13]CommunicateWithHost err = 0 [16:23:13]CheckOFDResponse [16:23:13]1017 (14) - 77093643461234 [16:23:13]1041 (16) - 0000000000874662 [16:23:13]1040 (4) - 72590 [16:23:13]1012 (4) - 28.10.2024 10:19 [16:23:13]1206 (1) - 0 [16:23:13]OFD Sender: Remove packet 72590 [16:23:13]ProducePacketName [16:23:13]name=ofd_packets/00072590 [16:23:13]NVStorageDeleteData [16:23:13]Read from MH i2c: 01 [16:23:13]MH_I2C_Read... [16:23:13]*** Stop cut motor [16:23:13]*** Cut end [16:23:13]Read from MH i2c: 01 07 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: 01 07 00 E5 05 00 00 00 00 00 FF 0F FF [16:23:13]process_action close_receipt done [16:23:13]requested_data is exist [16:23:13]produce_requested_data [16:23:13]requested_item fm.sn is exist - process it [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 11 00 00 [16:23:13]Write to MH i2c: E2 08 00 E6 05 80 11 00 00 00 00 00 00 65 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 17 00 E6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B9 [16:23:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:23:13]wFMCommunicate OK [16:23:13]requested_item fd.num is exist - process it [16:23:13]SAM_PROTO_GetFieldsCounters [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 13 00 00 [16:23:13]Write to MH i2c: E2 08 00 E7 05 80 13 00 00 00 00 00 00 68 [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 62 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 62 00 E7 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [16:23: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:23:13]wFMCommunicate OK [16:23:13]SAM_PROTO_GetFieldsCounters done [16:23:13]requested_item shift.num is exist - process it [16:23:13]requested_item shift.opened is exist - process it [16:23:13]req_shift_opened [16:23:13]FM_GetShiftState [16:23:13]SAM_PROTO_GetShiftState [16:23:13]wFMCommunicate request_size=4 [16:23:13]MH_SAM_APDU [16:23:13]CAPDU: 80 13 01 00 [16:23:13]Write to MH i2c: E2 08 00 E8 05 80 13 01 00 00 00 00 00 6A [16:23:13]Write i2c OK [16:23:13]MH_I2C_Read... [16:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:23:13]Read from MH i2c: E2 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0E 00 [16:23:13]MH_I2C_Read... [16:23:13]Read from MH i2c: E2 0E 00 E8 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 D2 [16:23:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:23:13]wFMCommunicate OK [16:23:13]SAM_PROTO_GetShiftState done [16:23:13]FM_GetShiftState done [16:23:13]req_shift_opened done [16:23:13]requested_item shift.open_date is exist - process it [16:23:13]req_shift_open_date [16:23:13]req_shift_open_date done [16:23:13]produce_requested_data done [16:23:13]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72590,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:23:13]process_action_free close_receipt [16:23:13]json_value_free [16:23:13]json_value_free done [16:23:13]process_json_proto returns [16:23:13]Send response to host [16:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72590,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:23:13]free response buf [16:23:13]execute_script done [16:23:13]execute_script returns [16:23:13]free content buf [16:23:13]Sock 9.Close socket [16:23:13]Sock 9.Thread stoped [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:26]recv_with_timeout no data received [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:43]recv_with_timeout no data received [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:03]OFD Sender: No OFD packet to send [16:24:08]OFD Sender: No OFD packet to send [16:24:13]OFD Sender: No OFD packet to send [16:24:18]OFD Sender: No OFD packet to send [16:24:23]OFD Sender: No OFD packet to send [16:24:28]OFD Sender: No OFD packet to send [16:24:33]OFD Sender: No OFD packet to send [16:24:34]recv_with_timeout no data received [16:24:38]OFD Sender: No OFD packet to send [16:24:43]OFD Sender: No OFD packet to send [16:24:48]OFD Sender: No OFD packet to send [16:24:53]OFD Sender: No OFD packet to send [16:24:58]OFD Sender: No OFD packet to send [16:25:03]OFD Sender: No OFD packet to send [16:25:05]recv_with_timeout no data received [16:25:08]OFD Sender: No OFD packet to send [16:25:13]OFD Sender: No OFD packet to send [16:25:17]recv_with_timeout no data received [16:25:18]OFD Sender: No OFD packet to send [16:25:23]OFD Sender: No OFD packet to send [16:25:29]OFD Sender: No OFD packet to send [16:25:34]OFD Sender: No OFD packet to send [16:25:39]OFD Sender: No OFD packet to send [16:25:44]OFD Sender: No OFD packet to send [16:25:49]OFD Sender: No OFD packet to send [16:25:54]OFD Sender: No OFD packet to send [16:25:59]OFD Sender: No OFD packet to send [16:26:04]OFD Sender: No OFD packet to send [16:26:09]OFD Sender: No OFD packet to send [16:26:14]OFD Sender: No OFD packet to send [16:26:19]OFD Sender: No OFD packet to send [16:26:24]OFD Sender: No OFD packet to send [16:26:28]recv_with_timeout no data received [16:26:29]OFD Sender: No OFD packet to send [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:22]recv_with_timeout no data received [16:27:24]OFD Sender: No OFD packet to send [16:27:29]OFD Sender: No OFD packet to send [16:27:34]OFD Sender: No OFD packet to send [16:27:39]OFD Sender: No OFD packet to send [16:27:44]OFD Sender: No OFD packet to send [16:27:49]OFD Sender: No OFD packet to send [16:27:54]OFD Sender: No OFD packet to send [16:27:59]OFD Sender: No OFD packet to send [16:28:04]OFD Sender: No OFD packet to send [16:28:09]OFD Sender: No OFD packet to send [16:28:14]OFD Sender: No OFD packet to send [16:28:16]accept exits with 7 [16:28:16]New connection [16:28:16]New thread 3066809700 created [16:28:16]Thread 3066666340 joined [16:28:16]Waiting for new connection... [16:28:16] Sock 7.Parse request [16:28:16]Sock 7.Check first char [16:28:16]Sock 7.First char is OK [16:28:16]request: POST /json_proto HTTP/1.0 [16:28:16]Method: POST [16:28:16]URL: /json_proto [16:28:16]Method is POST - this is cgi request [16:28:16]url: /json_proto [16:28:16]query_string will be loaded in cgi processing [16:28:16]execute_cgi json_proto POST (null) [16:28:16]execute_cgi path=json_proto method=POST [16:28:16]POST find Content-Length [16:28:16]Host: 172.17.43.195:8080 [16:28:16]Content-Length: 792 [16:28:16]Content-Type: application/json [16:28:16] [16:28:16]POST finish read [16:28:16]Found Content-Length = 792 [16:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:16]execute_script... [16:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952070", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:28:16]POST & json_proto [16:28:16]process_json_proto [16:28:16]json parsed OK: [16:28:16]protocol is kg_v1.0 [16:28:16]action value=close_receipt [16:28:16]process_action close_receipt [16:28:16]cmd_close_receipt [16:28:16]MH_GetDate [16:28:16]Write to MH i2c: F0 00 00 E9 05 DD [16:28:16]Write i2c OK [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: F0 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: F0 09 00 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: F0 09 00 E9 05 00 A1 BB 1F 67 74 2C AD 66 7B [16:28:16]GetLastDocTimeStamp 1730132591 [16:28:16]current date 1730132897 [16:28:16]FM_GetShiftState [16:28:16]SAM_PROTO_GetShiftState [16:28:16]wFMCommunicate request_size=4 [16:28:16]MH_SAM_APDU [16:28:16]CAPDU: 80 13 01 00 [16:28:16]Write to MH i2c: E2 08 00 EA 05 80 13 01 00 00 00 00 00 6C [16:28:16]Write i2c OK [16:28:16]MH_I2C_Read... [16:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:16]Read from MH i2c: E2 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: E2 0E 00 [16:28:16]MH_I2C_Read... [16:28:16]Read from MH i2c: E2 0E 00 EA 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 D4 [16:28:16]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:28:16]wFMCommunicate OK [16:28:16]SAM_PROTO_GetShiftState done [16:28:16]FM_GetShiftState done [16:28:16]opened in 1730074113 [16:28:16]opened+sec_in_day 1730160513 [16:28:16]quantity*price = 0 [16:28:16]sum+1 = 1 [16:28:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 119 28.10.2024 16:28 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72591 ФПД: 148556885525568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162817&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72591&fm=148556885525568&tin=02508201610067®Number=0000000000091644&sum=0 [16:28:17]StoreToDocumentArchive [16:28:17]shift 554 fd 72591 [16:28:17]save to /storage/0554/doc_00072591 [16:28:17]save last doc name /storage/0554/doc_00072591 to /storage/kkm_last_doc_name [16:28:17]save OK [16:28:17]Clear old archive folders... [16:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:28:17]tlvbuf is 003D0E10 [16:28:17]SAM_PROTO_ClearQueue [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 09 00 00 [16:28:17]Write to MH i2c: E2 08 00 F7 05 80 09 00 00 00 00 00 00 6E [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 F7 05 00 90 00 70 [16:28:17]RAPDU: 90 00 [16:28:17]wFMCommunicate OK [16:28:17]SAM_PROTO_ClearQueue done [16:28:17]KKMCreateOFDPacket [16:28:17]OFDProtocolAddRootSTLVToBuf [16:28:17]FM_MakeSignedData [16:28:17]FM_MakeSignedData [16:28:17]SAM_PROTO_SignData [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 0D 01 02 [16:28:17]Write to MH i2c: E2 08 00 F8 05 80 0D 01 02 00 00 00 00 76 [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 F8 05 00 90 00 71 [16:28:17]RAPDU: 90 00 [16:28:17]wFMCommunicate OK [16:28:17]wFMCommunicate request_size=255 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 77 00 00 00 F4 03 04 00 A1 BB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1B 01 00 35 04 06 00 87 [16:28:17]Write to MH i2c: E2 02 01 F9 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 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 77 00 00 00 F4 03 04 00 A1 BB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1B 01 00 35 04 06 00 87 00 00 A5 [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 F9 05 00 90 00 72 [16:28:17]RAPDU: 90 00 [16:28:17]wFMCommunicate OK [16:28:17]wFMCommunicate request_size=10 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 0D 02 02 05 1C 98 64 04 40 [16:28:17]Write to MH i2c: E2 0D 00 FA 05 80 0D 02 02 05 00 1C 98 64 04 40 00 00 DF [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 03 00 FA 05 00 90 00 73 [16:28:17]RAPDU: 90 00 [16:28:17]wFMCommunicate OK [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 0D 03 02 [16:28:17]Write to MH i2c: E2 08 00 FB 05 80 0D 03 02 00 00 00 00 7B [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 0B 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 0B 00 FB 05 00 5C C6 C1 A1 72 97 D5 B3 90 00 91 [16:28:17]RAPDU: 5C C6 C1 A1 72 97 D5 B3 90 00 [16:28:17]wFMCommunicate OK [16:28:17]SAM_PROTO_SignData done [16:28:17]FM_MakeSignedData done [16:28:17]CreateOFDProtocolMessage [16:28:17]wFMCommunicate request_size=4 [16:28:17]MH_SAM_APDU [16:28:17]CAPDU: 80 11 00 00 [16:28:17]Write to MH i2c: E2 08 00 FC 05 80 11 00 00 00 00 00 00 7B [16:28:17]Write i2c OK [16:28:17]MH_I2C_Read... [16:28:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:17]Read from MH i2c: E2 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 17 00 [16:28:17]MH_I2C_Read... [16:28:17]Read from MH i2c: E2 17 00 FC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CF [16:28:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:28:17]wFMCommunicate OK [16:28:17]CreateOFDProtocolMessage done [16:28:17]OFDSenderStorePacket 72591 [16:28:17]StoreOFDPacket docnum=72591 [16:28:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 94 26 07 01 AA 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 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 77 00 00 00 F4 03 04 00 A1 BB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1B 01 00 35 04 06 00 87 1C 98 64 04 40 5C C6 C1 A1 72 97 D5 B3 [16:28:17]CheckFolder [16:28:17]dirname=/storage/ofd_packets [16:28:17]CheckFolder done [16:28:17]ProducePacketName [16:28:17]name=ofd_packets/00072591 [16:28:17]NVStorageSaveData ofd_packets/00072591 [16:28:17]File name is /storage/ofd_packets/00072591 [16:28:17]Write 301 bytes [16:28:17]NVStorageSaveData done [16:28:17]OFDSenderStorePacket done [16:28:17]KKMCreateOFDPacket done [16:28:17]NVStorageSaveData kkm_last_timestamp [16:28:17]File name is /storage/kkm_last_timestamp [16:28:17]Write 4 bytes [16:28:17]NVStorageSaveData done [16:28:18]ExternCall_PrintAddStr [16:28:18]wPrintStart [16:28:18]Write to MH i2c: 01 00 00 FD 05 02 [16:28:18]Write i2c OK [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 07 00 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 07 00 FD 05 00 00 00 00 00 FF 0F 17 [16:28:18]RasterBufferAndPrint [16:28:18]line Счет N : (1)952070 [16:28:18]line ИНН: 02508201610067 [16:28:18]line Контрольно-Кассовый Чек [16:28:18]line ПРОДАЖА [16:28:18]line ТРК (МРК, ГНК) : 53 [16:28:18]line Товар: 2710124130 [16:28:18]line Аи-92-К-5 [16:28:18]line 20.000 * 0.00 [16:28:18]line = 0.00 [16:28:18]line НДС 12% НСП 1% [16:28:18]line > о реализуемом товаре [16:28:18]line ИТОГО: 0.00 [16:28:18]line НСП 1% : 0.00 [16:28:18]line НДС 12% : 0.00 [16:28:18]line Наличными: 0.00 [16:28:18]line Безнал.: 0.00 [16:28:18]line Место: АЗС № 113 "Партнер Нефть" [16:28:18]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:28:18]line СНО: Общий режим [16:28:18]line Чек 119 28.10.2024 16:28 [16:28:18]line Смена: 554 ФФД: 1.0 [16:28:18]line ЗНМ: 0300000087 [16:28:18]line РНМ: 0000000000091644 [16:28:18]line Версия ККМ: 001 [16:28:18]line Талоны: Топливная Карта [16:28:18]line 03047 [16:28:18]line ФМ: 0000000000874662 [16:28:18]line ФД: 72591 [16:28:18]line ФПД: 148556885525568 [16:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T162817&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72591&fm=148556885525568&tin=02508201610067®Number=0000000000091644&sum=0 [16:28:18]written 0, free lines is 4095 [16:28:18]OFD Sender: Processing packet 72591 [packets to send 274, broken 273] [16:28:18]ProducePacketName [16:28:18]name=ofd_packets/00072591 [16:28:18]OFD Sender: To server: pG, [16:28:18]CommunicateWithHost lk.salyk.kg:30040 [16:28:18]ConnectInit lk.salyk.kg [16:28:18]Write to MH i2c: 01 00 00 27 06 2D [16:28:18]Write i2c OK [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 07 00 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: 01 07 00 27 06 00 00 00 00 00 ED 0C 2D [16:28:18]RasterBufferAndPrint [16:28:18]line [16:28:18]line [16:28:18]line [16:28:18]line [16:28:18]line [16:28:18]written 0, free lines is 3315 [16:28:18]MH_Cut [16:28:18]Write to MH i2c: D1 01 00 2E 06 01 06 [16:28:18]Write i2c OK [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: D1 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: D1 01 00 [16:28:18]MH_I2C_Read... [16:28:18]Read from MH i2c: D1 01 00 2E 06 00 05 [16:28:18]Write to MH i2c: 01 00 00 2F 06 35 [16:28:18]Write i2c OK [16:28:18]MH_I2C_Read... [16:28:19]*** Cut start [16:28:19]*** Partial cut [16:28:19]*** CUTSNS_PIN = 1 [16:28:19]*** CUTSNS_PIN = 0 [16:28:19]*** Brake cut motor [16:28:19]Connected sock=9 [16:28:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 94 26 07 01 AA 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 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 77 00 00 00 F4 03 04 00 A1 BB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 8F 1B 01 00 35 04 06 00 87 1C 98 64 04 40 5C C6 C1 A1 72 97 D5 B3 [16:28:19]Read from MH i2c: 01 [16:28:19]MH_I2C_Read... [16:28:19]*** Stop cut motor [16:28:19]*** Cut end [16:28:19]Read from MH i2c: 01 07 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: 01 07 00 2F 06 00 00 00 00 00 FF 0F 4A [16:28:19]process_action close_receipt done [16:28:19]requested_data is exist [16:28:19]produce_requested_data [16:28:19]requested_item fm.sn is exist - process it [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 11 00 00 [16:28:19]Write to MH i2c: E2 08 00 30 06 80 11 00 00 00 00 00 00 B0 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:28:19]Read from MH i2c: E2 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 [16:28:19]MH_I2C_Read... [16:28:19]Read from MH i2c: E2 17 00 30 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 04 [16:28:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:28:19]wFMCommunicate OK [16:28:19]requested_item fd.num is exist - process it [16:28:19]SAM_PROTO_GetFieldsCounters [16:28:19]wFMCommunicate request_size=4 [16:28:19]MH_SAM_APDU [16:28:19]CAPDU: 80 13 00 00 [16:28:19]Write to MH i2c: E2 08 00 31 06 80 13 00 00 00 00 00 00 B3 [16:28:19]Write i2c OK [16:28:19]MH_I2C_Read... [16:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:28:20]Read from MH i2c: E2 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: E2 62 00 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: E2 62 00 31 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [16:28: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 8F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:28:20]wFMCommunicate OK [16:28:20]SAM_PROTO_GetFieldsCounters done [16:28:20]requested_item shift.num is exist - process it [16:28:20]requested_item shift.opened is exist - process it [16:28:20]req_shift_opened [16:28:20]FM_GetShiftState [16:28:20]SAM_PROTO_GetShiftState [16:28:20]wFMCommunicate request_size=4 [16:28:20]MH_SAM_APDU [16:28:20]CAPDU: 80 13 01 00 [16:28:20]Write to MH i2c: E2 08 00 32 06 80 13 01 00 00 00 00 00 B5 [16:28:20]Write i2c OK [16:28:20]MH_I2C_Read... [16:28:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B3 C4 47 00 8F 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 34 36 36 32 10 04 04 00 8F 1B 01 00 F4 03 04 00 60 66 1F 67 B6 04 01 00 00 F4 16 87 78 2D 48 28 18 [16:28:20]CommunicateWithHost err = 0 [16:28:20]CheckOFDResponse [16:28:20]1017 (14) - 77093643461234 [16:28:20]1041 (16) - 0000000000874662 [16:28:20]1040 (4) - 72591 [16:28:20]1012 (4) - 28.10.2024 10:24 [16:28:20]1206 (1) - 0 [16:28:20]OFD Sender: Remove packet 72591 [16:28:20]ProducePacketName [16:28:20]name=ofd_packets/00072591 [16:28:20]NVStorageDeleteData [16:28:20]Read from MH i2c: E2 [16:28:20]MH_I2C_Read... [16:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:28:20]Read from MH i2c: E2 0E 00 [16:28:20]MH_I2C_Read... [16:28:20]Read from MH i2c: E2 0E 00 32 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 1D [16:28:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:28:20]wFMCommunicate OK [16:28:20]SAM_PROTO_GetShiftState done [16:28:20]FM_GetShiftState done [16:28:20]req_shift_opened done [16:28:20]requested_item shift.open_date is exist - process it [16:28:20]req_shift_open_date [16:28:20]req_shift_open_date done [16:28:20]produce_requested_data done [16:28:20]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72591,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:28:20]process_action_free close_receipt [16:28:20]json_value_free [16:28:20]json_value_free done [16:28:20]process_json_proto returns [16:28:20]Send response to host [16:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72591,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:28:20]free response buf [16:28:20]execute_script done [16:28:20]execute_script returns [16:28:20]free content buf [16:28:20]Sock 7.Close socket [16:28:20]Sock 7.Thread stoped [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:40]recv_with_timeout no data received [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:51]recv_with_timeout no data received [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:06]recv_with_timeout no data received [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:47]recv_with_timeout no data received [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:29:59]recv_with_timeout no data received [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:05]accept exits with 10 [16:31:05]New connection [16:31:05]New thread 3066666340 created [16:31:05]Thread 3066809700 joined [16:31:05]Waiting for new connection... [16:31:05] Sock 10.Parse request [16:31:05]Sock 10.Check first char [16:31:05]Sock 10.First char is OK [16:31:05]request: POST /json_proto HTTP/1.0 [16:31:05]Method: POST [16:31:05]URL: /json_proto [16:31:05]Method is POST - this is cgi request [16:31:05]url: /json_proto [16:31:05]query_string will be loaded in cgi processing [16:31:05]execute_cgi json_proto POST (null) [16:31:05]execute_cgi path=json_proto method=POST [16:31:05]POST find Content-Length [16:31:05]Host: 172.17.43.195:8080 [16:31:05]Content-Length: 797 [16:31:05]Content-Type: application/json [16:31:05] [16:31:05]POST finish read [16:31:05]Found Content-Length = 797 [16:31:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.160, "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\u000A92975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:05]execute_script... [16:31: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)952072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.160, "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\u000A92975", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:31:05]POST & json_proto [16:31:05]process_json_proto [16:31:05]json parsed OK: [16:31:05]protocol is kg_v1.0 [16:31:05]action value=close_receipt [16:31:05]process_action close_receipt [16:31:05]cmd_close_receipt [16:31:05]MH_GetDate [16:31:05]Write to MH i2c: F0 00 00 33 06 28 [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 09 00 [16:31:05]MH_I2C_Read... [16:31:05]Read from MH i2c: F0 09 00 33 06 00 4B BC 1F 67 74 2C AD 66 71 [16:31:05]GetLastDocTimeStamp 1730132897 [16:31:05]current date 1730133067 [16:31:05]FM_GetShiftState [16:31:05]SAM_PROTO_GetShiftState [16:31:05]wFMCommunicate request_size=4 [16:31:05]MH_SAM_APDU [16:31:05]CAPDU: 80 13 01 00 [16:31:05]Write to MH i2c: E2 08 00 34 06 80 13 01 00 00 00 00 00 B7 [16:31:05]Write i2c OK [16:31:05]MH_I2C_Read... [16:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:06]Read from MH i2c: E2 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 0E 00 [16:31:06]MH_I2C_Read... [16:31:06]Read from MH i2c: E2 0E 00 34 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 1F [16:31:06]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:31:06]wFMCommunicate OK [16:31:06]SAM_PROTO_GetShiftState done [16:31:06]FM_GetShiftState done [16:31:06]opened in 1730074113 [16:31:06]opened+sec_in_day 1730160513 [16:31:06]quantity*price = 0 [16:31:06]sum+1 = 1 [16:31:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 120 28.10.2024 16:31 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 92975 ФМ: 0000000000874662 ФД: 72592 ФПД: 156602215892058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72592&fm=156602215892058&tin=02508201610067®Number=0000000000091644&sum=0 [16:31:07]StoreToDocumentArchive [16:31:07]shift 554 fd 72592 [16:31:07]save to /storage/0554/doc_00072592 [16:31:07]save last doc name /storage/0554/doc_00072592 to /storage/kkm_last_doc_name [16:31:07]save OK [16:31:07]Clear old archive folders... [16:31:07]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:31:07]tlvbuf is 0044F7D0 [16:31:07]SAM_PROTO_ClearQueue [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 09 00 00 [16:31:07]Write to MH i2c: E2 08 00 41 06 80 09 00 00 00 00 00 00 B9 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 41 06 00 90 00 BB [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]SAM_PROTO_ClearQueue done [16:31:07]KKMCreateOFDPacket [16:31:07]OFDProtocolAddRootSTLVToBuf [16:31:07]FM_MakeSignedData [16:31:07]FM_MakeSignedData [16:31:07]SAM_PROTO_SignData [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 01 02 [16:31:07]Write to MH i2c: E2 08 00 42 06 80 0D 01 02 00 00 00 00 C1 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 42 06 00 90 00 BC [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=255 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 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 78 00 00 00 F4 03 04 00 4B BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1B 01 00 35 04 06 00 [16:31:07]Write to MH i2c: E2 02 01 43 06 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 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 78 00 00 00 F4 03 04 00 4B BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1B 01 00 35 04 06 00 00 00 F1 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 43 06 00 90 00 BD [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=11 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 02 02 06 8E 6D CB 73 04 5A [16:31:07]Write to MH i2c: E2 0E 00 44 06 80 0D 02 02 06 00 8E 6D CB 73 04 5A 00 00 67 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 03 00 44 06 00 90 00 BE [16:31:07]RAPDU: 90 00 [16:31:07]wFMCommunicate OK [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 0D 03 02 [16:31:07]Write to MH i2c: E2 08 00 45 06 80 0D 03 02 00 00 00 00 C6 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 0B 00 45 06 00 A0 47 BF A1 1E 63 7E 09 90 00 16 [16:31:07]RAPDU: A0 47 BF A1 1E 63 7E 09 90 00 [16:31:07]wFMCommunicate OK [16:31:07]SAM_PROTO_SignData done [16:31:07]FM_MakeSignedData done [16:31:07]CreateOFDProtocolMessage [16:31:07]wFMCommunicate request_size=4 [16:31:07]MH_SAM_APDU [16:31:07]CAPDU: 80 11 00 00 [16:31:07]Write to MH i2c: E2 08 00 46 06 80 11 00 00 00 00 00 00 C6 [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:07]Read from MH i2c: E2 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 17 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: E2 17 00 46 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1A [16:31:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:31:07]wFMCommunicate OK [16:31:07]CreateOFDProtocolMessage done [16:31:07]OFDSenderStorePacket 72592 [16:31:07]StoreOFDPacket docnum=72592 [16:31:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 F3 08 01 7D A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 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 78 00 00 00 F4 03 04 00 4B BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1B 01 00 35 04 06 00 8E 6D CB 73 04 5A A0 47 BF A1 1E 63 7E 09 [16:31:07]CheckFolder [16:31:07]dirname=/storage/ofd_packets [16:31:07]CheckFolder done [16:31:07]ProducePacketName [16:31:07]name=ofd_packets/00072592 [16:31:07]NVStorageSaveData ofd_packets/00072592 [16:31:07]File name is /storage/ofd_packets/00072592 [16:31:07]Write 302 bytes [16:31:07]NVStorageSaveData done [16:31:07]OFDSenderStorePacket done [16:31:07]KKMCreateOFDPacket done [16:31:07]NVStorageSaveData kkm_last_timestamp [16:31:07]File name is /storage/kkm_last_timestamp [16:31:07]Write 4 bytes [16:31:07]NVStorageSaveData done [16:31:07]OFD Sender: Processing packet 72592 [packets to send 274, broken 273] [16:31:07]ProducePacketName [16:31:07]name=ofd_packets/00072592 [16:31:07]OFD Sender: To server: pG, [16:31:07]CommunicateWithHost lk.salyk.kg:30040 [16:31:07]ConnectInit lk.salyk.kg [16:31:07]ExternCall_PrintAddStr [16:31:07]wPrintStart [16:31:07]Write to MH i2c: 01 00 00 47 06 4D [16:31:07]Write i2c OK [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 07 00 [16:31:07]MH_I2C_Read... [16:31:07]Read from MH i2c: 01 07 00 47 06 00 00 00 00 00 FF 0F 62 [16:31:07]RasterBufferAndPrint [16:31:07]line Счет N : (1)952072 [16:31:07]line ИНН: 02508201610067 [16:31:07]line Контрольно-Кассовый Чек [16:31:07]line ПРОДАЖА [16:31:07]line ТРК (МРК, ГНК) : 22 [16:31:07]line Товар: 2710194210 [16:31:07]line ДТ(л)-К-5 [16:31:07]line 20.160 * 0.00 [16:31:07]line = 0.00 [16:31:07]line НДС 12% НСП 1% [16:31:07]line > о реализуемом товаре [16:31:07]line ИТОГО: 0.00 [16:31:07]line НСП 1% : 0.00 [16:31:07]line НДС 12% : 0.00 [16:31:07]line Наличными: 0.00 [16:31:07]line Безнал.: 0.00 [16:31:07]line Место: АЗС № 113 "Партнер Нефть" [16:31:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:31:07]line СНО: Общий режим [16:31:07]line Чек 120 28.10.2024 16:31 [16:31:07]line Смена: 554 ФФД: 1.0 [16:31:07]line ЗНМ: 0300000087 [16:31:07]line РНМ: 0000000000091644 [16:31:07]line Версия ККМ: 001 [16:31:07]line Талоны: Топливная Карта [16:31:07]line 92975 [16:31:07]line ФМ: 0000000000874662 [16:31:07]line ФД: 72592 [16:31:07]line ФПД: 156602215892058 [16:31:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163107&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72592&fm=156602215892058&tin=02508201610067®Number=0000000000091644&sum=0 [16:31:08]written 0, free lines is 4095 [16:31:08]Write to MH i2c: 01 00 00 71 06 77 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: 01 07 00 71 06 00 00 00 00 00 E9 0C 73 [16:31:08]RasterBufferAndPrint [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]line [16:31:08]written 0, free lines is 3312 [16:31:08]MH_Cut [16:31:08]Write to MH i2c: D1 01 00 78 06 01 50 [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 [16:31:08]MH_I2C_Read... [16:31:08]Read from MH i2c: D1 01 00 78 06 00 4F [16:31:08]Write to MH i2c: 01 00 00 79 06 7F [16:31:08]Write i2c OK [16:31:08]MH_I2C_Read... [16:31:08]Connected sock=11 [16:31:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 F3 08 01 7D A3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 C0 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 78 00 00 00 F4 03 04 00 4B BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 90 1B 01 00 35 04 06 00 8E 6D CB 73 04 5A A0 47 BF A1 1E 63 7E 09 [16:31:09]*** Cut start [16:31:09]*** Partial cut [16:31:09]*** CUTSNS_PIN = 1 [16:31:09]*** CUTSNS_PIN = 0 [16:31:09]*** Brake cut motor [16:31:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F1 45 47 00 69 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 34 36 36 32 10 04 04 00 90 1B 01 00 F4 03 04 00 09 67 1F 67 B6 04 01 00 00 8D 5D D4 61 13 30 0D B2 [16:31:09]CommunicateWithHost err = 0 [16:31:09]CheckOFDResponse [16:31:09]1017 (14) - 77093643461234 [16:31:09]1041 (16) - 0000000000874662 [16:31:09]1040 (4) - 72592 [16:31:09]1012 (4) - 28.10.2024 10:27 [16:31:09]1206 (1) - 0 [16:31:09]OFD Sender: Remove packet 72592 [16:31:09]ProducePacketName [16:31:09]name=ofd_packets/00072592 [16:31:09]NVStorageDeleteData [16:31:09]Read from MH i2c: 01 [16:31:09]MH_I2C_Read... [16:31:09]*** Stop cut motor [16:31:09]*** Cut end [16:31:09]Read from MH i2c: 01 07 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: 01 07 00 79 06 00 00 00 00 00 FF 0F 94 [16:31:09]process_action close_receipt done [16:31:09]requested_data is exist [16:31:09]produce_requested_data [16:31:09]requested_item fm.sn is exist - process it [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 11 00 00 [16:31:09]Write to MH i2c: E2 08 00 7A 06 80 11 00 00 00 00 00 00 FA [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:09]Read from MH i2c: E2 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 17 00 [16:31:09]MH_I2C_Read... [16:31:09]Read from MH i2c: E2 17 00 7A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 4E [16:31:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:31:09]wFMCommunicate OK [16:31:09]requested_item fd.num is exist - process it [16:31:09]SAM_PROTO_GetFieldsCounters [16:31:09]wFMCommunicate request_size=4 [16:31:09]MH_SAM_APDU [16:31:09]CAPDU: 80 13 00 00 [16:31:09]Write to MH i2c: E2 08 00 7B 06 80 13 00 00 00 00 00 00 FD [16:31:09]Write i2c OK [16:31:09]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 62 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 62 00 7B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:31: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 90 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:10]wFMCommunicate OK [16:31:10]SAM_PROTO_GetFieldsCounters done [16:31:10]requested_item shift.num is exist - process it [16:31:10]requested_item shift.opened is exist - process it [16:31:10]req_shift_opened [16:31:10]FM_GetShiftState [16:31:10]SAM_PROTO_GetShiftState [16:31:10]wFMCommunicate request_size=4 [16:31:10]MH_SAM_APDU [16:31:10]CAPDU: 80 13 01 00 [16:31:10]Write to MH i2c: E2 08 00 7C 06 80 13 01 00 00 00 00 00 FF [16:31:10]Write i2c OK [16:31:10]MH_I2C_Read... [16:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:10]Read from MH i2c: E2 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 0E 00 [16:31:10]MH_I2C_Read... [16:31:10]Read from MH i2c: E2 0E 00 7C 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 67 [16:31:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:31:10]wFMCommunicate OK [16:31:10]SAM_PROTO_GetShiftState done [16:31:10]FM_GetShiftState done [16:31:10]req_shift_opened done [16:31:10]requested_item shift.open_date is exist - process it [16:31:10]req_shift_open_date [16:31:10]req_shift_open_date done [16:31:10]produce_requested_data done [16:31:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72592,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:31:10]process_action_free close_receipt [16:31:10]json_value_free [16:31:10]json_value_free done [16:31:10]process_json_proto returns [16:31:10]Send response to host [16:31:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72592,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:31:10]free response buf [16:31:10]execute_script done [16:31:10]execute_script returns [16:31:10]free content buf [16:31:10]Sock 10.Close socket [16:31:10]Sock 10.Thread stoped [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:24]recv_with_timeout no data received [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:38]recv_with_timeout no data received [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:08]recv_with_timeout no data received [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:36]recv_with_timeout no data received [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:32:59]recv_with_timeout no data received [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:31]accept exits with 9 [16:33:31]New connection [16:33:31]New thread 3066809700 created [16:33:31]Thread 3066666340 joined [16:33:31]Waiting for new connection... [16:33:31] Sock 9.Parse request [16:33:31]Sock 9.Check first char [16:33:31]Sock 9.First char is OK [16:33:31]request: POST /json_proto HTTP/1.0 [16:33:31]Method: POST [16:33:31]URL: /json_proto [16:33:31]Method is POST - this is cgi request [16:33:31]url: /json_proto [16:33:31]query_string will be loaded in cgi processing [16:33:31]execute_cgi json_proto POST (null) [16:33:31]execute_cgi path=json_proto method=POST [16:33:31]POST find Content-Length [16:33:31]Host: 172.17.43.195:8080 [16:33:31]Content-Length: 806 [16:33:31]Content-Type: application/json [16:33:31] [16:33:31]POST finish read [16:33:31]Found Content-Length = 806 [16:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 43.710, "sum" : 1700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:31]execute_script... [16:33: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)952073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 43.710, "sum" : 1700.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1700.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:33:31]POST & json_proto [16:33:31]process_json_proto [16:33:31]json parsed OK: [16:33:31]protocol is kg_v1.0 [16:33:31]action value=close_receipt [16:33:31]process_action close_receipt [16:33:31]cmd_close_receipt [16:33:31]MH_GetDate [16:33:31]Write to MH i2c: F0 00 00 7D 06 72 [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 09 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: F0 09 00 7D 06 00 DC BC 1F 67 74 2C AD 66 4C [16:33:31]GetLastDocTimeStamp 1730133067 [16:33:31]current date 1730133212 [16:33:31]FM_GetShiftState [16:33:31]SAM_PROTO_GetShiftState [16:33:31]wFMCommunicate request_size=4 [16:33:31]MH_SAM_APDU [16:33:31]CAPDU: 80 13 01 00 [16:33:31]Write to MH i2c: E2 08 00 7E 06 80 13 01 00 00 00 00 00 01 [16:33:31]Write i2c OK [16:33:31]MH_I2C_Read... [16:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:31]Read from MH i2c: E2 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 0E 00 [16:33:31]MH_I2C_Read... [16:33:31]Read from MH i2c: E2 0E 00 7E 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 69 [16:33:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:33:31]wFMCommunicate OK [16:33:31]SAM_PROTO_GetShiftState done [16:33:31]FM_GetShiftState done [16:33:31]opened in 1730074113 [16:33:31]opened+sec_in_day 1730160513 [16:33:31]quantity*price = 170031 [16:33:31]sum+1 = 170033 [16:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1700.32 НСП 1% : 15.05 НДС 12% : 180.56 Наличными: 0.00 Безнал.: 1700.32 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 121 28.10.2024 16:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72593 ФПД: 110744380221705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163332&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72593&fm=110744380221705&tin=02508201610067®Number=0000000000091644&sum=170032 [16:33:32]StoreToDocumentArchive [16:33:32]shift 554 fd 72593 [16:33:32]save to /storage/0554/doc_00072593 [16:33:32]save last doc name /storage/0554/doc_00072593 to /storage/kkm_last_doc_name [16:33:32]save OK [16:33:32]Clear old archive folders... [16:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:33:32]tlvbuf is 0044C6A0 [16:33:32]SAM_PROTO_ClearQueue [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 09 00 00 [16:33:32]Write to MH i2c: E2 08 00 8B 06 80 09 00 00 00 00 00 00 03 [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 8B 06 00 90 00 05 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]SAM_PROTO_ClearQueue done [16:33:32]KKMCreateOFDPacket [16:33:32]OFDProtocolAddRootSTLVToBuf [16:33:32]FM_MakeSignedData [16:33:32]FM_MakeSignedData [16:33:32]SAM_PROTO_SignData [16:33:32]wFMCommunicate request_size=4 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 01 02 [16:33:32]Write to MH i2c: E2 08 00 8C 06 80 0D 01 02 00 00 00 00 0B [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:33:32]Read from MH i2c: E2 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 [16:33:32]MH_I2C_Read... [16:33:32]Read from MH i2c: E2 03 00 8C 06 00 90 00 06 [16:33:32]RAPDU: 90 00 [16:33:32]wFMCommunicate OK [16:33:32]wFMCommunicate request_size=255 [16:33:32]MH_SAM_APDU [16:33:32]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1B 01 00 35 04 06 00 64 B8 [16:33:32]Write to MH i2c: E2 02 01 8D 06 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1B 01 00 35 04 06 00 64 B8 00 00 01 [16:33:32]Write i2c OK [16:33:32]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 8D 06 00 90 00 07 [16:33:33]RAPDU: 90 00 [16:33:33]wFMCommunicate OK [16:33:33]wFMCommunicate request_size=9 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 0D 02 02 04 AF 71 A9 09 [16:33:33]Write to MH i2c: E2 0C 00 8E 06 80 0D 02 02 04 00 AF 71 A9 09 00 00 E8 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 03 00 8E 06 00 90 00 08 [16:33:33]RAPDU: 90 00 [16:33:33]wFMCommunicate OK [16:33:33]wFMCommunicate request_size=4 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 0D 03 02 [16:33:33]Write to MH i2c: E2 08 00 8F 06 80 0D 03 02 00 00 00 00 10 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0B 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 0B 00 8F 06 00 14 44 8B D3 3E 5F A8 5B 90 00 67 [16:33:33]RAPDU: 14 44 8B D3 3E 5F A8 5B 90 00 [16:33:33]wFMCommunicate OK [16:33:33]SAM_PROTO_SignData done [16:33:33]FM_MakeSignedData done [16:33:33]CreateOFDProtocolMessage [16:33:33]wFMCommunicate request_size=4 [16:33:33]MH_SAM_APDU [16:33:33]CAPDU: 80 11 00 00 [16:33:33]Write to MH i2c: E2 08 00 90 06 80 11 00 00 00 00 00 00 10 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:33]Read from MH i2c: E2 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 17 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: E2 17 00 90 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 64 [16:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:33:33]wFMCommunicate OK [16:33:33]CreateOFDProtocolMessage done [16:33:33]OFDSenderStorePacket 72593 [16:33:33]StoreOFDPacket docnum=72593 [16:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F5 15 06 01 E2 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1B 01 00 35 04 06 00 64 B8 AF 71 A9 09 14 44 8B D3 3E 5F A8 5B [16:33:33]CheckFolder [16:33:33]dirname=/storage/ofd_packets [16:33:33]CheckFolder done [16:33:33]ProducePacketName [16:33:33]name=ofd_packets/00072593 [16:33:33]NVStorageSaveData ofd_packets/00072593 [16:33:33]File name is /storage/ofd_packets/00072593 [16:33:33]Write 300 bytes [16:33:33]NVStorageSaveData done [16:33:33]OFDSenderStorePacket done [16:33:33]KKMCreateOFDPacket done [16:33:33]NVStorageSaveData kkm_last_timestamp [16:33:33]File name is /storage/kkm_last_timestamp [16:33:33]Write 4 bytes [16:33:33]NVStorageSaveData done [16:33:33]ExternCall_PrintAddStr [16:33:33]wPrintStart [16:33:33]Write to MH i2c: 01 00 00 91 06 97 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 91 06 00 00 00 00 00 FF 0F AC [16:33:33]RasterBufferAndPrint [16:33:33]line Счет N : (1)952073 [16:33:33]line ИНН: 02508201610067 [16:33:33]line Контрольно-Кассовый Чек [16:33:33]line ПРОДАЖА [16:33:33]line ТРК (МРК, ГНК) : 71 [16:33:33]line Товар: 2711190000 [16:33:33]line ГАЗ-К-3 [16:33:33]line 43.710 * 38.90 [16:33:33]line = 1700.32 [16:33:33]line НДС 12% НСП 1% [16:33:33]line > о реализуемом товаре [16:33:33]line ИТОГО: 1700.32 [16:33:33]line НСП 1% : 15.05 [16:33:33]line НДС 12% : 180.56 [16:33:33]line Наличными: 0.00 [16:33:33]line Безнал.: 1700.32 [16:33:33]line Место: АЗС № 113 "Партнер Нефть" [16:33:33]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [16:33:33]line СНО: Общий режим [16:33:33]line Чек 121 28.10.2024 16:33 [16:33:33]line Смена: 554 ФФД: 1.0 [16:33:33]line ЗНМ: 0300000087 [16:33:33]line РНМ: 0000000000091644 [16:33:33]line Версия ККМ: 001 [16:33:33]line Платежная система: O! деньги [16:33:33]line ФМ: 0000000000874662 [16:33:33]line ФД: 72593 [16:33:33]line ФПД: 110744380221705 [16:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T163332&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72593&fm=110744380221705&tin=02508201610067®Number=0000000000091644&sum=170032 [16:33:33]written 0, free lines is 4095 [16:33:33]OFD Sender: Processing packet 72593 [packets to send 274, broken 273] [16:33:33]ProducePacketName [16:33:33]name=ofd_packets/00072593 [16:33:33]OFD Sender: To server: pG, [16:33:33]CommunicateWithHost lk.salyk.kg:30040 [16:33:33]ConnectInit lk.salyk.kg [16:33:33]Write to MH i2c: 01 00 00 BB 06 C1 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: 01 07 00 BB 06 00 00 00 00 00 ED 0C C1 [16:33:33]RasterBufferAndPrint [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]line [16:33:33]written 0, free lines is 3316 [16:33:33]MH_Cut [16:33:33]Write to MH i2c: D1 01 00 C2 06 01 9A [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 [16:33:33]MH_I2C_Read... [16:33:33]Read from MH i2c: D1 01 00 C2 06 00 99 [16:33:33]Write to MH i2c: 01 00 00 C3 06 C9 [16:33:33]Write i2c OK [16:33:33]MH_I2C_Read... [16:33:33]recv_with_timeout no data received [16:33:34]*** Cut start [16:33:34]*** Partial cut [16:33:34]*** CUTSNS_PIN = 1 [16:33:34]*** CUTSNS_PIN = 0 [16:33:34]*** Brake cut motor [16:33:35]Read from MH i2c: 01 [16:33:35]MH_I2C_Read... [16:33:35]*** Stop cut motor [16:33:35]*** Cut end [16:33:35]Read from MH i2c: 01 07 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: 01 07 00 C3 06 00 00 00 00 00 FF 0F DE [16:33:35]process_action close_receipt done [16:33:35]requested_data is exist [16:33:35]produce_requested_data [16:33:35]requested_item fm.sn is exist - process it [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 11 00 00 [16:33:35]Write to MH i2c: E2 08 00 C4 06 80 11 00 00 00 00 00 00 44 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 17 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 17 00 C4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 98 [16:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [16:33:35]wFMCommunicate OK [16:33:35]requested_item fd.num is exist - process it [16:33:35]SAM_PROTO_GetFieldsCounters [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 13 00 00 [16:33:35]Write to MH i2c: E2 08 00 C5 06 80 13 00 00 00 00 00 00 47 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 62 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 62 00 C5 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [16:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 91 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:33:35]wFMCommunicate OK [16:33:35]SAM_PROTO_GetFieldsCounters done [16:33:35]requested_item shift.num is exist - process it [16:33:35]requested_item shift.opened is exist - process it [16:33:35]req_shift_opened [16:33:35]FM_GetShiftState [16:33:35]SAM_PROTO_GetShiftState [16:33:35]wFMCommunicate request_size=4 [16:33:35]MH_SAM_APDU [16:33:35]CAPDU: 80 13 01 00 [16:33:35]Write to MH i2c: E2 08 00 C6 06 80 13 01 00 00 00 00 00 49 [16:33:35]Write i2c OK [16:33:35]MH_I2C_Read... [16:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:33:35]Read from MH i2c: E2 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 0E 00 [16:33:35]MH_I2C_Read... [16:33:35]Read from MH i2c: E2 0E 00 C6 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 B1 [16:33:35]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [16:33:35]wFMCommunicate OK [16:33:35]SAM_PROTO_GetShiftState done [16:33:35]FM_GetShiftState done [16:33:35]req_shift_opened done [16:33:35]requested_item shift.open_date is exist - process it [16:33:35]req_shift_open_date [16:33:35]req_shift_open_date done [16:33:35]produce_requested_data done [16:33:35]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72593,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [16:33:35]process_action_free close_receipt [16:33:35]json_value_free [16:33:35]json_value_free done [16:33:35]process_json_proto returns [16:33:35]Send response to host [16:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72593,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [16:33:35]free response buf [16:33:35]execute_script done [16:33:35]execute_script returns [16:33:35]free content buf [16:33:35]Sock 9.Close socket [16:33:35]Sock 9.Thread stoped [16:33:35]Connected sock=11 [16:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 F5 15 06 01 E2 3F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 BE AA 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 30 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 46 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 98 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 DC BC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1B 01 00 35 04 06 00 64 B8 AF 71 A9 09 14 44 8B D3 3E 5F A8 5B [16:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 81 E8 47 00 20 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 91 1B 01 00 F4 03 04 00 9D 67 1F 67 B6 04 01 00 00 B4 8D 87 1F 1B DA DC 01 [16:33:36]CommunicateWithHost err = 0 [16:33:36]CheckOFDResponse [16:33:36]1017 (14) - 77093643461234 [16:33:36]1041 (16) - 0000000000874662 [16:33:36]1040 (4) - 72593 [16:33:36]1012 (4) - 28.10.2024 10:29 [16:33:36]1206 (1) - 0 [16:33:36]OFD Sender: Remove packet 72593 [16:33:36]ProducePacketName [16:33:36]name=ofd_packets/00072593 [16:33:36]NVStorageDeleteData [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:38]recv_with_timeout no data received [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:02]recv_with_timeout no data received [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:28]recv_with_timeout no data received [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:09]recv_with_timeout no data received [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:40]recv_with_timeout no data received [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:48]recv_with_timeout no data received [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:05]recv_with_timeout no data received [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:19]recv_with_timeout no data received [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:00]recv_with_timeout no data received [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:11]recv_with_timeout no data received [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:33]recv_with_timeout no data received [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:45:58]recv_with_timeout no data received [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:09]recv_with_timeout no data received [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [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:02]recv_with_timeout no data received [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:23]recv_with_timeout no data received [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:36]recv_with_timeout no data received [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:10]recv_with_timeout no data received [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:40]recv_with_timeout no data received [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]recv_with_timeout no data received [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:39]recv_with_timeout no data received [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:34]OFD Sender: No OFD packet to send [16:54:39]OFD Sender: No OFD packet to send [16:54:44]OFD Sender: No OFD packet to send [16:54:49]OFD Sender: No OFD packet to send [16:54:54]OFD Sender: No OFD packet to send [16:54:57]recv_with_timeout no data received [16:54:59]OFD Sender: No OFD packet to send [16:55:04]OFD Sender: No OFD packet to send [16:55:09]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:49]OFD Sender: No OFD packet to send [16:55:52]recv_with_timeout no data received [16:55:54]OFD Sender: No OFD packet to send [16:55:59]OFD Sender: No OFD packet to send [16:56:04]OFD Sender: No OFD packet to send [16:56:09]OFD Sender: No OFD packet to send [16:56:14]OFD Sender: No OFD packet to send [16:56:19]OFD Sender: No OFD packet to send [16:56:24]OFD Sender: No OFD packet to send [16:56:29]OFD Sender: No OFD packet to send [16:56:34]OFD Sender: No OFD packet to send [16:56:39]OFD Sender: No OFD packet to send [16:56:44]OFD Sender: No OFD packet to send [16:56:45]recv_with_timeout no data received [16:56:49]OFD Sender: No OFD packet to send [16:56:54]OFD Sender: No OFD packet to send [16:56:59]OFD Sender: No OFD packet to send [16:57:04]OFD Sender: No OFD packet to send [16:57:09]OFD Sender: No OFD packet to send [16:57:14]OFD Sender: No OFD packet to send [16:57:19]OFD Sender: No OFD packet to send [16:57:24]OFD Sender: No OFD packet to send [16:57:29]OFD Sender: No OFD packet to send [16:57:34]OFD Sender: No OFD packet to send [16:57:39]OFD Sender: No OFD packet to send [16:57:44]OFD Sender: No OFD packet to send [16:57:49]OFD Sender: No OFD packet to send [16:57:54]OFD Sender: No OFD packet to send [16:57:59]OFD Sender: No OFD packet to send [16:58:04]OFD Sender: No OFD packet to send [16:58:09]OFD Sender: No OFD packet to send [16:58:14]OFD Sender: No OFD packet to send [16:58:19]recv_with_timeout no data received [16:58:19]OFD Sender: No OFD packet to send [16:58:24]OFD Sender: No OFD packet to send [16:58:29]OFD Sender: No OFD packet to send [16:58:30]recv_with_timeout no data received [16:58:34]OFD Sender: No OFD packet to send [16:58:39]OFD Sender: No OFD packet to send [16:58:44]OFD Sender: No OFD packet to send [16:58:49]OFD Sender: No OFD packet to send [16:58:54]OFD Sender: No OFD packet to send [16:58:59]OFD Sender: No OFD packet to send [16:58:59]recv_with_timeout no data received [16:59:04]OFD Sender: No OFD packet to send [16:59:09]OFD Sender: No OFD packet to send [16:59:14]OFD Sender: No OFD packet to send [16:59:19]OFD Sender: No OFD packet to send [16:59:24]OFD Sender: No OFD packet to send [16:59:29]OFD Sender: No OFD packet to send [16:59:34]OFD Sender: No OFD packet to send [16:59:39]OFD Sender: No OFD packet to send [16:59:41]recv_with_timeout no data received [16:59:44]OFD Sender: No OFD packet to send [16:59:49]OFD Sender: No OFD packet to send [16:59:54]OFD Sender: No OFD packet to send [16:59:59]OFD Sender: No OFD packet to send [17:00:04]OFD Sender: No OFD packet to send [17:00:09]OFD Sender: No OFD packet to send [17:00:14]recv_with_timeout no data received [17:00:14]OFD Sender: No OFD packet to send [17:00:19]OFD Sender: No OFD packet to send [17:00:24]OFD Sender: No OFD packet to send [17:00:29]OFD Sender: No OFD packet to send [17:00:34]OFD Sender: No OFD packet to send [17:00:39]recv_with_timeout no data received [17:00:39]OFD Sender: No OFD packet to send [17:00:44]OFD Sender: No OFD packet to send [17:00:49]OFD Sender: No OFD packet to send [17:00:54]OFD Sender: No OFD packet to send [17:00:59]OFD Sender: No OFD packet to send [17:01:04]OFD Sender: No OFD packet to send [17:01:09]OFD Sender: No OFD packet to send [17:01:14]OFD Sender: No OFD packet to send [17:01:19]recv_with_timeout no data received [17:01:19]OFD Sender: No OFD packet to send [17:01:24]OFD Sender: No OFD packet to send [17:01:29]OFD Sender: No OFD packet to send [17:01:34]OFD Sender: No OFD packet to send [17:01:39]OFD Sender: No OFD packet to send [17:01:44]OFD Sender: No OFD packet to send [17:01:49]OFD Sender: No OFD packet to send [17:01:54]OFD Sender: No OFD packet to send [17:01:59]OFD Sender: No OFD packet to send [17:02:04]OFD Sender: No OFD packet to send [17:02:09]OFD Sender: No OFD packet to send [17:02:14]OFD Sender: No OFD packet to send [17:02:19]OFD Sender: No OFD packet to send [17:02:24]OFD Sender: No OFD packet to send [17:02:25]recv_with_timeout no data received [17:02:29]OFD Sender: No OFD packet to send [17:02:34]OFD Sender: No OFD packet to send [17:02:39]OFD Sender: No OFD packet to send [17:02:44]OFD Sender: No OFD packet to send [17:02:49]OFD Sender: No OFD packet to send [17:02:54]OFD Sender: No OFD packet to send [17:02:59]OFD Sender: No OFD packet to send [17:03:04]OFD Sender: No OFD packet to send [17:03:09]OFD Sender: No OFD packet to send [17:03:14]OFD Sender: No OFD packet to send [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:31]recv_with_timeout no data received [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:14]OFD Sender: No OFD packet to send [17:04:19]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:40]recv_with_timeout no data received [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:05:56]accept exits with 10 [17:05:56]New connection [17:05:56]New thread 3066666340 created [17:05:56]Thread 3066809700 joined [17:05:56]Waiting for new connection... [17:05:56] Sock 10.Parse request [17:05:56]Sock 10.Check first char [17:05:56]Sock 10.First char is OK [17:05:56]request: POST /json_proto HTTP/1.0 [17:05:56]Method: POST [17:05:56]URL: /json_proto [17:05:56]Method is POST - this is cgi request [17:05:56]url: /json_proto [17:05:56]query_string will be loaded in cgi processing [17:05:56]execute_cgi json_proto POST (null) [17:05:56]execute_cgi path=json_proto method=POST [17:05:56]POST find Content-Length [17:05:56]Host: 172.17.43.195:8080 [17:05:56]Content-Length: 791 [17:05:56]Content-Type: application/json [17:05:56] [17:05:56]POST finish read [17:05:56]Found Content-Length = 791 [17:05:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:56]execute_script... [17:05: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)952079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:05:56]POST & json_proto [17:05:56]process_json_proto [17:05:56]json parsed OK: [17:05:56]protocol is kg_v1.0 [17:05:56]action value=close_receipt [17:05:56]process_action close_receipt [17:05:56]cmd_close_receipt [17:05:56]MH_GetDate [17:05:56]Write to MH i2c: F0 00 00 C7 06 BC [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 09 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: F0 09 00 C7 06 00 75 C4 1F 67 74 2C AD 66 37 [17:05:56]GetLastDocTimeStamp 1730133212 [17:05:56]current date 1730135157 [17:05:56]FM_GetShiftState [17:05:56]SAM_PROTO_GetShiftState [17:05:56]wFMCommunicate request_size=4 [17:05:56]MH_SAM_APDU [17:05:56]CAPDU: 80 13 01 00 [17:05:56]Write to MH i2c: E2 08 00 C8 06 80 13 01 00 00 00 00 00 4B [17:05:56]Write i2c OK [17:05:56]MH_I2C_Read... [17:05:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:05:56]Read from MH i2c: E2 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0E 00 [17:05:56]MH_I2C_Read... [17:05:56]Read from MH i2c: E2 0E 00 C8 06 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 B3 [17:05:56]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:05:56]wFMCommunicate OK [17:05:56]SAM_PROTO_GetShiftState done [17:05:56]FM_GetShiftState done [17:05:56]opened in 1730074113 [17:05:56]opened+sec_in_day 1730160513 [17:05:56]quantity*price = 0 [17:05:56]sum+1 = 1 [17:05:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 122 28.10.2024 17:05 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72594 ФПД: 271064508345850 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170557&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72594&fm=271064508345850&tin=02508201610067®Number=0000000000091644&sum=0 [17:05:57]StoreToDocumentArchive [17:05:57]shift 554 fd 72594 [17:05:57]save to /storage/0554/doc_00072594 [17:05:57]save last doc name /storage/0554/doc_00072594 to /storage/kkm_last_doc_name [17:05:57]save OK [17:05:57]Clear old archive folders... [17:05:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:05:57]tlvbuf is 003D6030 [17:05:57]SAM_PROTO_ClearQueue [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 09 00 00 [17:05:57]Write to MH i2c: E2 08 00 D5 06 80 09 00 00 00 00 00 00 4D [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 D5 06 00 90 00 4F [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]SAM_PROTO_ClearQueue done [17:05:57]KKMCreateOFDPacket [17:05:57]OFDProtocolAddRootSTLVToBuf [17:05:57]FM_MakeSignedData [17:05:57]FM_MakeSignedData [17:05:57]SAM_PROTO_SignData [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 0D 01 02 [17:05:57]Write to MH i2c: E2 08 00 D6 06 80 0D 01 02 00 00 00 00 55 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 D6 06 00 90 00 50 [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]wFMCommunicate request_size=255 [17:05:57]MH_SAM_APDU [17:05: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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 75 C4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1B 01 00 35 04 06 00 F6 [17:05:57]Write to MH i2c: E2 02 01 D7 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 75 C4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1B 01 00 35 04 06 00 F6 00 00 03 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 D7 06 00 90 00 51 [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]wFMCommunicate request_size=10 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 0D 02 02 05 88 1F BB 2D FA [17:05:57]Write to MH i2c: E2 0D 00 D8 06 80 0D 02 02 05 00 88 1F BB 2D FA 00 00 EB [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 03 00 D8 06 00 90 00 52 [17:05:57]RAPDU: 90 00 [17:05:57]wFMCommunicate OK [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 0D 03 02 [17:05:57]Write to MH i2c: E2 08 00 D9 06 80 0D 03 02 00 00 00 00 5A [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 0B 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 0B 00 D9 06 00 56 5C BF 89 66 F0 C7 39 90 00 AB [17:05:57]RAPDU: 56 5C BF 89 66 F0 C7 39 90 00 [17:05:57]wFMCommunicate OK [17:05:57]SAM_PROTO_SignData done [17:05:57]FM_MakeSignedData done [17:05:57]CreateOFDProtocolMessage [17:05:57]wFMCommunicate request_size=4 [17:05:57]MH_SAM_APDU [17:05:57]CAPDU: 80 11 00 00 [17:05:57]Write to MH i2c: E2 08 00 DA 06 80 11 00 00 00 00 00 00 5A [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:05:57]Read from MH i2c: E2 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 17 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: E2 17 00 DA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AE [17:05:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:05:57]wFMCommunicate OK [17:05:57]CreateOFDProtocolMessage done [17:05:57]OFDSenderStorePacket 72594 [17:05:57]StoreOFDPacket docnum=72594 [17:05:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 E2 07 01 BF 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 75 C4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1B 01 00 35 04 06 00 F6 88 1F BB 2D FA 56 5C BF 89 66 F0 C7 39 [17:05:57]CheckFolder [17:05:57]dirname=/storage/ofd_packets [17:05:57]CheckFolder done [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00072594 [17:05:57]NVStorageSaveData ofd_packets/00072594 [17:05:57]File name is /storage/ofd_packets/00072594 [17:05:57]Write 301 bytes [17:05:57]NVStorageSaveData done [17:05:57]OFDSenderStorePacket done [17:05:57]KKMCreateOFDPacket done [17:05:57]NVStorageSaveData kkm_last_timestamp [17:05:57]File name is /storage/kkm_last_timestamp [17:05:57]Write 4 bytes [17:05:57]NVStorageSaveData done [17:05:57]OFD Sender: Processing packet 72594 [packets to send 274, broken 273] [17:05:57]ProducePacketName [17:05:57]name=ofd_packets/00072594 [17:05:57]OFD Sender: To server: pG, [17:05:57]CommunicateWithHost lk.salyk.kg:30040 [17:05:57]ConnectInit lk.salyk.kg [17:05:57]ExternCall_PrintAddStr [17:05:57]wPrintStart [17:05:57]Write to MH i2c: 01 00 00 DB 06 E1 [17:05:57]Write i2c OK [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 [17:05:57]MH_I2C_Read... [17:05:57]Read from MH i2c: 01 07 00 DB 06 00 00 00 00 00 FF 0F F6 [17:05:57]RasterBufferAndPrint [17:05:57]line Счет N : (1)952079 [17:05:57]line ИНН: 02508201610067 [17:05:57]line Контрольно-Кассовый Чек [17:05:57]line ПРОДАЖА [17:05:57]line ТРК (МРК, ГНК) : 53 [17:05:57]line Товар: 2710124130 [17:05:57]line Аи-92-К-5 [17:05:57]line 5.000 * 0.00 [17:05:57]line = 0.00 [17:05:57]line НДС 12% НСП 1% [17:05:57]line > о реализуемом товаре [17:05:57]line ИТОГО: 0.00 [17:05:57]line НСП 1% : 0.00 [17:05:57]line НДС 12% : 0.00 [17:05:57]line Наличными: 0.00 [17:05:57]line Безнал.: 0.00 [17:05:57]line Место: АЗС № 113 "Партнер Нефть" [17:05:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:05:57]line СНО: Общий режим [17:05:57]line Чек 122 28.10.2024 17:05 [17:05:57]line Смена: 554 ФФД: 1.0 [17:05:57]line ЗНМ: 0300000087 [17:05:57]line РНМ: 0000000000091644 [17:05:57]line Версия ККМ: 001 [17:05:57]line Талоны: Топливная Карта [17:05:57]line 03047 [17:05:57]line ФМ: 0000000000874662 [17:05:57]line ФД: 72594 [17:05:57]line ФПД: 271064508345850 [17:05:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T170557&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72594&fm=271064508345850&tin=02508201610067®Number=0000000000091644&sum=0 [17:05:58]written 0, free lines is 4095 [17:05:58]Write to MH i2c: 01 00 00 05 07 0C [17:05:58]Write i2c OK [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: 01 [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: 01 07 00 [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: 01 07 00 05 07 00 00 00 00 00 DB 0C FA [17:05:58]RasterBufferAndPrint [17:05:58]line [17:05:58]line [17:05:58]line [17:05:58]line [17:05:58]line [17:05:58]written 0, free lines is 3297 [17:05:58]MH_Cut [17:05:58]Write to MH i2c: D1 01 00 0C 07 01 E5 [17:05:58]Write i2c OK [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: D1 [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: D1 01 00 [17:05:58]MH_I2C_Read... [17:05:58]Read from MH i2c: D1 01 00 0C 07 00 E4 [17:05:58]Write to MH i2c: 01 00 00 0D 07 14 [17:05:58]Write i2c OK [17:05:58]MH_I2C_Read... [17:05:58]Connected sock=11 [17:05:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A9 E2 07 01 BF 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 88 13 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 75 C4 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 92 1B 01 00 35 04 06 00 F6 88 1F BB 2D FA 56 5C BF 89 66 F0 C7 39 [17:05:59]*** Cut start [17:05:59]*** Partial cut [17:05:59]*** CUTSNS_PIN = 1 [17:05:59]*** CUTSNS_PIN = 0 [17:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 38 FB 47 00 BC 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 34 36 36 32 10 04 04 00 92 1B 01 00 F4 03 04 00 34 6F 1F 67 B6 04 01 00 00 16 F4 BB 81 F4 6C 84 3D [17:05:59]CommunicateWithHost err = 0 [17:05:59]CheckOFDResponse [17:05:59]1017 (14) - 77093643461234 [17:05:59]1041 (16) - 0000000000874662 [17:05:59]1040 (4) - 72594 [17:05:59]1012 (4) - 28.10.2024 11:02 [17:05:59]1206 (1) - 0 [17:05:59]OFD Sender: Remove packet 72594 [17:05:59]ProducePacketName [17:05:59]name=ofd_packets/00072594 [17:05:59]NVStorageDeleteData [17:05:59]*** Brake cut motor [17:05:59]Read from MH i2c: 01 [17:05:59]MH_I2C_Read... [17:05:59]*** Stop cut motor [17:05:59]*** Cut end [17:05:59]Read from MH i2c: 01 07 00 [17:05:59]MH_I2C_Read... [17:05:59]Read from MH i2c: 01 07 00 0D 07 00 00 00 00 00 FF 0F 29 [17:05:59]process_action close_receipt done [17:05:59]requested_data is exist [17:05:59]produce_requested_data [17:05:59]requested_item fm.sn is exist - process it [17:05:59]wFMCommunicate request_size=4 [17:05:59]MH_SAM_APDU [17:05:59]CAPDU: 80 11 00 00 [17:05:59]Write to MH i2c: E2 08 00 0E 07 80 11 00 00 00 00 00 00 8F [17:05:59]Write i2c OK [17:05:59]MH_I2C_Read... [17:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:00]Read from MH i2c: E2 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 17 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 17 00 0E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E3 [17:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:06:00]wFMCommunicate OK [17:06:00]requested_item fd.num is exist - process it [17:06:00]SAM_PROTO_GetFieldsCounters [17:06:00]wFMCommunicate request_size=4 [17:06:00]MH_SAM_APDU [17:06:00]CAPDU: 80 13 00 00 [17:06:00]Write to MH i2c: E2 08 00 0F 07 80 13 00 00 00 00 00 00 92 [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]OFD Sender: No OFD packet to send [17:06:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:06:00]Read from MH i2c: E2 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 62 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 62 00 0F 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [17:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 92 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:06:00]wFMCommunicate OK [17:06:00]SAM_PROTO_GetFieldsCounters done [17:06:00]requested_item shift.num is exist - process it [17:06:00]requested_item shift.opened is exist - process it [17:06:00]req_shift_opened [17:06:00]FM_GetShiftState [17:06:00]SAM_PROTO_GetShiftState [17:06:00]wFMCommunicate request_size=4 [17:06:00]MH_SAM_APDU [17:06:00]CAPDU: 80 13 01 00 [17:06:00]Write to MH i2c: E2 08 00 10 07 80 13 01 00 00 00 00 00 94 [17:06:00]Write i2c OK [17:06:00]MH_I2C_Read... [17:06:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:00]Read from MH i2c: E2 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 0E 00 [17:06:00]MH_I2C_Read... [17:06:00]Read from MH i2c: E2 0E 00 10 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 FC [17:06:00]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:06:00]wFMCommunicate OK [17:06:00]SAM_PROTO_GetShiftState done [17:06:00]FM_GetShiftState done [17:06:00]req_shift_opened done [17:06:00]requested_item shift.open_date is exist - process it [17:06:00]req_shift_open_date [17:06:00]req_shift_open_date done [17:06:00]produce_requested_data done [17:06:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72594,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:06:00]process_action_free close_receipt [17:06:00]json_value_free [17:06:00]json_value_free done [17:06:00]process_json_proto returns [17:06:00]Send response to host [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:04]recv_with_timeout no data received [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]recv_with_timeout no data received [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:39]recv_with_timeout no data received [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:02]recv_with_timeout no data received [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:26]recv_with_timeout no data received [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:52]recv_with_timeout no data received [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:03]recv_with_timeout no data received [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:14]recv_with_timeout no data received [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:37]recv_with_timeout no data received [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]recv_with_timeout no data received [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:11]recv_with_timeout no data received [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:47]recv_with_timeout no data received [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:37]recv_with_timeout no data received [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:48]recv_with_timeout no data received [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:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:15:59]recv_with_timeout no data received [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:29]recv_with_timeout no data received [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:12]recv_with_timeout no data received [17:19:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:04]recv_with_timeout no data received [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:38]recv_with_timeout no data received [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:09]recv_with_timeout no data received [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:33]recv_with_timeout no data received [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:24:59]recv_with_timeout no data received [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:29]recv_with_timeout no data received [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:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:39]recv_with_timeout no data received [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]accept exits with 9 [17:29:57]New connection [17:29:57]New thread 3066809700 created [17:29:57]Thread 3066666340 joined [17:29:57]Waiting for new connection... [17:29:57] Sock 9.Parse request [17:29:57]Sock 9.Check first char [17:29:57]Sock 9.First char is OK [17:29:57]request: POST /json_proto HTTP/1.0 [17:29:57]Method: POST [17:29:57]URL: /json_proto [17:29:57]Method is POST - this is cgi request [17:29:57]url: /json_proto [17:29:57]query_string will be loaded in cgi processing [17:29:57]execute_cgi json_proto POST (null) [17:29:57]execute_cgi path=json_proto method=POST [17:29:57]POST find Content-Length [17:29:57]Host: 172.17.43.195:8080 [17:29:57]Content-Length: 797 [17:29:57]Content-Type: application/json [17:29:57] [17:29:57]POST finish read [17:29:57]Found Content-Length = 797 [17:29:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:57]execute_script... [17:29: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)952080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 19.690, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:29:57]POST & json_proto [17:29:57]process_json_proto [17:29:57]json parsed OK: [17:29:57]protocol is kg_v1.0 [17:29:57]action value=close_receipt [17:29:57]process_action close_receipt [17:29:57]cmd_close_receipt [17:29:57]MH_GetDate [17:29:57]Write to MH i2c: F0 00 00 11 07 07 [17:29:57]Write i2c OK [17:29:57]MH_I2C_Read... [17:29:57]Read from MH i2c: F0 [17:29:57]MH_I2C_Read... [17:29:57]Read from MH i2c: F0 09 00 [17:29:57]MH_I2C_Read... [17:29:57]Read from MH i2c: F0 09 00 11 07 00 16 CA 1F 67 74 2C AD 66 29 [17:29:57]GetLastDocTimeStamp 1730135157 [17:29:57]current date 1730136598 [17:29:57]FM_GetShiftState [17:29:57]SAM_PROTO_GetShiftState [17:29:57]wFMCommunicate request_size=4 [17:29:57]MH_SAM_APDU [17:29:57]CAPDU: 80 13 01 00 [17:29:57]Write to MH i2c: E2 08 00 12 07 80 13 01 00 00 00 00 00 96 [17:29:57]Write i2c OK [17:29:57]MH_I2C_Read... [17:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:57]Read from MH i2c: E2 [17:29:57]MH_I2C_Read... [17:29:57]Read from MH i2c: E2 0E 00 [17:29:57]MH_I2C_Read... [17:29:57]Read from MH i2c: E2 0E 00 12 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 FE [17:29:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:29:57]wFMCommunicate OK [17:29:57]SAM_PROTO_GetShiftState done [17:29:57]FM_GetShiftState done [17:29:57]opened in 1730074113 [17:29:57]opened+sec_in_day 1730160513 [17:29:57]quantity*price = 0 [17:29:57]sum+1 = 1 [17:29:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 123 28.10.2024 17:29 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72595 ФПД: 78011589211556 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T172958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72595&fm=78011589211556&tin=02508201610067®Number=0000000000091644&sum=0 [17:29:58]StoreToDocumentArchive [17:29:58]shift 554 fd 72595 [17:29:58]save to /storage/0554/doc_00072595 [17:29:58]save last doc name /storage/0554/doc_00072595 to /storage/kkm_last_doc_name [17:29:58]save OK [17:29:58]Clear old archive folders... [17:29:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:29:58]tlvbuf is 0044D310 [17:29:58]SAM_PROTO_ClearQueue [17:29:58]wFMCommunicate request_size=4 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 09 00 00 [17:29:58]Write to MH i2c: E2 08 00 1F 07 80 09 00 00 00 00 00 00 98 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 1F 07 00 90 00 9A [17:29:58]RAPDU: 90 00 [17:29:58]wFMCommunicate OK [17:29:58]SAM_PROTO_ClearQueue done [17:29:58]KKMCreateOFDPacket [17:29:58]OFDProtocolAddRootSTLVToBuf [17:29:58]FM_MakeSignedData [17:29:58]FM_MakeSignedData [17:29:58]SAM_PROTO_SignData [17:29:58]wFMCommunicate request_size=4 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 0D 01 02 [17:29:58]Write to MH i2c: E2 08 00 20 07 80 0D 01 02 00 00 00 00 A0 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 20 07 00 90 00 9B [17:29:58]RAPDU: 90 00 [17:29:58]wFMCommunicate OK [17:29:58]wFMCommunicate request_size=255 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 16 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1B 01 00 35 04 06 00 [17:29:58]Write to MH i2c: E2 02 01 21 07 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 16 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1B 01 00 35 04 06 00 00 00 D7 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 21 07 00 90 00 9C [17:29:58]RAPDU: 90 00 [17:29:58]wFMCommunicate OK [17:29:58]wFMCommunicate request_size=11 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 0D 02 02 06 46 F3 7D 10 35 A4 [17:29:58]Write to MH i2c: E2 0E 00 22 07 80 0D 02 02 06 00 46 F3 7D 10 35 A4 00 00 4E [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 03 00 22 07 00 90 00 9D [17:29:58]RAPDU: 90 00 [17:29:58]wFMCommunicate OK [17:29:58]wFMCommunicate request_size=4 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 0D 03 02 [17:29:58]Write to MH i2c: E2 08 00 23 07 80 0D 03 02 00 00 00 00 A5 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 0B 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 0B 00 23 07 00 31 8F 44 B8 EB B8 68 01 90 00 6E [17:29:58]RAPDU: 31 8F 44 B8 EB B8 68 01 90 00 [17:29:58]wFMCommunicate OK [17:29:58]SAM_PROTO_SignData done [17:29:58]FM_MakeSignedData done [17:29:58]CreateOFDProtocolMessage [17:29:58]wFMCommunicate request_size=4 [17:29:58]MH_SAM_APDU [17:29:58]CAPDU: 80 11 00 00 [17:29:58]Write to MH i2c: E2 08 00 24 07 80 11 00 00 00 00 00 00 A5 [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:58]Read from MH i2c: E2 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 17 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: E2 17 00 24 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F9 [17:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:29:58]wFMCommunicate OK [17:29:58]CreateOFDProtocolMessage done [17:29:58]OFDSenderStorePacket 72595 [17:29:58]StoreOFDPacket docnum=72595 [17:29:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 16 D2 08 01 00 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 16 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1B 01 00 35 04 06 00 46 F3 7D 10 35 A4 31 8F 44 B8 EB B8 68 01 [17:29:58]CheckFolder [17:29:58]dirname=/storage/ofd_packets [17:29:58]CheckFolder done [17:29:58]ProducePacketName [17:29:58]name=ofd_packets/00072595 [17:29:58]NVStorageSaveData ofd_packets/00072595 [17:29:58]File name is /storage/ofd_packets/00072595 [17:29:58]Write 302 bytes [17:29:58]NVStorageSaveData done [17:29:58]OFDSenderStorePacket done [17:29:58]KKMCreateOFDPacket done [17:29:58]NVStorageSaveData kkm_last_timestamp [17:29:58]File name is /storage/kkm_last_timestamp [17:29:58]Write 4 bytes [17:29:58]NVStorageSaveData done [17:29:58]ExternCall_PrintAddStr [17:29:58]wPrintStart [17:29:58]Write to MH i2c: 01 00 00 25 07 2C [17:29:58]Write i2c OK [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: 01 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: 01 07 00 [17:29:58]MH_I2C_Read... [17:29:58]Read from MH i2c: 01 07 00 25 07 00 00 00 00 00 FF 0F 41 [17:29:58]RasterBufferAndPrint [17:29:58]line Счет N : (1)952080 [17:29:58]line ИНН: 02508201610067 [17:29:58]line Контрольно-Кассовый Чек [17:29:58]line ПРОДАЖА [17:29:58]line ТРК (МРК, ГНК) : 22 [17:29:58]line Товар: 2710194210 [17:29:58]line ДТ(л)-К-5 [17:29:58]line 19.690 * 0.00 [17:29:58]line = 0.00 [17:29:58]line НДС 12% НСП 1% [17:29:58]line > о реализуемом товаре [17:29:58]line ИТОГО: 0.00 [17:29:58]line НСП 1% : 0.00 [17:29:58]line НДС 12% : 0.00 [17:29:58]line Наличными: 0.00 [17:29:58]line Безнал.: 0.00 [17:29:58]line Место: АЗС № 113 "Партнер Нефть" [17:29:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:29:58]line СНО: Общий режим [17:29:58]line Чек 123 28.10.2024 17:29 [17:29:58]line Смена: 554 ФФД: 1.0 [17:29:58]line ЗНМ: 0300000087 [17:29:58]line РНМ: 0000000000091644 [17:29:58]line Версия ККМ: 001 [17:29:58]line Талоны: Топливная Карта [17:29:58]line 02083 [17:29:58]line ФМ: 0000000000874662 [17:29:58]line ФД: 72595 [17:29:58]line ФПД: 78011589211556 [17:29:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T172958&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72595&fm=78011589211556&tin=02508201610067®Number=0000000000091644&sum=0 [17:29:59]written 0, free lines is 4095 [17:29:59]OFD Sender: Processing packet 72595 [packets to send 274, broken 273] [17:29:59]ProducePacketName [17:29:59]name=ofd_packets/00072595 [17:29:59]OFD Sender: To server: pG, [17:29:59]CommunicateWithHost lk.salyk.kg:30040 [17:29:59]ConnectInit lk.salyk.kg [17:29:59]Write to MH i2c: 01 00 00 4F 07 56 [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 07 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: 01 07 00 4F 07 00 00 00 00 00 DB 0C 44 [17:29:59]RasterBufferAndPrint [17:29:59]line [17:29:59]line [17:29:59]line [17:29:59]line [17:29:59]line [17:29:59]written 0, free lines is 3297 [17:29:59]MH_Cut [17:29:59]Write to MH i2c: D1 01 00 56 07 01 2F [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: D1 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: D1 01 00 [17:29:59]MH_I2C_Read... [17:29:59]Read from MH i2c: D1 01 00 56 07 00 2E [17:29:59]Write to MH i2c: 01 00 00 57 07 5E [17:29:59]Write i2c OK [17:29:59]MH_I2C_Read... [17:30:00]*** Cut start [17:30:00]*** Partial cut [17:30:00]*** CUTSNS_PIN = 1 [17:30:00]*** CUTSNS_PIN = 0 [17:30:00]*** Brake cut motor [17:30:01]Read from MH i2c: 01 [17:30:01]MH_I2C_Read... [17:30:01]*** Stop cut motor [17:30:01]*** Cut end [17:30:01]Read from MH i2c: 01 07 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: 01 07 00 57 07 00 00 00 00 00 FF 0F 73 [17:30:01]process_action close_receipt done [17:30:01]requested_data is exist [17:30:01]produce_requested_data [17:30:01]requested_item fm.sn is exist - process it [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 11 00 00 [17:30:01]Write to MH i2c: E2 08 00 58 07 80 11 00 00 00 00 00 00 D9 [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 17 00 58 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2D [17:30:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:30:01]wFMCommunicate OK [17:30:01]requested_item fd.num is exist - process it [17:30:01]SAM_PROTO_GetFieldsCounters [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 13 00 00 [17:30:01]Write to MH i2c: E2 08 00 59 07 80 13 00 00 00 00 00 00 DC [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 62 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 62 00 59 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 49 [17:30:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 93 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:01]wFMCommunicate OK [17:30:01]SAM_PROTO_GetFieldsCounters done [17:30:01]requested_item shift.num is exist - process it [17:30:01]requested_item shift.opened is exist - process it [17:30:01]req_shift_opened [17:30:01]FM_GetShiftState [17:30:01]SAM_PROTO_GetShiftState [17:30:01]wFMCommunicate request_size=4 [17:30:01]MH_SAM_APDU [17:30:01]CAPDU: 80 13 01 00 [17:30:01]Write to MH i2c: E2 08 00 5A 07 80 13 01 00 00 00 00 00 DE [17:30:01]Write i2c OK [17:30:01]MH_I2C_Read... [17:30:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:01]Read from MH i2c: E2 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0E 00 [17:30:01]MH_I2C_Read... [17:30:01]Read from MH i2c: E2 0E 00 5A 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 46 [17:30:01]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:30:01]wFMCommunicate OK [17:30:01]SAM_PROTO_GetShiftState done [17:30:01]FM_GetShiftState done [17:30:01]req_shift_opened done [17:30:01]requested_item shift.open_date is exist - process it [17:30:01]req_shift_open_date [17:30:01]req_shift_open_date done [17:30:01]produce_requested_data done [17:30:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72595,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:30:01]process_action_free close_receipt [17:30:01]json_value_free [17:30:01]json_value_free done [17:30:01]process_json_proto returns [17:30:01]Send response to host [17:30:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72595,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:30:01]free response buf [17:30:01]execute_script done [17:30:01]execute_script returns [17:30:01]free content buf [17:30:01]Sock 9.Close socket [17:30:01]Sock 9.Thread stoped [17:30:04]Connected sock=11 [17:30:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 16 D2 08 01 00 3E 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 16 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1B 01 00 35 04 06 00 46 F3 7D 10 35 A4 31 8F 44 B8 EB B8 68 01 [17:30:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 AB 8F 47 00 10 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 93 1B 01 00 F4 03 04 00 D9 74 1F 67 B6 04 01 00 00 12 E2 15 21 B4 CB 43 3C [17:30:05]CommunicateWithHost err = 0 [17:30:05]CheckOFDResponse [17:30:05]1017 (14) - 77093643461234 [17:30:05]1041 (16) - 0000000000874662 [17:30:05]1040 (4) - 72595 [17:30:05]1012 (4) - 28.10.2024 11:26 [17:30:05]1206 (1) - 0 [17:30:05]OFD Sender: Remove packet 72595 [17:30:05]ProducePacketName [17:30:05]name=ofd_packets/00072595 [17:30:05]NVStorageDeleteData [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:47]recv_with_timeout no data received [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:30:57]accept exits with 7 [17:30:57]New connection [17:30:57]New thread 3066666340 created [17:30:57]Thread 3066809700 joined [17:30:57]Waiting for new connection... [17:30:57] Sock 7.Parse request [17:30:57]Sock 7.Check first char [17:30:57]Sock 7.First char is OK [17:30:57]request: POST /json_proto HTTP/1.0 [17:30:57]Method: POST [17:30:57]URL: /json_proto [17:30:57]Method is POST - this is cgi request [17:30:57]url: /json_proto [17:30:57]query_string will be loaded in cgi processing [17:30:57]execute_cgi json_proto POST (null) [17:30:57]execute_cgi path=json_proto method=POST [17:30:57]POST find Content-Length [17:30:57]Host: 172.17.43.195:8080 [17:30:57]Content-Length: 792 [17:30:57]Content-Type: application/json [17:30:57] [17:30:57]POST finish read [17:30:57]Found Content-Length = 792 [17:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:57]execute_script... [17:30: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)952082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:57]POST & json_proto [17:30:57]process_json_proto [17:30:57]json parsed OK: [17:30:57]protocol is kg_v1.0 [17:30:57]action value=close_receipt [17:30:57]process_action close_receipt [17:30:57]cmd_close_receipt [17:30:57]MH_GetDate [17:30:57]Write to MH i2c: F0 00 00 5B 07 51 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 09 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: F0 09 00 5B 07 00 53 CA 1F 67 74 2C AD 66 B0 [17:30:57]GetLastDocTimeStamp 1730136598 [17:30:57]current date 1730136659 [17:30:57]FM_GetShiftState [17:30:57]SAM_PROTO_GetShiftState [17:30:57]wFMCommunicate request_size=4 [17:30:57]MH_SAM_APDU [17:30:57]CAPDU: 80 13 01 00 [17:30:57]Write to MH i2c: E2 08 00 5C 07 80 13 01 00 00 00 00 00 E0 [17:30:57]Write i2c OK [17:30:57]MH_I2C_Read... [17:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:57]Read from MH i2c: E2 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 [17:30:57]MH_I2C_Read... [17:30:57]Read from MH i2c: E2 0E 00 5C 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 48 [17:30:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:30:57]wFMCommunicate OK [17:30:57]SAM_PROTO_GetShiftState done [17:30:57]FM_GetShiftState done [17:30:57]opened in 1730074113 [17:30:57]opened+sec_in_day 1730160513 [17:30:57]quantity*price = 0 [17:30:57]sum+1 = 1 [17:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 124 28.10.2024 17:30 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72596 ФПД: 186847474621166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173059&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72596&fm=186847474621166&tin=02508201610067®Number=0000000000091644&sum=0 [17:30:58]StoreToDocumentArchive [17:30:58]shift 554 fd 72596 [17:30:58]save to /storage/0554/doc_00072596 [17:30:58]save last doc name /storage/0554/doc_00072596 to /storage/kkm_last_doc_name [17:30:58]save OK [17:30:58]Clear old archive folders... [17:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:58]tlvbuf is 003CF090 [17:30:58]SAM_PROTO_ClearQueue [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 09 00 00 [17:30:58]Write to MH i2c: E2 08 00 69 07 80 09 00 00 00 00 00 00 E2 [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 03 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 03 00 69 07 00 90 00 E4 [17:30:58]RAPDU: 90 00 [17:30:58]wFMCommunicate OK [17:30:58]SAM_PROTO_ClearQueue done [17:30:58]KKMCreateOFDPacket [17:30:58]OFDProtocolAddRootSTLVToBuf [17:30:58]FM_MakeSignedData [17:30:58]FM_MakeSignedData [17:30:58]SAM_PROTO_SignData [17:30:58]wFMCommunicate request_size=4 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 0D 01 02 [17:30:58]Write to MH i2c: E2 08 00 6A 07 80 0D 01 02 00 00 00 00 EA [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:58]Read from MH i2c: E2 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 03 00 [17:30:58]MH_I2C_Read... [17:30:58]Read from MH i2c: E2 03 00 6A 07 00 90 00 E5 [17:30:58]RAPDU: 90 00 [17:30:58]wFMCommunicate OK [17:30:58]wFMCommunicate request_size=255 [17:30:58]MH_SAM_APDU [17:30:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 53 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1B 01 00 35 04 06 00 A9 [17:30:58]Write to MH i2c: E2 02 01 6B 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 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 7C 00 00 00 F4 03 04 00 53 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1B 01 00 35 04 06 00 A9 00 00 CF [17:30:58]Write i2c OK [17:30:58]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 6B 07 00 90 00 E6 [17:30:59]RAPDU: 90 00 [17:30:59]wFMCommunicate OK [17:30:59]wFMCommunicate request_size=10 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 0D 02 02 05 EF D1 5A 1A EE [17:30:59]Write to MH i2c: E2 0D 00 6C 07 80 0D 02 02 05 00 EF D1 5A 1A EE 00 00 19 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [17:30:59]RAPDU: 90 00 [17:30:59]wFMCommunicate OK [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 0D 03 02 [17:30:59]Write to MH i2c: E2 08 00 6D 07 80 0D 03 02 00 00 00 00 EF [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0B 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 0B 00 6D 07 00 2D D8 B3 E7 08 82 7B 32 90 00 C6 [17:30:59]RAPDU: 2D D8 B3 E7 08 82 7B 32 90 00 [17:30:59]wFMCommunicate OK [17:30:59]SAM_PROTO_SignData done [17:30:59]FM_MakeSignedData done [17:30:59]CreateOFDProtocolMessage [17:30:59]wFMCommunicate request_size=4 [17:30:59]MH_SAM_APDU [17:30:59]CAPDU: 80 11 00 00 [17:30:59]Write to MH i2c: E2 08 00 6E 07 80 11 00 00 00 00 00 00 EF [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:59]Read from MH i2c: E2 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 17 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: E2 17 00 6E 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 43 [17:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:30:59]wFMCommunicate OK [17:30:59]CreateOFDProtocolMessage done [17:30:59]OFDSenderStorePacket 72596 [17:30:59]StoreOFDPacket docnum=72596 [17:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C8 A7 07 01 6D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 53 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1B 01 00 35 04 06 00 A9 EF D1 5A 1A EE 2D D8 B3 E7 08 82 7B 32 [17:30:59]CheckFolder [17:30:59]dirname=/storage/ofd_packets [17:30:59]CheckFolder done [17:30:59]ProducePacketName [17:30:59]name=ofd_packets/00072596 [17:30:59]NVStorageSaveData ofd_packets/00072596 [17:30:59]File name is /storage/ofd_packets/00072596 [17:30:59]Write 301 bytes [17:30:59]NVStorageSaveData done [17:30:59]OFDSenderStorePacket done [17:30:59]KKMCreateOFDPacket done [17:30:59]NVStorageSaveData kkm_last_timestamp [17:30:59]File name is /storage/kkm_last_timestamp [17:30:59]Write 4 bytes [17:30:59]NVStorageSaveData done [17:30:59]ExternCall_PrintAddStr [17:30:59]wPrintStart [17:30:59]Write to MH i2c: 01 00 00 6F 07 76 [17:30:59]Write i2c OK [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 07 00 [17:30:59]MH_I2C_Read... [17:30:59]Read from MH i2c: 01 07 00 6F 07 00 00 00 00 00 FF 0F 8B [17:30:59]RasterBufferAndPrint [17:30:59]line Счет N : (1)952082 [17:30:59]line ИНН: 02508201610067 [17:30:59]line Контрольно-Кассовый Чек [17:30:59]line ПРОДАЖА [17:30:59]line ТРК (МРК, ГНК) : 53 [17:30:59]line Товар: 2710124130 [17:30:59]line Аи-92-К-5 [17:30:59]line 10.000 * 0.00 [17:30:59]line = 0.00 [17:30:59]line НДС 12% НСП 1% [17:30:59]line > о реализуемом товаре [17:30:59]line ИТОГО: 0.00 [17:30:59]line НСП 1% : 0.00 [17:30:59]line НДС 12% : 0.00 [17:30:59]line Наличными: 0.00 [17:30:59]line Безнал.: 0.00 [17:30:59]line Место: АЗС № 113 "Партнер Нефть" [17:30:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:30:59]line СНО: Общий режим [17:30:59]line Чек 124 28.10.2024 17:30 [17:30:59]line Смена: 554 ФФД: 1.0 [17:30:59]line ЗНМ: 0300000087 [17:30:59]line РНМ: 0000000000091644 [17:30:59]line Версия ККМ: 001 [17:30:59]line Талоны: Топливная Карта [17:30:59]line 03047 [17:30:59]line ФМ: 0000000000874662 [17:30:59]line ФД: 72596 [17:30:59]line ФПД: 186847474621166 [17:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173059&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72596&fm=186847474621166&tin=02508201610067®Number=0000000000091644&sum=0 [17:30:59]OFD Sender: Processing packet 72596 [packets to send 274, broken 273] [17:30:59]ProducePacketName [17:30:59]name=ofd_packets/00072596 [17:30:59]OFD Sender: To server: pG, [17:30:59]CommunicateWithHost lk.salyk.kg:30040 [17:30:59]ConnectInit lk.salyk.kg [17:30:59]written 0, free lines is 4095 [17:31:00]Write to MH i2c: 01 00 00 99 07 A0 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: 01 07 00 99 07 00 00 00 00 00 DB 0C 8E [17:31:00]RasterBufferAndPrint [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]line [17:31:00]written 0, free lines is 3297 [17:31:00]MH_Cut [17:31:00]Write to MH i2c: D1 01 00 A0 07 01 79 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 01 00 [17:31:00]MH_I2C_Read... [17:31:00]Read from MH i2c: D1 01 00 A0 07 00 78 [17:31:00]Write to MH i2c: 01 00 00 A1 07 A8 [17:31:00]Write i2c OK [17:31:00]MH_I2C_Read... [17:31:00]*** Cut start [17:31:00]*** Partial cut [17:31:00]*** CUTSNS_PIN = 1 [17:31:00]*** CUTSNS_PIN = 0 [17:31:01]*** Brake cut motor [17:31:01]Read from MH i2c: 01 [17:31:01]MH_I2C_Read... [17:31:01]*** Stop cut motor [17:31:01]*** Cut end [17:31:01]Read from MH i2c: 01 07 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: 01 07 00 A1 07 00 00 00 00 00 FF 0F BD [17:31:01]process_action close_receipt done [17:31:01]requested_data is exist [17:31:01]produce_requested_data [17:31:01]requested_item fm.sn is exist - process it [17:31:01]wFMCommunicate request_size=4 [17:31:01]MH_SAM_APDU [17:31:01]CAPDU: 80 11 00 00 [17:31:01]Write to MH i2c: E2 08 00 A2 07 80 11 00 00 00 00 00 00 23 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:01]Read from MH i2c: E2 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 17 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 17 00 A2 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 77 [17:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:31:01]wFMCommunicate OK [17:31:01]requested_item fd.num is exist - process it [17:31:01]SAM_PROTO_GetFieldsCounters [17:31:01]wFMCommunicate request_size=4 [17:31:01]MH_SAM_APDU [17:31:01]CAPDU: 80 13 00 00 [17:31:01]Write to MH i2c: E2 08 00 A3 07 80 13 00 00 00 00 00 00 26 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:01]Read from MH i2c: E2 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 62 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 62 00 A3 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:31: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 94 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:31:01]wFMCommunicate OK [17:31:01]SAM_PROTO_GetFieldsCounters done [17:31:01]requested_item shift.num is exist - process it [17:31:01]requested_item shift.opened is exist - process it [17:31:01]req_shift_opened [17:31:01]FM_GetShiftState [17:31:01]SAM_PROTO_GetShiftState [17:31:01]wFMCommunicate request_size=4 [17:31:01]MH_SAM_APDU [17:31:01]CAPDU: 80 13 01 00 [17:31:01]Write to MH i2c: E2 08 00 A4 07 80 13 01 00 00 00 00 00 28 [17:31:01]Write i2c OK [17:31:01]MH_I2C_Read... [17:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:01]Read from MH i2c: E2 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 0E 00 [17:31:01]MH_I2C_Read... [17:31:01]Read from MH i2c: E2 0E 00 A4 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 90 [17:31:01]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:31:01]wFMCommunicate OK [17:31:01]SAM_PROTO_GetShiftState done [17:31:01]FM_GetShiftState done [17:31:01]req_shift_opened done [17:31:01]requested_item shift.open_date is exist - process it [17:31:01]req_shift_open_date [17:31:01]req_shift_open_date done [17:31:01]produce_requested_data done [17:31:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72596,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:31:01]process_action_free close_receipt [17:31:01]json_value_free [17:31:01]json_value_free done [17:31:01]process_json_proto returns [17:31:01]Send response to host [17:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72596,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:31:01]free response buf [17:31:01]execute_script done [17:31:01]execute_script returns [17:31:01]free content buf [17:31:01]Sock 7.Close socket [17:31:01]Sock 7.Thread stoped [17:31:04]recv_with_timeout no data received [17:31:04]ConnectInit Can't take IP for lk.salyk.kg [17:31:04]CommunicateWithHost connect error [17:31:04]CommunicateWithHost err = -1 [17:31:04]OFD Sender: Server communicate error [17:31:09]OFD Sender: Processing packet 72596 [packets to send 274, broken 273] [17:31:09]ProducePacketName [17:31:09]name=ofd_packets/00072596 [17:31:09]OFD Sender: To server: pG, [17:31:09]CommunicateWithHost lk.salyk.kg:30040 [17:31:09]ConnectInit lk.salyk.kg [17:31:17]recv_with_timeout no data received [17:31:18]Connected sock=10 [17:31:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C8 A7 07 01 6D D3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 53 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1B 01 00 35 04 06 00 A9 EF D1 5A 1A EE 2D D8 B3 E7 08 82 7B 32 [17:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E7 6A 47 00 37 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 94 1B 01 00 F4 03 04 00 23 75 1F 67 B6 04 01 00 00 8B 95 13 1B 5A 5C 9A BF [17:31:19]CommunicateWithHost err = 0 [17:31:19]CheckOFDResponse [17:31:19]1017 (14) - 77093643461234 [17:31:19]1041 (16) - 0000000000874662 [17:31:19]1040 (4) - 72596 [17:31:19]1012 (4) - 28.10.2024 11:27 [17:31:19]1206 (1) - 0 [17:31:19]OFD Sender: Remove packet 72596 [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00072596 [17:31:19]NVStorageDeleteData [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:31:57]recv_with_timeout no data received [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:38]recv_with_timeout no data received [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]recv_with_timeout no data received [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:32:59]accept exits with 9 [17:32:59]New connection [17:32:59]New thread 3066809700 created [17:32:59]Thread 3066666340 joined [17:32:59]Waiting for new connection... [17:32:59] Sock 9.Parse request [17:32:59]Sock 9.Check first char [17:32:59]Sock 9.First char is OK [17:32:59]request: POST /json_proto HTTP/1.0 [17:32:59]Method: POST [17:32:59]URL: /json_proto [17:32:59]Method is POST - this is cgi request [17:32:59]url: /json_proto [17:32:59]query_string will be loaded in cgi processing [17:32:59]execute_cgi json_proto POST (null) [17:32:59]execute_cgi path=json_proto method=POST [17:32:59]POST find Content-Length [17:32:59]Host: 172.17.43.195:8080 [17:32:59]Content-Length: 754 [17:32:59]Content-Type: application/json [17:32:59] [17:32:59]POST finish read [17:32:59]Found Content-Length = 754 [17:32:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 65.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024964", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:59]execute_script... [17:32: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)952081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 65.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30024964", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:32:59]POST & json_proto [17:32:59]process_json_proto [17:32:59]json parsed OK: [17:32:59]protocol is kg_v1.0 [17:32:59]action value=close_receipt [17:32:59]process_action close_receipt [17:32:59]cmd_close_receipt [17:32:59]MH_GetDate [17:32:59]Write to MH i2c: F0 00 00 A5 07 9B [17:32:59]Write i2c OK [17:32:59]MH_I2C_Read... [17:32:59]Read from MH i2c: F0 [17:32:59]MH_I2C_Read... [17:32:59]Read from MH i2c: F0 09 00 [17:32:59]MH_I2C_Read... [17:32:59]Read from MH i2c: F0 09 00 A5 07 00 CD CA 1F 67 74 2C AD 66 74 [17:32:59]GetLastDocTimeStamp 1730136659 [17:32:59]current date 1730136781 [17:32:59]FM_GetShiftState [17:32:59]SAM_PROTO_GetShiftState [17:32:59]wFMCommunicate request_size=4 [17:32:59]MH_SAM_APDU [17:32:59]CAPDU: 80 13 01 00 [17:32:59]Write to MH i2c: E2 08 00 A6 07 80 13 01 00 00 00 00 00 2A [17:32:59]Write i2c OK [17:32:59]MH_I2C_Read... [17:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:59]Read from MH i2c: E2 [17:32:59]MH_I2C_Read... [17:32:59]Read from MH i2c: E2 0E 00 [17:32:59]MH_I2C_Read... [17:32:59]Read from MH i2c: E2 0E 00 A6 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 92 [17:32:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:32:59]wFMCommunicate OK [17:32:59]SAM_PROTO_GetShiftState done [17:32:59]FM_GetShiftState done [17:32:59]opened in 1730074113 [17:32:59]opened+sec_in_day 1730160513 [17:32:59]quantity*price = 0 [17:32:59]sum+1 = 1 [17:32:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 125 28.10.2024 17:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30024964 ФМ: 0000000000874662 ФД: 72597 ФПД: 90352080416518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173301&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72597&fm=90352080416518&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:00]StoreToDocumentArchive [17:33:00]shift 554 fd 72597 [17:33:00]save to /storage/0554/doc_00072597 [17:33:00]save last doc name /storage/0554/doc_00072597 to /storage/kkm_last_doc_name [17:33:00]save OK [17:33:00]Clear old archive folders... [17:33:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:00]tlvbuf is 0044F8F0 [17:33:00]SAM_PROTO_ClearQueue [17:33:00]wFMCommunicate request_size=4 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 09 00 00 [17:33:00]Write to MH i2c: E2 08 00 B3 07 80 09 00 00 00 00 00 00 2C [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:00]Read from MH i2c: E2 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 B3 07 00 90 00 2E [17:33:00]RAPDU: 90 00 [17:33:00]wFMCommunicate OK [17:33:00]SAM_PROTO_ClearQueue done [17:33:00]KKMCreateOFDPacket [17:33:00]OFDProtocolAddRootSTLVToBuf [17:33:00]FM_MakeSignedData [17:33:00]FM_MakeSignedData [17:33:00]SAM_PROTO_SignData [17:33:00]wFMCommunicate request_size=4 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 0D 01 02 [17:33:00]Write to MH i2c: E2 08 00 B4 07 80 0D 01 02 00 00 00 00 34 [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:00]OFD Sender: No OFD packet to send [17:33:00]Read from MH i2c: E2 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [17:33:00]RAPDU: 90 00 [17:33:00]wFMCommunicate OK [17:33:00]wFMCommunicate request_size=255 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CD CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1B 01 00 35 04 06 00 52 [17:33:00]Write to MH i2c: E2 02 01 B5 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CD CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1B 01 00 35 04 06 00 52 00 00 EE [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:00]Read from MH i2c: E2 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 [17:33:00]MH_I2C_Read... [17:33:00]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [17:33:00]RAPDU: 90 00 [17:33:00]wFMCommunicate OK [17:33:00]wFMCommunicate request_size=10 [17:33:00]MH_SAM_APDU [17:33:00]CAPDU: 80 0D 02 02 05 2C BB A8 6F 06 [17:33:00]Write to MH i2c: E2 0D 00 B6 07 80 0D 02 02 05 00 2C BB A8 6F 06 00 00 45 [17:33:00]Write i2c OK [17:33:00]MH_I2C_Read... [17:33:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:01]Read from MH i2c: E2 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 03 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [17:33:01]RAPDU: 90 00 [17:33:01]wFMCommunicate OK [17:33:01]wFMCommunicate request_size=4 [17:33:01]MH_SAM_APDU [17:33:01]CAPDU: 80 0D 03 02 [17:33:01]Write to MH i2c: E2 08 00 B7 07 80 0D 03 02 00 00 00 00 39 [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:01]Read from MH i2c: E2 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 0B 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 0B 00 B7 07 00 05 66 5F 2D C1 9A 5A AA 90 00 90 [17:33:01]RAPDU: 05 66 5F 2D C1 9A 5A AA 90 00 [17:33:01]wFMCommunicate OK [17:33:01]SAM_PROTO_SignData done [17:33:01]FM_MakeSignedData done [17:33:01]CreateOFDProtocolMessage [17:33:01]wFMCommunicate request_size=4 [17:33:01]MH_SAM_APDU [17:33:01]CAPDU: 80 11 00 00 [17:33:01]Write to MH i2c: E2 08 00 B8 07 80 11 00 00 00 00 00 00 39 [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:01]Read from MH i2c: E2 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 17 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: E2 17 00 B8 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8D [17:33:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:01]wFMCommunicate OK [17:33:01]CreateOFDProtocolMessage done [17:33:01]OFDSenderStorePacket 72597 [17:33:01]StoreOFDPacket docnum=72597 [17:33:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA A6 07 01 AC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CD CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1B 01 00 35 04 06 00 52 2C BB A8 6F 06 05 66 5F 2D C1 9A 5A AA [17:33:01]CheckFolder [17:33:01]dirname=/storage/ofd_packets [17:33:01]CheckFolder done [17:33:01]ProducePacketName [17:33:01]name=ofd_packets/00072597 [17:33:01]NVStorageSaveData ofd_packets/00072597 [17:33:01]File name is /storage/ofd_packets/00072597 [17:33:01]Write 301 bytes [17:33:01]NVStorageSaveData done [17:33:01]OFDSenderStorePacket done [17:33:01]KKMCreateOFDPacket done [17:33:01]NVStorageSaveData kkm_last_timestamp [17:33:01]File name is /storage/kkm_last_timestamp [17:33:01]Write 4 bytes [17:33:01]NVStorageSaveData done [17:33:01]ExternCall_PrintAddStr [17:33:01]wPrintStart [17:33:01]Write to MH i2c: 01 00 00 B9 07 C0 [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 07 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 07 00 B9 07 00 00 00 00 00 FF 0F D5 [17:33:01]RasterBufferAndPrint [17:33:01]line Счет N : (1)952081 [17:33:01]line ИНН: 02508201610067 [17:33:01]line Контрольно-Кассовый Чек [17:33:01]line ПРОДАЖА [17:33:01]line ТРК (МРК, ГНК) : 62 [17:33:01]line Товар: 2710124500 [17:33:01]line Аи-95-К-3 [17:33:01]line 65.000 * 0.00 [17:33:01]line = 0.00 [17:33:01]line НДС 12% НСП 1% [17:33:01]line > о реализуемом товаре [17:33:01]line ИТОГО: 0.00 [17:33:01]line НСП 1% : 0.00 [17:33:01]line НДС 12% : 0.00 [17:33:01]line Наличными: 0.00 [17:33:01]line Безнал.: 0.00 [17:33:01]line Место: АЗС № 113 "Партнер Нефть" [17:33:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:33:01]line СНО: Общий режим [17:33:01]line Чек 125 28.10.2024 17:33 [17:33:01]line Смена: 554 ФФД: 1.0 [17:33:01]line ЗНМ: 0300000087 [17:33:01]line РНМ: 0000000000091644 [17:33:01]line Версия ККМ: 001 [17:33:01]line Талоны: ТК ГПНА Online [17:33:01]line 30024964 [17:33:01]line ФМ: 0000000000874662 [17:33:01]line ФД: 72597 [17:33:01]line ФПД: 90352080416518 [17:33:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173301&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72597&fm=90352080416518&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:01]written 0, free lines is 4095 [17:33:01]OFD Sender: Processing packet 72597 [packets to send 274, broken 273] [17:33:01]ProducePacketName [17:33:01]name=ofd_packets/00072597 [17:33:01]OFD Sender: To server: pG, [17:33:01]CommunicateWithHost lk.salyk.kg:30040 [17:33:01]ConnectInit lk.salyk.kg [17:33:01]Write to MH i2c: 01 00 00 E3 07 EA [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 07 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: 01 07 00 E3 07 00 00 00 00 00 E5 0C E2 [17:33:01]RasterBufferAndPrint [17:33:01]line [17:33:01]line [17:33:01]line [17:33:01]line [17:33:01]line [17:33:01]written 0, free lines is 3308 [17:33:01]MH_Cut [17:33:01]Write to MH i2c: D1 01 00 EA 07 01 C3 [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: D1 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: D1 01 00 [17:33:01]MH_I2C_Read... [17:33:01]Read from MH i2c: D1 01 00 EA 07 00 C2 [17:33:01]Write to MH i2c: 01 00 00 EB 07 F2 [17:33:01]Write i2c OK [17:33:01]MH_I2C_Read... [17:33:02]*** Cut start [17:33:02]*** Partial cut [17:33:02]*** CUTSNS_PIN = 1 [17:33:02]*** CUTSNS_PIN = 0 [17:33:02]*** Brake cut motor [17:33:02]Read from MH i2c: 01 [17:33:02]MH_I2C_Read... [17:33:02]*** Stop cut motor [17:33:02]*** Cut end [17:33:02]Read from MH i2c: 01 07 00 [17:33:02]MH_I2C_Read... [17:33:02]Read from MH i2c: 01 07 00 EB 07 00 00 00 00 00 FF 0F 07 [17:33:02]process_action close_receipt done [17:33:02]requested_data is exist [17:33:02]produce_requested_data [17:33:02]requested_item fm.sn is exist - process it [17:33:02]wFMCommunicate request_size=4 [17:33:02]MH_SAM_APDU [17:33:02]CAPDU: 80 11 00 00 [17:33:02]Write to MH i2c: E2 08 00 EC 07 80 11 00 00 00 00 00 00 6D [17:33:02]Write i2c OK [17:33:02]MH_I2C_Read... [17:33:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:03]Read from MH i2c: E2 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 17 00 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 17 00 EC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C1 [17:33:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:03]wFMCommunicate OK [17:33:03]requested_item fd.num is exist - process it [17:33:03]SAM_PROTO_GetFieldsCounters [17:33:03]wFMCommunicate request_size=4 [17:33:03]MH_SAM_APDU [17:33:03]CAPDU: 80 13 00 00 [17:33:03]Write to MH i2c: E2 08 00 ED 07 80 13 00 00 00 00 00 00 70 [17:33:03]Write i2c OK [17:33:03]MH_I2C_Read... [17:33:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:03]Read from MH i2c: E2 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 62 00 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 62 00 ED 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 95 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [17:33: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 95 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:03]wFMCommunicate OK [17:33:03]SAM_PROTO_GetFieldsCounters done [17:33:03]requested_item shift.num is exist - process it [17:33:03]requested_item shift.opened is exist - process it [17:33:03]req_shift_opened [17:33:03]FM_GetShiftState [17:33:03]SAM_PROTO_GetShiftState [17:33:03]wFMCommunicate request_size=4 [17:33:03]MH_SAM_APDU [17:33:03]CAPDU: 80 13 01 00 [17:33:03]Write to MH i2c: E2 08 00 EE 07 80 13 01 00 00 00 00 00 72 [17:33:03]Write i2c OK [17:33:03]MH_I2C_Read... [17:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:03]Read from MH i2c: E2 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 0E 00 [17:33:03]MH_I2C_Read... [17:33:03]Read from MH i2c: E2 0E 00 EE 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DA [17:33:03]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:03]wFMCommunicate OK [17:33:03]SAM_PROTO_GetShiftState done [17:33:03]FM_GetShiftState done [17:33:03]req_shift_opened done [17:33:03]requested_item shift.open_date is exist - process it [17:33:03]req_shift_open_date [17:33:03]req_shift_open_date done [17:33:03]produce_requested_data done [17:33:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72597,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:33:03]process_action_free close_receipt [17:33:03]json_value_free [17:33:03]json_value_free done [17:33:03]process_json_proto returns [17:33:03]Send response to host [17:33:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72597,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:33:03]free response buf [17:33:03]execute_script done [17:33:03]execute_script returns [17:33:03]free content buf [17:33:03]Sock 9.Close socket [17:33:03]Sock 9.Thread stoped [17:33:04]Connected sock=11 [17:33:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CA A6 07 01 AC 30 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E8 FD 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 CD CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1B 01 00 35 04 06 00 52 2C BB A8 6F 06 05 66 5F 2D C1 9A 5A AA [17:33:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 95 F6 47 00 E3 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 95 1B 01 00 F4 03 04 00 8D 75 1F 67 B6 04 01 00 00 A1 18 B7 5B B5 8B 80 3F [17:33:04]CommunicateWithHost err = 0 [17:33:04]CheckOFDResponse [17:33:04]1017 (14) - 77093643461234 [17:33:04]1041 (16) - 0000000000874662 [17:33:04]1040 (4) - 72597 [17:33:04]1012 (4) - 28.10.2024 11:29 [17:33:04]1206 (1) - 0 [17:33:04]OFD Sender: Remove packet 72597 [17:33:04]ProducePacketName [17:33:04]name=ofd_packets/00072597 [17:33:04]NVStorageDeleteData [17:33:05]OFD Sender: No OFD packet to send [17:33:08]accept exits with 7 [17:33:08]New connection [17:33:08]New thread 3066666340 created [17:33:08]Thread 3066809700 joined [17:33:08]Waiting for new connection... [17:33:08] Sock 7.Parse request [17:33:08]Sock 7.Check first char [17:33:08]Sock 7.First char is OK [17:33:08]request: POST /json_proto HTTP/1.0 [17:33:08]Method: POST [17:33:08]URL: /json_proto [17:33:08]Method is POST - this is cgi request [17:33:08]url: /json_proto [17:33:08]query_string will be loaded in cgi processing [17:33:08]execute_cgi json_proto POST (null) [17:33:08]execute_cgi path=json_proto method=POST [17:33:08]POST find Content-Length [17:33:08]Host: 172.17.43.195:8080 [17:33:08]Content-Length: 754 [17:33:08]Content-Type: application/json [17:33:08] [17:33:08]POST finish read [17:33:08]Found Content-Length = 754 [17:33:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:08]execute_script... [17:33: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)952083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161055", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:08]POST & json_proto [17:33:08]process_json_proto [17:33:08]json parsed OK: [17:33:08]protocol is kg_v1.0 [17:33:08]action value=close_receipt [17:33:08]process_action close_receipt [17:33:08]cmd_close_receipt [17:33:08]MH_GetDate [17:33:08]Write to MH i2c: F0 00 00 EF 07 E5 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: F0 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: F0 09 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: F0 09 00 EF 07 00 D5 CA 1F 67 74 2C AD 66 C6 [17:33:08]GetLastDocTimeStamp 1730136781 [17:33:08]current date 1730136789 [17:33:08]FM_GetShiftState [17:33:08]SAM_PROTO_GetShiftState [17:33:08]wFMCommunicate request_size=4 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 13 01 00 [17:33:08]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 0E 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DC [17:33:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:08]wFMCommunicate OK [17:33:08]SAM_PROTO_GetShiftState done [17:33:08]FM_GetShiftState done [17:33:08]opened in 1730074113 [17:33:08]opened+sec_in_day 1730160513 [17:33:08]quantity*price = 0 [17:33:08]sum+1 = 1 [17:33:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 126 28.10.2024 17:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30161055 ФМ: 0000000000874662 ФД: 72598 ФПД: 132304710534454 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173309&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72598&fm=132304710534454&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:09]StoreToDocumentArchive [17:33:09]shift 554 fd 72598 [17:33:09]save to /storage/0554/doc_00072598 [17:33:09]save last doc name /storage/0554/doc_00072598 to /storage/kkm_last_doc_name [17:33:09]save OK [17:33:09]Clear old archive folders... [17:33:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:09]tlvbuf is B6E9E380 [17:33:09]SAM_PROTO_ClearQueue [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 09 00 00 [17:33:09]Write to MH i2c: E2 08 00 FD 07 80 09 00 00 00 00 00 00 76 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 FD 07 00 90 00 78 [17:33:09]RAPDU: 90 00 [17:33:09]wFMCommunicate OK [17:33:09]SAM_PROTO_ClearQueue done [17:33:09]KKMCreateOFDPacket [17:33:09]OFDProtocolAddRootSTLVToBuf [17:33:09]FM_MakeSignedData [17:33:09]FM_MakeSignedData [17:33:09]SAM_PROTO_SignData [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 0D 01 02 [17:33:09]Write to MH i2c: E2 08 00 FE 07 80 0D 01 02 00 00 00 00 7E [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 FE 07 00 90 00 79 [17:33:09]RAPDU: 90 00 [17:33:09]wFMCommunicate OK [17:33:09]wFMCommunicate request_size=255 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 7E 00 00 00 F4 03 04 00 D5 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1B 01 00 35 04 06 00 78 [17:33:09]Write to MH i2c: E2 02 01 FF 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 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 7E 00 00 00 F4 03 04 00 D5 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1B 01 00 35 04 06 00 78 00 00 96 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:09]Read from MH i2c: E2 03 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [17:33:09]RAPDU: 90 00 [17:33:09]wFMCommunicate OK [17:33:09]wFMCommunicate request_size=10 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 0D 02 02 05 54 97 46 05 36 [17:33:09]Write to MH i2c: E2 0D 00 00 08 80 0D 02 02 05 00 54 97 46 05 36 00 00 F8 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [17:33:09]RAPDU: 90 00 [17:33:09]wFMCommunicate OK [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 0D 03 02 [17:33:09]Write to MH i2c: E2 08 00 01 08 80 0D 03 02 00 00 00 00 84 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:09]Read from MH i2c: E2 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 0B 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: E2 0B 00 01 08 00 B3 98 ED 78 7B 81 7D 4A 90 00 F8 [17:33:09]RAPDU: B3 98 ED 78 7B 81 7D 4A 90 00 [17:33:09]wFMCommunicate OK [17:33:09]SAM_PROTO_SignData done [17:33:09]FM_MakeSignedData done [17:33:09]CreateOFDProtocolMessage [17:33:09]wFMCommunicate request_size=4 [17:33:09]MH_SAM_APDU [17:33:09]CAPDU: 80 11 00 00 [17:33:09]Write to MH i2c: E2 08 00 02 08 80 11 00 00 00 00 00 00 84 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:09]Read from MH i2c: E2 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 17 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 17 00 02 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [17:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:10]wFMCommunicate OK [17:33:10]CreateOFDProtocolMessage done [17:33:10]OFDSenderStorePacket 72598 [17:33:10]StoreOFDPacket docnum=72598 [17:33:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 73 07 01 A2 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 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 7E 00 00 00 F4 03 04 00 D5 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1B 01 00 35 04 06 00 78 54 97 46 05 36 B3 98 ED 78 7B 81 7D 4A [17:33:10]CheckFolder [17:33:10]dirname=/storage/ofd_packets [17:33:10]CheckFolder done [17:33:10]ProducePacketName [17:33:10]name=ofd_packets/00072598 [17:33:10]NVStorageSaveData ofd_packets/00072598 [17:33:10]File name is /storage/ofd_packets/00072598 [17:33:10]Write 301 bytes [17:33:10]NVStorageSaveData done [17:33:10]OFDSenderStorePacket done [17:33:10]KKMCreateOFDPacket done [17:33:10]NVStorageSaveData kkm_last_timestamp [17:33:10]File name is /storage/kkm_last_timestamp [17:33:10]Write 4 bytes [17:33:10]NVStorageSaveData done [17:33:10]ExternCall_PrintAddStr [17:33:10]wPrintStart [17:33:10]Write to MH i2c: 01 00 00 03 08 0B [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 07 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 07 00 03 08 00 00 00 00 00 FF 0F 20 [17:33:10]RasterBufferAndPrint [17:33:10]line Счет N : (1)952083 [17:33:10]line ИНН: 02508201610067 [17:33:10]line Контрольно-Кассовый Чек [17:33:10]line ПРОДАЖА [17:33:10]line ТРК (МРК, ГНК) : 41 [17:33:10]line Товар: 2710124500 [17:33:10]line Аи-95-К-3 [17:33:10]line 50.000 * 0.00 [17:33:10]line = 0.00 [17:33:10]line НДС 12% НСП 1% [17:33:10]line > о реализуемом товаре [17:33:10]line ИТОГО: 0.00 [17:33:10]line НСП 1% : 0.00 [17:33:10]line НДС 12% : 0.00 [17:33:10]line Наличными: 0.00 [17:33:10]line Безнал.: 0.00 [17:33:10]line Место: АЗС № 113 "Партнер Нефть" [17:33:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:33:10]line СНО: Общий режим [17:33:10]line Чек 126 28.10.2024 17:33 [17:33:10]line Смена: 554 ФФД: 1.0 [17:33:10]line ЗНМ: 0300000087 [17:33:10]line РНМ: 0000000000091644 [17:33:10]line Версия ККМ: 001 [17:33:10]line Талоны: ТК ГПНА Online [17:33:10]line 30161055 [17:33:10]line ФМ: 0000000000874662 [17:33:10]line ФД: 72598 [17:33:10]line ФПД: 132304710534454 [17:33:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173309&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72598&fm=132304710534454&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:10]OFD Sender: Processing packet 72598 [packets to send 274, broken 273] [17:33:10]ProducePacketName [17:33:10]name=ofd_packets/00072598 [17:33:10]OFD Sender: To server: pG, [17:33:10]CommunicateWithHost lk.salyk.kg:30040 [17:33:10]ConnectInit lk.salyk.kg [17:33:10]written 0, free lines is 4095 [17:33:10]Write to MH i2c: 01 00 00 2D 08 35 [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 07 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 07 00 2D 08 00 00 00 00 00 E4 0C 2C [17:33:10]RasterBufferAndPrint [17:33:10]line [17:33:10]line [17:33:10]line [17:33:10]line [17:33:10]line [17:33:10]written 0, free lines is 3309 [17:33:10]MH_Cut [17:33:10]Write to MH i2c: D1 01 00 34 08 01 0E [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: D1 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: D1 01 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: D1 01 00 34 08 00 0D [17:33:10]Write to MH i2c: 01 00 00 35 08 3D [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:11]Connected sock=11 [17:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 73 07 01 A2 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 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 *** Cut start [17:33:11]00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 *** Partial cut [17:33:11]00 D5 CA 1F 67 0E *** CUTSNS_PIN = 1 [17:33:11]04 04 00 2A 02 00 00 B9 04 01 00 01 0D *** CUTSNS_PIN = 0 [17:33:11]04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1B 01 00 35 04 06 00 78 54 97 46 05 36 B3 98 ED 78 7B 81 7D 4A [17:33:11]*** Brake cut motor [17:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6E 37 47 00 9F 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 96 1B 01 00 F4 03 04 00 94 75 1F 67 B6 04 01 00 00 6D 9F 29 76 89 DA 27 98 [17:33:11]CommunicateWithHost err = 0 [17:33:11]CheckOFDResponse [17:33:11]1017 (14) - 77093643461234 [17:33:11]1041 (16) - 0000000000874662 [17:33:11]1040 (4) - 72598 [17:33:11]1012 (4) - 28.10.2024 11:29 [17:33:11]1206 (1) - 0 [17:33:11]OFD Sender: Remove packet 72598 [17:33:11]ProducePacketName [17:33:11]name=ofd_packets/00072598 [17:33:11]NVStorageDeleteData [17:33:11]Read from MH i2c: 01 [17:33:11]MH_I2C_Read... [17:33:11]*** Stop cut motor [17:33:11]*** Cut end [17:33:11]Read from MH i2c: 01 07 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: 01 07 00 35 08 00 00 00 00 00 FF 0F 52 [17:33:11]process_action close_receipt done [17:33:11]requested_data is exist [17:33:11]produce_requested_data [17:33:11]requested_item fm.sn is exist - process it [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 11 00 00 [17:33:11]Write to MH i2c: E2 08 00 36 08 80 11 00 00 00 00 00 00 B8 [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 17 00 36 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0C [17:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:11]wFMCommunicate OK [17:33:11]requested_item fd.num is exist - process it [17:33:11]SAM_PROTO_GetFieldsCounters [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 13 00 00 [17:33:11]Write to MH i2c: E2 08 00 37 08 80 13 00 00 00 00 00 00 BB [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:12]Read from MH i2c: E2 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: E2 62 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: E2 62 00 37 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 34 [17:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 96 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:12]wFMCommunicate OK [17:33:12]SAM_PROTO_GetFieldsCounters done [17:33:12]requested_item shift.num is exist - process it [17:33:12]requested_item shift.opened is exist - process it [17:33:12]req_shift_opened [17:33:12]FM_GetShiftState [17:33:12]SAM_PROTO_GetShiftState [17:33:12]wFMCommunicate request_size=4 [17:33:12]MH_SAM_APDU [17:33:12]CAPDU: 80 13 01 00 [17:33:12]Write to MH i2c: E2 08 00 38 08 80 13 01 00 00 00 00 00 BD [17:33:12]Write i2c OK [17:33:12]MH_I2C_Read... [17:33:12]OFD Sender: No OFD packet to send [17:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:12]Read from MH i2c: E2 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: E2 0E 00 [17:33:12]MH_I2C_Read... [17:33:12]Read from MH i2c: E2 0E 00 38 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 25 [17:33:12]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:12]wFMCommunicate OK [17:33:12]SAM_PROTO_GetShiftState done [17:33:12]FM_GetShiftState done [17:33:12]req_shift_opened done [17:33:12]requested_item shift.open_date is exist - process it [17:33:12]req_shift_open_date [17:33:12]req_shift_open_date done [17:33:12]produce_requested_data done [17:33:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72598,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:33:12]process_action_free close_receipt [17:33:12]json_value_free [17:33:12]json_value_free done [17:33:12]process_json_proto returns [17:33:12]Send response to host [17:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72598,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:33:12]free response buf [17:33:12]execute_script done [17:33:12]execute_script returns [17:33:12]free content buf [17:33:12]Sock 7.Close socket [17:33:12]Sock 7.Thread stoped [17:33:17]OFD Sender: No OFD packet to send [17:33:21]recv_with_timeout no data received [17:33:22]OFD Sender: No OFD packet to send [17:33:22]accept exits with 9 [17:33:22]New connection [17:33:22]New thread 3066809700 created [17:33:22]Thread 3066666340 joined [17:33:22]Waiting for new connection... [17:33:22] Sock 9.Parse request [17:33:22]Sock 9.Check first char [17:33:22]Sock 9.First char is OK [17:33:22]request: POST /json_proto HTTP/1.0 [17:33:22]Method: POST [17:33:22]URL: /json_proto [17:33:22]Method is POST - this is cgi request [17:33:22]url: /json_proto [17:33:22]query_string will be loaded in cgi processing [17:33:22]execute_cgi json_proto POST (null) [17:33:22]execute_cgi path=json_proto method=POST [17:33:22]POST find Content-Length [17:33:22]Host: 172.17.43.195:8080 [17:33:22]Content-Length: 797 [17:33:22]Content-Type: application/json [17:33:22] [17:33:22]POST finish read [17:33:22]Found Content-Length = 797 [17:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.180, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:22]execute_script... [17:33: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)952084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.180, "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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:22]POST & json_proto [17:33:22]process_json_proto [17:33:22]json parsed OK: [17:33:22]protocol is kg_v1.0 [17:33:22]action value=close_receipt [17:33:22]process_action close_receipt [17:33:22]cmd_close_receipt [17:33:22]MH_GetDate [17:33:22]Write to MH i2c: F0 00 00 39 08 30 [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 09 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: F0 09 00 39 08 00 E4 CA 1F 67 74 2C AD 66 20 [17:33:22]GetLastDocTimeStamp 1730136789 [17:33:22]current date 1730136804 [17:33:22]FM_GetShiftState [17:33:22]SAM_PROTO_GetShiftState [17:33:22]wFMCommunicate request_size=4 [17:33:22]MH_SAM_APDU [17:33:22]CAPDU: 80 13 01 00 [17:33:22]Write to MH i2c: E2 08 00 3A 08 80 13 01 00 00 00 00 00 BF [17:33:22]Write i2c OK [17:33:22]MH_I2C_Read... [17:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:22]Read from MH i2c: E2 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 [17:33:22]MH_I2C_Read... [17:33:22]Read from MH i2c: E2 0E 00 3A 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 27 [17:33:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:22]wFMCommunicate OK [17:33:22]SAM_PROTO_GetShiftState done [17:33:22]FM_GetShiftState done [17:33:22]opened in 1730074113 [17:33:22]opened+sec_in_day 1730160513 [17:33:22]quantity*price = 0 [17:33:22]sum+1 = 1 [17:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 127 28.10.2024 17:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72599 ФПД: 122343121475834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173324&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72599&fm=122343121475834&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:23]StoreToDocumentArchive [17:33:23]shift 554 fd 72599 [17:33:23]save to /storage/0554/doc_00072599 [17:33:23]save last doc name /storage/0554/doc_00072599 to /storage/kkm_last_doc_name [17:33:23]save OK [17:33:23]Clear old archive folders... [17:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:33:23]tlvbuf is 003BDDE0 [17:33:23]SAM_PROTO_ClearQueue [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 09 00 00 [17:33:23]Write to MH i2c: E2 08 00 47 08 80 09 00 00 00 00 00 00 C1 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 47 08 00 90 00 C3 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]SAM_PROTO_ClearQueue done [17:33:23]KKMCreateOFDPacket [17:33:23]OFDProtocolAddRootSTLVToBuf [17:33:23]FM_MakeSignedData [17:33:23]FM_MakeSignedData [17:33:23]SAM_PROTO_SignData [17:33:23]wFMCommunicate request_size=4 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 01 02 [17:33:23]Write to MH i2c: E2 08 00 48 08 80 0D 01 02 00 00 00 00 C9 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:23]Read from MH i2c: E2 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 [17:33:23]MH_I2C_Read... [17:33:23]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [17:33:23]RAPDU: 90 00 [17:33:23]wFMCommunicate OK [17:33:23]wFMCommunicate request_size=255 [17:33:23]MH_SAM_APDU [17:33:23]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1B 01 00 35 04 06 00 [17:33:23]Write to MH i2c: E2 02 01 49 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1B 01 00 35 04 06 00 00 00 77 [17:33:23]Write i2c OK [17:33:23]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 03 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [17:33:24]RAPDU: 90 00 [17:33:24]wFMCommunicate OK [17:33:24]wFMCommunicate request_size=11 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 0D 02 02 06 6F 45 3A 4B D8 FA [17:33:24]Write to MH i2c: E2 0E 00 4A 08 80 0D 02 02 06 00 6F 45 3A 4B D8 FA 00 00 E3 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 03 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [17:33:24]RAPDU: 90 00 [17:33:24]wFMCommunicate OK [17:33:24]wFMCommunicate request_size=4 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 0D 03 02 [17:33:24]Write to MH i2c: E2 08 00 4B 08 80 0D 03 02 00 00 00 00 CE [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 0B 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 0B 00 4B 08 00 4E 59 33 6D D8 C6 4B 98 90 00 97 [17:33:24]RAPDU: 4E 59 33 6D D8 C6 4B 98 90 00 [17:33:24]wFMCommunicate OK [17:33:24]SAM_PROTO_SignData done [17:33:24]FM_MakeSignedData done [17:33:24]CreateOFDProtocolMessage [17:33:24]wFMCommunicate request_size=4 [17:33:24]MH_SAM_APDU [17:33:24]CAPDU: 80 11 00 00 [17:33:24]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:24]Read from MH i2c: E2 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 17 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 22 [17:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:24]wFMCommunicate OK [17:33:24]CreateOFDProtocolMessage done [17:33:24]OFDSenderStorePacket 72599 [17:33:24]StoreOFDPacket docnum=72599 [17:33:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE 05 08 01 35 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1B 01 00 35 04 06 00 6F 45 3A 4B D8 FA 4E 59 33 6D D8 C6 4B 98 [17:33:24]CheckFolder [17:33:24]dirname=/storage/ofd_packets [17:33:24]CheckFolder done [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00072599 [17:33:24]NVStorageSaveData ofd_packets/00072599 [17:33:24]File name is /storage/ofd_packets/00072599 [17:33:24]Write 302 bytes [17:33:24]NVStorageSaveData done [17:33:24]OFDSenderStorePacket done [17:33:24]KKMCreateOFDPacket done [17:33:24]NVStorageSaveData kkm_last_timestamp [17:33:24]File name is /storage/kkm_last_timestamp [17:33:24]Write 4 bytes [17:33:24]NVStorageSaveData done [17:33:24]ExternCall_PrintAddStr [17:33:24]wPrintStart [17:33:24]Write to MH i2c: 01 00 00 4D 08 55 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 4D 08 00 00 00 00 00 FF 0F 6A [17:33:24]RasterBufferAndPrint [17:33:24]line Счет N : (1)952084 [17:33:24]line ИНН: 02508201610067 [17:33:24]line Контрольно-Кассовый Чек [17:33:24]line ПРОДАЖА [17:33:24]line ТРК (МРК, ГНК) : 33 [17:33:24]line Товар: 2710194210 [17:33:24]line ДТ(л)-К-5 [17:33:24]line 11.180 * 0.00 [17:33:24]line = 0.00 [17:33:24]line НДС 12% НСП 1% [17:33:24]line > о реализуемом товаре [17:33:24]line ИТОГО: 0.00 [17:33:24]line НСП 1% : 0.00 [17:33:24]line НДС 12% : 0.00 [17:33:24]line Наличными: 0.00 [17:33:24]line Безнал.: 0.00 [17:33:24]line Место: АЗС № 113 "Партнер Нефть" [17:33:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:33:24]line СНО: Общий режим [17:33:24]line Чек 127 28.10.2024 17:33 [17:33:24]line Смена: 554 ФФД: 1.0 [17:33:24]line ЗНМ: 0300000087 [17:33:24]line РНМ: 0000000000091644 [17:33:24]line Версия ККМ: 001 [17:33:24]line Талоны: Топливная Карта [17:33:24]line 02083 [17:33:24]line ФМ: 0000000000874662 [17:33:24]line ФД: 72599 [17:33:24]line ФПД: 122343121475834 [17:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173324&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72599&fm=122343121475834&tin=02508201610067®Number=0000000000091644&sum=0 [17:33:24]written 0, free lines is 4095 [17:33:24]OFD Sender: Processing packet 72599 [packets to send 274, broken 273] [17:33:24]ProducePacketName [17:33:24]name=ofd_packets/00072599 [17:33:24]OFD Sender: To server: pG, [17:33:24]CommunicateWithHost lk.salyk.kg:30040 [17:33:24]ConnectInit lk.salyk.kg [17:33:24]Write to MH i2c: 01 00 00 77 08 7F [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: 01 07 00 77 08 00 00 00 00 00 ED 0C 7F [17:33:24]RasterBufferAndPrint [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]line [17:33:24]written 0, free lines is 3324 [17:33:24]MH_Cut [17:33:24]Write to MH i2c: D1 01 00 7E 08 01 58 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 [17:33:24]MH_I2C_Read... [17:33:24]Read from MH i2c: D1 01 00 7E 08 00 57 [17:33:24]Write to MH i2c: 01 00 00 7F 08 87 [17:33:24]Write i2c OK [17:33:24]MH_I2C_Read... [17:33:25]*** Cut start [17:33:25]*** Partial cut [17:33:25]*** CUTSNS_PIN = 1 [17:33:25]*** CUTSNS_PIN = 0 [17:33:25]*** Brake cut motor [17:33:26]Read from MH i2c: 01 [17:33:26]MH_I2C_Read... [17:33:26]*** Stop cut motor [17:33:26]*** Cut end [17:33:26]Read from MH i2c: 01 07 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: 01 07 00 7F 08 00 00 00 00 00 FF 0F 9C [17:33:26]process_action close_receipt done [17:33:26]requested_data is exist [17:33:26]produce_requested_data [17:33:26]requested_item fm.sn is exist - process it [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 11 00 00 [17:33:26]Write to MH i2c: E2 08 00 80 08 80 11 00 00 00 00 00 00 02 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 17 00 80 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 56 [17:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:26]wFMCommunicate OK [17:33:26]requested_item fd.num is exist - process it [17:33:26]SAM_PROTO_GetFieldsCounters [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 13 00 00 [17:33:26]Write to MH i2c: E2 08 00 81 08 80 13 00 00 00 00 00 00 05 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 62 00 81 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [17:33: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 97 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetFieldsCounters done [17:33:26]requested_item shift.num is exist - process it [17:33:26]requested_item shift.opened is exist - process it [17:33:26]req_shift_opened [17:33:26]FM_GetShiftState [17:33:26]SAM_PROTO_GetShiftState [17:33:26]wFMCommunicate request_size=4 [17:33:26]MH_SAM_APDU [17:33:26]CAPDU: 80 13 01 00 [17:33:26]Write to MH i2c: E2 08 00 82 08 80 13 01 00 00 00 00 00 07 [17:33:26]Write i2c OK [17:33:26]MH_I2C_Read... [17:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:26]Read from MH i2c: E2 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 [17:33:26]MH_I2C_Read... [17:33:26]Read from MH i2c: E2 0E 00 82 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 6F [17:33:26]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:26]wFMCommunicate OK [17:33:26]SAM_PROTO_GetShiftState done [17:33:26]FM_GetShiftState done [17:33:26]req_shift_opened done [17:33:26]requested_item shift.open_date is exist - process it [17:33:26]req_shift_open_date [17:33:26]req_shift_open_date done [17:33:26]produce_requested_data done [17:33:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72599,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:33:26]process_action_free close_receipt [17:33:26]json_value_free [17:33:26]json_value_free done [17:33:26]process_json_proto returns [17:33:26]Send response to host [17:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72599,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:33:26]free response buf [17:33:26]execute_script done [17:33:26]execute_script returns [17:33:26]free content buf [17:33:26]Sock 9.Close socket [17:33:26]Sock 9.Thread stoped [17:33:29]ConnectInit Can't take IP for lk.salyk.kg [17:33:29]CommunicateWithHost connect error [17:33:29]CommunicateWithHost err = -1 [17:33:29]OFD Sender: Server communicate error [17:33:33]accept exits with 7 [17:33:33]New connection [17:33:33]New thread 3066666340 created [17:33:33]Thread 3066809700 joined [17:33:33]Waiting for new connection... [17:33:33] Sock 7.Parse request [17:33:33]Sock 7.Check first char [17:33:33]Sock 7.First char is OK [17:33:33]request: POST /json_proto HTTP/1.0 [17:33:33]Method: POST [17:33:33]URL: /json_proto [17:33:33]Method is POST - this is cgi request [17:33:33]url: /json_proto [17:33:33]query_string will be loaded in cgi processing [17:33:33]execute_cgi json_proto POST (null) [17:33:33]execute_cgi path=json_proto method=POST [17:33:33]POST find Content-Length [17:33:33]Host: 172.17.43.195:8080 [17:33:33]Content-Length: 677 [17:33:33]Content-Type: application/json [17:33:33] [17:33:33]POST finish read [17:33:33]Found Content-Length = 677 [17:33:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [17:33:33]execute_script... [17:33: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)952085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [17:33:33]POST & json_proto [17:33:33]process_json_proto [17:33:33]json parsed OK: [17:33:33]protocol is kg_v1.0 [17:33:33]action value=close_receipt [17:33:33]process_action close_receipt [17:33:33]cmd_close_receipt [17:33:33]MH_GetDate [17:33:33]Write to MH i2c: F0 00 00 83 08 7A [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 09 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: F0 09 00 83 08 00 EE CA 1F 67 74 2C AD 66 74 [17:33:33]GetLastDocTimeStamp 1730136804 [17:33:33]current date 1730136814 [17:33:33]FM_GetShiftState [17:33:33]SAM_PROTO_GetShiftState [17:33:33]wFMCommunicate request_size=4 [17:33:33]MH_SAM_APDU [17:33:33]CAPDU: 80 13 01 00 [17:33:33]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [17:33:33]Write i2c OK [17:33:33]MH_I2C_Read... [17:33:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:33]Read from MH i2c: E2 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0E 00 [17:33:33]MH_I2C_Read... [17:33:33]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 71 [17:33:33]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:33]wFMCommunicate OK [17:33:33]SAM_PROTO_GetShiftState done [17:33:33]FM_GetShiftState done [17:33:33]opened in 1730074113 [17:33:33]opened+sec_in_day 1730160513 [17:33:33]quantity*price = 20003 [17:33:33]sum+1 = 20004 [17:33:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 128 28.10.2024 17:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72600 ФПД: 156313742106784 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72600&fm=156313742106784&tin=02508201610067®Number=0000000000091644&sum=20000 [17:33:34]StoreToDocumentArchive [17:33:34]shift 554 fd 72600 [17:33:34]save to /storage/0554/doc_00072600 [17:33:34]save last doc name /storage/0554/doc_00072600 to /storage/kkm_last_doc_name [17:33:34]save OK [17:33:34]Clear old archive folders... [17:33:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:33:34]tlvbuf is 003E2390 [17:33:34]SAM_PROTO_ClearQueue [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 09 00 00 [17:33:34]Write to MH i2c: E2 08 00 91 08 80 09 00 00 00 00 00 00 0B [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 91 08 00 90 00 0D [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]SAM_PROTO_ClearQueue done [17:33:34]KKMCreateOFDPacket [17:33:34]OFDProtocolAddRootSTLVToBuf [17:33:34]FM_MakeSignedData [17:33:34]FM_MakeSignedData [17:33:34]SAM_PROTO_SignData [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 01 02 [17:33:34]Write to MH i2c: E2 08 00 92 08 80 0D 01 02 00 00 00 00 13 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 92 08 00 90 00 0E [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=255 [17:33:34]MH_SAM_APDU [17:33: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 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 80 00 00 00 F4 03 04 00 EE CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1B 01 00 35 04 06 00 8E [17:33:34]Write to MH i2c: E2 02 01 93 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 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 80 00 00 00 F4 03 04 00 EE CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1B 01 00 35 04 06 00 8E 00 00 90 [17:33:34]OFD Sender: Processing packet 72599 [packets to send 274, broken 273] [17:33:34]ProducePacketName [17:33:34]name=ofd_packets/00072599 [17:33:34]OFD Sender: To server: pG, [17:33:34]CommunicateWithHost lk.salyk.kg:30040 [17:33:34]ConnectInit lk.salyk.kg [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=10 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 02 02 05 2A A1 12 60 A0 [17:33:34]Write to MH i2c: E2 0D 00 94 08 80 0D 02 02 05 00 2A A1 12 60 A0 00 00 FD [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:34]Read from MH i2c: E2 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 [17:33:34]MH_I2C_Read... [17:33:34]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [17:33:34]RAPDU: 90 00 [17:33:34]wFMCommunicate OK [17:33:34]wFMCommunicate request_size=4 [17:33:34]MH_SAM_APDU [17:33:34]CAPDU: 80 0D 03 02 [17:33:34]Write to MH i2c: E2 08 00 95 08 80 0D 03 02 00 00 00 00 18 [17:33:34]Write i2c OK [17:33:34]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0B 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 0B 00 95 08 00 60 D0 75 B9 12 16 3A 21 90 00 FA [17:33:35]RAPDU: 60 D0 75 B9 12 16 3A 21 90 00 [17:33:35]wFMCommunicate OK [17:33:35]SAM_PROTO_SignData done [17:33:35]FM_MakeSignedData done [17:33:35]CreateOFDProtocolMessage [17:33:35]wFMCommunicate request_size=4 [17:33:35]MH_SAM_APDU [17:33:35]CAPDU: 80 11 00 00 [17:33:35]Write to MH i2c: E2 08 00 96 08 80 11 00 00 00 00 00 00 18 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:35]Read from MH i2c: E2 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: E2 17 00 96 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6C [17:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:35]wFMCommunicate OK [17:33:35]CreateOFDProtocolMessage done [17:33:35]OFDSenderStorePacket 72600 [17:33:35]StoreOFDPacket docnum=72600 [17:33:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 48 50 07 01 19 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 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 80 00 00 00 F4 03 04 00 EE CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1B 01 00 35 04 06 00 8E 2A A1 12 60 A0 60 D0 75 B9 12 16 3A 21 [17:33:35]CheckFolder [17:33:35]dirname=/storage/ofd_packets [17:33:35]CheckFolder done [17:33:35]ProducePacketName [17:33:35]name=ofd_packets/00072600 [17:33:35]NVStorageSaveData ofd_packets/00072600 [17:33:35]File name is /storage/ofd_packets/00072600 [17:33:35]Write 301 bytes [17:33:35]NVStorageSaveData done [17:33:35]OFDSenderStorePacket done [17:33:35]KKMCreateOFDPacket done [17:33:35]NVStorageSaveData kkm_last_timestamp [17:33:35]File name is /storage/kkm_last_timestamp [17:33:35]Write 4 bytes [17:33:35]NVStorageSaveData done [17:33:35]ExternCall_PrintAddStr [17:33:35]wPrintStart [17:33:35]Write to MH i2c: 01 00 00 97 08 9F [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 97 08 00 00 00 00 00 FF 0F B4 [17:33:35]RasterBufferAndPrint [17:33:35]line Счет N : (1)952085 [17:33:35]line ИНН: 02508201610067 [17:33:35]line Контрольно-Кассовый Чек [17:33:35]line ПРОДАЖА [17:33:35]line ТРК (МРК, ГНК) : 53 [17:33:35]line Товар: 2710124130 [17:33:35]line Аи-92-К-5 [17:33:35]line 2.990 * 66.90 [17:33:35]line = 200.03 [17:33:35]line НДС 12% НСП 1% [17:33:35]line > о реализуемом товаре [17:33:35]line ОКРУГЛЕНИЕ: -0.03 [17:33:35]line ИТОГО: 200.00 [17:33:35]line Внесено: 200.00 [17:33:35]line СДАЧА: 0.00 [17:33:35]line НСП 1% : 1.77 [17:33:35]line НДС 12% : 21.24 [17:33:35]line Наличными: 200.00 [17:33:35]line Безнал.: 0.00 [17:33:35]line Место: АЗС № 113 "Партнер Нефть" [17:33:35]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:33:35]line СНО: Общий режим [17:33:35]line Чек 128 28.10.2024 17:33 [17:33:35]line Смена: 554 ФФД: 1.0 [17:33:35]line ЗНМ: 0300000087 [17:33:35]line РНМ: 0000000000091644 [17:33:35]line Версия ККМ: 001 [17:33:35]line ФМ: 0000000000874662 [17:33:35]line ФД: 72600 [17:33:35]line ФПД: 156313742106784 [17:33:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173334&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72600&fm=156313742106784&tin=02508201610067®Number=0000000000091644&sum=20000 [17:33:35]written 0, free lines is 4095 [17:33:35]Write to MH i2c: 01 00 00 C2 08 CA [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: 01 07 00 C2 08 00 00 00 00 00 DF 0C BC [17:33:35]RasterBufferAndPrint [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]line [17:33:35]written 0, free lines is 3319 [17:33:35]MH_Cut [17:33:35]Write to MH i2c: D1 01 00 C9 08 01 A3 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 01 00 [17:33:35]MH_I2C_Read... [17:33:35]Read from MH i2c: D1 01 00 C9 08 00 A2 [17:33:35]Write to MH i2c: 01 00 00 CA 08 D2 [17:33:35]Write i2c OK [17:33:35]MH_I2C_Read... [17:33:36]Connected sock=10 [17:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 FE 05 08 01 35 48 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 AC 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 E4 CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 97 1B 01 00 35 04 06 00 6F 45 3A 4B D8 FA 4E 59 33 6D D8 C6 4B 98 [17:33:36]*** Cut start [17:33:36]*** Partial cut [17:33:36]*** CUTSNS_PIN = 1 [17:33:36]*** CUTSNS_PIN = 0 [17:33:36]*** Brake cut motor [17:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DF F4 47 00 EC 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 34 36 36 32 10 04 04 00 97 1B 01 00 F4 03 04 00 AD 75 1F 67 B6 04 01 00 00 54 CF BB 90 F7 23 E2 41 [17:33:36]CommunicateWithHost err = 0 [17:33:36]CheckOFDResponse [17:33:36]1017 (14) - 77093643461234 [17:33:36]1041 (16) - 0000000000874662 [17:33:36]1040 (4) - 72599 [17:33:36]1012 (4) - 28.10.2024 11:29 [17:33:36]1206 (1) - 0 [17:33:36]OFD Sender: Remove packet 72599 [17:33:36]ProducePacketName [17:33:36]name=ofd_packets/00072599 [17:33:36]NVStorageDeleteData [17:33:37]Read from MH i2c: 01 [17:33:37]MH_I2C_Read... [17:33:37]*** Stop cut motor [17:33:37]*** Cut end [17:33:37]Read from MH i2c: 01 07 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: 01 07 00 CA 08 00 00 00 00 00 FF 0F E7 [17:33:37]process_action close_receipt done [17:33:37]requested_data is exist [17:33:37]produce_requested_data [17:33:37]requested_item fm.sn is exist - process it [17:33:37]wFMCommunicate request_size=4 [17:33:37]MH_SAM_APDU [17:33:37]CAPDU: 80 11 00 00 [17:33:37]Write to MH i2c: E2 08 00 CB 08 80 11 00 00 00 00 00 00 4D [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:37]Read from MH i2c: E2 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 17 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 17 00 CB 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A1 [17:33:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:33:37]wFMCommunicate OK [17:33:37]requested_item fd.num is exist - process it [17:33:37]SAM_PROTO_GetFieldsCounters [17:33:37]wFMCommunicate request_size=4 [17:33:37]MH_SAM_APDU [17:33:37]CAPDU: 80 13 00 00 [17:33:37]Write to MH i2c: E2 08 00 CC 08 80 13 00 00 00 00 00 00 50 [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:37]Read from MH i2c: E2 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 62 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 62 00 CC 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [17:33: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 98 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:37]wFMCommunicate OK [17:33:37]SAM_PROTO_GetFieldsCounters done [17:33:37]requested_item shift.num is exist - process it [17:33:37]requested_item shift.opened is exist - process it [17:33:37]req_shift_opened [17:33:37]FM_GetShiftState [17:33:37]SAM_PROTO_GetShiftState [17:33:37]wFMCommunicate request_size=4 [17:33:37]MH_SAM_APDU [17:33:37]CAPDU: 80 13 01 00 [17:33:37]Write to MH i2c: E2 08 00 CD 08 80 13 01 00 00 00 00 00 52 [17:33:37]Write i2c OK [17:33:37]MH_I2C_Read... [17:33:37]OFD Sender: Processing packet 72600 [packets to send 274, broken 273] [17:33:37]ProducePacketName [17:33:37]name=ofd_packets/00072600 [17:33:37]OFD Sender: To server: pG, [17:33:37]CommunicateWithHost lk.salyk.kg:30040 [17:33:37]ConnectInit lk.salyk.kg [17:33:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:37]Read from MH i2c: E2 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 0E 00 [17:33:37]MH_I2C_Read... [17:33:37]Read from MH i2c: E2 0E 00 CD 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BA [17:33:37]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:33:37]wFMCommunicate OK [17:33:37]SAM_PROTO_GetShiftState done [17:33:37]FM_GetShiftState done [17:33:37]req_shift_opened done [17:33:37]requested_item shift.open_date is exist - process it [17:33:37]req_shift_open_date [17:33:37]req_shift_open_date done [17:33:37]produce_requested_data done [17:33:37]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72600,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:33:37]process_action_free close_receipt [17:33:37]json_value_free [17:33:37]json_value_free done [17:33:37]process_json_proto returns [17:33:37]Send response to host [17:33:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72600,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:33:37]free response buf [17:33:37]execute_script done [17:33:37]execute_script returns [17:33:37]free content buf [17:33:37]Sock 7.Close socket [17:33:37]Sock 7.Thread stoped [17:33:37]Connected sock=10 [17:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 48 50 07 01 19 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 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 80 00 00 00 F4 03 04 00 EE CA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1B 01 00 35 04 06 00 8E 2A A1 12 60 A0 60 D0 75 B9 12 16 3A 21 [17:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 1E C9 47 00 F3 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 98 1B 01 00 F4 03 04 00 AF 75 1F 67 B6 04 01 00 00 70 1B 79 2C CB F6 25 EB [17:33:38]CommunicateWithHost err = 0 [17:33:38]CheckOFDResponse [17:33:38]1017 (14) - 77093643461234 [17:33:38]1041 (16) - 0000000000874662 [17:33:38]1040 (4) - 72600 [17:33:38]1012 (4) - 28.10.2024 11:29 [17:33:38]1206 (1) - 0 [17:33:38]OFD Sender: Remove packet 72600 [17:33:38]ProducePacketName [17:33:38]name=ofd_packets/00072600 [17:33:38]NVStorageDeleteData [17:33:38]OFD Sender: No OFD packet to send [17:33:38]OFD Sender: No OFD packet to send [17:33:43]OFD Sender: No OFD packet to send [17:33:48]OFD Sender: No OFD packet to send [17:33:52]recv_with_timeout no data received [17:33:53]OFD Sender: No OFD packet to send [17:33:58]OFD Sender: No OFD packet to send [17:34:03]OFD Sender: No OFD packet to send [17:34:08]OFD Sender: No OFD packet to send [17:34:12]recv_with_timeout no data received [17:34:13]OFD Sender: No OFD packet to send [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:27]accept exits with 9 [17:34:27]New connection [17:34:27]New thread 3066809700 created [17:34:27]Thread 3066666340 joined [17:34:27]Waiting for new connection... [17:34:27] Sock 9.Parse request [17:34:27]Sock 9.Check first char [17:34:27]Sock 9.First char is OK [17:34:27]request: POST /json_proto HTTP/1.0 [17:34:27]Method: POST [17:34:27]URL: /json_proto [17:34:27]Method is POST - this is cgi request [17:34:27]url: /json_proto [17:34:27]query_string will be loaded in cgi processing [17:34:27]execute_cgi json_proto POST (null) [17:34:27]execute_cgi path=json_proto method=POST [17:34:27]POST find Content-Length [17:34:27]Host: 172.17.43.195:8080 [17:34:27]Content-Length: 797 [17:34:27]Content-Type: application/json [17:34:27] [17:34:27]POST finish read [17:34:27]Found Content-Length = 797 [17:34:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.820, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:27]execute_script... [17:34: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)952086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 12.820, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:27]POST & json_proto [17:34:27]process_json_proto [17:34:27]json parsed OK: [17:34:27]protocol is kg_v1.0 [17:34:27]action value=close_receipt [17:34:27]process_action close_receipt [17:34:27]cmd_close_receipt [17:34:27]MH_GetDate [17:34:27]Write to MH i2c: F0 00 00 CE 08 C5 [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 09 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: F0 09 00 CE 08 00 24 CB 1F 67 74 2C AD 66 F6 [17:34:27]GetLastDocTimeStamp 1730136814 [17:34:27]current date 1730136868 [17:34:27]FM_GetShiftState [17:34:27]SAM_PROTO_GetShiftState [17:34:27]wFMCommunicate request_size=4 [17:34:27]MH_SAM_APDU [17:34:27]CAPDU: 80 13 01 00 [17:34:27]Write to MH i2c: E2 08 00 CF 08 80 13 01 00 00 00 00 00 54 [17:34:27]Write i2c OK [17:34:27]MH_I2C_Read... [17:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:27]Read from MH i2c: E2 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: E2 0E 00 [17:34:27]MH_I2C_Read... [17:34:27]Read from MH i2c: E2 0E 00 CF 08 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BC [17:34:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:34:27]wFMCommunicate OK [17:34:27]SAM_PROTO_GetShiftState done [17:34:27]FM_GetShiftState done [17:34:27]opened in 1730074113 [17:34:27]opened+sec_in_day 1730160513 [17:34:27]quantity*price = 0 [17:34:27]sum+1 = 1 [17:34:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 129 28.10.2024 17:34 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72601 ФПД: 197989427176013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72601&fm=197989427176013&tin=02508201610067®Number=0000000000091644&sum=0 [17:34:28]StoreToDocumentArchive [17:34:28]shift 554 fd 72601 [17:34:28]save to /storage/0554/doc_00072601 [17:34:28]save last doc name /storage/0554/doc_00072601 to /storage/kkm_last_doc_name [17:34:28]save OK [17:34:28]Clear old archive folders... [17:34:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:34:28]tlvbuf is 003C44F0 [17:34:28]SAM_PROTO_ClearQueue [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 09 00 00 [17:34:28]Write to MH i2c: E2 08 00 DC 08 80 09 00 00 00 00 00 00 56 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]SAM_PROTO_ClearQueue done [17:34:28]KKMCreateOFDPacket [17:34:28]OFDProtocolAddRootSTLVToBuf [17:34:28]FM_MakeSignedData [17:34:28]FM_MakeSignedData [17:34:28]SAM_PROTO_SignData [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 0D 01 02 [17:34:28]Write to MH i2c: E2 08 00 DD 08 80 0D 01 02 00 00 00 00 5E [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]wFMCommunicate request_size=255 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1B 01 00 35 04 06 00 [17:34:28]Write to MH i2c: E2 02 01 DE 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1B 01 00 35 04 06 00 00 00 C0 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]wFMCommunicate request_size=11 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 0D 02 02 06 B4 12 01 79 E2 4D [17:34:28]Write to MH i2c: E2 0E 00 DF 08 80 0D 02 02 06 00 B4 12 01 79 E2 4D 00 00 DC [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 03 00 DF 08 00 90 00 5B [17:34:28]RAPDU: 90 00 [17:34:28]wFMCommunicate OK [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 0D 03 02 [17:34:28]Write to MH i2c: E2 08 00 E0 08 80 0D 03 02 00 00 00 00 63 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:28]OFD Sender: No OFD packet to send [17:34:28]Read from MH i2c: E2 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 0B 00 [17:34:28]MH_I2C_Read... [17:34:28]Read from MH i2c: E2 0B 00 E0 08 00 B5 E4 6E 98 8F 30 17 C6 90 00 9F [17:34:28]RAPDU: B5 E4 6E 98 8F 30 17 C6 90 00 [17:34:28]wFMCommunicate OK [17:34:28]SAM_PROTO_SignData done [17:34:28]FM_MakeSignedData done [17:34:28]CreateOFDProtocolMessage [17:34:28]wFMCommunicate request_size=4 [17:34:28]MH_SAM_APDU [17:34:28]CAPDU: 80 11 00 00 [17:34:28]Write to MH i2c: E2 08 00 E1 08 80 11 00 00 00 00 00 00 63 [17:34:28]Write i2c OK [17:34:28]MH_I2C_Read... [17:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:29]Read from MH i2c: E2 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: E2 17 00 E1 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 B7 [17:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:34:29]wFMCommunicate OK [17:34:29]CreateOFDProtocolMessage done [17:34:29]OFDSenderStorePacket 72601 [17:34:29]StoreOFDPacket docnum=72601 [17:34:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4A AC 08 01 12 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1B 01 00 35 04 06 00 B4 12 01 79 E2 4D B5 E4 6E 98 8F 30 17 C6 [17:34:29]CheckFolder [17:34:29]dirname=/storage/ofd_packets [17:34:29]CheckFolder done [17:34:29]ProducePacketName [17:34:29]name=ofd_packets/00072601 [17:34:29]NVStorageSaveData ofd_packets/00072601 [17:34:29]File name is /storage/ofd_packets/00072601 [17:34:29]Write 302 bytes [17:34:29]NVStorageSaveData done [17:34:29]OFDSenderStorePacket done [17:34:29]KKMCreateOFDPacket done [17:34:29]NVStorageSaveData kkm_last_timestamp [17:34:29]File name is /storage/kkm_last_timestamp [17:34:29]Write 4 bytes [17:34:29]NVStorageSaveData done [17:34:29]ExternCall_PrintAddStr [17:34:29]wPrintStart [17:34:29]Write to MH i2c: 01 00 00 E2 08 EA [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 E2 08 00 00 00 00 00 FF 0F FF [17:34:29]RasterBufferAndPrint [17:34:29]line Счет N : (1)952086 [17:34:29]line ИНН: 02508201610067 [17:34:29]line Контрольно-Кассовый Чек [17:34:29]line ПРОДАЖА [17:34:29]line ТРК (МРК, ГНК) : 33 [17:34:29]line Товар: 2710194210 [17:34:29]line ДТ(л)-К-5 [17:34:29]line 12.820 * 0.00 [17:34:29]line = 0.00 [17:34:29]line НДС 12% НСП 1% [17:34:29]line > о реализуемом товаре [17:34:29]line ИТОГО: 0.00 [17:34:29]line НСП 1% : 0.00 [17:34:29]line НДС 12% : 0.00 [17:34:29]line Наличными: 0.00 [17:34:29]line Безнал.: 0.00 [17:34:29]line Место: АЗС № 113 "Партнер Нефть" [17:34:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:34:29]line СНО: Общий режим [17:34:29]line Чек 129 28.10.2024 17:34 [17:34:29]line Смена: 554 ФФД: 1.0 [17:34:29]line ЗНМ: 0300000087 [17:34:29]line РНМ: 0000000000091644 [17:34:29]line Версия ККМ: 001 [17:34:29]line Талоны: Топливная Карта [17:34:29]line 53623 [17:34:29]line ФМ: 0000000000874662 [17:34:29]line ФД: 72601 [17:34:29]line ФПД: 197989427176013 [17:34:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173428&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72601&fm=197989427176013&tin=02508201610067®Number=0000000000091644&sum=0 [17:34:29]OFD Sender: Processing packet 72601 [packets to send 274, broken 273] [17:34:29]ProducePacketName [17:34:29]name=ofd_packets/00072601 [17:34:29]written 0, free lines is 4095 [17:34:29]OFD Sender: To server: pG, [17:34:29]CommunicateWithHost lk.salyk.kg:30040 [17:34:29]ConnectInit lk.salyk.kg [17:34:29]Write to MH i2c: 01 00 00 0C 09 15 [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: 01 07 00 0C 09 00 00 00 00 00 E9 0C 11 [17:34:29]RasterBufferAndPrint [17:34:29]line [17:34:29]line [17:34:29]line [17:34:29]line [17:34:29]line [17:34:29]written 0, free lines is 3318 [17:34:29]MH_Cut [17:34:29]Write to MH i2c: D1 01 00 13 09 01 EE [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: D1 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: D1 01 00 [17:34:29]MH_I2C_Read... [17:34:29]Read from MH i2c: D1 01 00 13 09 00 ED [17:34:29]Write to MH i2c: 01 00 00 14 09 1D [17:34:29]Write i2c OK [17:34:29]MH_I2C_Read... [17:34:30]*** Cut start [17:34:30]*** Partial cut [17:34:30]*** CUTSNS_PIN = 1 [17:34:30]*** CUTSNS_PIN = 0 [17:34:30]*** Brake cut motor [17:34:30]Read from MH i2c: 01 [17:34:30]MH_I2C_Read... [17:34:30]*** Stop cut motor [17:34:30]*** Cut end [17:34:30]Read from MH i2c: 01 07 00 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: 01 07 00 14 09 00 00 00 00 00 FF 0F 32 [17:34:30]process_action close_receipt done [17:34:30]requested_data is exist [17:34:30]produce_requested_data [17:34:30]requested_item fm.sn is exist - process it [17:34:30]wFMCommunicate request_size=4 [17:34:30]MH_SAM_APDU [17:34:30]CAPDU: 80 11 00 00 [17:34:30]Write to MH i2c: E2 08 00 15 09 80 11 00 00 00 00 00 00 98 [17:34:30]Write i2c OK [17:34:30]MH_I2C_Read... [17:34:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:30]Read from MH i2c: E2 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: E2 17 00 [17:34:30]MH_I2C_Read... [17:34:30]Read from MH i2c: E2 17 00 15 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EC [17:34:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:34:31]wFMCommunicate OK [17:34:31]requested_item fd.num is exist - process it [17:34:31]SAM_PROTO_GetFieldsCounters [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 00 00 [17:34:31]Write to MH i2c: E2 08 00 16 09 80 13 00 00 00 00 00 00 9B [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 62 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 62 00 16 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [17:34:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 99 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetFieldsCounters done [17:34:31]requested_item shift.num is exist - process it [17:34:31]requested_item shift.opened is exist - process it [17:34:31]req_shift_opened [17:34:31]FM_GetShiftState [17:34:31]SAM_PROTO_GetShiftState [17:34:31]wFMCommunicate request_size=4 [17:34:31]MH_SAM_APDU [17:34:31]CAPDU: 80 13 01 00 [17:34:31]Write to MH i2c: E2 08 00 17 09 80 13 01 00 00 00 00 00 9D [17:34:31]Write i2c OK [17:34:31]MH_I2C_Read... [17:34:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:31]Read from MH i2c: E2 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 [17:34:31]MH_I2C_Read... [17:34:31]Read from MH i2c: E2 0E 00 17 09 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 05 [17:34:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:34:31]wFMCommunicate OK [17:34:31]SAM_PROTO_GetShiftState done [17:34:31]FM_GetShiftState done [17:34:31]req_shift_opened done [17:34:31]requested_item shift.open_date is exist - process it [17:34:31]req_shift_open_date [17:34:31]req_shift_open_date done [17:34:31]produce_requested_data done [17:34:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72601,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:34:31]process_action_free close_receipt [17:34:31]json_value_free [17:34:31]json_value_free done [17:34:31]process_json_proto returns [17:34:31]Send response to host [17:34:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72601,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:34:31]free response buf [17:34:31]execute_script done [17:34:31]execute_script returns [17:34:31]free content buf [17:34:31]Sock 9.Close socket [17:34:31]Sock 9.Thread stoped [17:34:34]Connected sock=11 [17:34:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4A AC 08 01 12 BC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 14 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 24 CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1B 01 00 35 04 06 00 B4 12 01 79 E2 4D B5 E4 6E 98 8F 30 17 C6 [17:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 BB 78 47 00 E5 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 99 1B 01 00 F4 03 04 00 E8 75 1F 67 B6 04 01 00 00 03 D8 53 5E A3 1A 8E 4D [17:34:35]CommunicateWithHost err = 0 [17:34:35]CheckOFDResponse [17:34:35]1017 (14) - 77093643461234 [17:34:35]1041 (16) - 0000000000874662 [17:34:35]1040 (4) - 72601 [17:34:35]1012 (4) - 28.10.2024 11:30 [17:34:35]1206 (1) - 0 [17:34:35]OFD Sender: Remove packet 72601 [17:34:35]ProducePacketName [17:34:35]name=ofd_packets/00072601 [17:34:35]NVStorageDeleteData [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:03]recv_with_timeout no data received [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:17]recv_with_timeout no data received [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:19]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:02]accept exits with 7 [17:37:02]New connection [17:37:02]New thread 3066666340 created [17:37:02]Thread 3066809700 joined [17:37:02]Waiting for new connection... [17:37:02] Sock 7.Parse request [17:37:02]Sock 7.Check first char [17:37:02]Sock 7.First char is OK [17:37:02]request: POST /json_proto HTTP/1.0 [17:37:02]Method: POST [17:37:02]URL: /json_proto [17:37:02]Method is POST - this is cgi request [17:37:02]url: /json_proto [17:37:02]query_string will be loaded in cgi processing [17:37:02]execute_cgi json_proto POST (null) [17:37:02]execute_cgi path=json_proto method=POST [17:37:02]POST find Content-Length [17:37:02]Host: 172.17.43.195:8080 [17:37:02]Content-Length: 792 [17:37:02]Content-Type: application/json [17:37:02] [17:37:02]POST finish read [17:37:02]Found Content-Length = 792 [17:37:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:02]execute_script... [17:37: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)952087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:37:02]POST & json_proto [17:37:02]process_json_proto [17:37:02]json parsed OK: [17:37:02]protocol is kg_v1.0 [17:37:02]action value=close_receipt [17:37:02]process_action close_receipt [17:37:02]cmd_close_receipt [17:37:02]MH_GetDate [17:37:02]Write to MH i2c: F0 00 00 18 09 10 [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: F0 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: F0 09 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: F0 09 00 18 09 00 BF CB 1F 67 74 2C AD 66 DC [17:37:02]GetLastDocTimeStamp 1730136868 [17:37:02]current date 1730137023 [17:37:02]FM_GetShiftState [17:37:02]SAM_PROTO_GetShiftState [17:37:02]wFMCommunicate request_size=4 [17:37:02]MH_SAM_APDU [17:37:02]CAPDU: 80 13 01 00 [17:37:02]Write to MH i2c: E2 08 00 19 09 80 13 01 00 00 00 00 00 9F [17:37:02]Write i2c OK [17:37:02]MH_I2C_Read... [17:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:37:02]Read from MH i2c: E2 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0E 00 [17:37:02]MH_I2C_Read... [17:37:02]Read from MH i2c: E2 0E 00 19 09 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 07 [17:37:02]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:37:02]wFMCommunicate OK [17:37:02]SAM_PROTO_GetShiftState done [17:37:02]FM_GetShiftState done [17:37:02]opened in 1730074113 [17:37:02]opened+sec_in_day 1730160513 [17:37:02]quantity*price = 0 [17:37:02]sum+1 = 1 [17:37:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 131 28.10.2024 17:38 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72603 ФПД: 242409871951889 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72603&fm=242409871951889&tin=02508201610067®Number=0000000000091644&sum=0 [17:38:05]StoreToDocumentArchive [17:38:05]shift 554 fd 72603 [17:38:05]save to /storage/0554/doc_00072603 [17:38:05]save last doc name /storage/0554/doc_00072603 to /storage/kkm_last_doc_name [17:38:05]save OK [17:38:05]Clear old archive folders... [17:38:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:38:05]tlvbuf is 00A429B0 [17:38:05]SAM_PROTO_ClearQueue [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 09 00 00 [17:38:05]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]SAM_PROTO_ClearQueue done [17:38:05]KKMCreateOFDPacket [17:38:05]OFDProtocolAddRootSTLVToBuf [17:38:05]FM_MakeSignedData [17:38:05]FM_MakeSignedData [17:38:05]SAM_PROTO_SignData [17:38:05]wFMCommunicate request_size=4 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 0D 01 02 [17:38:05]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:05]Read from MH i2c: E2 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 [17:38:05]MH_I2C_Read... [17:38:05]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [17:38:05]RAPDU: 90 00 [17:38:05]wFMCommunicate OK [17:38:05]wFMCommunicate request_size=255 [17:38:05]MH_SAM_APDU [17:38:05]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 FD CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1B 01 00 35 04 06 00 DC [17:38:05]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 FD CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1B 01 00 35 04 06 00 DC 00 00 11 [17:38:05]Write i2c OK [17:38:05]MH_I2C_Read... [17:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:06]Read from MH i2c: E2 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [17:38:06]RAPDU: 90 00 [17:38:06]wFMCommunicate OK [17:38:06]wFMCommunicate request_size=10 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 0D 02 02 05 78 72 4E C8 11 [17:38:06]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 78 72 4E C8 11 00 00 C3 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:06]Read from MH i2c: E2 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [17:38:06]RAPDU: 90 00 [17:38:06]wFMCommunicate OK [17:38:06]wFMCommunicate request_size=4 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 0D 03 02 [17:38:06]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:06]Read from MH i2c: E2 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 0B 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 0B 00 2F 00 00 44 8E 71 08 2E 8A C0 58 90 00 C6 [17:38:06]RAPDU: 44 8E 71 08 2E 8A C0 58 90 00 [17:38:06]wFMCommunicate OK [17:38:06]SAM_PROTO_SignData done [17:38:06]FM_MakeSignedData done [17:38:06]CreateOFDProtocolMessage [17:38:06]wFMCommunicate request_size=4 [17:38:06]MH_SAM_APDU [17:38:06]CAPDU: 80 11 00 00 [17:38:06]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:06]Read from MH i2c: E2 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: E2 17 00 [17:38:06]MH_I2C_Read... [17:38:06]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 34 36 36 32 90 00 FE [17:38:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:38:06]wFMCommunicate OK [17:38:06]CreateOFDProtocolMessage done [17:38:06]OFDSenderStorePacket 72603 [17:38:06]StoreOFDPacket docnum=72603 [17:38:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 B9 07 01 78 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 FD CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1B 01 00 35 04 06 00 DC 78 72 4E C8 11 44 8E 71 08 2E 8A C0 58 [17:38:06]CheckFolder [17:38:06]dirname=/storage/ofd_packets [17:38:06]CheckFolder done [17:38:06]ProducePacketName [17:38:06]name=ofd_packets/00072603 [17:38:06]NVStorageSaveData ofd_packets/00072603 [17:38:06]File name is /storage/ofd_packets/00072603 [17:38:06]Write 301 bytes [17:38:06]NVStorageSaveData done [17:38:06]OFDSenderStorePacket done [17:38:06]KKMCreateOFDPacket done [17:38:06]NVStorageSaveData kkm_last_timestamp [17:38:06]File name is /storage/kkm_last_timestamp [17:38:06]Write 4 bytes [17:38:06]NVStorageSaveData done [17:38:06]ExternCall_PrintAddStr [17:38:06]wPrintStart [17:38:06]Write to MH i2c: 01 00 00 31 00 31 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [17:38:06]RasterBufferAndPrint [17:38:06]line Счет N : (1)952087 [17:38:06]line ИНН: 02508201610067 [17:38:06]line Контрольно-Кассовый Чек [17:38:06]line ПРОДАЖА [17:38:06]line ТРК (МРК, ГНК) : 63 [17:38:06]line Товар: 2710124130 [17:38:06]line Аи-92-К-5 [17:38:06]line 15.000 * 0.00 [17:38:06]line = 0.00 [17:38:06]line НДС 12% НСП 1% [17:38:06]line > о реализуемом товаре [17:38:06]line ИТОГО: 0.00 [17:38:06]line НСП 1% : 0.00 [17:38:06]line НДС 12% : 0.00 [17:38:06]line Наличными: 0.00 [17:38:06]line Безнал.: 0.00 [17:38:06]line Место: АЗС № 113 "Партнер Нефть" [17:38:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:38:06]line СНО: Общий режим [17:38:06]line Чек 131 28.10.2024 17:38 [17:38:06]line Смена: 554 ФФД: 1.0 [17:38:06]line ЗНМ: 0300000087 [17:38:06]line РНМ: 0000000000091644 [17:38:06]line Версия ККМ: 001 [17:38:06]line Талоны: Топливная Карта [17:38:06]line 02648 [17:38:06]line ФМ: 0000000000874662 [17:38:06]line ФД: 72603 [17:38:06]line ФПД: 242409871951889 [17:38:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T173805&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72603&fm=242409871951889&tin=02508201610067®Number=0000000000091644&sum=0 [17:38:06]written 0, free lines is 4095 [17:38:06]OFD Sender: Processing packet 72603 [packets to send 274, broken 273] [17:38:06]ProducePacketName [17:38:06]name=ofd_packets/00072603 [17:38:06]OFD Sender: To server: pG, [17:38:06]CommunicateWithHost lk.salyk.kg:30040 [17:38:06]ConnectInit lk.salyk.kg [17:38:06]Write to MH i2c: 01 00 00 5B 00 5B [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E9 0C 57 [17:38:06]RasterBufferAndPrint [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]line [17:38:06]written 0, free lines is 3327 [17:38:06]MH_Cut [17:38:06]Write to MH i2c: D1 01 00 62 00 01 34 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 01 00 [17:38:06]MH_I2C_Read... [17:38:06]Read from MH i2c: D1 01 00 62 00 00 33 [17:38:06]Write to MH i2c: 01 00 00 63 00 63 [17:38:06]Write i2c OK [17:38:06]MH_I2C_Read... [17:38:07]*** Cut start [17:38:07]*** Partial cut [17:38:07]*** CUTSNS_PIN = 1 [17:38:07]*** CUTSNS_PIN = 0 [17:38:07]*** Brake cut motor [17:38:08]Read from MH i2c: 01 [17:38:08]MH_I2C_Read... [17:38:08]*** Stop cut motor [17:38:08]*** Cut end [17:38:08]Read from MH i2c: 01 07 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [17:38:08]process_action close_receipt done [17:38:08]requested_data is exist [17:38:08]produce_requested_data [17:38:08]requested_item fm.sn is exist - process it [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 11 00 00 [17:38:08]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [17:38:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:38:08]wFMCommunicate OK [17:38:08]requested_item fd.num is exist - process it [17:38:08]SAM_PROTO_GetFieldsCounters [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 13 00 00 [17:38:08]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 62 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [17:38: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9B 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_GetFieldsCounters done [17:38:08]requested_item shift.num is exist - process it [17:38:08]requested_item shift.opened is exist - process it [17:38:08]req_shift_opened [17:38:08]FM_GetShiftState [17:38:08]SAM_PROTO_GetShiftState [17:38:08]wFMCommunicate request_size=4 [17:38:08]MH_SAM_APDU [17:38:08]CAPDU: 80 13 01 00 [17:38:08]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [17:38:08]Write i2c OK [17:38:08]MH_I2C_Read... [17:38:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:08]Read from MH i2c: E2 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0E 00 [17:38:08]MH_I2C_Read... [17:38:08]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [17:38:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:38:08]wFMCommunicate OK [17:38:08]SAM_PROTO_GetShiftState done [17:38:08]FM_GetShiftState done [17:38:08]req_shift_opened done [17:38:08]requested_item shift.open_date is exist - process it [17:38:08]req_shift_open_date [17:38:08]req_shift_open_date done [17:38:08]produce_requested_data done [17:38:08]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72603,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:38:08]process_action_free close_receipt [17:38:08]json_value_free [17:38:08]json_value_free done [17:38:08]process_json_proto returns [17:38:08]Send response to host [17:38:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72603,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:38:08]free response buf [17:38:08]execute_script done [17:38:08]execute_script returns [17:38:08]free content buf [17:38:08]Sock 7.Close socket [17:38:08]Sock 7.Thread stoped [17:38:11]Connected sock=11 [17:38:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 C2 B9 07 01 78 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 83 00 00 00 F4 03 04 00 FD CB 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1B 01 00 35 04 06 00 DC 78 72 4E C8 11 44 8E 71 08 2E 8A C0 58 [17:38:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 9C 03 47 00 18 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9B 1B 01 00 F4 03 04 00 C0 76 1F 67 B6 04 01 00 00 DD 02 A1 D0 7F D6 64 85 [17:38:12]CommunicateWithHost err = 0 [17:38:12]CheckOFDResponse [17:38:12]1017 (14) - 77093643461234 [17:38:12]1041 (16) - 0000000000874662 [17:38:12]1040 (4) - 72603 [17:38:12]1012 (4) - 28.10.2024 11:34 [17:38:12]1206 (1) - 0 [17:38:12]OFD Sender: Remove packet 72603 [17:38:12]ProducePacketName [17:38:12]name=ofd_packets/00072603 [17:38:12]NVStorageDeleteData [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:38]OFD Sender: No OFD packet to send [17:38:43]OFD Sender: No OFD packet to send [17:38:48]OFD Sender: No OFD packet to send [17:38:53]OFD Sender: No OFD packet to send [17:38:54]recv_with_timeout no data received [17:38:58]OFD Sender: No OFD packet to send [17:39:03]OFD Sender: No OFD packet to send [17:39:08]OFD Sender: No OFD packet to send [17:39:13]OFD Sender: No OFD packet to send [17:39:18]OFD Sender: No OFD packet to send [17:39:21]recv_with_timeout no data received [17:39:23]OFD Sender: No OFD packet to send [17:39:28]OFD Sender: No OFD packet to send [17:39:33]OFD Sender: No OFD packet to send [17:39:38]OFD Sender: No OFD packet to send [17:39:43]OFD Sender: No OFD packet to send [17:39:48]OFD Sender: No OFD packet to send [17:39:50]recv_with_timeout no data received [17:39:53]OFD Sender: No OFD packet to send [17:39:58]OFD Sender: No OFD packet to send [17:40:03]OFD Sender: No OFD packet to send [17:40:08]OFD Sender: No OFD packet to send [17:40:13]OFD Sender: No OFD packet to send [17:40:14]accept exits with 8 [17:40:14]New connection [17:40:14]New thread 3067075940 created [17:40:14]Thread 3067219300 joined [17:40:14]Waiting for new connection... [17:40:14] Sock 8.Parse request [17:40:14]Sock 8.Check first char [17:40:14]Sock 8.First char is OK [17:40:14]request: POST /json_proto HTTP/1.0 [17:40:14]Method: POST [17:40:14]URL: /json_proto [17:40:14]Method is POST - this is cgi request [17:40:14]url: /json_proto [17:40:14]query_string will be loaded in cgi processing [17:40:14]execute_cgi json_proto POST (null) [17:40:14]execute_cgi path=json_proto method=POST [17:40:14]POST find Content-Length [17:40:14]Host: 172.17.43.195:8080 [17:40:14]Content-Length: 797 [17:40:14]Content-Type: application/json [17:40:14] [17:40:14]POST finish read [17:40:14]Found Content-Length = 797 [17:40:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:14]execute_script... [17:40: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)952088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A91365", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:14]POST & json_proto [17:40:14]process_json_proto [17:40:14]json parsed OK: [17:40:14]protocol is kg_v1.0 [17:40:14]action value=close_receipt [17:40:14]process_action close_receipt [17:40:14]cmd_close_receipt [17:40:14]MH_GetDate [17:40:14]Write to MH i2c: F0 00 00 67 00 56 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: F0 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: F0 09 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: F0 09 00 67 00 00 7F CC 1F 67 74 2C AD 66 E3 [17:40:14]GetLastDocTimeStamp 1730137085 [17:40:14]current date 1730137215 [17:40:14]FM_GetShiftState [17:40:14]SAM_PROTO_GetShiftState [17:40:14]wFMCommunicate request_size=4 [17:40:14]MH_SAM_APDU [17:40:14]CAPDU: 80 13 01 00 [17:40:14]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [17:40:14]Write i2c OK [17:40:14]MH_I2C_Read... [17:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:14]Read from MH i2c: E2 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0E 00 [17:40:14]MH_I2C_Read... [17:40:14]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [17:40:14]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:40:14]wFMCommunicate OK [17:40:14]SAM_PROTO_GetShiftState done [17:40:14]FM_GetShiftState done [17:40:14]opened in 1730074113 [17:40:14]opened+sec_in_day 1730160513 [17:40:14]quantity*price = 0 [17:40:14]sum+1 = 1 [17:40:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 132 28.10.2024 17:40 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 91365 ФМ: 0000000000874662 ФД: 72604 ФПД: 139443616414411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174015&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72604&fm=139443616414411&tin=02508201610067®Number=0000000000091644&sum=0 [17:40:15]StoreToDocumentArchive [17:40:15]shift 554 fd 72604 [17:40:15]save to /storage/0554/doc_00072604 [17:40:15]save last doc name /storage/0554/doc_00072604 to /storage/kkm_last_doc_name [17:40:15]save OK [17:40:15]Clear old archive folders... [17:40:15]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:40:15]tlvbuf is 00A4F130 [17:40:15]SAM_PROTO_ClearQueue [17:40:15]wFMCommunicate request_size=4 [17:40:15]MH_SAM_APDU [17:40:15]CAPDU: 80 09 00 00 [17:40:15]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [17:40:15]Write i2c OK [17:40:15]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [17:40:16]RAPDU: 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_ClearQueue done [17:40:16]KKMCreateOFDPacket [17:40:16]OFDProtocolAddRootSTLVToBuf [17:40:16]FM_MakeSignedData [17:40:16]FM_MakeSignedData [17:40:16]SAM_PROTO_SignData [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 0D 01 02 [17:40:16]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:40:16]RAPDU: 90 00 [17:40:16]wFMCommunicate OK [17:40:16]wFMCommunicate request_size=255 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 84 00 00 00 F4 03 04 00 7F CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1B 01 00 35 04 06 00 [17:40:16]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7F CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1B 01 00 35 04 06 00 00 00 80 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:40:16]RAPDU: 90 00 [17:40:16]wFMCommunicate OK [17:40:16]wFMCommunicate request_size=11 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 0D 02 02 06 7E D2 BF 38 FA CB [17:40:16]Write to MH i2c: E2 0E 00 78 00 80 0D 02 02 06 00 7E D2 BF 38 FA CB 00 00 0A [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:40:16]RAPDU: 90 00 [17:40:16]wFMCommunicate OK [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 0D 03 02 [17:40:16]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0B 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 0B 00 79 00 00 73 D7 54 02 76 6F 2F BF 90 00 68 [17:40:16]RAPDU: 73 D7 54 02 76 6F 2F BF 90 00 [17:40:16]wFMCommunicate OK [17:40:16]SAM_PROTO_SignData done [17:40:16]FM_MakeSignedData done [17:40:16]CreateOFDProtocolMessage [17:40:16]wFMCommunicate request_size=4 [17:40:16]MH_SAM_APDU [17:40:16]CAPDU: 80 11 00 00 [17:40:16]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:16]Read from MH i2c: E2 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [17:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:40:16]wFMCommunicate OK [17:40:16]CreateOFDProtocolMessage done [17:40:16]OFDSenderStorePacket 72604 [17:40:16]StoreOFDPacket docnum=72604 [17:40:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 10 ED 08 01 0B 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7F CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1B 01 00 35 04 06 00 7E D2 BF 38 FA CB 73 D7 54 02 76 6F 2F BF [17:40:16]CheckFolder [17:40:16]dirname=/storage/ofd_packets [17:40:16]CheckFolder done [17:40:16]ProducePacketName [17:40:16]name=ofd_packets/00072604 [17:40:16]NVStorageSaveData ofd_packets/00072604 [17:40:16]File name is /storage/ofd_packets/00072604 [17:40:16]Write 302 bytes [17:40:16]NVStorageSaveData done [17:40:16]OFDSenderStorePacket done [17:40:16]KKMCreateOFDPacket done [17:40:16]NVStorageSaveData kkm_last_timestamp [17:40:16]File name is /storage/kkm_last_timestamp [17:40:16]Write 4 bytes [17:40:16]NVStorageSaveData done [17:40:16]OFD Sender: Processing packet 72604 [packets to send 274, broken 273] [17:40:16]ProducePacketName [17:40:16]name=ofd_packets/00072604 [17:40:16]OFD Sender: To server: pG, [17:40:16]CommunicateWithHost lk.salyk.kg:30040 [17:40:16]ConnectInit lk.salyk.kg [17:40:16]ExternCall_PrintAddStr [17:40:16]wPrintStart [17:40:16]Write to MH i2c: 01 00 00 7B 00 7B [17:40:16]Write i2c OK [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: 01 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: 01 07 00 [17:40:16]MH_I2C_Read... [17:40:16]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [17:40:16]RasterBufferAndPrint [17:40:16]line Счет N : (1)952088 [17:40:16]line ИНН: 02508201610067 [17:40:16]line Контрольно-Кассовый Чек [17:40:16]line ПРОДАЖА [17:40:16]line ТРК (МРК, ГНК) : 22 [17:40:16]line Товар: 2710194210 [17:40:16]line ДТ(л)-К-5 [17:40:16]line 50.000 * 0.00 [17:40:16]line = 0.00 [17:40:16]line НДС 12% НСП 1% [17:40:16]line > о реализуемом товаре [17:40:16]line ИТОГО: 0.00 [17:40:16]line НСП 1% : 0.00 [17:40:16]line НДС 12% : 0.00 [17:40:16]line Наличными: 0.00 [17:40:16]line Безнал.: 0.00 [17:40:16]line Место: АЗС № 113 "Партнер Нефть" [17:40:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:40:16]line СНО: Общий режим [17:40:16]line Чек 132 28.10.2024 17:40 [17:40:16]line Смена: 554 ФФД: 1.0 [17:40:16]line ЗНМ: 0300000087 [17:40:16]line РНМ: 0000000000091644 [17:40:16]line Версия ККМ: 001 [17:40:16]line Талоны: Топливная Карта [17:40:16]line 91365 [17:40:16]line ФМ: 0000000000874662 [17:40:16]line ФД: 72604 [17:40:16]line ФПД: 139443616414411 [17:40:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174015&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72604&fm=139443616414411&tin=02508201610067®Number=0000000000091644&sum=0 [17:40:16]written 0, free lines is 4095 [17:40:17]Write to MH i2c: 01 00 00 A5 00 A5 [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: 01 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: 01 07 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E4 0C 9C [17:40:17]RasterBufferAndPrint [17:40:17]line [17:40:17]line [17:40:17]line [17:40:17]line [17:40:17]line [17:40:17]written 0, free lines is 3306 [17:40:17]MH_Cut [17:40:17]Write to MH i2c: D1 01 00 AC 00 01 7E [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: D1 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: D1 01 00 [17:40:17]MH_I2C_Read... [17:40:17]Read from MH i2c: D1 01 00 AC 00 00 7D [17:40:17]Write to MH i2c: 01 00 00 AD 00 AD [17:40:17]Write i2c OK [17:40:17]MH_I2C_Read... [17:40:17]Connected sock=11 [17:40:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 10 ED 08 01 0B 44 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 7F CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9C 1B 01 00 35 04 06 00 7E D2 BF 38 FA CB 73 D7 54 02 76 6F 2F BF [17:40:18]*** Cut start [17:40:18]*** Partial cut [17:40:18]*** CUTSNS_PIN = 1 [17:40:18]*** CUTSNS_PIN = 0 [17:40:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 58 F2 47 00 06 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 34 36 36 32 10 04 04 00 9C 1B 01 00 F4 03 04 00 3E 77 1F 67 B6 04 01 00 00 E6 19 D2 75 05 77 CD 36 [17:40:18]CommunicateWithHost err = 0 [17:40:18]CheckOFDResponse [17:40:18]1017 (14) - 77093643461234 [17:40:18]1041 (16) - 0000000000874662 [17:40:18]1040 (4) - 72604 [17:40:18]1012 (4) - 28.10.2024 11:36 [17:40:18]1206 (1) - 0 [17:40:18]OFD Sender: Remove packet 72604 [17:40:18]ProducePacketName [17:40:18]name=ofd_packets/00072604 [17:40:18]NVStorageDeleteData [17:40:18]*** Brake cut motor [17:40:18]Read from MH i2c: 01 [17:40:18]MH_I2C_Read... [17:40:18]*** Stop cut motor [17:40:18]*** Cut end [17:40:18]Read from MH i2c: 01 07 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [17:40:18]process_action close_receipt done [17:40:18]requested_data is exist [17:40:18]produce_requested_data [17:40:18]requested_item fm.sn is exist - process it [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 11 00 00 [17:40:18]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [17:40:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:40:18]wFMCommunicate OK [17:40:18]requested_item fd.num is exist - process it [17:40:18]SAM_PROTO_GetFieldsCounters [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 13 00 00 [17:40:18]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]OFD Sender: No OFD packet to send [17:40:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 62 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 BC [17:40: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9C 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:18]wFMCommunicate OK [17:40:18]SAM_PROTO_GetFieldsCounters done [17:40:18]requested_item shift.num is exist - process it [17:40:18]requested_item shift.opened is exist - process it [17:40:18]req_shift_opened [17:40:18]FM_GetShiftState [17:40:18]SAM_PROTO_GetShiftState [17:40:18]wFMCommunicate request_size=4 [17:40:18]MH_SAM_APDU [17:40:18]CAPDU: 80 13 01 00 [17:40:18]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [17:40:18]Write i2c OK [17:40:18]MH_I2C_Read... [17:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:18]Read from MH i2c: E2 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 0E 00 [17:40:18]MH_I2C_Read... [17:40:18]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [17:40:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:40:18]wFMCommunicate OK [17:40:18]SAM_PROTO_GetShiftState done [17:40:18]FM_GetShiftState done [17:40:18]req_shift_opened done [17:40:18]requested_item shift.open_date is exist - process it [17:40:18]req_shift_open_date [17:40:18]req_shift_open_date done [17:40:18]produce_requested_data done [17:40:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72604,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:40:18]process_action_free close_receipt [17:40:18]json_value_free [17:40:18]json_value_free done [17:40:18]process_json_proto returns [17:40:18]Send response to host [17:40:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72604,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:40:18]free response buf [17:40:18]execute_script done [17:40:18]execute_script returns [17:40:18]free content buf [17:40:18]Sock 8.Close socket [17:40:18]Sock 8.Thread stoped [17:40:23]OFD Sender: No OFD packet to send [17:40:28]OFD Sender: No OFD packet to send [17:40:33]OFD Sender: No OFD packet to send [17:40:38]OFD Sender: No OFD packet to send [17:40:42]recv_with_timeout no data received [17:40:43]OFD Sender: No OFD packet to send [17:40:48]OFD Sender: No OFD packet to send [17:40:53]OFD Sender: No OFD packet to send [17:40:58]OFD Sender: No OFD packet to send [17:41:03]OFD Sender: No OFD packet to send [17:41:08]OFD Sender: No OFD packet to send [17:41:10]recv_with_timeout no data received [17:41:13]OFD Sender: No OFD packet to send [17:41:18]OFD Sender: No OFD packet to send [17:41:23]OFD Sender: No OFD packet to send [17:41:28]OFD Sender: No OFD packet to send [17:41:33]OFD Sender: No OFD packet to send [17:41:38]OFD Sender: No OFD packet to send [17:41:43]OFD Sender: No OFD packet to send [17:41:47]accept exits with 9 [17:41:47]New connection [17:41:47]New thread 3067219300 created [17:41:47]Thread 3067075940 joined [17:41:47]Waiting for new connection... [17:41:47] Sock 9.Parse request [17:41:47]Sock 9.Check first char [17:41:47]Sock 9.First char is OK [17:41:47]request: POST /json_proto HTTP/1.0 [17:41:47]Method: POST [17:41:47]URL: /json_proto [17:41:47]Method is POST - this is cgi request [17:41:47]url: /json_proto [17:41:47]query_string will be loaded in cgi processing [17:41:47]execute_cgi json_proto POST (null) [17:41:47]execute_cgi path=json_proto method=POST [17:41:47]POST find Content-Length [17:41:47]Host: 172.17.43.195:8080 [17:41:47]Content-Length: 759 [17:41:47]Content-Type: application/json [17:41:47] [17:41:47]POST finish read [17:41:47]Found Content-Length = 759 [17:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101192", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:47]execute_script... [17:41:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101192", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:47]POST & json_proto [17:41:47]process_json_proto [17:41:47]json parsed OK: [17:41:47]protocol is kg_v1.0 [17:41:47]action value=close_receipt [17:41:47]process_action close_receipt [17:41:47]cmd_close_receipt [17:41:47]MH_GetDate [17:41:47]Write to MH i2c: F0 00 00 B1 00 A0 [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 09 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: F0 09 00 B1 00 00 DC CC 1F 67 74 2C AD 66 8A [17:41:47]GetLastDocTimeStamp 1730137215 [17:41:47]current date 1730137308 [17:41:47]FM_GetShiftState [17:41:47]SAM_PROTO_GetShiftState [17:41:47]wFMCommunicate request_size=4 [17:41:47]MH_SAM_APDU [17:41:47]CAPDU: 80 13 01 00 [17:41:47]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:41:47]Write i2c OK [17:41:47]MH_I2C_Read... [17:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:47]Read from MH i2c: E2 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 [17:41:47]MH_I2C_Read... [17:41:47]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [17:41:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:41:47]wFMCommunicate OK [17:41:47]SAM_PROTO_GetShiftState done [17:41:47]FM_GetShiftState done [17:41:47]opened in 1730074113 [17:41:47]opened+sec_in_day 1730160513 [17:41:47]quantity*price = 0 [17:41:47]sum+1 = 1 [17:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 133 28.10.2024 17:41 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101192 ФМ: 0000000000874662 ФД: 72605 ФПД: 137507137140130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174148&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72605&fm=137507137140130&tin=02508201610067®Number=0000000000091644&sum=0 [17:41:48]StoreToDocumentArchive [17:41:48]shift 554 fd 72605 [17:41:48]save to /storage/0554/doc_00072605 [17:41:48]save last doc name /storage/0554/doc_00072605 to /storage/kkm_last_doc_name [17:41:48]save OK [17:41:48]Clear old archive folders... [17:41:49]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:41:49]tlvbuf is 009DCEE0 [17:41:49]SAM_PROTO_ClearQueue [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 09 00 00 [17:41:49]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]SAM_PROTO_ClearQueue done [17:41:49]KKMCreateOFDPacket [17:41:49]OFDProtocolAddRootSTLVToBuf [17:41:49]FM_MakeSignedData [17:41:49]FM_MakeSignedData [17:41:49]SAM_PROTO_SignData [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 01 02 [17:41:49]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=255 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 DC CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1B 01 00 35 04 06 00 [17:41:49]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 DC CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1B 01 00 35 04 06 00 00 00 84 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=11 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 02 02 06 7D 0F E0 10 35 A2 [17:41:49]Write to MH i2c: E2 0E 00 C2 00 80 0D 02 02 06 00 7D 0F E0 10 35 A2 00 00 9B [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:41:49]RAPDU: 90 00 [17:41:49]wFMCommunicate OK [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 0D 03 02 [17:41:49]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0B 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 0B 00 C3 00 00 09 BD 55 23 06 0B AB 6B 90 00 A4 [17:41:49]RAPDU: 09 BD 55 23 06 0B AB 6B 90 00 [17:41:49]wFMCommunicate OK [17:41:49]SAM_PROTO_SignData done [17:41:49]FM_MakeSignedData done [17:41:49]CreateOFDProtocolMessage [17:41:49]wFMCommunicate request_size=4 [17:41:49]MH_SAM_APDU [17:41:49]CAPDU: 80 11 00 00 [17:41:49]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:49]Read from MH i2c: E2 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 17 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [17:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:41:49]wFMCommunicate OK [17:41:49]CreateOFDProtocolMessage done [17:41:49]OFDSenderStorePacket 72605 [17:41:49]StoreOFDPacket docnum=72605 [17:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0D E2 08 01 FF DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 DC CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1B 01 00 35 04 06 00 7D 0F E0 10 35 A2 09 BD 55 23 06 0B AB 6B [17:41:49]CheckFolder [17:41:49]dirname=/storage/ofd_packets [17:41:49]CheckFolder done [17:41:49]ProducePacketName [17:41:49]name=ofd_packets/00072605 [17:41:49]NVStorageSaveData ofd_packets/00072605 [17:41:49]File name is /storage/ofd_packets/00072605 [17:41:49]Write 302 bytes [17:41:49]NVStorageSaveData done [17:41:49]OFDSenderStorePacket done [17:41:49]KKMCreateOFDPacket done [17:41:49]NVStorageSaveData kkm_last_timestamp [17:41:49]File name is /storage/kkm_last_timestamp [17:41:49]Write 4 bytes [17:41:49]NVStorageSaveData done [17:41:49]ExternCall_PrintAddStr [17:41:49]wPrintStart [17:41:49]Write to MH i2c: 01 00 00 C5 00 C5 [17:41:49]Write i2c OK [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 [17:41:49]MH_I2C_Read... [17:41:49]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [17:41:49]RasterBufferAndPrint [17:41:49]line Счет N : (1)952090 [17:41:49]line ИНН: 02508201610067 [17:41:49]line Контрольно-Кассовый Чек [17:41:49]line ПРОДАЖА [17:41:49]line ТРК (МРК, ГНК) : 33 [17:41:49]line Товар: 2710194210 [17:41:49]line ДТ(л)-К-5 [17:41:49]line 20.000 * 0.00 [17:41:49]line = 0.00 [17:41:49]line НДС 12% НСП 1% [17:41:49]line > о реализуемом товаре [17:41:49]line ИТОГО: 0.00 [17:41:49]line НСП 1% : 0.00 [17:41:49]line НДС 12% : 0.00 [17:41:49]line Наличными: 0.00 [17:41:49]line Безнал.: 0.00 [17:41:49]line Место: АЗС № 113 "Партнер Нефть" [17:41:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:41:49]line СНО: Общий режим [17:41:49]line Чек 133 28.10.2024 17:41 [17:41:49]line Смена: 554 ФФД: 1.0 [17:41:49]line ЗНМ: 0300000087 [17:41:49]line РНМ: 0000000000091644 [17:41:49]line Версия ККМ: 001 [17:41:49]line Талоны: ТК ГПНА Online [17:41:49]line 30101192 [17:41:49]line ФМ: 0000000000874662 [17:41:49]line ФД: 72605 [17:41:49]line ФПД: 137507137140130 [17:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T174148&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72605&fm=137507137140130&tin=02508201610067®Number=0000000000091644&sum=0 [17:41:49]OFD Sender: Processing packet 72605 [packets to send 274, broken 273] [17:41:49]ProducePacketName [17:41:49]name=ofd_packets/00072605 [17:41:49]OFD Sender: To server: pG, [17:41:49]CommunicateWithHost lk.salyk.kg:30040 [17:41:49]ConnectInit lk.salyk.kg [17:41:49]written 0, free lines is 4095 [17:41:50]Write to MH i2c: 01 00 00 EF 00 EF [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 07 00 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 DE 0C E0 [17:41:50]RasterBufferAndPrint [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]line [17:41:50]written 0, free lines is 3300 [17:41:50]MH_Cut [17:41:50]Write to MH i2c: D1 01 00 F6 00 01 C8 [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 01 00 [17:41:50]MH_I2C_Read... [17:41:50]Read from MH i2c: D1 01 00 F6 00 00 C7 [17:41:50]Write to MH i2c: 01 00 00 F7 00 F7 [17:41:50]Write i2c OK [17:41:50]MH_I2C_Read... [17:41:51]*** Cut start [17:41:51]*** Partial cut [17:41:51]*** CUTSNS_PIN = 1 [17:41:51]*** CUTSNS_PIN = 0 [17:41:51]*** Brake cut motor [17:41:51]Read from MH i2c: 01 [17:41:51]MH_I2C_Read... [17:41:51]*** Stop cut motor [17:41:51]*** Cut end [17:41:51]Read from MH i2c: 01 07 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [17:41:51]process_action close_receipt done [17:41:51]requested_data is exist [17:41:51]produce_requested_data [17:41:51]requested_item fm.sn is exist - process it [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 11 00 00 [17:41:51]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 17 00 [17:41:51]MH_I2C_Read... [17:41:51]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 34 36 36 32 90 00 C6 [17:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:41:51]wFMCommunicate OK [17:41:51]requested_item fd.num is exist - process it [17:41:51]SAM_PROTO_GetFieldsCounters [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 00 00 [17:41:51]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 62 00 [17:41:51]MH_I2C_Read... [17:41:51]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9D 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetFieldsCounters done [17:41:51]requested_item shift.num is exist - process it [17:41:51]requested_item shift.opened is exist - process it [17:41:51]req_shift_opened [17:41:51]FM_GetShiftState [17:41:51]SAM_PROTO_GetShiftState [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 01 00 [17:41:51]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [17:41:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetShiftState done [17:41:51]FM_GetShiftState done [17:41:51]req_shift_opened done [17:41:51]requested_item shift.open_date is exist - process it [17:41:51]req_shift_open_date [17:41:51]req_shift_open_date done [17:41:51]produce_requested_data done [17:41:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72605,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:41:51]process_action_free close_receipt [17:41:51]json_value_free [17:41:51]json_value_free done [17:41:51]process_json_proto returns [17:41:51]Send response to host [17:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72605,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:41:51]free response buf [17:41:51]execute_script done [17:41:51]execute_script returns [17:41:51]free content buf [17:41:51]Sock 9.Close socket [17:41:51]Sock 9.Thread stoped [17:41:52]Connected sock=10 [17:41:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 0D E2 08 01 FF DD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 85 00 00 00 F4 03 04 00 DC CC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1B 01 00 35 04 06 00 7D 0F E0 10 35 A2 09 BD 55 23 06 0B AB 6B [17:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D5 0D 47 00 EE 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9D 1B 01 00 F4 03 04 00 9D 77 1F 67 B6 04 01 00 00 E6 E2 67 20 91 72 A3 01 [17:41:53]CommunicateWithHost err = 0 [17:41:53]CheckOFDResponse [17:41:53]1017 (14) - 77093643461234 [17:41:53]1041 (16) - 0000000000874662 [17:41:53]1040 (4) - 72605 [17:41:53]1012 (4) - 28.10.2024 11:38 [17:41:53]1206 (1) - 0 [17:41:53]OFD Sender: Remove packet 72605 [17:41:53]ProducePacketName [17:41:53]name=ofd_packets/00072605 [17:41:53]NVStorageDeleteData [17:41:53]OFD Sender: No OFD packet to send [17:41:58]recv_with_timeout no data received [17:41:58]OFD Sender: No OFD packet to send [17:42:03]OFD Sender: No OFD packet to send [17:42:08]OFD Sender: No OFD packet to send [17:42:13]OFD Sender: No OFD packet to send [17:42:15]recv_with_timeout no data received [17:42:18]OFD Sender: No OFD packet to send [17:42:23]OFD Sender: No OFD packet to send [17:42:28]OFD Sender: No OFD packet to send [17:42:33]OFD Sender: No OFD packet to send [17:42:38]OFD Sender: No OFD packet to send [17:42:43]OFD Sender: No OFD packet to send [17:42:48]OFD Sender: No OFD packet to send [17:42:53]OFD Sender: No OFD packet to send [17:42:58]OFD Sender: No OFD packet to send [17:43:03]OFD Sender: No OFD packet to send [17:43:08]OFD Sender: No OFD packet to send [17:43:13]OFD Sender: No OFD packet to send [17:43:18]OFD Sender: No OFD packet to send [17:43:23]OFD Sender: No OFD packet to send [17:43:28]OFD Sender: No OFD packet to send [17:43:33]OFD Sender: No OFD packet to send [17:43:38]OFD Sender: No OFD packet to send [17:43:43]OFD Sender: No OFD packet to send [17:43:48]OFD Sender: No OFD packet to send [17:43:53]OFD Sender: No OFD packet to send [17:43:58]OFD Sender: No OFD packet to send [17:44:03]OFD Sender: No OFD packet to send [17:44:08]OFD Sender: No OFD packet to send [17:44:13]OFD Sender: No OFD packet to send [17:44:18]OFD Sender: No OFD packet to send [17:44:23]OFD Sender: No OFD packet to send [17:44:28]OFD Sender: No OFD packet to send [17:44:33]OFD Sender: No OFD packet to send [17:44:38]OFD Sender: No OFD packet to send [17:44:43]OFD Sender: No OFD packet to send [17:44:48]OFD Sender: No OFD packet to send [17:44:53]OFD Sender: No OFD packet to send [17:44:58]OFD Sender: No OFD packet to send [17:45: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:39]recv_with_timeout no data received [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:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:29]recv_with_timeout no data received [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:29]recv_with_timeout no data received [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:32]recv_with_timeout no data received [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:37]accept exits with 8 [17:50:37]New connection [17:50:37]New thread 3067075940 created [17:50:37]Thread 3067219300 joined [17:50:37]Waiting for new connection... [17:50:37] Sock 8.Parse request [17:50:37]Sock 8.Check first char [17:50:37]Sock 8.First char is OK [17:50:37]request: POST /json_proto HTTP/1.0 [17:50:37]Method: POST [17:50:37]URL: /json_proto [17:50:37]Method is POST - this is cgi request [17:50:37]url: /json_proto [17:50:37]query_string will be loaded in cgi processing [17:50:37]execute_cgi json_proto POST (null) [17:50:37]execute_cgi path=json_proto method=POST [17:50:37]POST find Content-Length [17:50:37]Host: 172.17.43.195:8080 [17:50:37]Content-Length: 808 [17:50:37]Content-Type: application/json [17:50:37] [17:50:37]POST finish read [17:50:37]Found Content-Length = 808 [17:50:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:37]execute_script... [17:50: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)952091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:50:37]POST & json_proto [17:50:37]process_json_proto [17:50:37]json parsed OK: [17:50:37]protocol is kg_v1.0 [17:50:37]action value=close_receipt [17:50:37]process_action close_receipt [17:50:37]cmd_close_receipt [17:50:37]MH_GetDate [17:50:37]Write to MH i2c: F0 00 00 FB 00 EA [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: F0 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: F0 09 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: F0 09 00 FB 00 00 EE CE 1F 67 74 2C AD 66 E8 [17:50:37]GetLastDocTimeStamp 1730137308 [17:50:37]current date 1730137838 [17:50:37]FM_GetShiftState [17:50:37]SAM_PROTO_GetShiftState [17:50:37]wFMCommunicate request_size=4 [17:50:37]MH_SAM_APDU [17:50:37]CAPDU: 80 13 01 00 [17:50:37]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [17:50:37]Write i2c OK [17:50:37]MH_I2C_Read... [17:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:37]Read from MH i2c: E2 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: E2 0E 00 [17:50:37]MH_I2C_Read... [17:50:37]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [17:50:37]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:50:37]wFMCommunicate OK [17:50:37]SAM_PROTO_GetShiftState done [17:50:37]FM_GetShiftState done [17:50:37]opened in 1730074113 [17:50:37]opened+sec_in_day 1730160513 [17:50:37]quantity*price = 400050 [17:50:37]sum+1 = 400051 [17:50:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 134 28.10.2024 17:50 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72606 ФПД: 269990109672151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175038&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72606&fm=269990109672151&tin=02508201610067®Number=0000000000091644&sum=400050 [17:50:38]StoreToDocumentArchive [17:50:38]shift 554 fd 72606 [17:50:38]save to /storage/0554/doc_00072606 [17:50:38]save last doc name /storage/0554/doc_00072606 to /storage/kkm_last_doc_name [17:50:38]save OK [17:50:38]Clear old archive folders... [17:50:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:50:38]tlvbuf is 009DBFE0 [17:50:38]SAM_PROTO_ClearQueue [17:50:38]wFMCommunicate request_size=4 [17:50:38]MH_SAM_APDU [17:50:38]CAPDU: 80 09 00 00 [17:50:38]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [17:50:38]Write i2c OK [17:50:38]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_ClearQueue done [17:50:39]KKMCreateOFDPacket [17:50:39]OFDProtocolAddRootSTLVToBuf [17:50:39]FM_MakeSignedData [17:50:39]FM_MakeSignedData [17:50:39]SAM_PROTO_SignData [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 01 02 [17:50:39]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=255 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EE CE 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1B 01 00 35 04 06 00 [17:50:39]Write to MH i2c: E2 02 01 0B 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EE CE 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1B 01 00 35 04 06 00 00 00 28 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=11 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 02 02 06 F5 8D F8 94 72 D7 [17:50:39]Write to MH i2c: E2 0E 00 0C 01 80 0D 02 02 06 00 F5 8D F8 94 72 D7 00 00 EA [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:50:39]RAPDU: 90 00 [17:50:39]wFMCommunicate OK [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 0D 03 02 [17:50:39]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0B 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 0B 00 0D 01 00 E1 63 45 10 08 35 D0 43 90 00 73 [17:50:39]RAPDU: E1 63 45 10 08 35 D0 43 90 00 [17:50:39]wFMCommunicate OK [17:50:39]SAM_PROTO_SignData done [17:50:39]FM_MakeSignedData done [17:50:39]CreateOFDProtocolMessage [17:50:39]wFMCommunicate request_size=4 [17:50:39]MH_SAM_APDU [17:50:39]CAPDU: 80 11 00 00 [17:50:39]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:39]Read from MH i2c: E2 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: E2 17 00 [17:50:39]MH_I2C_Read... [17:50:39]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 34 36 36 32 90 00 DD [17:50:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:50:39]wFMCommunicate OK [17:50:39]CreateOFDProtocolMessage done [17:50:39]OFDSenderStorePacket 72606 [17:50:39]StoreOFDPacket docnum=72606 [17:50:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 BB F1 08 01 5C 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EE CE 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1B 01 00 35 04 06 00 F5 8D F8 94 72 D7 E1 63 45 10 08 35 D0 43 [17:50:39]CheckFolder [17:50:39]dirname=/storage/ofd_packets [17:50:39]CheckFolder done [17:50:39]ProducePacketName [17:50:39]name=ofd_packets/00072606 [17:50:39]NVStorageSaveData ofd_packets/00072606 [17:50:39]File name is /storage/ofd_packets/00072606 [17:50:39]Write 302 bytes [17:50:39]NVStorageSaveData done [17:50:39]OFDSenderStorePacket done [17:50:39]KKMCreateOFDPacket done [17:50:39]NVStorageSaveData kkm_last_timestamp [17:50:39]File name is /storage/kkm_last_timestamp [17:50:39]Write 4 bytes [17:50:39]NVStorageSaveData done [17:50:39]ExternCall_PrintAddStr [17:50:39]wPrintStart [17:50:39]Write to MH i2c: 01 00 00 0F 01 10 [17:50:39]Write i2c OK [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 07 00 [17:50:39]MH_I2C_Read... [17:50:39]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [17:50:39]RasterBufferAndPrint [17:50:39]line Счет N : (1)952091 [17:50:39]line ИНН: 02508201610067 [17:50:39]line Контрольно-Кассовый Чек [17:50:39]line ПРОДАЖА [17:50:39]line ТРК (МРК, ГНК) : 33 [17:50:39]line Товар: 2710194210 [17:50:39]line ДТ(л)-К-5 [17:50:39]line 52.500 * 76.20 [17:50:39]line = 4000.50 [17:50:39]line НДС 12% НСП 1% [17:50:39]line > о реализуемом товаре [17:50:39]line ИТОГО: 4000.50 [17:50:39]line НСП 1% : 35.40 [17:50:39]line НДС 12% : 424.83 [17:50:39]line Наличными: 0.00 [17:50:39]line Безнал.: 4000.50 [17:50:39]line Место: АЗС № 113 "Партнер Нефть" [17:50:39]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [17:50:39]line СНО: Общий режим [17:50:39]line Чек 134 28.10.2024 17:50 [17:50:39]line Смена: 554 ФФД: 1.0 [17:50:39]line ЗНМ: 0300000087 [17:50:39]line РНМ: 0000000000091644 [17:50:39]line Версия ККМ: 001 [17:50:39]line Платежная система: O! деньги [17:50:39]line ФМ: 0000000000874662 [17:50:39]line ФД: 72606 [17:50:39]line ФПД: 269990109672151 [17:50:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T175038&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72606&fm=269990109672151&tin=02508201610067®Number=0000000000091644&sum=400050 [17:50:39]written 0, free lines is 4095 [17:50:39]OFD Sender: Processing packet 72606 [packets to send 274, broken 273] [17:50:39]ProducePacketName [17:50:39]name=ofd_packets/00072606 [17:50:39]OFD Sender: To server: pG, [17:50:39]CommunicateWithHost lk.salyk.kg:30040 [17:50:39]ConnectInit lk.salyk.kg [17:50:40]Write to MH i2c: 01 00 00 39 01 3A [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 07 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: 01 07 00 39 01 00 00 00 00 00 EC 0C 39 [17:50:40]RasterBufferAndPrint [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]line [17:50:40]written 0, free lines is 3314 [17:50:40]MH_Cut [17:50:40]Write to MH i2c: D1 01 00 40 01 01 13 [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 01 00 [17:50:40]MH_I2C_Read... [17:50:40]Read from MH i2c: D1 01 00 40 01 00 12 [17:50:40]Write to MH i2c: 01 00 00 41 01 42 [17:50:40]Write i2c OK [17:50:40]MH_I2C_Read... [17:50:40]Connected sock=10 [17:50:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 BB F1 08 01 5C 23 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 EE CE 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1B 01 00 35 04 06 00 F5 8D F8 94 72 D7 E1 63 45 10 08 35 D0 43 [17:50:40]*** Cut start [17:50:40]*** Partial cut [17:50:40]*** CUTSNS_PIN = 1 [17:50:40]*** CUTSNS_PIN = 0 [17:50:41]*** Brake cut motor [17:50:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6D 89 47 00 E8 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9E 1B 01 00 F4 03 04 00 AC 79 1F 67 B6 04 01 00 00 F8 17 23 4E 51 5B 10 17 [17:50:41]CommunicateWithHost err = 0 [17:50:41]CheckOFDResponse [17:50:41]1017 (14) - 77093643461234 [17:50:41]1041 (16) - 0000000000874662 [17:50:41]1040 (4) - 72606 [17:50:41]1012 (4) - 28.10.2024 11:46 [17:50:41]1206 (1) - 0 [17:50:41]OFD Sender: Remove packet 72606 [17:50:41]ProducePacketName [17:50:41]name=ofd_packets/00072606 [17:50:41]NVStorageDeleteData [17:50:41]Read from MH i2c: 01 [17:50:41]MH_I2C_Read... [17:50:41]*** Stop cut motor [17:50:41]*** Cut end [17:50:41]Read from MH i2c: 01 07 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: 01 07 00 41 01 00 00 00 00 00 FF 0F 57 [17:50:41]process_action close_receipt done [17:50:41]requested_data is exist [17:50:41]produce_requested_data [17:50:41]requested_item fm.sn is exist - process it [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 11 00 00 [17:50:41]Write to MH i2c: E2 08 00 42 01 80 11 00 00 00 00 00 00 BD [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 17 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 17 00 42 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 11 [17:50:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [17:50:41]wFMCommunicate OK [17:50:41]requested_item fd.num is exist - process it [17:50:41]SAM_PROTO_GetFieldsCounters [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 13 00 00 [17:50:41]Write to MH i2c: E2 08 00 43 01 80 13 00 00 00 00 00 00 C0 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 62 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 62 00 43 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [17:50: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9E 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:50:41]wFMCommunicate OK [17:50:41]SAM_PROTO_GetFieldsCounters done [17:50:41]requested_item shift.num is exist - process it [17:50:41]requested_item shift.opened is exist - process it [17:50:41]req_shift_opened [17:50:41]FM_GetShiftState [17:50:41]SAM_PROTO_GetShiftState [17:50:41]wFMCommunicate request_size=4 [17:50:41]MH_SAM_APDU [17:50:41]CAPDU: 80 13 01 00 [17:50:41]Write to MH i2c: E2 08 00 44 01 80 13 01 00 00 00 00 00 C2 [17:50:41]Write i2c OK [17:50:41]MH_I2C_Read... [17:50:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:50:41]Read from MH i2c: E2 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 0E 00 [17:50:41]MH_I2C_Read... [17:50:41]Read from MH i2c: E2 0E 00 44 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2A [17:50:41]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [17:50:41]wFMCommunicate OK [17:50:41]SAM_PROTO_GetShiftState done [17:50:41]FM_GetShiftState done [17:50:41]req_shift_opened done [17:50:41]requested_item shift.open_date is exist - process it [17:50:41]req_shift_open_date [17:50:41]req_shift_open_date done [17:50:41]produce_requested_data done [17:50:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72606,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [17:50:41]process_action_free close_receipt [17:50:41]json_value_free [17:50:41]json_value_free done [17:50:41]process_json_proto returns [17:50:41]Send response to host [17:50:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72606,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [17:50:41]free response buf [17:50:41]execute_script done [17:50:41]execute_script returns [17:50:41]free content buf [17:50:41]Sock 8.Close socket [17:50:41]Sock 8.Thread stoped [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:07]recv_with_timeout no data received [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:28]recv_with_timeout no data received [17:51:31]OFD Sender: No OFD packet to send [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:14]recv_with_timeout no data received [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [17:54:39]recv_with_timeout no data received [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:20]recv_with_timeout no data received [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:38]recv_with_timeout no data received [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:58:59]recv_with_timeout no data received [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:04]recv_with_timeout no data received [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:29]recv_with_timeout no data received [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:48]recv_with_timeout no data received [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:00]recv_with_timeout no data received [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:01:59]recv_with_timeout no data received [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:29]recv_with_timeout no data received [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:15]recv_with_timeout no data received [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:39]recv_with_timeout no data received [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:49]recv_with_timeout no data received [18:04:53]OFD Sender: No OFD packet to send [18:04:58]OFD Sender: No OFD packet to send [18:05:03]OFD Sender: No OFD packet to send [18:05:08]OFD Sender: No OFD packet to send [18:05:13]OFD Sender: No OFD packet to send [18:05:18]OFD Sender: No OFD packet to send [18:05:23]OFD Sender: No OFD packet to send [18:05:28]OFD Sender: No OFD packet to send [18:05:29]recv_with_timeout no data received [18:05:33]OFD Sender: No OFD packet to send [18:05:38]OFD Sender: No OFD packet to send [18:05:43]OFD Sender: No OFD packet to send [18:05:48]OFD Sender: No OFD packet to send [18:05:48]recv_with_timeout no data received [18:05:53]OFD Sender: No OFD packet to send [18:05:58]OFD Sender: No OFD packet to send [18:06:03]OFD Sender: No OFD packet to send [18:06:08]OFD Sender: No OFD packet to send [18:06:13]OFD Sender: No OFD packet to send [18:06:18]OFD Sender: No OFD packet to send [18:06:23]OFD Sender: No OFD packet to send [18:06:28]OFD Sender: No OFD packet to send [18:06:33]OFD Sender: No OFD packet to send [18:06:37]recv_with_timeout no data received [18:06:38]OFD Sender: No OFD packet to send [18:06:43]OFD Sender: No OFD packet to send [18:06:48]OFD Sender: No OFD packet to send [18:06:53]OFD Sender: No OFD packet to send [18:06:58]OFD Sender: No OFD packet to send [18:07:03]OFD Sender: No OFD packet to send [18:07:08]OFD Sender: No OFD packet to send [18:07:13]OFD Sender: No OFD packet to send [18:07:18]OFD Sender: No OFD packet to send [18:07:23]OFD Sender: No OFD packet to send [18:07:26]recv_with_timeout no data received [18:07:28]OFD Sender: No OFD packet to send [18:07:33]OFD Sender: No OFD packet to send [18:07:38]OFD Sender: No OFD packet to send [18:07:43]OFD Sender: No OFD packet to send [18:07:48]OFD Sender: No OFD packet to send [18:07:53]OFD Sender: No OFD packet to send [18:07:58]OFD Sender: No OFD packet to send [18:08:03]OFD Sender: No OFD packet to send [18:08:08]OFD Sender: No OFD packet to send [18:08:13]OFD Sender: No OFD packet to send [18:08:18]OFD Sender: No OFD packet to send [18:08:23]OFD Sender: No OFD packet to send [18:08:28]OFD Sender: No OFD packet to send [18:08:33]OFD Sender: No OFD packet to send [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:45]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:02]recv_with_timeout no data received [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:29]recv_with_timeout no data received [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:40]recv_with_timeout no data received [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:12]recv_with_timeout no data received [18:16:14]OFD Sender: No OFD packet to send [18:16:19]OFD Sender: No OFD packet to send [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:30]recv_with_timeout no data received [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:40]recv_with_timeout no data received [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:11]recv_with_timeout no data received [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]recv_with_timeout no data received [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:28]accept exits with 9 [18:18:28]New connection [18:18:28]New thread 3067219300 created [18:18:28]Thread 3067075940 joined [18:18:28]Waiting for new connection... [18:18:28] Sock 9.Parse request [18:18:28]Sock 9.Check first char [18:18:28]Sock 9.First char is OK [18:18:28]request: POST /json_proto HTTP/1.0 [18:18:28]Method: POST [18:18:28]URL: /json_proto [18:18:28]Method is POST - this is cgi request [18:18:28]url: /json_proto [18:18:28]query_string will be loaded in cgi processing [18:18:28]execute_cgi json_proto POST (null) [18:18:28]execute_cgi path=json_proto method=POST [18:18:28]POST find Content-Length [18:18:28]Host: 172.17.43.195:8080 [18:18:28]Content-Length: 792 [18:18:28]Content-Type: application/json [18:18:28] [18:18:28]POST finish read [18:18:28]Found Content-Length = 792 [18:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:28]execute_script... [18:18: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)952095", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:28]POST & json_proto [18:18:28]process_json_proto [18:18:28]json parsed OK: [18:18:28]protocol is kg_v1.0 [18:18:28]action value=close_receipt [18:18:28]process_action close_receipt [18:18:28]cmd_close_receipt [18:18:28]MH_GetDate [18:18:28]Write to MH i2c: F0 00 00 45 01 35 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: F0 09 00 45 01 00 75 D5 1F 67 74 2C AD 66 C1 [18:18:28]GetLastDocTimeStamp 1730137838 [18:18:28]current date 1730139509 [18:18:28]FM_GetShiftState [18:18:28]SAM_PROTO_GetShiftState [18:18:28]wFMCommunicate request_size=4 [18:18:28]MH_SAM_APDU [18:18:28]CAPDU: 80 13 01 00 [18:18:28]Write to MH i2c: E2 08 00 46 01 80 13 01 00 00 00 00 00 C4 [18:18:28]Write i2c OK [18:18:28]MH_I2C_Read... [18:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:28]Read from MH i2c: E2 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 [18:18:28]MH_I2C_Read... [18:18:28]Read from MH i2c: E2 0E 00 46 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2C [18:18:28]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:18:28]wFMCommunicate OK [18:18:28]SAM_PROTO_GetShiftState done [18:18:28]FM_GetShiftState done [18:18:28]opened in 1730074113 [18:18:28]opened+sec_in_day 1730160513 [18:18:28]quantity*price = 0 [18:18:28]sum+1 = 1 [18:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 135 28.10.2024 18:18 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72607 ФПД: 29723637505852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181829&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72607&fm=29723637505852&tin=02508201610067®Number=0000000000091644&sum=0 [18:18:29]StoreToDocumentArchive [18:18:29]shift 554 fd 72607 [18:18:29]save to /storage/0554/doc_00072607 [18:18:29]save last doc name /storage/0554/doc_00072607 to /storage/kkm_last_doc_name [18:18:29]save OK [18:18:29]Clear old archive folders... [18:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:29]tlvbuf is 009D9F30 [18:18:29]SAM_PROTO_ClearQueue [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 09 00 00 [18:18:29]Write to MH i2c: E2 08 00 53 01 80 09 00 00 00 00 00 00 C6 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_ClearQueue done [18:18:29]KKMCreateOFDPacket [18:18:29]OFDProtocolAddRootSTLVToBuf [18:18:29]FM_MakeSignedData [18:18:29]FM_MakeSignedData [18:18:29]SAM_PROTO_SignData [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 01 02 [18:18:29]Write to MH i2c: E2 08 00 54 01 80 0D 01 02 00 00 00 00 CE [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=255 [18:18:29]MH_SAM_APDU [18:18: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 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 87 00 00 00 F4 03 04 00 75 D5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1B 01 00 35 04 06 00 1B [18:18:29]Write to MH i2c: E2 02 01 55 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 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 87 00 00 00 F4 03 04 00 75 D5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1B 01 00 35 04 06 00 1B 00 00 68 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]OFD Sender: No OFD packet to send [18:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=10 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 02 02 05 08 92 DA DF 3C [18:18:29]Write to MH i2c: E2 0D 00 56 01 80 0D 02 02 05 00 08 92 DA DF 3C 00 00 6A [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:18:29]RAPDU: 90 00 [18:18:29]wFMCommunicate OK [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 0D 03 02 [18:18:29]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0B 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 0B 00 57 01 00 2A 6F 69 27 7C F3 5B B0 90 00 77 [18:18:29]RAPDU: 2A 6F 69 27 7C F3 5B B0 90 00 [18:18:29]wFMCommunicate OK [18:18:29]SAM_PROTO_SignData done [18:18:29]FM_MakeSignedData done [18:18:29]CreateOFDProtocolMessage [18:18:29]wFMCommunicate request_size=4 [18:18:29]MH_SAM_APDU [18:18:29]CAPDU: 80 11 00 00 [18:18:29]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:29]Read from MH i2c: E2 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [18:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:18:29]wFMCommunicate OK [18:18:29]CreateOFDProtocolMessage done [18:18:29]OFDSenderStorePacket 72607 [18:18:29]StoreOFDPacket docnum=72607 [18:18:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F3 FA 07 01 FE 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 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 87 00 00 00 F4 03 04 00 75 D5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1B 01 00 35 04 06 00 1B 08 92 DA DF 3C 2A 6F 69 27 7C F3 5B B0 [18:18:29]CheckFolder [18:18:29]dirname=/storage/ofd_packets [18:18:29]CheckFolder done [18:18:29]ProducePacketName [18:18:29]name=ofd_packets/00072607 [18:18:29]NVStorageSaveData ofd_packets/00072607 [18:18:29]File name is /storage/ofd_packets/00072607 [18:18:29]Write 301 bytes [18:18:29]NVStorageSaveData done [18:18:29]OFDSenderStorePacket done [18:18:29]KKMCreateOFDPacket done [18:18:29]NVStorageSaveData kkm_last_timestamp [18:18:29]File name is /storage/kkm_last_timestamp [18:18:29]Write 4 bytes [18:18:29]NVStorageSaveData done [18:18:29]ExternCall_PrintAddStr [18:18:29]wPrintStart [18:18:29]Write to MH i2c: 01 00 00 59 01 5A [18:18:29]Write i2c OK [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 07 00 [18:18:29]MH_I2C_Read... [18:18:29]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [18:18:29]RasterBufferAndPrint [18:18:29]line Счет N : (1)952095 [18:18:29]line ИНН: 02508201610067 [18:18:29]line Контрольно-Кассовый Чек [18:18:29]line ПРОДАЖА [18:18:29]line ТРК (МРК, ГНК) : 53 [18:18:29]line Товар: 2710124130 [18:18:29]line Аи-92-К-5 [18:18:29]line 10.000 * 0.00 [18:18:29]line = 0.00 [18:18:29]line НДС 12% НСП 1% [18:18:29]line > о реализуемом товаре [18:18:29]line ИТОГО: 0.00 [18:18:29]line НСП 1% : 0.00 [18:18:29]line НДС 12% : 0.00 [18:18:29]line Наличными: 0.00 [18:18:29]line Безнал.: 0.00 [18:18:29]line Место: АЗС № 113 "Партнер Нефть" [18:18:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:18:29]line СНО: Общий режим [18:18:29]line Чек 135 28.10.2024 18:18 [18:18:29]line Смена: 554 ФФД: 1.0 [18:18:29]line ЗНМ: 0300000087 [18:18:29]line РНМ: 0000000000091644 [18:18:29]line Версия ККМ: 001 [18:18:29]line Талоны: Топливная Карта [18:18:29]line 03047 [18:18:29]line ФМ: 0000000000874662 [18:18:29]line ФД: 72607 [18:18:29]line ФПД: 29723637505852 [18:18:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T181829&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72607&fm=29723637505852&tin=02508201610067®Number=0000000000091644&sum=0 [18:18:29]OFD Sender: Processing packet 72607 [packets to send 274, broken 273] [18:18:29]ProducePacketName [18:18:29]name=ofd_packets/00072607 [18:18:29]OFD Sender: To server: pG, [18:18:29]CommunicateWithHost lk.salyk.kg:30040 [18:18:29]ConnectInit lk.salyk.kg [18:18:29]written 0, free lines is 4095 [18:18:30]Write to MH i2c: 01 00 00 83 01 84 [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E3 0C 7A [18:18:30]RasterBufferAndPrint [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]line [18:18:30]written 0, free lines is 3305 [18:18:30]MH_Cut [18:18:30]Write to MH i2c: D1 01 00 8A 01 01 5D [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 01 00 [18:18:30]MH_I2C_Read... [18:18:30]Read from MH i2c: D1 01 00 8A 01 00 5C [18:18:30]Write to MH i2c: 01 00 00 8B 01 8C [18:18:30]Write i2c OK [18:18:30]MH_I2C_Read... [18:18:30]*** Cut start [18:18:30]*** Partial cut [18:18:30]*** CUTSNS_PIN = 1 [18:18:31]*** CUTSNS_PIN = 0 [18:18:31]*** Brake cut motor [18:18:31]Read from MH i2c: 01 [18:18:31]MH_I2C_Read... [18:18:31]*** Stop cut motor [18:18:31]*** Cut end [18:18:31]Read from MH i2c: 01 07 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [18:18:31]process_action close_receipt done [18:18:31]requested_data is exist [18:18:31]produce_requested_data [18:18:31]requested_item fm.sn is exist - process it [18:18:31]wFMCommunicate request_size=4 [18:18:31]MH_SAM_APDU [18:18:31]CAPDU: 80 11 00 00 [18:18:31]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:31]Read from MH i2c: E2 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 17 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [18:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:18:31]wFMCommunicate OK [18:18:31]requested_item fd.num is exist - process it [18:18:31]SAM_PROTO_GetFieldsCounters [18:18:31]wFMCommunicate request_size=4 [18:18:31]MH_SAM_APDU [18:18:31]CAPDU: 80 13 00 00 [18:18:31]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]Connected sock=8 [18:18:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 F3 FA 07 01 FE 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 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 87 00 00 00 F4 03 04 00 75 D5 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 9F 1B 01 00 35 04 06 00 1B 08 92 DA DF 3C 2A 6F 69 27 7C F3 5B B0 [18:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:31]Read from MH i2c: E2 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 62 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 62 00 8D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [18:18: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 9F 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:31]wFMCommunicate OK [18:18:31]SAM_PROTO_GetFieldsCounters done [18:18:31]requested_item shift.num is exist - process it [18:18:31]requested_item shift.opened is exist - process it [18:18:31]req_shift_opened [18:18:31]FM_GetShiftState [18:18:31]SAM_PROTO_GetShiftState [18:18:31]wFMCommunicate request_size=4 [18:18:31]MH_SAM_APDU [18:18:31]CAPDU: 80 13 01 00 [18:18:31]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [18:18:31]Write i2c OK [18:18:31]MH_I2C_Read... [18:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:31]Read from MH i2c: E2 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 0E 00 [18:18:31]MH_I2C_Read... [18:18:31]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 74 [18:18:31]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:18:31]wFMCommunicate OK [18:18:31]SAM_PROTO_GetShiftState done [18:18:31]FM_GetShiftState done [18:18:31]req_shift_opened done [18:18:31]requested_item shift.open_date is exist - process it [18:18:31]req_shift_open_date [18:18:31]req_shift_open_date done [18:18:31]produce_requested_data done [18:18:31]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72607,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:18:31]process_action_free close_receipt [18:18:31]json_value_free [18:18:31]json_value_free done [18:18:31]process_json_proto returns [18:18:31]Send response to host [18:18:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72607,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:18:31]free response buf [18:18:31]execute_script done [18:18:31]execute_script returns [18:18:31]free content buf [18:18:31]Sock 9.Close socket [18:18:31]Sock 9.Thread stoped [18:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 27 F3 47 00 4F 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 34 36 36 32 10 04 04 00 9F 1B 01 00 F4 03 04 00 34 80 1F 67 B6 04 01 00 00 57 A4 FA 68 15 68 EF 07 [18:18:35]CommunicateWithHost err = 0 [18:18:35]CheckOFDResponse [18:18:35]1017 (14) - 77093643461234 [18:18:35]1041 (16) - 0000000000874662 [18:18:35]1040 (4) - 72607 [18:18:35]1012 (4) - 28.10.2024 12:14 [18:18:35]1206 (1) - 0 [18:18:35]OFD Sender: Remove packet 72607 [18:18:35]ProducePacketName [18:18:35]name=ofd_packets/00072607 [18:18:35]NVStorageDeleteData [18:18:35]OFD Sender: No OFD packet to send [18:18:39]recv_with_timeout no data received [18:18:40]OFD Sender: No OFD packet to send [18:18:45]OFD Sender: No OFD packet to send [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:12]recv_with_timeout no data received [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:02]recv_with_timeout no data received [18:21:05]accept exits with 10 [18:21:05]New connection [18:21:05]New thread 3067075940 created [18:21:05]Thread 3067219300 joined [18:21:05]Waiting for new connection... [18:21:05] Sock 10.Parse request [18:21:05]Sock 10.Check first char [18:21:05]Sock 10.First char is OK [18:21:05]request: POST /json_proto HTTP/1.0 [18:21:05]Method: POST [18:21:05]URL: /json_proto [18:21:05]Method is POST - this is cgi request [18:21:05]url: /json_proto [18:21:05]query_string will be loaded in cgi processing [18:21:05]execute_cgi json_proto POST (null) [18:21:05]execute_cgi path=json_proto method=POST [18:21:05]POST find Content-Length [18:21:05]Host: 172.17.43.195:8080 [18:21:05]Content-Length: 797 [18:21:05]Content-Type: application/json [18:21:05] [18:21:05]POST finish read [18:21:05]Found Content-Length = 797 [18:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:05]execute_script... [18:21:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 44.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\u000A02083", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:05]POST & json_proto [18:21:05]process_json_proto [18:21:05]json parsed OK: [18:21:05]protocol is kg_v1.0 [18:21:05]action value=close_receipt [18:21:05]process_action close_receipt [18:21:05]cmd_close_receipt [18:21:05]MH_GetDate [18:21:05]Write to MH i2c: F0 00 00 8F 01 7F [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: F0 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: F0 09 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: F0 09 00 8F 01 00 12 D6 1F 67 74 2C AD 66 A9 [18:21:05]GetLastDocTimeStamp 1730139509 [18:21:05]current date 1730139666 [18:21:05]FM_GetShiftState [18:21:05]SAM_PROTO_GetShiftState [18:21:05]wFMCommunicate request_size=4 [18:21:05]MH_SAM_APDU [18:21:05]CAPDU: 80 13 01 00 [18:21:05]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [18:21:05]Write i2c OK [18:21:05]MH_I2C_Read... [18:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:05]Read from MH i2c: E2 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0E 00 [18:21:05]MH_I2C_Read... [18:21:05]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 76 [18:21:05]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:21:05]wFMCommunicate OK [18:21:05]SAM_PROTO_GetShiftState done [18:21:05]FM_GetShiftState done [18:21:05]opened in 1730074113 [18:21:05]opened+sec_in_day 1730160513 [18:21:05]quantity*price = 0 [18:21:05]sum+1 = 1 [18:21:05]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 137 28.10.2024 18:21 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02083 ФМ: 0000000000874662 ФД: 72609 ФПД: 105431131405017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182159&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72609&fm=105431131405017&tin=02508201610067®Number=0000000000091644&sum=0 [18:22:00]StoreToDocumentArchive [18:22:00]shift 554 fd 72609 [18:22:00]save to /storage/0554/doc_00072609 [18:22:00]save last doc name /storage/0554/doc_00072609 to /storage/kkm_last_doc_name [18:22:00]save OK [18:22:00]Clear old archive folders... [18:22:00]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:22:00]tlvbuf is 01B389B0 [18:22:00]SAM_PROTO_ClearQueue [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 09 00 00 [18:22:00]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]SAM_PROTO_ClearQueue done [18:22:00]KKMCreateOFDPacket [18:22:00]OFDProtocolAddRootSTLVToBuf [18:22:00]FM_MakeSignedData [18:22:00]FM_MakeSignedData [18:22:00]SAM_PROTO_SignData [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 01 02 [18:22:00]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=255 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 47 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1B 01 00 35 04 06 00 [18:22:00]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 47 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1B 01 00 35 04 06 00 00 00 8A [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=11 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 02 02 06 5F E3 99 22 BA D9 [18:22:00]Write to MH i2c: E2 0E 00 2E 00 80 0D 02 02 06 00 5F E3 99 22 BA D9 00 00 44 [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [18:22:00]RAPDU: 90 00 [18:22:00]wFMCommunicate OK [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 0D 03 02 [18:22:00]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 0B 00 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 0B 00 2F 00 00 1D C8 43 0A FA 8F 04 FB 90 00 65 [18:22:00]RAPDU: 1D C8 43 0A FA 8F 04 FB 90 00 [18:22:00]wFMCommunicate OK [18:22:00]SAM_PROTO_SignData done [18:22:00]FM_MakeSignedData done [18:22:00]CreateOFDProtocolMessage [18:22:00]wFMCommunicate request_size=4 [18:22:00]MH_SAM_APDU [18:22:00]CAPDU: 80 11 00 00 [18:22:00]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [18:22:00]Write i2c OK [18:22:00]MH_I2C_Read... [18:22:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:00]Read from MH i2c: E2 [18:22:00]MH_I2C_Read... [18:22:00]Read from MH i2c: E2 17 00 [18:22:00]MH_I2C_Read... [18:22:00]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 34 36 36 32 90 00 FE [18:22:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:22:00]wFMCommunicate OK [18:22:00]CreateOFDProtocolMessage done [18:22:00]OFDSenderStorePacket 72609 [18:22:00]StoreOFDPacket docnum=72609 [18:22:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 50 C8 08 01 E3 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 47 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A1 1B 01 00 35 04 06 00 5F E3 99 22 BA D9 1D C8 43 0A FA 8F 04 FB [18:22:00]CheckFolder [18:22:00]dirname=/storage/ofd_packets [18:22:00]CheckFolder done [18:22:00]ProducePacketName [18:22:00]name=ofd_packets/00072609 [18:22:00]NVStorageSaveData ofd_packets/00072609 [18:22:00]File name is /storage/ofd_packets/00072609 [18:22:00]Write 302 bytes [18:22:00]NVStorageSaveData done [18:22:00]OFDSenderStorePacket done [18:22:00]KKMCreateOFDPacket done [18:22:00]NVStorageSaveData kkm_last_timestamp [18:22:00]File name is /storage/kkm_last_timestamp [18:22:00]Write 4 bytes [18:22:00]NVStorageSaveData done [18:22:01]ExternCall_PrintAddStr [18:22:01]wPrintStart [18:22:01]Write to MH i2c: 01 00 00 31 00 31 [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [18:22:01]RasterBufferAndPrint [18:22:01]line Счет N : (1)952096 [18:22:01]line ИНН: 02508201610067 [18:22:01]line Контрольно-Кассовый Чек [18:22:01]line ПРОДАЖА [18:22:01]line ТРК (МРК, ГНК) : 43 [18:22:01]line Товар: 2710194210 [18:22:01]line ДТ(л)-К-5 [18:22:01]line 44.000 * 0.00 [18:22:01]line = 0.00 [18:22:01]line НДС 12% НСП 1% [18:22:01]line > о реализуемом товаре [18:22:01]line ИТОГО: 0.00 [18:22:01]line НСП 1% : 0.00 [18:22:01]line НДС 12% : 0.00 [18:22:01]line Наличными: 0.00 [18:22:01]line Безнал.: 0.00 [18:22:01]line Место: АЗС № 113 "Партнер Нефть" [18:22:01]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:22:01]line СНО: Общий режим [18:22:01]line Чек 137 28.10.2024 18:21 [18:22:01]line Смена: 554 ФФД: 1.0 [18:22:01]line ЗНМ: 0300000087 [18:22:01]line РНМ: 0000000000091644 [18:22:01]line Версия ККМ: 001 [18:22:01]line Талоны: Топливная Карта [18:22:01]line 02083 [18:22:01]line ФМ: 0000000000874662 [18:22:01]line ФД: 72609 [18:22:01]line ФПД: 105431131405017 [18:22:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182159&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72609&fm=105431131405017&tin=02508201610067®Number=0000000000091644&sum=0 [18:22:01]written 0, free lines is 4095 [18:22:01]OFD Sender: Processing packet 72609 [packets to send 275, broken 274] [18:22:01]ProducePacketName [18:22:01]name=ofd_packets/00072609 [18:22:01]OFD Sender: To server: pG, [18:22:01]CommunicateWithHost lk.salyk.kg:30040 [18:22:01]ConnectInit lk.salyk.kg [18:22:01]Write to MH i2c: 01 00 00 5B 00 5B [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 E3 0C 51 [18:22:01]RasterBufferAndPrint [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]line [18:22:01]written 0, free lines is 3324 [18:22:01]MH_Cut [18:22:01]Write to MH i2c: D1 01 00 62 00 01 34 [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 01 00 [18:22:01]MH_I2C_Read... [18:22:01]Read from MH i2c: D1 01 00 62 00 00 33 [18:22:01]Write to MH i2c: 01 00 00 63 00 63 [18:22:01]Write i2c OK [18:22:01]MH_I2C_Read... [18:22:02]*** Cut start [18:22:02]*** Partial cut [18:22:02]*** CUTSNS_PIN = 1 [18:22:02]*** CUTSNS_PIN = 0 [18:22:02]*** Brake cut motor [18:22:02]Read from MH i2c: 01 [18:22:02]MH_I2C_Read... [18:22:02]*** Stop cut motor [18:22:02]*** Cut end [18:22:02]Read from MH i2c: 01 07 00 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [18:22:02]process_action close_receipt done [18:22:02]requested_data is exist [18:22:02]produce_requested_data [18:22:02]requested_item fm.sn is exist - process it [18:22:02]wFMCommunicate request_size=4 [18:22:02]MH_SAM_APDU [18:22:02]CAPDU: 80 11 00 00 [18:22:02]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [18:22:02]Write i2c OK [18:22:02]MH_I2C_Read... [18:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:02]Read from MH i2c: E2 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: E2 17 00 [18:22:02]MH_I2C_Read... [18:22:02]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [18:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:22:02]wFMCommunicate OK [18:22:02]requested_item fd.num is exist - process it [18:22:02]SAM_PROTO_GetFieldsCounters [18:22:02]wFMCommunicate request_size=4 [18:22:02]MH_SAM_APDU [18:22:02]CAPDU: 80 13 00 00 [18:22:02]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [18:22:02]Write i2c OK [18:22:02]MH_I2C_Read... [18:22:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:03]Read from MH i2c: E2 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 62 00 [18:22:03]MH_I2C_Read... [18:22:03]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [18:22:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A1 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:03]wFMCommunicate OK [18:22:03]SAM_PROTO_GetFieldsCounters done [18:22:03]requested_item shift.num is exist - process it [18:22:03]requested_item shift.opened is exist - process it [18:22:03]req_shift_opened [18:22:03]FM_GetShiftState [18:22:03]SAM_PROTO_GetShiftState [18:22:03]wFMCommunicate request_size=4 [18:22:03]MH_SAM_APDU [18:22:03]CAPDU: 80 13 01 00 [18:22:03]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [18:22:03]Connected sock=10 [18:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 50 C8 08 01 E3 5B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:03]03 E0 AB 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 Write i2c OK [18:22:03]00 MH_I2C_Read... [18:22:03]00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 Read from MH i2c: 00 E2 00 [18:22:03]F4 MH_I2C_Read... [18:22:03]03 Read from MH i2c: 04 E2 00 0E 47 00 D6 [18:22:03]1F MH_I2C_Read... [18:22:03]67 0E 04 04 00 2A 02 00 00 Read from MH i2c: B9 E2 04 0E 01 00 00 66 01 00 0D 00 04 09 10 00 00 01 01 30 D6 30 1E 30 67 30 00 30 00 30 00 30 00 30 90 30 00 30 4B 30 [18:22:03]39 RAPDU: 31 09 36 00 34 01 34 01 11 D6 04 1E 10 67 00 00 30 00 30 00 30 00 30 90 30 00 30 [18:22:03]30 wFMCommunicate OK [18:22:03]30 SAM_PROTO_GetShiftState done [18:22:03]30 30 FM_GetShiftState done [18:22:03]req_shift_opened done [18:22:03]requested_item shift.open_date is exist - process it [18:22:03]req_shift_open_date [18:22:03]req_shift_open_date done [18:22:03]produce_requested_data done [18:22:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72609,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:22:03]process_action_free close_receipt [18:22:03]json_value_free [18:22:03]json_value_free done [18:22:03]process_json_proto returns [18:22:03]Send response to host [18:22:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72609,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:22:03]free response buf [18:22:03]execute_script done [18:22:03]execute_script returns [18:22:03]free content buf [18:22:03]38 Sock 9.Close socket [18:22:03]37 Sock 9.Thread stoped [18:22:03]34 36 36 32 10 04 04 00 A1 1B 01 00 35 04 06 00 5F E3 99 22 BA D9 1D C8 43 0A FA 8F 04 FB [18:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4B AF 47 00 8A 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 34 36 36 32 10 04 04 00 A1 1B 01 00 F4 03 04 00 07 81 1F 67 B6 04 01 00 00 ED 4A DD 97 C1 0A FB 35 [18:22:03]CommunicateWithHost err = 0 [18:22:03]CheckOFDResponse [18:22:03]1017 (14) - 77093643461234 [18:22:03]1041 (16) - 0000000000874662 [18:22:03]1040 (4) - 72609 [18:22:03]1012 (4) - 28.10.2024 12:18 [18:22:03]1206 (1) - 0 [18:22:03]OFD Sender: Remove packet 72609 [18:22:03]ProducePacketName [18:22:03]name=ofd_packets/00072609 [18:22:03]NVStorageDeleteData [18:22:04]OFD Sender: No OFD packet to send [18:22:09]OFD Sender: No OFD packet to send [18:22:14]OFD Sender: No OFD packet to send [18:22:18]recv_with_timeout no data received [18:22:19]OFD Sender: No OFD packet to send [18:22:24]OFD Sender: No OFD packet to send [18:22:28]recv_with_timeout no data received [18:22:29]OFD Sender: No OFD packet to send [18:22:34]OFD Sender: No OFD packet to send [18:22:39]OFD Sender: No OFD packet to send [18:22:43]recv_with_timeout no data received [18:22:44]OFD Sender: No OFD packet to send [18:22:47]accept exits with 6 [18:22:47]New connection [18:22:47]New thread 3067239780 created [18:22:47]Thread 3067383140 joined [18:22:47]Waiting for new connection... [18:22:47] Sock 6.Parse request [18:22:47]Sock 6.Check first char [18:22:47]Sock 6.First char is OK [18:22:47]request: POST /json_proto HTTP/1.0 [18:22:47]Method: POST [18:22:47]URL: /json_proto [18:22:47]Method is POST - this is cgi request [18:22:47]url: /json_proto [18:22:47]query_string will be loaded in cgi processing [18:22:47]execute_cgi json_proto POST (null) [18:22:47]execute_cgi path=json_proto method=POST [18:22:47]POST find Content-Length [18:22:47]Host: 172.17.43.195:8080 [18:22:47]Content-Length: 792 [18:22:47]Content-Type: application/json [18:22:47] [18:22:47]POST finish read [18:22:47]Found Content-Length = 792 [18:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:47]execute_script... [18:22: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)952097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.470, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:47]POST & json_proto [18:22:47]process_json_proto [18:22:47]json parsed OK: [18:22:47]protocol is kg_v1.0 [18:22:47]action value=close_receipt [18:22:47]process_action close_receipt [18:22:47]cmd_close_receipt [18:22:47]MH_GetDate [18:22:47]Write to MH i2c: F0 00 00 67 00 56 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: F0 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: F0 09 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: F0 09 00 67 00 00 78 D6 1F 67 74 2C AD 66 E6 [18:22:47]GetLastDocTimeStamp 1730139719 [18:22:47]current date 1730139768 [18:22:47]FM_GetShiftState [18:22:47]SAM_PROTO_GetShiftState [18:22:47]wFMCommunicate request_size=4 [18:22:47]MH_SAM_APDU [18:22:47]CAPDU: 80 13 01 00 [18:22:47]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [18:22:47]Write i2c OK [18:22:47]MH_I2C_Read... [18:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:47]Read from MH i2c: E2 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 0E 00 [18:22:47]MH_I2C_Read... [18:22:47]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [18:22:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:22:47]wFMCommunicate OK [18:22:47]SAM_PROTO_GetShiftState done [18:22:47]FM_GetShiftState done [18:22:47]opened in 1730074113 [18:22:47]opened+sec_in_day 1730160513 [18:22:47]quantity*price = 0 [18:22:47]sum+1 = 1 [18:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 138 28.10.2024 18:22 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72610 ФПД: 109595434629986 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182248&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72610&fm=109595434629986&tin=02508201610067®Number=0000000000091644&sum=0 [18:22:48]StoreToDocumentArchive [18:22:48]shift 554 fd 72610 [18:22:48]save to /storage/0554/doc_00072610 [18:22:48]save last doc name /storage/0554/doc_00072610 to /storage/kkm_last_doc_name [18:22:48]save OK [18:22:48]Clear old archive folders... [18:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:48]tlvbuf is 01B282F0 [18:22:48]SAM_PROTO_ClearQueue [18:22:48]wFMCommunicate request_size=4 [18:22:48]MH_SAM_APDU [18:22:48]CAPDU: 80 09 00 00 [18:22:48]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:48]Read from MH i2c: E2 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 03 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:22:48]RAPDU: 90 00 [18:22:48]wFMCommunicate OK [18:22:48]SAM_PROTO_ClearQueue done [18:22:48]KKMCreateOFDPacket [18:22:48]OFDProtocolAddRootSTLVToBuf [18:22:48]FM_MakeSignedData [18:22:48]FM_MakeSignedData [18:22:48]SAM_PROTO_SignData [18:22:48]wFMCommunicate request_size=4 [18:22:48]MH_SAM_APDU [18:22:48]CAPDU: 80 0D 01 02 [18:22:48]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:48]Read from MH i2c: E2 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 03 00 [18:22:48]MH_I2C_Read... [18:22:48]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:22:48]RAPDU: 90 00 [18:22:48]wFMCommunicate OK [18:22:48]wFMCommunicate request_size=255 [18:22:48]MH_SAM_APDU [18:22: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 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 78 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1B 01 00 35 04 06 00 63 [18:22:48]Write to MH i2c: E2 02 01 77 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 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 78 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1B 01 00 35 04 06 00 63 00 00 B2 [18:22:48]Write i2c OK [18:22:48]MH_I2C_Read... [18:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:49]Read from MH i2c: E2 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 03 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:22:49]RAPDU: 90 00 [18:22:49]wFMCommunicate OK [18:22:49]wFMCommunicate request_size=10 [18:22:49]MH_SAM_APDU [18:22:49]CAPDU: 80 0D 02 02 05 AD 2C F3 3B 62 [18:22:49]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 AD 2C F3 3B 62 00 00 65 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:49]Read from MH i2c: E2 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 03 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [18:22:49]RAPDU: 90 00 [18:22:49]wFMCommunicate OK [18:22:49]wFMCommunicate request_size=4 [18:22:49]MH_SAM_APDU [18:22:49]CAPDU: 80 0D 03 02 [18:22:49]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:49]Read from MH i2c: E2 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 0B 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 0B 00 79 00 00 FA 16 3C E4 23 73 8A 5E 90 00 A3 [18:22:49]RAPDU: FA 16 3C E4 23 73 8A 5E 90 00 [18:22:49]wFMCommunicate OK [18:22:49]SAM_PROTO_SignData done [18:22:49]FM_MakeSignedData done [18:22:49]CreateOFDProtocolMessage [18:22:49]wFMCommunicate request_size=4 [18:22:49]MH_SAM_APDU [18:22:49]CAPDU: 80 11 00 00 [18:22:49]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:49]Read from MH i2c: E2 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 17 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [18:22:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:22:49]wFMCommunicate OK [18:22:49]CreateOFDProtocolMessage done [18:22:49]OFDSenderStorePacket 72610 [18:22:49]StoreOFDPacket docnum=72610 [18:22:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A A8 07 01 C0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 78 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1B 01 00 35 04 06 00 63 AD 2C F3 3B 62 FA 16 3C E4 23 73 8A 5E [18:22:49]CheckFolder [18:22:49]dirname=/storage/ofd_packets [18:22:49]CheckFolder done [18:22:49]ProducePacketName [18:22:49]name=ofd_packets/00072610 [18:22:49]NVStorageSaveData ofd_packets/00072610 [18:22:49]File name is /storage/ofd_packets/00072610 [18:22:49]Write 301 bytes [18:22:49]NVStorageSaveData done [18:22:49]OFDSenderStorePacket done [18:22:49]KKMCreateOFDPacket done [18:22:49]NVStorageSaveData kkm_last_timestamp [18:22:49]File name is /storage/kkm_last_timestamp [18:22:49]Write 4 bytes [18:22:49]NVStorageSaveData done [18:22:49]ExternCall_PrintAddStr [18:22:49]wPrintStart [18:22:49]Write to MH i2c: 01 00 00 7B 00 7B [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [18:22:49]RasterBufferAndPrint [18:22:49]line Счет N : (1)952097 [18:22:49]line ИНН: 02508201610067 [18:22:49]line Контрольно-Кассовый Чек [18:22:49]line ПРОДАЖА [18:22:49]line ТРК (МРК, ГНК) : 63 [18:22:49]line Товар: 2710124130 [18:22:49]line Аи-92-К-5 [18:22:49]line 10.470 * 0.00 [18:22:49]line = 0.00 [18:22:49]line НДС 12% НСП 1% [18:22:49]line > о реализуемом товаре [18:22:49]line ИТОГО: 0.00 [18:22:49]line НСП 1% : 0.00 [18:22:49]line НДС 12% : 0.00 [18:22:49]line Наличными: 0.00 [18:22:49]line Безнал.: 0.00 [18:22:49]line Место: АЗС № 113 "Партнер Нефть" [18:22:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:22:49]line СНО: Общий режим [18:22:49]line Чек 138 28.10.2024 18:22 [18:22:49]line Смена: 554 ФФД: 1.0 [18:22:49]line ЗНМ: 0300000087 [18:22:49]line РНМ: 0000000000091644 [18:22:49]line Версия ККМ: 001 [18:22:49]line Талоны: Топливная Карта [18:22:49]line 03047 [18:22:49]line ФМ: 0000000000874662 [18:22:49]line ФД: 72610 [18:22:49]line ФПД: 109595434629986 [18:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182248&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72610&fm=109595434629986&tin=02508201610067®Number=0000000000091644&sum=0 [18:22:49]written 0, free lines is 4095 [18:22:49]OFD Sender: Processing packet 72610 [packets to send 275, broken 274] [18:22:49]ProducePacketName [18:22:49]name=ofd_packets/00072610 [18:22:49]OFD Sender: To server: pG, [18:22:49]CommunicateWithHost lk.salyk.kg:30040 [18:22:49]ConnectInit lk.salyk.kg [18:22:49]Write to MH i2c: 01 00 00 A5 00 A5 [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 DB 0C 93 [18:22:49]RasterBufferAndPrint [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]line [18:22:49]written 0, free lines is 3300 [18:22:49]MH_Cut [18:22:49]Write to MH i2c: D1 01 00 AC 00 01 7E [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 01 00 [18:22:49]MH_I2C_Read... [18:22:49]Read from MH i2c: D1 01 00 AC 00 00 7D [18:22:49]Write to MH i2c: 01 00 00 AD 00 AD [18:22:49]Write i2c OK [18:22:49]MH_I2C_Read... [18:22:50]*** Cut start [18:22:50]*** Partial cut [18:22:50]*** CUTSNS_PIN = 1 [18:22:50]*** CUTSNS_PIN = 0 [18:22:50]*** Brake cut motor [18:22:51]Read from MH i2c: 01 [18:22:51]MH_I2C_Read... [18:22:51]*** Stop cut motor [18:22:51]*** Cut end [18:22:51]Read from MH i2c: 01 07 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [18:22:51]process_action close_receipt done [18:22:51]requested_data is exist [18:22:51]produce_requested_data [18:22:51]requested_item fm.sn is exist - process it [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 11 00 00 [18:22:51]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 17 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [18:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:22:51]wFMCommunicate OK [18:22:51]requested_item fd.num is exist - process it [18:22:51]SAM_PROTO_GetFieldsCounters [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 13 00 00 [18:22:51]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 62 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [18:22: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:51]wFMCommunicate OK [18:22:51]SAM_PROTO_GetFieldsCounters done [18:22:51]requested_item shift.num is exist - process it [18:22:51]requested_item shift.opened is exist - process it [18:22:51]req_shift_opened [18:22:51]FM_GetShiftState [18:22:51]SAM_PROTO_GetShiftState [18:22:51]wFMCommunicate request_size=4 [18:22:51]MH_SAM_APDU [18:22:51]CAPDU: 80 13 01 00 [18:22:51]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [18:22:51]Write i2c OK [18:22:51]MH_I2C_Read... [18:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:51]Read from MH i2c: E2 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 0E 00 [18:22:51]MH_I2C_Read... [18:22:51]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [18:22:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:22:51]wFMCommunicate OK [18:22:51]SAM_PROTO_GetShiftState done [18:22:51]FM_GetShiftState done [18:22:51]req_shift_opened done [18:22:51]requested_item shift.open_date is exist - process it [18:22:51]req_shift_open_date [18:22:51]req_shift_open_date done [18:22:51]produce_requested_data done [18:22:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72610,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:22:51]process_action_free close_receipt [18:22:51]json_value_free [18:22:51]json_value_free done [18:22:51]process_json_proto returns [18:22:51]Send response to host [18:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72610,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:22:51]free response buf [18:22:51]execute_script done [18:22:51]execute_script returns [18:22:51]free content buf [18:22:51]Sock 6.Close socket [18:22:51]Sock 6.Thread stoped [18:22:57]recv_with_timeout no data received [18:23:05]Connected sock=11 [18:23:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 2A A8 07 01 C0 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 78 D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1B 01 00 35 04 06 00 63 AD 2C F3 3B 62 FA 16 3C E4 23 73 8A 5E [18:23:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D1 BB 47 00 83 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A2 1B 01 00 F4 03 04 00 46 81 1F 67 B6 04 01 00 00 35 D1 DC A7 D0 1A A4 E6 [18:23:08]CommunicateWithHost err = 0 [18:23:08]CheckOFDResponse [18:23:08]1017 (14) - 77093643461234 [18:23:08]1041 (16) - 0000000000874662 [18:23:08]1040 (4) - 72610 [18:23:08]1012 (4) - 28.10.2024 12:19 [18:23:08]1206 (1) - 0 [18:23:08]OFD Sender: Remove packet 72610 [18:23:08]ProducePacketName [18:23:08]name=ofd_packets/00072610 [18:23:08]NVStorageDeleteData [18:23:08]OFD Sender: No OFD packet to send [18:23:11]recv_with_timeout no data received [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:22]accept exits with 9 [18:23:22]New connection [18:23:22]New thread 3067383140 created [18:23:22]Thread 3067239780 joined [18:23:22]Waiting for new connection... [18:23:22] Sock 9.Parse request [18:23:22]Sock 9.Check first char [18:23:22]Sock 9.First char is OK [18:23:22]request: POST /json_proto HTTP/1.0 [18:23:22]Method: POST [18:23:22]URL: /json_proto [18:23:22]Method is POST - this is cgi request [18:23:22]url: /json_proto [18:23:22]query_string will be loaded in cgi processing [18:23:22]execute_cgi json_proto POST (null) [18:23:22]execute_cgi path=json_proto method=POST [18:23:22]POST find Content-Length [18:23:22]Host: 172.17.43.195:8080 [18:23:22]Content-Length: 677 [18:23:22]Content-Type: application/json [18:23:22] [18:23:22]POST finish read [18:23:22]Found Content-Length = 677 [18:23:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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:23:22]execute_script... [18:23:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952098", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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:23:22]POST & json_proto [18:23:22]process_json_proto [18:23:22]json parsed OK: [18:23:22]protocol is kg_v1.0 [18:23:22]action value=close_receipt [18:23:22]process_action close_receipt [18:23:22]cmd_close_receipt [18:23:22]MH_GetDate [18:23:22]Write to MH i2c: F0 00 00 B1 00 A0 [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: F0 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: F0 09 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: F0 09 00 B1 00 00 9B D6 1F 67 74 2C AD 66 53 [18:23:22]GetLastDocTimeStamp 1730139768 [18:23:22]current date 1730139803 [18:23:22]FM_GetShiftState [18:23:22]SAM_PROTO_GetShiftState [18:23:22]wFMCommunicate request_size=4 [18:23:22]MH_SAM_APDU [18:23:22]CAPDU: 80 13 01 00 [18:23:22]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [18:23:22]Write i2c OK [18:23:22]MH_I2C_Read... [18:23:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:22]Read from MH i2c: E2 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0E 00 [18:23:22]MH_I2C_Read... [18:23:22]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [18:23:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:23:22]wFMCommunicate OK [18:23:22]SAM_PROTO_GetShiftState done [18:23:22]FM_GetShiftState done [18:23:22]opened in 1730074113 [18:23:22]opened+sec_in_day 1730160513 [18:23:22]quantity*price = 30038 [18:23:22]sum+1 = 30039 [18:23:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 139 28.10.2024 18:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72611 ФПД: 46712907702199 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182323&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72611&fm=46712907702199&tin=02508201610067®Number=0000000000091644&sum=30000 [18:23:23]StoreToDocumentArchive [18:23:23]shift 554 fd 72611 [18:23:23]save to /storage/0554/doc_00072611 [18:23:23]save last doc name /storage/0554/doc_00072611 to /storage/kkm_last_doc_name [18:23:23]save OK [18:23:23]Clear old archive folders... [18:23:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:23:23]tlvbuf is 01AD5170 [18:23:23]SAM_PROTO_ClearQueue [18:23:23]wFMCommunicate request_size=4 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 09 00 00 [18:23:23]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:23]Read from MH i2c: E2 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 [18:23:23]MH_I2C_Read... [18:23:23]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:23:23]RAPDU: 90 00 [18:23:23]wFMCommunicate OK [18:23:23]SAM_PROTO_ClearQueue done [18:23:23]KKMCreateOFDPacket [18:23:23]OFDProtocolAddRootSTLVToBuf [18:23:23]FM_MakeSignedData [18:23:23]FM_MakeSignedData [18:23:23]SAM_PROTO_SignData [18:23:23]wFMCommunicate request_size=4 [18:23:23]MH_SAM_APDU [18:23:23]CAPDU: 80 0D 01 02 [18:23:23]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [18:23:23]Write i2c OK [18:23:23]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=255 [18:23:24]MH_SAM_APDU [18:23: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 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 8B 00 00 00 F4 03 04 00 9B D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1B 01 00 35 04 06 00 2A [18:23:24]Write to MH i2c: E2 02 01 C1 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 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 8B 00 00 00 F4 03 04 00 9B D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1B 01 00 35 04 06 00 2A 00 00 53 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=10 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 0D 02 02 05 7C 32 45 1F B7 [18:23:24]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 7C 32 45 1F B7 00 00 0F [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [18:23:24]RAPDU: 90 00 [18:23:24]wFMCommunicate OK [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 0D 03 02 [18:23:24]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 0B 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 0B 00 C3 00 00 61 A8 52 77 88 65 89 C8 90 00 4F [18:23:24]RAPDU: 61 A8 52 77 88 65 89 C8 90 00 [18:23:24]wFMCommunicate OK [18:23:24]SAM_PROTO_SignData done [18:23:24]FM_MakeSignedData done [18:23:24]CreateOFDProtocolMessage [18:23:24]wFMCommunicate request_size=4 [18:23:24]MH_SAM_APDU [18:23:24]CAPDU: 80 11 00 00 [18:23:24]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:24]Read from MH i2c: E2 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [18:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:23:24]wFMCommunicate OK [18:23:24]CreateOFDProtocolMessage done [18:23:24]OFDSenderStorePacket 72611 [18:23:24]StoreOFDPacket docnum=72611 [18:23:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 CE 07 01 7B 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 9B D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1B 01 00 35 04 06 00 2A 7C 32 45 1F B7 61 A8 52 77 88 65 89 C8 [18:23:24]CheckFolder [18:23:24]dirname=/storage/ofd_packets [18:23:24]CheckFolder done [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00072611 [18:23:24]NVStorageSaveData ofd_packets/00072611 [18:23:24]File name is /storage/ofd_packets/00072611 [18:23:24]Write 301 bytes [18:23:24]NVStorageSaveData done [18:23:24]OFDSenderStorePacket done [18:23:24]KKMCreateOFDPacket done [18:23:24]NVStorageSaveData kkm_last_timestamp [18:23:24]File name is /storage/kkm_last_timestamp [18:23:24]Write 4 bytes [18:23:24]NVStorageSaveData done [18:23:24]ExternCall_PrintAddStr [18:23:24]wPrintStart [18:23:24]Write to MH i2c: 01 00 00 C5 00 C5 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [18:23:24]RasterBufferAndPrint [18:23:24]line Счет N : (1)952098 [18:23:24]line ИНН: 02508201610067 [18:23:24]line Контрольно-Кассовый Чек [18:23:24]line ПРОДАЖА [18:23:24]line ТРК (МРК, ГНК) : 42 [18:23:24]line Товар: 2710124130 [18:23:24]line Аи-92-К-5 [18:23:24]line 4.490 * 66.90 [18:23:24]line = 300.38 [18:23:24]line НДС 12% НСП 1% [18:23:24]line > о реализуемом товаре [18:23:24]line ОКРУГЛЕНИЕ: -0.38 [18:23:24]line ИТОГО: 300.00 [18:23:24]line Внесено: 300.00 [18:23:24]line СДАЧА: 0.00 [18:23:24]line НСП 1% : 2.66 [18:23:24]line НДС 12% : 31.90 [18:23:24]line Наличными: 300.00 [18:23:24]line Безнал.: 0.00 [18:23:24]line Место: АЗС № 113 "Партнер Нефть" [18:23:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:23:24]line СНО: Общий режим [18:23:24]line Чек 139 28.10.2024 18:23 [18:23:24]line Смена: 554 ФФД: 1.0 [18:23:24]line ЗНМ: 0300000087 [18:23:24]line РНМ: 0000000000091644 [18:23:24]line Версия ККМ: 001 [18:23:24]line ФМ: 0000000000874662 [18:23:24]line ФД: 72611 [18:23:24]line ФПД: 46712907702199 [18:23:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182323&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72611&fm=46712907702199&tin=02508201610067®Number=0000000000091644&sum=30000 [18:23:24]written 0, free lines is 4095 [18:23:24]OFD Sender: Processing packet 72611 [packets to send 275, broken 274] [18:23:24]ProducePacketName [18:23:24]name=ofd_packets/00072611 [18:23:24]OFD Sender: To server: pG, [18:23:24]CommunicateWithHost lk.salyk.kg:30040 [18:23:24]ConnectInit lk.salyk.kg [18:23:24]Write to MH i2c: 01 00 00 F0 00 F0 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 D0 0C D3 [18:23:24]RasterBufferAndPrint [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]line [18:23:24]written 0, free lines is 3296 [18:23:24]MH_Cut [18:23:24]Write to MH i2c: D1 01 00 F7 00 01 C9 [18:23:24]Write i2c OK [18:23:24]MH_I2C_Read... [18:23:24]Read from MH i2c: D1 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: D1 01 00 [18:23:25]MH_I2C_Read... [18:23:25]Read from MH i2c: D1 01 00 F7 00 00 C8 [18:23:25]Write to MH i2c: 01 00 00 F8 00 F8 [18:23:25]Write i2c OK [18:23:25]MH_I2C_Read... [18:23:25]recv_with_timeout no data received [18:23:25]*** Cut start [18:23:25]*** Partial cut [18:23:25]*** CUTSNS_PIN = 1 [18:23:25]*** CUTSNS_PIN = 0 [18:23:26]*** Brake cut motor [18:23:26]Read from MH i2c: 01 [18:23:26]MH_I2C_Read... [18:23:26]*** Stop cut motor [18:23:26]*** Cut end [18:23:26]Read from MH i2c: 01 07 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [18:23:26]process_action close_receipt done [18:23:26]requested_data is exist [18:23:26]produce_requested_data [18:23:26]requested_item fm.sn is exist - process it [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 11 00 00 [18:23:26]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 17 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C7 [18:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:23:26]wFMCommunicate OK [18:23:26]requested_item fd.num is exist - process it [18:23:26]SAM_PROTO_GetFieldsCounters [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 13 00 00 [18:23:26]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 62 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A3 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [18:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A3 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:26]wFMCommunicate OK [18:23:26]SAM_PROTO_GetFieldsCounters done [18:23:26]requested_item shift.num is exist - process it [18:23:26]requested_item shift.opened is exist - process it [18:23:26]req_shift_opened [18:23:26]FM_GetShiftState [18:23:26]SAM_PROTO_GetShiftState [18:23:26]wFMCommunicate request_size=4 [18:23:26]MH_SAM_APDU [18:23:26]CAPDU: 80 13 01 00 [18:23:26]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [18:23:26]Write i2c OK [18:23:26]MH_I2C_Read... [18:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:26]Read from MH i2c: E2 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 [18:23:26]MH_I2C_Read... [18:23:26]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E0 [18:23:26]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:23:26]wFMCommunicate OK [18:23:26]SAM_PROTO_GetShiftState done [18:23:26]FM_GetShiftState done [18:23:26]req_shift_opened done [18:23:26]requested_item shift.open_date is exist - process it [18:23:26]req_shift_open_date [18:23:26]req_shift_open_date done [18:23:26]produce_requested_data done [18:23:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72611,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:23:26]process_action_free close_receipt [18:23:26]json_value_free [18:23:26]json_value_free done [18:23:26]process_json_proto returns [18:23:26]Send response to host [18:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72611,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:23:26]free response buf [18:23:26]execute_script done [18:23:26]execute_script returns [18:23:26]free content buf [18:23:26]Sock 9.Close socket [18:23:26]Sock 9.Thread stoped [18:23:29]ConnectInit Can't take IP for lk.salyk.kg [18:23:29]CommunicateWithHost connect error [18:23:29]CommunicateWithHost err = -1 [18:23:29]OFD Sender: Server communicate error [18:23:34]OFD Sender: Processing packet 72611 [packets to send 275, broken 274] [18:23:34]ProducePacketName [18:23:34]name=ofd_packets/00072611 [18:23:34]OFD Sender: To server: pG, [18:23:34]CommunicateWithHost lk.salyk.kg:30040 [18:23:34]ConnectInit lk.salyk.kg [18:23:39]recv_with_timeout no data received [18:23:39]accept exits with 10 [18:23:39]New connection [18:23:39]New thread 3067239780 created [18:23:39]Thread 3067383140 joined [18:23:39]Waiting for new connection... [18:23:39] Sock 10.Parse request [18:23:39]Sock 10.Check first char [18:23:39]Sock 10.First char is OK [18:23:39]request: POST /json_proto HTTP/1.0 [18:23:39]Method: POST [18:23:39]URL: /json_proto [18:23:39]Method is POST - this is cgi request [18:23:39]url: /json_proto [18:23:39]query_string will be loaded in cgi processing [18:23:39]execute_cgi json_proto POST (null) [18:23:39]execute_cgi path=json_proto method=POST [18:23:39]POST find Content-Length [18:23:39]Host: 172.17.43.195:8080 [18:23:39]Content-Length: 659 [18:23:39]Content-Type: application/json [18:23:39] [18:23:39]POST finish read [18:23:39]Found Content-Length = 659 [18:23:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "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:23:39]execute_script... [18:23: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)952099", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 11.700, "sum" : 800.28, "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:23:39]POST & json_proto [18:23:39]process_json_proto [18:23:39]json parsed OK: [18:23:39]protocol is kg_v1.0 [18:23:39]action value=close_receipt [18:23:39]process_action close_receipt [18:23:39]cmd_close_receipt [18:23:39]MH_GetDate [18:23:39]Write to MH i2c: F0 00 00 FC 00 EB [18:23:39]Write i2c OK [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: F0 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: F0 09 00 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: F0 09 00 FC 00 00 AC D6 1F 67 74 2C AD 66 AF [18:23:39]GetLastDocTimeStamp 1730139803 [18:23:39]current date 1730139820 [18:23:39]FM_GetShiftState [18:23:39]SAM_PROTO_GetShiftState [18:23:39]wFMCommunicate request_size=4 [18:23:39]MH_SAM_APDU [18:23:39]CAPDU: 80 13 01 00 [18:23:39]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [18:23:39]Write i2c OK [18:23:39]MH_I2C_Read... [18:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:39]Read from MH i2c: E2 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 0E 00 [18:23:39]MH_I2C_Read... [18:23:39]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E2 [18:23:39]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:23:39]wFMCommunicate OK [18:23:39]SAM_PROTO_GetShiftState done [18:23:39]FM_GetShiftState done [18:23:39]opened in 1730074113 [18:23:39]opened+sec_in_day 1730160513 [18:23:39]quantity*price = 80028 [18:23:39]sum+1 = 80029 [18:23:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 140 28.10.2024 18:23 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72612 ФПД: 124779001917758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72612&fm=124779001917758&tin=02508201610067®Number=0000000000091644&sum=80000 [18:23:40]StoreToDocumentArchive [18:23:40]shift 554 fd 72612 [18:23:40]save to /storage/0554/doc_00072612 [18:23:40]save last doc name /storage/0554/doc_00072612 to /storage/kkm_last_doc_name [18:23:40]save OK [18:23:40]Clear old archive folders... [18:23:40]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:23:40]tlvbuf is 01B499A0 [18:23:40]SAM_PROTO_ClearQueue [18:23:40]wFMCommunicate request_size=4 [18:23:40]MH_SAM_APDU [18:23:40]CAPDU: 80 09 00 00 [18:23:40]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [18:23:40]Write i2c OK [18:23:40]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:23:41]Read from MH i2c: E2 03 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [18:23:41]RAPDU: 90 00 [18:23:41]wFMCommunicate OK [18:23:41]SAM_PROTO_ClearQueue done [18:23:41]KKMCreateOFDPacket [18:23:41]OFDProtocolAddRootSTLVToBuf [18:23:41]FM_MakeSignedData [18:23:41]FM_MakeSignedData [18:23:41]SAM_PROTO_SignData [18:23:41]wFMCommunicate request_size=4 [18:23:41]MH_SAM_APDU [18:23:41]CAPDU: 80 0D 01 02 [18:23:41]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 03 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [18:23:41]RAPDU: 90 00 [18:23:41]wFMCommunicate OK [18:23:41]wFMCommunicate request_size=253 [18:23:41]MH_SAM_APDU [18:23:41]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AC D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1B 01 00 35 04 06 00 71 7C 60 15 B1 3E [18:23:41]Write to MH i2c: E2 00 01 0C 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AC D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1B 01 00 35 04 06 00 71 7C 60 15 B1 3E 00 00 DC [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 03 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [18:23:41]RAPDU: 90 00 [18:23:41]wFMCommunicate OK [18:23:41]wFMCommunicate request_size=4 [18:23:41]MH_SAM_APDU [18:23:41]CAPDU: 80 0D 03 02 [18:23:41]Write to MH i2c: E2 08 00 0D 01 80 0D 03 02 00 00 00 00 89 [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 0B 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 0B 00 0D 01 00 36 17 6C 74 B9 DB 44 77 90 00 06 [18:23:41]RAPDU: 36 17 6C 74 B9 DB 44 77 90 00 [18:23:41]wFMCommunicate OK [18:23:41]SAM_PROTO_SignData done [18:23:41]FM_MakeSignedData done [18:23:41]CreateOFDProtocolMessage [18:23:41]wFMCommunicate request_size=4 [18:23:41]MH_SAM_APDU [18:23:41]CAPDU: 80 11 00 00 [18:23:41]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:41]Read from MH i2c: E2 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: E2 17 00 [18:23:41]MH_I2C_Read... [18:23:41]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 34 36 36 32 90 00 DD [18:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:23:41]wFMCommunicate OK [18:23:41]CreateOFDProtocolMessage done [18:23:41]OFDSenderStorePacket 72612 [18:23:41]StoreOFDPacket docnum=72612 [18:23:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 ED 0B 00 01 C4 A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AC D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1B 01 00 35 04 06 00 71 7C 60 15 B1 3E 36 17 6C 74 B9 DB 44 77 [18:23:41]CheckFolder [18:23:41]dirname=/storage/ofd_packets [18:23:41]CheckFolder done [18:23:41]ProducePacketName [18:23:41]name=ofd_packets/00072612 [18:23:41]NVStorageSaveData ofd_packets/00072612 [18:23:41]File name is /storage/ofd_packets/00072612 [18:23:41]Write 294 bytes [18:23:41]NVStorageSaveData done [18:23:41]OFDSenderStorePacket done [18:23:41]KKMCreateOFDPacket done [18:23:41]NVStorageSaveData kkm_last_timestamp [18:23:41]File name is /storage/kkm_last_timestamp [18:23:41]Write 4 bytes [18:23:41]NVStorageSaveData done [18:23:41]ExternCall_PrintAddStr [18:23:41]wPrintStart [18:23:41]Write to MH i2c: 01 00 00 0F 01 10 [18:23:41]Write i2c OK [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: 01 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: 01 07 00 [18:23:41]MH_I2C_Read... [18:23:41]Read from MH i2c: 01 07 00 0F 01 00 00 00 00 00 FF 0F 25 [18:23:41]RasterBufferAndPrint [18:23:41]line Счет N : (1)952099 [18:23:41]line ИНН: 02508201610067 [18:23:41]line Контрольно-Кассовый Чек [18:23:41]line ПРОДАЖА [18:23:41]line ТРК (МРК, ГНК) : 51 [18:23:41]line Товар: 50.50.0 [18:23:41]line Super 92 [18:23:41]line 11.700 * 68.40 [18:23:41]line = 800.28 [18:23:41]line НДС 12% НСП 1% [18:23:41]line > о реализуемом товаре [18:23:41]line ОКРУГЛЕНИЕ: -0.28 [18:23:41]line ИТОГО: 800.00 [18:23:41]line Внесено: 800.00 [18:23:41]line СДАЧА: 0.00 [18:23:41]line НСП 1% : 7.08 [18:23:41]line НДС 12% : 84.98 [18:23:41]line Наличными: 800.00 [18:23:41]line Безнал.: 0.00 [18:23:41]line Место: АЗС № 113 "Партнер Нефть" [18:23:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:23:41]line СНО: Общий режим [18:23:41]line Чек 140 28.10.2024 18:23 [18:23:41]line Смена: 554 ФФД: 1.0 [18:23:41]line ЗНМ: 0300000087 [18:23:41]line РНМ: 0000000000091644 [18:23:41]line Версия ККМ: 001 [18:23:41]line ФМ: 0000000000874662 [18:23:41]line ФД: 72612 [18:23:41]line ФПД: 124779001917758 [18:23:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72612&fm=124779001917758&tin=02508201610067®Number=0000000000091644&sum=80000 [18:23:41]written 0, free lines is 4095 [18:23:42]Write to MH i2c: 01 00 00 3A 01 3B [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 07 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 DA 0C 28 [18:23:42]RasterBufferAndPrint [18:23:42]line [18:23:42]line [18:23:42]line [18:23:42]line [18:23:42]line [18:23:42]written 0, free lines is 3309 [18:23:42]MH_Cut [18:23:42]Write to MH i2c: D1 01 00 41 01 01 14 [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: D1 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: D1 01 00 [18:23:42]MH_I2C_Read... [18:23:42]Read from MH i2c: D1 01 00 41 01 00 13 [18:23:42]Write to MH i2c: 01 00 00 42 01 43 [18:23:42]Write i2c OK [18:23:42]MH_I2C_Read... [18:23:42]*** Cut start [18:23:42]*** Partial cut [18:23:42]*** CUTSNS_PIN = 1 [18:23:42]*** CUTSNS_PIN = 0 [18:23:43]*** Brake cut motor [18:23:43]Read from MH i2c: 01 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: 01 07 00 [18:23:43]MH_I2C_Read... [18:23:43]*** Stop cut motor [18:23:43]*** Cut end [18:23:43]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [18:23:43]process_action close_receipt done [18:23:43]requested_data is exist [18:23:43]produce_requested_data [18:23:43]requested_item fm.sn is exist - process it [18:23:43]wFMCommunicate request_size=4 [18:23:43]MH_SAM_APDU [18:23:43]CAPDU: 80 11 00 00 [18:23:43]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:43]Read from MH i2c: E2 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 17 00 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 12 [18:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:23:43]wFMCommunicate OK [18:23:43]requested_item fd.num is exist - process it [18:23:43]SAM_PROTO_GetFieldsCounters [18:23:43]wFMCommunicate request_size=4 [18:23:43]MH_SAM_APDU [18:23:43]CAPDU: 80 13 00 00 [18:23:43]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:43]Read from MH i2c: E2 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 62 00 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [18:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A4 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:23:43]wFMCommunicate OK [18:23:43]SAM_PROTO_GetFieldsCounters done [18:23:43]requested_item shift.num is exist - process it [18:23:43]requested_item shift.opened is exist - process it [18:23:43]req_shift_opened [18:23:43]FM_GetShiftState [18:23:43]SAM_PROTO_GetShiftState [18:23:43]wFMCommunicate request_size=4 [18:23:43]MH_SAM_APDU [18:23:43]CAPDU: 80 13 01 00 [18:23:43]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [18:23:43]Write i2c OK [18:23:43]MH_I2C_Read... [18:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:43]Read from MH i2c: E2 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 0E 00 [18:23:43]MH_I2C_Read... [18:23:43]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2B [18:23:43]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:23:43]wFMCommunicate OK [18:23:43]SAM_PROTO_GetShiftState done [18:23:43]FM_GetShiftState done [18:23:43]req_shift_opened done [18:23:43]requested_item shift.open_date is exist - process it [18:23:43]req_shift_open_date [18:23:43]req_shift_open_date done [18:23:43]produce_requested_data done [18:23:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72612,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:23:43]process_action_free close_receipt [18:23:43]json_value_free [18:23:43]json_value_free done [18:23:43]process_json_proto returns [18:23:43]Send response to host [18:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72612,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:23:43]free response buf [18:23:43]execute_script done [18:23:43]execute_script returns [18:23:43]free content buf [18:23:43]Sock 10.Close socket [18:23:43]Sock 10.Thread stoped [18:23:47]Connected sock=9 [18:23:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 A2 CE 07 01 7B 8A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 8B 00 00 00 F4 03 04 00 9B D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A3 1B 01 00 35 04 06 00 2A 7C 32 45 1F B7 61 A8 52 77 88 65 89 C8 [18:23:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 07 E0 47 00 70 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 34 36 36 32 10 04 04 00 A3 1B 01 00 F4 03 04 00 70 81 1F 67 B6 04 01 00 00 CB 79 C6 F2 E0 C1 C5 E4 [18:23:48]CommunicateWithHost err = 0 [18:23:48]CheckOFDResponse [18:23:48]1017 (14) - 77093643461234 [18:23:48]1041 (16) - 0000000000874662 [18:23:48]1040 (4) - 72611 [18:23:48]1012 (4) - 28.10.2024 12:20 [18:23:48]1206 (1) - 0 [18:23:48]OFD Sender: Remove packet 72611 [18:23:48]ProducePacketName [18:23:48]name=ofd_packets/00072611 [18:23:48]NVStorageDeleteData [18:23:49]OFD Sender: Processing packet 72612 [packets to send 275, broken 274] [18:23:49]ProducePacketName [18:23:49]name=ofd_packets/00072612 [18:23:49]OFD Sender: To server: pG, [18:23:49]CommunicateWithHost lk.salyk.kg:30040 [18:23:49]ConnectInit lk.salyk.kg [18:23:52]recv_with_timeout no data received [18:23:54]ConnectInit Can't take IP for lk.salyk.kg [18:23:54]CommunicateWithHost connect error [18:23:54]CommunicateWithHost err = -1 [18:23:54]OFD Sender: Server communicate error [18:23:54]OFD Sender: Processing packet 72612 [packets to send 275, broken 274] [18:23:54]ProducePacketName [18:23:54]name=ofd_packets/00072612 [18:23:54]OFD Sender: To server: pG, [18:23:54]CommunicateWithHost lk.salyk.kg:30040 [18:23:54]ConnectInit lk.salyk.kg [18:23:59]ConnectInit Can't take IP for lk.salyk.kg [18:23:59]CommunicateWithHost connect error [18:23:59]CommunicateWithHost err = -1 [18:23:59]OFD Sender: Server communicate error [18:24:04]OFD Sender: Processing packet 72612 [packets to send 275, broken 274] [18:24:04]ProducePacketName [18:24:04]name=ofd_packets/00072612 [18:24:04]OFD Sender: To server: pG, [18:24:04]CommunicateWithHost lk.salyk.kg:30040 [18:24:04]ConnectInit lk.salyk.kg [18:24:07]recv_with_timeout no data received [18:24:09]ConnectInit Can't take IP for lk.salyk.kg [18:24:09]CommunicateWithHost connect error [18:24:09]CommunicateWithHost err = -1 [18:24:09]OFD Sender: Server communicate error [18:24:14]OFD Sender: Processing packet 72612 [packets to send 275, broken 274] [18:24:14]ProducePacketName [18:24:14]name=ofd_packets/00072612 [18:24:14]OFD Sender: To server: pG, [18:24:14]CommunicateWithHost lk.salyk.kg:30040 [18:24:14]ConnectInit lk.salyk.kg [18:24:21]recv_with_timeout no data received [18:24:28]Connected sock=10 [18:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 ED 0B 00 01 C4 A7 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 B4 2D 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 AC D6 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A4 1B 01 00 35 04 06 00 71 7C 60 15 B1 3E 36 17 6C 74 B9 DB 44 77 [18:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F1 32 47 00 68 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 34 36 36 32 10 04 04 00 A4 1B 01 00 F4 03 04 00 9A 81 1F 67 B6 04 01 00 00 85 B6 6C BD 10 1A 28 AF [18:24:31]CommunicateWithHost err = 0 [18:24:31]CheckOFDResponse [18:24:31]1017 (14) - 77093643461234 [18:24:31]1041 (16) - 0000000000874662 [18:24:31]1040 (4) - 72612 [18:24:31]1012 (4) - 28.10.2024 12:20 [18:24:31]1206 (1) - 0 [18:24:31]OFD Sender: Remove packet 72612 [18:24:31]ProducePacketName [18:24:31]name=ofd_packets/00072612 [18:24:31]NVStorageDeleteData [18:24:32]OFD Sender: No OFD packet to send [18:24:34]recv_with_timeout no data received [18:24:37]OFD Sender: No OFD packet to send [18:24:42]OFD Sender: No OFD packet to send [18:24:47]OFD Sender: No OFD packet to send [18:24:48]recv_with_timeout no data received [18:24:52]OFD Sender: No OFD packet to send [18:24:57]OFD Sender: No OFD packet to send [18:25:02]OFD Sender: No OFD packet to send [18:25:02]recv_with_timeout no data received [18:25:07]OFD Sender: No OFD packet to send [18:25:12]OFD Sender: No OFD packet to send [18:25:14]accept exits with 7 [18:25:14]New connection [18:25:14]New thread 3067383140 created [18:25:14]Thread 3067239780 joined [18:25:14]Waiting for new connection... [18:25:14] Sock 7.Parse request [18:25:14]Sock 7.Check first char [18:25:14]Sock 7.First char is OK [18:25:14]request: POST /json_proto HTTP/1.0 [18:25:14]Method: POST [18:25:14]URL: /json_proto [18:25:14]Method is POST - this is cgi request [18:25:14]url: /json_proto [18:25:14]query_string will be loaded in cgi processing [18:25:14]execute_cgi json_proto POST (null) [18:25:14]execute_cgi path=json_proto method=POST [18:25:14]POST find Content-Length [18:25:14]Host: 172.17.43.195:8080 [18:25:14]Content-Length: 781 [18:25:14]Content-Type: application/json [18:25:14] [18:25:14]POST finish read [18:25:14]Found Content-Length = 781 [18:25:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:14]execute_script... [18:25: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)952100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 4.390, "sum" : 300.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:25:14]POST & json_proto [18:25:14]process_json_proto [18:25:14]json parsed OK: [18:25:14]protocol is kg_v1.0 [18:25:14]action value=close_receipt [18:25:14]process_action close_receipt [18:25:14]cmd_close_receipt [18:25:14]MH_GetDate [18:25:14]Write to MH i2c: F0 00 00 46 01 36 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: F0 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: F0 09 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: F0 09 00 46 01 00 0B D7 1F 67 74 2C AD 66 5A [18:25:14]GetLastDocTimeStamp 1730139820 [18:25:14]current date 1730139915 [18:25:14]FM_GetShiftState [18:25:14]SAM_PROTO_GetShiftState [18:25:14]wFMCommunicate request_size=4 [18:25:14]MH_SAM_APDU [18:25:14]CAPDU: 80 13 01 00 [18:25:14]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [18:25:14]Write i2c OK [18:25:14]MH_I2C_Read... [18:25:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:14]Read from MH i2c: E2 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0E 00 [18:25:14]MH_I2C_Read... [18:25:14]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2D [18:25:14]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:25:14]wFMCommunicate OK [18:25:14]SAM_PROTO_GetShiftState done [18:25:14]FM_GetShiftState done [18:25:14]opened in 1730074113 [18:25:14]opened+sec_in_day 1730160513 [18:25:14]quantity*price = 30027 [18:25:14]sum+1 = 30029 [18:25:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 141 28.10.2024 18:25 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72613 ФПД: 138970728891112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182515&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72613&fm=138970728891112&tin=02508201610067®Number=0000000000091644&sum=30028 [18:25:15]StoreToDocumentArchive [18:25:15]shift 554 fd 72613 [18:25:15]save to /storage/0554/doc_00072613 [18:25:15]save last doc name /storage/0554/doc_00072613 to /storage/kkm_last_doc_name [18:25:15]save OK [18:25:15]Clear old archive folders... [18:25:15]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:25:15]tlvbuf is 01B25C10 [18:25:15]SAM_PROTO_ClearQueue [18:25:15]wFMCommunicate request_size=4 [18:25:15]MH_SAM_APDU [18:25:15]CAPDU: 80 09 00 00 [18:25:15]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:15]Read from MH i2c: E2 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [18:25:15]RAPDU: 90 00 [18:25:15]wFMCommunicate OK [18:25:15]SAM_PROTO_ClearQueue done [18:25:15]KKMCreateOFDPacket [18:25:15]OFDProtocolAddRootSTLVToBuf [18:25:15]FM_MakeSignedData [18:25:15]FM_MakeSignedData [18:25:15]SAM_PROTO_SignData [18:25:15]wFMCommunicate request_size=4 [18:25:15]MH_SAM_APDU [18:25:15]CAPDU: 80 0D 01 02 [18:25:15]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:15]Read from MH i2c: E2 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [18:25:15]RAPDU: 90 00 [18:25:15]wFMCommunicate OK [18:25:15]wFMCommunicate request_size=253 [18:25:15]MH_SAM_APDU [18:25:15]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0B D7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1B 01 00 35 04 06 00 7E 64 A4 EE 02 E8 [18:25:15]Write to MH i2c: E2 00 01 56 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0B D7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1B 01 00 35 04 06 00 7E 64 A4 EE 02 E8 00 00 5A [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:15]Read from MH i2c: E2 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 [18:25:15]MH_I2C_Read... [18:25:15]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [18:25:15]RAPDU: 90 00 [18:25:15]wFMCommunicate OK [18:25:15]wFMCommunicate request_size=4 [18:25:15]MH_SAM_APDU [18:25:15]CAPDU: 80 0D 03 02 [18:25:15]Write to MH i2c: E2 08 00 57 01 80 0D 03 02 00 00 00 00 D3 [18:25:15]Write i2c OK [18:25:15]MH_I2C_Read... [18:25:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0B 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 0B 00 57 01 00 06 C9 BB DB 89 FA 83 2B 90 00 6A [18:25:16]RAPDU: 06 C9 BB DB 89 FA 83 2B 90 00 [18:25:16]wFMCommunicate OK [18:25:16]SAM_PROTO_SignData done [18:25:16]FM_MakeSignedData done [18:25:16]CreateOFDProtocolMessage [18:25:16]wFMCommunicate request_size=4 [18:25:16]MH_SAM_APDU [18:25:16]CAPDU: 80 11 00 00 [18:25:16]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:16]Read from MH i2c: E2 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [18:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:16]wFMCommunicate OK [18:25:16]CreateOFDProtocolMessage done [18:25:16]OFDSenderStorePacket 72613 [18:25:16]StoreOFDPacket docnum=72613 [18:25:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 10 66 00 01 3A 2F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0B D7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1B 01 00 35 04 06 00 7E 64 A4 EE 02 E8 06 C9 BB DB 89 FA 83 2B [18:25:16]CheckFolder [18:25:16]dirname=/storage/ofd_packets [18:25:16]CheckFolder done [18:25:16]ProducePacketName [18:25:16]name=ofd_packets/00072613 [18:25:16]NVStorageSaveData ofd_packets/00072613 [18:25:16]File name is /storage/ofd_packets/00072613 [18:25:16]Write 294 bytes [18:25:16]NVStorageSaveData done [18:25:16]OFDSenderStorePacket done [18:25:16]KKMCreateOFDPacket done [18:25:16]NVStorageSaveData kkm_last_timestamp [18:25:16]File name is /storage/kkm_last_timestamp [18:25:16]Write 4 bytes [18:25:16]NVStorageSaveData done [18:25:16]ExternCall_PrintAddStr [18:25:16]wPrintStart [18:25:16]Write to MH i2c: 01 00 00 59 01 5A [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 59 01 00 00 00 00 00 FF 0F 6F [18:25:16]RasterBufferAndPrint [18:25:16]line Счет N : (1)952100 [18:25:16]line ИНН: 02508201610067 [18:25:16]line Контрольно-Кассовый Чек [18:25:16]line ПРОДАЖА [18:25:16]line ТРК (МРК, ГНК) : 61 [18:25:16]line Товар: 50.50.0 [18:25:16]line Super 92 [18:25:16]line 4.390 * 68.40 [18:25:16]line = 300.28 [18:25:16]line НДС 12% НСП 1% [18:25:16]line > о реализуемом товаре [18:25:16]line ИТОГО: 300.28 [18:25:16]line НСП 1% : 2.66 [18:25:16]line НДС 12% : 31.89 [18:25:16]line Наличными: 0.00 [18:25:16]line Безнал.: 300.28 [18:25:16]line Место: АЗС № 113 "Партнер Нефть" [18:25:16]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:25:16]line СНО: Общий режим [18:25:16]line Чек 141 28.10.2024 18:25 [18:25:16]line Смена: 554 ФФД: 1.0 [18:25:16]line ЗНМ: 0300000087 [18:25:16]line РНМ: 0000000000091644 [18:25:16]line Версия ККМ: 001 [18:25:16]line Платежная система: O! деньги [18:25:16]line ФМ: 0000000000874662 [18:25:16]line ФД: 72613 [18:25:16]line ФПД: 138970728891112 [18:25:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T182515&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72613&fm=138970728891112&tin=02508201610067®Number=0000000000091644&sum=30028 [18:25:16]written 0, free lines is 4095 [18:25:16]OFD Sender: Processing packet 72613 [packets to send 275, broken 274] [18:25:16]ProducePacketName [18:25:16]name=ofd_packets/00072613 [18:25:16]OFD Sender: To server: pG, [18:25:16]CommunicateWithHost lk.salyk.kg:30040 [18:25:16]ConnectInit lk.salyk.kg [18:25:16]Write to MH i2c: 01 00 00 83 01 84 [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: 01 07 00 83 01 00 00 00 00 00 E1 0C 78 [18:25:16]RasterBufferAndPrint [18:25:16]line [18:25:16]line [18:25:16]line [18:25:16]line [18:25:16]line [18:25:16]written 0, free lines is 3303 [18:25:16]MH_Cut [18:25:16]Write to MH i2c: D1 01 00 8A 01 01 5D [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: D1 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: D1 01 00 [18:25:16]MH_I2C_Read... [18:25:16]Read from MH i2c: D1 01 00 8A 01 00 5C [18:25:16]Write to MH i2c: 01 00 00 8B 01 8C [18:25:16]Write i2c OK [18:25:16]MH_I2C_Read... [18:25:17]recv_with_timeout no data received [18:25:17]*** Cut start [18:25:17]*** Partial cut [18:25:17]*** CUTSNS_PIN = 1 [18:25:17]*** CUTSNS_PIN = 0 [18:25:17]*** Brake cut motor [18:25:17]Read from MH i2c: 01 [18:25:17]MH_I2C_Read... [18:25:17]*** Stop cut motor [18:25:17]*** Cut end [18:25:17]Read from MH i2c: 01 07 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: 01 07 00 8B 01 00 00 00 00 00 FF 0F A1 [18:25:17]process_action close_receipt done [18:25:17]requested_data is exist [18:25:17]produce_requested_data [18:25:17]requested_item fm.sn is exist - process it [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 11 00 00 [18:25:17]Write to MH i2c: E2 08 00 8C 01 80 11 00 00 00 00 00 00 07 [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:17]Read from MH i2c: E2 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 17 00 [18:25:17]MH_I2C_Read... [18:25:17]Read from MH i2c: E2 17 00 8C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [18:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:25:17]wFMCommunicate OK [18:25:17]requested_item fd.num is exist - process it [18:25:17]SAM_PROTO_GetFieldsCounters [18:25:17]wFMCommunicate request_size=4 [18:25:17]MH_SAM_APDU [18:25:17]CAPDU: 80 13 00 00 [18:25:17]Write to MH i2c: E2 08 00 8D 01 80 13 00 00 00 00 00 00 0A [18:25:17]Write i2c OK [18:25:17]MH_I2C_Read... [18:25:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:25:18]Read from MH i2c: E2 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: E2 62 00 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: E2 62 00 8D 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [18:25: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A5 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:25:18]wFMCommunicate OK [18:25:18]SAM_PROTO_GetFieldsCounters done [18:25:18]requested_item shift.num is exist - process it [18:25:18]requested_item shift.opened is exist - process it [18:25:18]req_shift_opened [18:25:18]FM_GetShiftState [18:25:18]SAM_PROTO_GetShiftState [18:25:18]wFMCommunicate request_size=4 [18:25:18]MH_SAM_APDU [18:25:18]CAPDU: 80 13 01 00 [18:25:18]Write to MH i2c: E2 08 00 8E 01 80 13 01 00 00 00 00 00 0C [18:25:18]Write i2c OK [18:25:18]MH_I2C_Read... [18:25:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:18]Read from MH i2c: E2 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: E2 0E 00 [18:25:18]MH_I2C_Read... [18:25:18]Read from MH i2c: E2 0E 00 8E 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 74 [18:25:18]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:25:18]wFMCommunicate OK [18:25:18]SAM_PROTO_GetShiftState done [18:25:18]FM_GetShiftState done [18:25:18]req_shift_opened done [18:25:18]requested_item shift.open_date is exist - process it [18:25:18]req_shift_open_date [18:25:18]req_shift_open_date done [18:25:18]produce_requested_data done [18:25:18]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72613,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:25:18]process_action_free close_receipt [18:25:18]json_value_free [18:25:18]json_value_free done [18:25:18]process_json_proto returns [18:25:18]Send response to host [18:25:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72613,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:25:18]free response buf [18:25:18]execute_script done [18:25:18]execute_script returns [18:25:18]free content buf [18:25:18]Sock 7.Close socket [18:25:18]Sock 7.Thread stoped [18:25:21]ConnectInit Can't take IP for lk.salyk.kg [18:25:21]CommunicateWithHost connect error [18:25:21]CommunicateWithHost err = -1 [18:25:21]OFD Sender: Server communicate error [18:25:26]OFD Sender: Processing packet 72613 [packets to send 275, broken 274] [18:25:26]ProducePacketName [18:25:26]name=ofd_packets/00072613 [18:25:26]OFD Sender: To server: pG, [18:25:26]CommunicateWithHost lk.salyk.kg:30040 [18:25:26]ConnectInit lk.salyk.kg [18:25:29]recv_with_timeout no data received [18:25:31]ConnectInit Can't take IP for lk.salyk.kg [18:25:31]CommunicateWithHost connect error [18:25:31]CommunicateWithHost err = -1 [18:25:31]OFD Sender: Server communicate error [18:25:36]OFD Sender: Processing packet 72613 [packets to send 275, broken 274] [18:25:36]ProducePacketName [18:25:36]name=ofd_packets/00072613 [18:25:36]OFD Sender: To server: pG, [18:25:36]CommunicateWithHost lk.salyk.kg:30040 [18:25:36]ConnectInit lk.salyk.kg [18:25:42]recv_with_timeout no data received [18:25:48]Connected sock=9 [18:25:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 10 66 00 01 3A 2F 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 26 11 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 0B D7 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A5 1B 01 00 35 04 06 00 7E 64 A4 EE 02 E8 06 C9 BB DB 89 FA 83 2B [18:25:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2E 06 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 34 36 36 32 10 04 04 00 A5 1B 01 00 F4 03 04 00 EA 81 1F 67 B6 04 01 00 00 74 3E 43 D7 9D 91 38 18 [18:25:50]CommunicateWithHost err = 0 [18:25:50]CheckOFDResponse [18:25:50]1017 (14) - 77093643461234 [18:25:50]1041 (16) - 0000000000874662 [18:25:50]1040 (4) - 72613 [18:25:50]1012 (4) - 28.10.2024 12:22 [18:25:50]1206 (1) - 0 [18:25:50]OFD Sender: Remove packet 72613 [18:25:50]ProducePacketName [18:25:50]name=ofd_packets/00072613 [18:25:50]NVStorageDeleteData [18:25:50]OFD Sender: No OFD packet to send [18:25:54]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:37]recv_with_timeout no data received [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:26:57]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [18:27:26]OFD Sender: No OFD packet to send [18:27:31]OFD Sender: No OFD packet to send [18:27:36]OFD Sender: No OFD packet to send [18:27:41]OFD Sender: No OFD packet to send [18:27:42]recv_with_timeout no data received [18:27:46]OFD Sender: No OFD packet to send [18:27:51]OFD Sender: No OFD packet to send [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:17]recv_with_timeout no data received [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: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:43]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:52]recv_with_timeout no data received [18:32:56]OFD Sender: No OFD packet to send [18:33:00]accept exits with 10 [18:33:00]New connection [18:33:00]New thread 3067239780 created [18:33:00]Thread 3067383140 joined [18:33:00]Waiting for new connection... [18:33:00] Sock 10.Parse request [18:33:00]Sock 10.Check first char [18:33:00]Sock 10.First char is OK [18:33:00]request: POST /json_proto HTTP/1.0 [18:33:00]Method: POST [18:33:00]URL: /json_proto [18:33:00]Method is POST - this is cgi request [18:33:00]url: /json_proto [18:33:00]query_string will be loaded in cgi processing [18:33:00]execute_cgi json_proto POST (null) [18:33:00]execute_cgi path=json_proto method=POST [18:33:00]POST find Content-Length [18:33:00]Host: 172.17.43.195:8080 [18:33:00]Content-Length: 797 [18:33:00]Content-Type: application/json [18:33:00] [18:33:00]POST finish read [18:33:00]Found Content-Length = 797 [18:33:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.610, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:00]execute_script... [18:33: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)952101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 11.610, "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\u000A53623", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:00]POST & json_proto [18:33:00]process_json_proto [18:33:00]json parsed OK: [18:33:00]protocol is kg_v1.0 [18:33:00]action value=close_receipt [18:33:00]process_action close_receipt [18:33:00]cmd_close_receipt [18:33:00]MH_GetDate [18:33:00]Write to MH i2c: F0 00 00 8F 01 7F [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: F0 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: F0 09 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: F0 09 00 8F 01 00 DD D8 1F 67 74 2C AD 66 76 [18:33:00]GetLastDocTimeStamp 1730139915 [18:33:00]current date 1730140381 [18:33:00]FM_GetShiftState [18:33:00]SAM_PROTO_GetShiftState [18:33:00]wFMCommunicate request_size=4 [18:33:00]MH_SAM_APDU [18:33:00]CAPDU: 80 13 01 00 [18:33:00]Write to MH i2c: E2 08 00 90 01 80 13 01 00 00 00 00 00 0E [18:33:00]Write i2c OK [18:33:00]MH_I2C_Read... [18:33:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:00]Read from MH i2c: E2 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0E 00 [18:33:00]MH_I2C_Read... [18:33:00]Read from MH i2c: E2 0E 00 90 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 76 [18:33:00]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:33:00]wFMCommunicate OK [18:33:00]SAM_PROTO_GetShiftState done [18:33:00]FM_GetShiftState done [18:33:00]opened in 1730074113 [18:33:00]opened+sec_in_day 1730160513 [18:33:00]quantity*price = 0 [18:33:00]sum+1 = 1 [18:33:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 143 28.10.2024 18:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53623 ФМ: 0000000000874662 ФД: 72615 ФПД: 161103359133544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183350&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72615&fm=161103359133544&tin=02508201610067®Number=0000000000091644&sum=0 [18:33:51]StoreToDocumentArchive [18:33:51]shift 554 fd 72615 [18:33:51]save to /storage/0554/doc_00072615 [18:33:51]save last doc name /storage/0554/doc_00072615 to /storage/kkm_last_doc_name [18:33:51]save OK [18:33:51]Clear old archive folders... [18:33:51]ProcessDocumentItem done err = 0, tmpTLVsize=252 [18:33:51]tlvbuf is 01939980 [18:33:51]SAM_PROTO_ClearQueue [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 09 00 00 [18:33:51]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]SAM_PROTO_ClearQueue done [18:33:51]KKMCreateOFDPacket [18:33:51]OFDProtocolAddRootSTLVToBuf [18:33:51]FM_MakeSignedData [18:33:51]FM_MakeSignedData [18:33:51]SAM_PROTO_SignData [18:33:51]wFMCommunicate request_size=4 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 0D 01 02 [18:33:51]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:33:51]Write i2c OK [18:33:51]MH_I2C_Read... [18:33:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:51]Read from MH i2c: E2 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 [18:33:51]MH_I2C_Read... [18:33:51]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:33:51]RAPDU: 90 00 [18:33:51]wFMCommunicate OK [18:33:51]wFMCommunicate request_size=255 [18:33:51]MH_SAM_APDU [18:33:51]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 0E D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A7 1B 01 00 35 04 06 00 [18:33:51]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 5A 2D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:09]/dev/ttyS4 opened [00:00:09]MH_GetMetrics [00:00:09]Write to MH i2c: 00 00 00 01 00 00 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:09]Are we in boot? [00:00:09]We are in boot - try to switch [00:00:09]Write to MH i2c: A0 00 00 02 00 A1 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: A0 01 00 [00:00:09]MH_I2C_Read... [00:00:09]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:09]*** [00:00:09]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:09]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:09]*** Waiting for read because exit forced [00:00:09]*** 10 ms more... [00:00:09]*** MH1903S init start (LINUX_LIGHT) [00:00:09]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:09]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:09]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:09]*** step 0: 5000 (2650, 2350 REF) [00:00:09]*** step 1: 4835 (2500, 2335 REF) [00:00:09]*** step 2: 4676 (2440, 2236 REF) [00:00:09]*** step 3: 4523 (2280, 2243 REF) [00:00:09]*** step 4: 4376 (2160, 2216 REF) [00:00:09]*** step 5: 4235 (2050, 2185 REF) [00:00:09]*** step 6: 4098 (1950, 2148 REF) [00:00:09]*** step 7: 3967 (1870, 2097 REF) [00:00:09]*** step 8: 3840 (1828, 2012 REF) [00:00:09]*** step 9: 3719 (1728, 1991 REF) [00:00:09]*** step 10: 3601 (1675, 1926 REF) [00:00:09]*** step 11: 3488 (1635, 1853 REF) [00:00:09]*** step 12: 3379 (1595, 1784 REF) [00:00:09]*** step 13: 3275 (1565, 1710 REF) [00:00:09]*** step 14: 3174 (1543, 1631 REF) [00:00:09]*** step 15: 3077 (1523, 1554 REF) [00:00:09]*** step 16: 2983 (1503, 1480 REF) [00:00:09]*** step 17: 2893 (1486, 1407 REF) [00:00:09]*** step 18: 2806 (1466, 1340 REF) [00:00:09]*** step 19: 2723 (1426, 1297 REF) [00:00:09]*** step 20: 2642 (1406, 1236 REF) [00:00:09]*** step 21: 2565 (1384, 1181 REF) [00:00:09]*** step 22: 2490 (1364, 1126 REF) [00:00:09]*** step 23: 2418 (1344, 1074 REF) [00:00:09]*** step 24: 2349 (1322, 1027 REF) [00:00:09]*** step 25: 2283 (1302, 981 REF) [00:00:09]*** step 26: 2218 (1282, 936 REF) [00:00:09]*** step 27: 2157 (1262, 895 REF) [00:00:09]*** step 28: 2097 (1242, 855 REF) [00:00:09]*** step 29: 2040 (1222, 818 REF) [00:00:09]*** step 30: 1985 (1202, 783 REF) [00:00:09]*** step 31: 1932 (1191, 741 REF) [00:00:09]*** step 32: 1880 (1181, 699 REF) [00:00:09]*** step 33: 1831 (1171, 660 REF) [00:00:09]*** step 34: 1784 (1161, 623 REF) [00:00:09]*** step 35: 1738 (1151, 587 REF) [00:00:09]*** step 36: 1694 (1141, 553 REF) [00:00:09]*** step 37: 1652 (1131, 521 REF) [00:00:09]*** step 38: 1611 (1121, 490 REF) [00:00:09]*** step 39: 1572 (1111, 461 REF) [00:00:09]*** step 40: 1534 (1103, 431 REF) [00:00:09]*** step 41: 1497 (1093, 404 REF) [00:00:09]*** step 42: 1462 (1083, 379 REF) [00:00:09]*** step 43: 1428 (1073, 355 REF) [00:00:09]*** step 44: 1396 (1063, 333 REF) [00:00:09]*** step 45: 1365 (1053, 312 REF) [00:00:09]*** step 46: 1334 (1043, 291 REF) [00:00:09]*** step 47: 1305 (1033, 272 REF) [00:00:09]*** step 48: 1277 (1023, 254 REF) [00:00:09]*** step 49: 1250 (1013, 237 REF) [00:00:09]*** step 50: 1224 (990, 234 REF) [00:00:09]*** step 51: 1199 (980, 219 REF) [00:00:09]*** step 52: 1175 (970, 205 REF) [00:00:09]*** step 53: 1152 (960, 192 REF) [00:00:09]*** step 54: 1130 (950, 180 REF) [00:00:09]*** step 55: 1108 (940, 168 REF) [00:00:09]*** step 56: 1088 (930, 158 REF) [00:00:09]*** step 57: 1068 (920, 148 REF) [00:00:09]*** step 58: 1049 (910, 139 REF) [00:00:09]*** step 59: 1030 (900, 130 REF) [00:00:09]*** step 60: 1012 (890, 122 REF) [00:00:09]*** step 61: 995 (880, 115 REF) [00:00:09]*** step 62: 979 (870, 109 REF) [00:00:09]*** step 63: 963 (860, 103 REF) [00:00:09]*** step 64: 948 (850, 98 REF) [00:00:09]*** step 65: 933 (840, 93 REF) [00:00:09]*** step 66: 919 (830, 89 REF) [00:00:09]*** step 67: 905 (820, 85 REF) [00:00:09]*** step 68: 892 (810, 82 REF) [00:00:09]*** step 69: 879 (800, 79 REF) [00:00:09]*** step 70: 867 (790, 77 REF) [00:00:09]*** step 71: 855 (780, 75 REF) [00:00:09]*** step 72: 844 (770, 74 REF) [00:00:09]*** step 73: 833 (760, 73 REF) [00:00:09]*** step 74: 822 (750, 72 REF) [00:00:09]*** step 75: 812 (740, 72 REF) [00:00:09]*** step 76: 803 (730, 73 REF) [00:00:09]*** step 77: 793 (720, 73 REF) [00:00:09]*** step 78: 784 (710, 74 REF) [00:00:09]*** step 79: 776 (700, 76 REF) [00:00:09]*** step 80: 767 (690, 77 REF) [00:00:09]*** step 81: 759 (680, 79 REF) [00:00:09]*** step 82: 751 (670, 81 REF) [00:00:09]*** step 83: 744 (660, 84 REF) [00:00:09]*** step 84: 737 (650, 87 REF) [00:00:09]*** step 85: 730 (640, 90 REF) [00:00:09]*** step 86: 723 (630, 93 REF) [00:00:09]*** step 87: 717 (620, 97 REF) [00:00:09]*** step 88: 710 (610, 100 REF) [00:00:09]*** step 89: 705 (600, 105 REF) [00:00:09]*** step 90: 699 [00:00:09]*** step 91: 693 [00:00:09]*** step 92: 688 [00:00:09]*** step 93: 683 [00:00:09]*** step 94: 678 [00:00:09]*** step 95: 673 [00:00:09]*** step 96: 669 [00:00:09]*** step 97: 664 [00:00:09]*** step 98: 660 [00:00:09]*** step 99: 656 [00:00:09]*** step 100: 652 [00:00:09]*** step 101: 648 [00:00:09]*** step 102: 644 [00:00:09]*** step 103: 641 [00:00:09]*** step 104: 638 [00:00:09]*** step 105: 634 [00:00:09]*** step 106: 631 [00:00:09]*** step 107: 628 [00:00:09]*** step 108: 625 [00:00:09]*** step 109: 622 [00:00:09]*** step 110: 620 [00:00:09]*** step 111: 617 [00:00:09]*** step 112: 615 [00:00:09]*** step 113: 612 [00:00:09]*** step 114: 610 [00:00:09]*** step 115: 608 [00:00:09]*** step 116: 605 [00:00:09]*** step 117: 603 [00:00:09]*** step 118: 601 [00:00:09]*** step 119: 599 [00:00:09]*** printer: Printer HW initialized [00:00:09]*** initSamCard finished [00:00:09]*** RTC: 7515410+1722625140=1730140550 [00:00:09]*** BPK Status Register BPK_RDY = 0x0 [00:00:09]*** SEN State Register SEN_STATE = 0x20ff [00:00:09]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:09]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:09]*** Is cutter blocked? [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 03 00 02 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:10]Are we in boot? [00:00:10]We are not in boot now [00:00:10]Write to MH i2c: 01 00 00 04 00 04 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:10]Model is 3 [00:00:10]MH firmware is 30620 [00:00:10]MH boot firmware is 3 [00:00:10]MH_SetPrinterDots 448 [00:00:10]HeadWidthInBytes 56 [00:00:10]maxmasksize 7 [00:00:10]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:10]Write to MH i2c: D5 00 00 06 00 DA [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]LoadDictionaryFromArray [00:00:10]Load OK [00:00:10]ExternCall_SetCallbacks [00:00:10]NVStorageInit [00:00:10]MH_GetDate [00:00:10]Write to MH i2c: F0 00 00 07 00 F6 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: F0 09 00 07 00 00 87 D9 1F 67 74 2C AD 66 98 [18:35:51]Current date/time: 28.10.2024 18:35 [18:35:51]FM_Init [18:35:51]wFMConnect [18:35:51]MH_SAM_On [18:35:51]Write to MH i2c: E0 00 00 08 00 E7 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_init finished! [18:35:51]*** atr: [18:35:51]*** 0F 3B D5 18 FF 81 91 FE [18:35:51]*** 1F C3 80 73 C8 21 10 0A [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]*** 00 00 00 00 00 00 00 00 [18:35:51]Read from MH i2c: E0 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E0 10 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [18:35:51]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [18:35:51]wFMCommunicate request_size=10 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [18:35:51]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]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 34 36 36 32 90 00 D8 [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:35:51]wFMCommunicate OK [18:35:51]Detected FM SN is 0000000000874662 [18:35:51]Stored FM SN is 0000000000874662 [18:35:51]wFMCommunicate request_size=9 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 16 00 00 04 08 EB 00 00 [18:35:51]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]FM PIN OK [18:35:51]wFMCommunicate request_size=8 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 14 04 00 03 02 00 01 [18:35:51]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=13 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [18:35:51]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [18:35:51]RAPDU: 90 00 [18:35:51]wFMCommunicate OK [18:35:51]wFMCommunicate request_size=4 [18:35:51]MH_SAM_APDU [18:35:51]CAPDU: 80 11 00 00 [18:35:51]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:51]Read from MH i2c: E2 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: E2 17 00 [18:35:51]MH_I2C_Read... [18:35:51]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 34 36 36 32 90 00 DC [18:35:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:35:51]wFMCommunicate OK [18:35:51]DocumentArchiveInit [18:35:51]Start Httpd... [18:35:51]Httpd thread 3067551076 created [18:35:51]Write to MH i2c: 01 00 00 0F 00 0F [18:35:51]Write i2c OK [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 [18:35:51]MH_I2C_Read... [18:35:51]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [18:35:51]MH Int Process started [18:35:51]Allocated Socket 8 [18:35:51]Bind OK [18:35:51]Listen OK [18:35:51]httpd running on port 8080 [18:35:51]Waiting for new connection... [18:35:51]OFD Sender: Processing packet 72616 [packets to send 276, broken 275] [18:35:51]ProducePacketName [18:35:51]name=ofd_packets/00072616 [18:35:51]OFD Sender: To server: pG, [18:35:51]CommunicateWithHost lk.salyk.kg:30040 [18:35:51]ConnectInit lk.salyk.kg [18:35:52]Connected sock=6 [18:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4E 2C 08 01 5B 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1B 01 00 35 04 06 00 8A 97 1A CF 21 C7 E7 8B 4D 1E 59 26 3E D8 [18:35:53]accept exits with 9 [18:35:53]New connection [18:35:53]New thread 3067264356 created [18:35:53]Waiting for new connection... [18:35:53] Sock 9.Parse request [18:35:53]Sock 9.Check first char [18:35:53]Sock 9.First char is OK [18:35:53]request: POST /json_proto HTTP/1.0 [18:35:53]Method: POST [18:35:53]URL: /json_proto [18:35:53]Method is POST - this is cgi request [18:35:53]url: /json_proto [18:35:53]query_string will be loaded in cgi processing [18:35:53]execute_cgi json_proto POST (null) [18:35:53]execute_cgi path=json_proto method=POST [18:35:53]POST find Content-Length [18:35:53]Host: 172.17.43.195:8080 [18:35:53]Content-Length: 215 [18:35:53]Content-Type: application/json [18:35:53] [18:35:53]POST finish read [18:35:53]Found Content-Length = 215 [18:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:53]execute_script... [18:35:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:53]POST & json_proto [18:35:53]process_json_proto [18:35:53]json parsed OK: [18:35:53]protocol is kg_v1.0 [18:35:53]action value=get_value [18:35:53]process_action get_value [18:35:53]cmd_get_value [18:35:53]process_action get_value done [18:35:53]requested_data is exist [18:35:53]produce_requested_data [18:35:53]requested_item kkm.sn is exist - process it [18:35:53]requested_item kkm.ver is exist - process it [18:35:53]requested_item fm.sn is exist - process it [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 11 00 00 [18:35:53]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 17 00 [18:35:53]MH_I2C_Read... [18:35:53]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 34 36 36 32 90 00 DE [18:35:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:35:53]wFMCommunicate OK [18:35:53]requested_item fd.num is exist - process it [18:35:53]SAM_PROTO_GetFieldsCounters [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 13 00 00 [18:35:53]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 62 00 [18:35:53]MH_I2C_Read... [18:35:53]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A8 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [18:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A8 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_GetFieldsCounters done [18:35:53]requested_item shift.num is exist - process it [18:35:53]requested_item shift.opened is exist - process it [18:35:53]req_shift_opened [18:35:53]FM_GetShiftState [18:35:53]SAM_PROTO_GetShiftState [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 13 01 00 [18:35:53]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:53]Read from MH i2c: E2 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0E 00 [18:35:53]MH_I2C_Read... [18:35:53]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F7 [18:35:53]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:35:53]wFMCommunicate OK [18:35:53]SAM_PROTO_GetShiftState done [18:35:53]FM_GetShiftState done [18:35:53]req_shift_opened done [18:35:53]requested_item shift.open_date is exist - process it [18:35:53]req_shift_open_date [18:35:53]req_shift_open_date done [18:35:53]produce_requested_data done [18:35:53]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72616,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:35:53]process_action_free get_value [18:35:53]json_value_free [18:35:53]json_value_free done [18:35:53]process_json_proto returns [18:35:53]Send response to host [18:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72616,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:35:53]free response buf [18:35:53]execute_script done [18:35:53]execute_script returns [18:35:53]free content buf [18:35:53]Sock 9.Close socket [18:35:53]Sock 9.Thread stoped [18:35:53]accept exits with 10 [18:35:53]New connection [18:35:53]New thread 3067120996 created [18:35:53]Thread 3067264356 joined [18:35:53]Waiting for new connection... [18:35:53] Sock 10.Parse request [18:35:53]Sock 10.Check first char [18:35:53]Sock 10.First char is OK [18:35:53]request: POST /json_proto HTTP/1.0 [18:35:53]Method: POST [18:35:53]URL: /json_proto [18:35:53]Method is POST - this is cgi request [18:35:53]url: /json_proto [18:35:53]query_string will be loaded in cgi processing [18:35:53]execute_cgi json_proto POST (null) [18:35:53]execute_cgi path=json_proto method=POST [18:35:53]POST find Content-Length [18:35:53]Host: 172.17.43.195:8080 [18:35:53]Content-Length: 331 [18:35:53]Content-Type: application/json [18:35:53] [18:35:53]POST finish read [18:35:53]Found Content-Length = 331 [18:35:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:53]execute_script... [18:35:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [18:35:53]POST & json_proto [18:35:53]process_json_proto [18:35:53]json parsed OK: [18:35:53]protocol is kg_v1.0 [18:35:53]action value=get_value [18:35:53]process_action get_value [18:35:53]cmd_get_value [18:35:53]process_action get_value done [18:35:53]requested_data is exist [18:35:53]produce_requested_data [18:35:53]requested_item fm.sale.total is exist - process it [18:35:53]SAM_PROTO_GetFMData [18:35:53]wFMCommunicate request_size=4 [18:35:53]MH_SAM_APDU [18:35:53]CAPDU: 80 13 03 00 [18:35:53]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [18:35:53]Write i2c OK [18:35:53]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 54 17 01 00 69 04 A3 00 6F 04 04 00 65 16 01 00 B1 04 05 00 12 C0 F5 A2 01 70 04 05 00 D8 10 FA 57 01 72 04 04 00 3A AF FB 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 96 80 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 EE 4F B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 BA [18:35:54]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 54 17 01 00 69 04 A3 00 6F 04 04 00 65 16 01 00 B1 04 05 00 12 C0 F5 A2 01 70 04 05 00 D8 10 FA 57 01 72 04 04 00 3A AF FB 4A 00 04 7D 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 38 96 80 2C EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0D 00 F6 03 01 00 01 F7 03 04 00 EE 4F B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 CA [18:35:54]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [18:35:54]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [18:35:54]Write i2c OK [18:35:54]MH_I2C_Read... [18:35:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:54]Read from MH i2c: E2 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 [18:35:54]MH_I2C_Read... [18:35:54]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [18:35:54]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [18:35:54]wFMCommunicate OK [18:35:54]wFMCommunicate request_size=4 [18:35:54]MH_SAM_APDU [18:35:54]CAPDU: 80 17 00 00 [18:35:54]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 E1 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [18:35:55]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_GetFMData done [18:35:55]requested_item fm.sale_refund.total is exist - process it [18:35:55]requested_item fm.buy.total is exist - process it [18:35:55]requested_item shift.sale.total is exist - process it [18:35:55]SAM_PROTO_GetShiftData [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 13 02 00 [18:35:55]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 90 00 00 00 69 04 9B 00 6F 04 04 00 90 00 00 00 B1 04 03 00 80 A8 5F 70 04 03 00 A4 95 2F 72 04 03 00 DC 12 30 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 29 0A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4C [18:35:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 90 00 00 00 69 04 9B 00 6F 04 04 00 90 00 00 00 B1 04 03 00 80 A8 5F 70 04 03 00 A4 95 2F 72 04 03 00 DC 12 30 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 00 29 0A EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 BD D8 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:35:55]wFMCommunicate OK [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 17 00 00 [18:35:55]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [18:35:55]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:35:56]wFMCommunicate OK [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 17 00 00 [18:35:56]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:56]Read from MH i2c: E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 FD 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [18:35:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [18:35:56]wFMCommunicate OK [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 17 00 00 [18:35:56]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [18:35:56]Read from MH i2c: E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 FD 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [18:35:56]RAPDU: 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 90 00 [18:35:56]wFMCommunicate OK [18:35:56]wFMCommunicate request_size=4 [18:35:56]MH_SAM_APDU [18:35:56]CAPDU: 80 17 00 00 [18:35:56]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [18:35:56]Write i2c OK [18:35:56]MH_I2C_Read... [18:35:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [18:35:56]Read from MH i2c: E2 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 CB 00 [18:35:56]MH_I2C_Read... [18:35:56]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [18:35:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [18:35:56]wFMCommunicate OK [18:35:56]SAM_PROTO_GetShiftData done [18:35:56]requested_item shift.sale.total_cash is exist - process it [18:35:56]requested_item shift.sale_refund.total is exist - process it [18:35:56]requested_item shift.sale_refund.total_cash is exist - process it [18:35:56]requested_item shift.buy.total is exist - process it [18:35:56]requested_item shift.buy.total_cash is exist - process it [18:35:56]produce_requested_data done [18:35:56]produce_requested_data return {"fm.sale.total":70289817.78,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":62690.56,"shift.sale.total_cash":31185.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [18:35:56]process_action_free get_value [18:35:56]json_value_free [18:35:56]json_value_free done [18:35:56]process_json_proto returns [18:35:56]Send response to host [18:35:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70289817.78,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":62690.56,"shift.sale.total_cash":31185.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [18:35:56]free response buf [18:35:56]execute_script done [18:35:56]execute_script returns [18:35:57]free content buf [18:35:57]Sock 10.Close socket [18:35:57]Sock 10.Thread stoped [18:35:57]recv_with_timeout no data received [18:35:57]CommunicateWithHost answer receiving error [18:35:57]CommunicateWithHost err = -3 [18:35:57]OFD Sender: Server communicate error [18:35:57]accept exits with 9 [18:35:57]New connection [18:35:57]New thread 3067264356 created [18:35:57]Thread 3067120996 joined [18:35:57]Waiting for new connection... [18:35:57] Sock 9.Parse request [18:35:57]Sock 9.Check first char [18:35:57]Sock 9.First char is OK [18:35:57]request: POST /json_proto HTTP/1.0 [18:35:57]Method: POST [18:35:57]URL: /json_proto [18:35:57]Method is POST - this is cgi request [18:35:57]url: /json_proto [18:35:57]query_string will be loaded in cgi processing [18:35:57]execute_cgi json_proto POST (null) [18:35:57]execute_cgi path=json_proto method=POST [18:35:57]POST find Content-Length [18:35:57]Host: 172.17.43.195:8080 [18:35:57]Content-Length: 782 [18:35:57]Content-Type: application/json [18:35:57] [18:35:57]POST finish read [18:35:57]Found Content-Length = 782 [18:35:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]execute_script... [18:35: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)952102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.970, "sum" : 750.35, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 750.35 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:57]POST & json_proto [18:35:57]process_json_proto [18:35:57]json parsed OK: [18:35:57]protocol is kg_v1.0 [18:35:57]action value=close_receipt [18:35:57]process_action close_receipt [18:35:57]cmd_close_receipt [18:35:57]MH_GetDate [18:35:57]Write to MH i2c: F0 00 00 1D 00 0C [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: F0 09 00 1D 00 00 8E D9 1F 67 74 2C AD 66 B5 [18:35:57]GetLastDocTimeStamp 1730140471 [18:35:57]current date 1730140558 [18:35:57]FM_GetShiftState [18:35:57]SAM_PROTO_GetShiftState [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 13 01 00 [18:35:57]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 03 [18:35:57]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_GetShiftState done [18:35:57]FM_GetShiftState done [18:35:57]opened in 1730074113 [18:35:57]opened+sec_in_day 1730160513 [18:35:57]quantity*price = 75034 [18:35:57]sum+1 = 75036 [18:35:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 750.35 НСП 1% : 6.64 НДС 12% : 79.68 Наличными: 0.00 Безнал.: 750.35 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 145 28.10.2024 18:35 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72617 ФПД: 241738405805994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183558&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72617&fm=241738405805994&tin=02508201610067®Number=0000000000091644&sum=75035 [18:35:58]StoreToDocumentArchive [18:35:58]shift 554 fd 72617 [18:35:58]save to /storage/0554/doc_00072617 [18:35:58]save last doc name /storage/0554/doc_00072617 to /storage/kkm_last_doc_name [18:35:58]save OK [18:35:58]Clear old archive folders... [18:35:58]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:35:58]tlvbuf is 0203B580 [18:35:58]SAM_PROTO_ClearQueue [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 09 00 00 [18:35:58]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]SAM_PROTO_ClearQueue done [18:35:58]KKMCreateOFDPacket [18:35:58]OFDProtocolAddRootSTLVToBuf [18:35:58]FM_MakeSignedData [18:35:58]FM_MakeSignedData [18:35:58]SAM_PROTO_SignData [18:35:58]wFMCommunicate request_size=4 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 01 02 [18:35:58]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:58]Read from MH i2c: E2 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [18:35:58]RAPDU: 90 00 [18:35:58]wFMCommunicate OK [18:35:58]wFMCommunicate request_size=253 [18:35:58]MH_SAM_APDU [18:35:58]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8E D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1B 01 00 35 04 06 00 DB DC 1B CE 7F AA [18:35:59]Write to MH i2c: E2 00 01 2D 00 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8E D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1B 01 00 35 04 06 00 DB DC 1B CE 7F AA 00 00 C2 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [18:35:59]RAPDU: 90 00 [18:35:59]wFMCommunicate OK [18:35:59]wFMCommunicate request_size=4 [18:35:59]MH_SAM_APDU [18:35:59]CAPDU: 80 0D 03 02 [18:35:59]Write to MH i2c: E2 08 00 2E 00 80 0D 03 02 00 00 00 00 A9 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 0B 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 0B 00 2E 00 00 74 41 C2 80 E1 40 ED 23 90 00 D2 [18:35:59]RAPDU: 74 41 C2 80 E1 40 ED 23 90 00 [18:35:59]wFMCommunicate OK [18:35:59]SAM_PROTO_SignData done [18:35:59]FM_MakeSignedData done [18:35:59]CreateOFDProtocolMessage [18:35:59]wFMCommunicate request_size=4 [18:35:59]MH_SAM_APDU [18:35:59]CAPDU: 80 11 00 00 [18:35:59]Write to MH i2c: E2 08 00 2F 00 80 11 00 00 00 00 00 00 A9 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:59]Read from MH i2c: E2 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: E2 17 00 2F 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FD [18:35:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:35:59]wFMCommunicate OK [18:35:59]CreateOFDProtocolMessage done [18:35:59]OFDSenderStorePacket 72617 [18:35:59]StoreOFDPacket docnum=72617 [18:35:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 10 B2 00 01 6C 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8E D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1B 01 00 35 04 06 00 DB DC 1B CE 7F AA 74 41 C2 80 E1 40 ED 23 [18:35:59]CheckFolder [18:35:59]dirname=/storage/ofd_packets [18:35:59]CheckFolder done [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00072617 [18:35:59]NVStorageSaveData ofd_packets/00072617 [18:35:59]File name is /storage/ofd_packets/00072617 [18:35:59]Write 294 bytes [18:35:59]NVStorageSaveData done [18:35:59]OFDSenderStorePacket done [18:35:59]KKMCreateOFDPacket done [18:35:59]NVStorageSaveData kkm_last_timestamp [18:35:59]File name is /storage/kkm_last_timestamp [18:35:59]Write 4 bytes [18:35:59]NVStorageSaveData done [18:35:59]ExternCall_PrintAddStr [18:35:59]wPrintStart [18:35:59]Write to MH i2c: 01 00 00 30 00 30 [18:35:59]Write i2c OK [18:35:59]MH_I2C_Read... [18:35:59]OFD Sender: Processing packet 72616 [packets to send 277, broken 275] [18:35:59]ProducePacketName [18:35:59]name=ofd_packets/00072616 [18:35:59]OFD Sender: To server: pG, [18:35:59]CommunicateWithHost lk.salyk.kg:30040 [18:35:59]ConnectInit lk.salyk.kg [18:35:59]Read from MH i2c: 01 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 [18:35:59]MH_I2C_Read... [18:35:59]Read from MH i2c: 01 07 00 30 00 00 00 00 00 00 FF 0F 45 [18:35:59]RasterBufferAndPrint [18:35:59]line Счет N : (1)952102 [18:35:59]line ИНН: 02508201610067 [18:35:59]line Контрольно-Кассовый Чек [18:35:59]line ПРОДАЖА [18:35:59]line ТРК (МРК, ГНК) : 51 [18:35:59]line Товар: 50.50.0 [18:35:59]line Super 92 [18:35:59]line 10.970 * 68.40 [18:35:59]line = 750.35 [18:35:59]line НДС 12% НСП 1% [18:35:59]line > о реализуемом товаре [18:35:59]line ИТОГО: 750.35 [18:35:59]line НСП 1% : 6.64 [18:35:59]line НДС 12% : 79.68 [18:35:59]line Наличными: 0.00 [18:35:59]line Безнал.: 750.35 [18:35:59]line Место: АЗС № 113 "Партнер Нефть" [18:35:59]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:35:59]line СНО: Общий режим [18:35:59]line Чек 145 28.10.2024 18:35 [18:35:59]line Смена: 554 ФФД: 1.0 [18:35:59]line ЗНМ: 0300000087 [18:35:59]line РНМ: 0000000000091644 [18:35:59]line Версия ККМ: 001 [18:35:59]line Платежная система: O! деньги [18:35:59]line ФМ: 0000000000874662 [18:35:59]line ФД: 72617 [18:35:59]line ФПД: 241738405805994 [18:35:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183558&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72617&fm=241738405805994&tin=02508201610067®Number=0000000000091644&sum=75035 [18:35:59]written 0, free lines is 4095 [18:36:00]Write to MH i2c: 01 00 00 5A 00 5A [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 5A 00 00 00 00 00 00 F5 0C 62 [18:36:00]RasterBufferAndPrint [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]written 0, free lines is 3339 [18:36:00]MH_Cut [18:36:00]Write to MH i2c: D1 01 00 61 00 01 33 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 61 00 00 32 [18:36:00]Write to MH i2c: 01 00 00 62 00 62 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]*** Cut start [18:36:00]*** Partial cut [18:36:00]*** CUTSNS_PIN = 1 [18:36:00]*** CUTSNS_PIN = 0 [18:36:01]*** Brake cut motor [18:36:01]Read from MH i2c: 01 [18:36:01]MH_I2C_Read... [18:36:01]*** Stop cut motor [18:36:01]*** Cut end [18:36:01]Read from MH i2c: 01 07 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: 01 07 00 62 00 00 00 00 00 00 FF 0F 77 [18:36:01]process_action close_receipt done [18:36:01]requested_data is exist [18:36:01]produce_requested_data [18:36:01]requested_item fm.sn is exist - process it [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 11 00 00 [18:36:01]Write to MH i2c: E2 08 00 63 00 80 11 00 00 00 00 00 00 DD [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 17 00 63 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 31 [18:36:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:36:01]wFMCommunicate OK [18:36:01]requested_item fd.num is exist - process it [18:36:01]SAM_PROTO_GetFieldsCounters [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 00 00 [18:36:01]Write to MH i2c: E2 08 00 64 00 80 13 00 00 00 00 00 00 E0 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 62 00 64 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [18:36:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 A9 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetFieldsCounters done [18:36:01]requested_item shift.num is exist - process it [18:36:01]requested_item shift.opened is exist - process it [18:36:01]req_shift_opened [18:36:01]FM_GetShiftState [18:36:01]SAM_PROTO_GetShiftState [18:36:01]wFMCommunicate request_size=4 [18:36:01]MH_SAM_APDU [18:36:01]CAPDU: 80 13 01 00 [18:36:01]Write to MH i2c: E2 08 00 65 00 80 13 01 00 00 00 00 00 E2 [18:36:01]Write i2c OK [18:36:01]MH_I2C_Read... [18:36:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:01]Read from MH i2c: E2 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 [18:36:01]MH_I2C_Read... [18:36:01]Read from MH i2c: E2 0E 00 65 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4A [18:36:01]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:36:01]wFMCommunicate OK [18:36:01]SAM_PROTO_GetShiftState done [18:36:01]FM_GetShiftState done [18:36:01]req_shift_opened done [18:36:01]requested_item shift.open_date is exist - process it [18:36:01]req_shift_open_date [18:36:01]req_shift_open_date done [18:36:01]produce_requested_data done [18:36:01]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72617,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:36:01]process_action_free close_receipt [18:36:01]json_value_free [18:36:01]json_value_free done [18:36:01]process_json_proto returns [18:36:01]Send response to host [18:36:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72617,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:36:01]free response buf [18:36:01]execute_script done [18:36:01]execute_script returns [18:36:01]free content buf [18:36:01]Sock 9.Close socket [18:36:01]Sock 9.Thread stoped [18:36:04]recv_with_timeout no data received [18:36:06]Connected sock=10 [18:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 4E 2C 08 01 5B 8A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 FA 05 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8B 2D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 2D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 04 00 00 00 00 07 04 06 00 50 2D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 37 D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1B 01 00 35 04 06 00 8A 97 1A CF 21 C7 E7 8B 4D 1E 59 26 3E D8 [18:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 D9 68 47 00 DE BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A8 1B 01 00 F4 03 04 00 52 84 1F 67 B6 04 01 00 00 00 CB 6B E4 3D 83 D1 2A [18:36:07]CommunicateWithHost err = 0 [18:36:07]CheckOFDResponse [18:36:07]1017 (14) - 77093643461234 [18:36:07]1041 (16) - 0000000000874662 [18:36:07]1040 (4) - 72616 [18:36:07]1012 (4) - 28.10.2024 12:32 [18:36:07]1206 (1) - 0 [18:36:07]OFD Sender: Remove packet 72616 [18:36:07]ProducePacketName [18:36:07]name=ofd_packets/00072616 [18:36:07]NVStorageDeleteData [18:36:07]OFD Sender: Processing packet 72617 [packets to send 276, broken 275] [18:36:07]ProducePacketName [18:36:07]name=ofd_packets/00072617 [18:36:07]OFD Sender: To server: pG, [18:36:07]CommunicateWithHost lk.salyk.kg:30040 [18:36:07]ConnectInit lk.salyk.kg [18:36:08]Connected sock=9 [18:36:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 10 B2 00 01 6C 62 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 DA 2A 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 1B 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1B 25 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 1F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1B 25 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 8E D9 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 A9 1B 01 00 35 04 06 00 DB DC 1B CE 7F AA 74 41 C2 80 E1 40 ED 23 [18:36:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4C 62 47 00 59 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 34 36 36 32 10 04 04 00 A9 1B 01 00 F4 03 04 00 54 84 1F 67 B6 04 01 00 00 5B 0C 04 D1 08 60 B2 B0 [18:36:08]CommunicateWithHost err = 0 [18:36:08]CheckOFDResponse [18:36:08]1017 (14) - 77093643461234 [18:36:08]1041 (16) - 0000000000874662 [18:36:08]1040 (4) - 72617 [18:36:08]1012 (4) - 28.10.2024 12:32 [18:36:08]1206 (1) - 0 [18:36:08]OFD Sender: Remove packet 72617 [18:36:08]ProducePacketName [18:36:08]name=ofd_packets/00072617 [18:36:08]NVStorageDeleteData [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:24]recv_with_timeout no data received [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:44]recv_with_timeout no data received [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:52]accept exits with 6 [18:37:52]New connection [18:37:52]New thread 3067120996 created [18:37:52]Thread 3067264356 joined [18:37:52]Waiting for new connection... [18:37:52] Sock 6.Parse request [18:37:52]Sock 6.Check first char [18:37:52]Sock 6.First char is OK [18:37:52]request: POST /json_proto HTTP/1.0 [18:37:52]Method: POST [18:37:52]URL: /json_proto [18:37:52]Method is POST - this is cgi request [18:37:52]url: /json_proto [18:37:52]query_string will be loaded in cgi processing [18:37:52]execute_cgi json_proto POST (null) [18:37:52]execute_cgi path=json_proto method=POST [18:37:52]POST find Content-Length [18:37:52]Host: 172.17.43.195:8080 [18:37:52]Content-Length: 792 [18:37:52]Content-Type: application/json [18:37:52] [18:37:52]POST finish read [18:37:52]Found Content-Length = 792 [18:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 12.360, "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:52]execute_script... [18:37: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)952104", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 12.360, "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\u000A02648", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:52]POST & json_proto [18:37:52]process_json_proto [18:37:52]json parsed OK: [18:37:52]protocol is kg_v1.0 [18:37:52]action value=close_receipt [18:37:52]process_action close_receipt [18:37:52]cmd_close_receipt [18:37:52]MH_GetDate [18:37:52]Write to MH i2c: F0 00 00 66 00 55 [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 09 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 09 00 66 00 00 01 DA 1F 67 74 2C AD 66 72 [18:37:52]GetLastDocTimeStamp 1730140558 [18:37:52]current date 1730140673 [18:37:52]FM_GetShiftState [18:37:52]SAM_PROTO_GetShiftState [18:37:52]wFMCommunicate request_size=4 [18:37:52]MH_SAM_APDU [18:37:52]CAPDU: 80 13 01 00 [18:37:52]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:52]Read from MH i2c: E2 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 0E 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4C [18:37:52]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:37:52]wFMCommunicate OK [18:37:52]SAM_PROTO_GetShiftState done [18:37:52]FM_GetShiftState done [18:37:52]opened in 1730074113 [18:37:52]opened+sec_in_day 1730160513 [18:37:52]quantity*price = 0 [18:37:52]sum+1 = 1 [18:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 146 28.10.2024 18:37 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02648 ФМ: 0000000000874662 ФД: 72618 ФПД: 25735405182461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183753&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72618&fm=25735405182461&tin=02508201610067®Number=0000000000091644&sum=0 [18:37:53]StoreToDocumentArchive [18:37:53]shift 554 fd 72618 [18:37:53]save to /storage/0554/doc_00072618 [18:37:53]save last doc name /storage/0554/doc_00072618 to /storage/kkm_last_doc_name [18:37:53]save OK [18:37:53]Clear old archive folders... [18:37:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:37:53]tlvbuf is 0202E440 [18:37:53]SAM_PROTO_ClearQueue [18:37:53]wFMCommunicate request_size=4 [18:37:53]MH_SAM_APDU [18:37:53]CAPDU: 80 09 00 00 [18:37:53]Write to MH i2c: E2 08 00 74 00 80 09 00 00 00 00 00 00 E6 [18:37:53]Write i2c OK [18:37:53]MH_I2C_Read... [18:37:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:53]Read from MH i2c: E2 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 03 00 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 03 00 74 00 00 90 00 E8 [18:37:53]RAPDU: 90 00 [18:37:53]wFMCommunicate OK [18:37:53]SAM_PROTO_ClearQueue done [18:37:53]KKMCreateOFDPacket [18:37:53]OFDProtocolAddRootSTLVToBuf [18:37:53]FM_MakeSignedData [18:37:53]FM_MakeSignedData [18:37:53]SAM_PROTO_SignData [18:37:53]wFMCommunicate request_size=4 [18:37:53]MH_SAM_APDU [18:37:53]CAPDU: 80 0D 01 02 [18:37:53]Write to MH i2c: E2 08 00 75 00 80 0D 01 02 00 00 00 00 EE [18:37:53]Write i2c OK [18:37:53]MH_I2C_Read... [18:37:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:53]Read from MH i2c: E2 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 03 00 [18:37:53]MH_I2C_Read... [18:37:53]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [18:37:53]RAPDU: 90 00 [18:37:53]wFMCommunicate OK [18:37:53]wFMCommunicate request_size=255 [18:37:53]MH_SAM_APDU [18:37:53]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 30 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 01 DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1B 01 00 35 04 06 00 17 [18:37:53]Write to MH i2c: E2 02 01 76 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 48 30 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 01 DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1B 01 00 35 04 06 00 17 00 00 6C [18:37:53]Write i2c OK [18:37:53]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=10 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 02 02 05 67 FD AF 1D FD [18:37:54]Write to MH i2c: E2 0D 00 77 00 80 0D 02 02 05 00 67 FD AF 1D FD 00 00 28 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 03 02 [18:37:54]Write to MH i2c: E2 08 00 78 00 80 0D 03 02 00 00 00 00 F3 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0B 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0B 00 78 00 00 36 6F AD B0 2C 72 72 BB 90 00 C1 [18:37:54]RAPDU: 36 6F AD B0 2C 72 72 BB 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_SignData done [18:37:54]FM_MakeSignedData done [18:37:54]CreateOFDProtocolMessage [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 11 00 00 [18:37:54]Write to MH i2c: E2 08 00 79 00 80 11 00 00 00 00 00 00 F3 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 79 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 47 [18:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:37:54]wFMCommunicate OK [18:37:54]CreateOFDProtocolMessage done [18:37:54]OFDSenderStorePacket 72618 [18:37:54]StoreOFDPacket docnum=72618 [18:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 B6 07 01 87 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 48 30 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 01 DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1B 01 00 35 04 06 00 17 67 FD AF 1D FD 36 6F AD B0 2C 72 72 BB [18:37:54]CheckFolder [18:37:54]dirname=/storage/ofd_packets [18:37:54]CheckFolder done [18:37:54]ProducePacketName [18:37:54]name=ofd_packets/00072618 [18:37:54]NVStorageSaveData ofd_packets/00072618 [18:37:54]File name is /storage/ofd_packets/00072618 [18:37:54]Write 301 bytes [18:37:54]NVStorageSaveData done [18:37:54]OFDSenderStorePacket done [18:37:54]KKMCreateOFDPacket done [18:37:54]NVStorageSaveData kkm_last_timestamp [18:37:54]File name is /storage/kkm_last_timestamp [18:37:54]Write 4 bytes [18:37:54]NVStorageSaveData done [18:37:54]ExternCall_PrintAddStr [18:37:54]wPrintStart [18:37:54]Write to MH i2c: 01 00 00 7A 00 7A [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 7A 00 00 00 00 00 00 FF 0F 8F [18:37:54]RasterBufferAndPrint [18:37:54]line Счет N : (1)952104 [18:37:54]line ИНН: 02508201610067 [18:37:54]line Контрольно-Кассовый Чек [18:37:54]line ПРОДАЖА [18:37:54]line ТРК (МРК, ГНК) : 63 [18:37:54]line Товар: 2710124130 [18:37:54]line Аи-92-К-5 [18:37:54]line 12.360 * 0.00 [18:37:54]line = 0.00 [18:37:54]line НДС 12% НСП 1% [18:37:54]line > о реализуемом товаре [18:37:54]line ИТОГО: 0.00 [18:37:54]line НСП 1% : 0.00 [18:37:54]line НДС 12% : 0.00 [18:37:54]line Наличными: 0.00 [18:37:54]line Безнал.: 0.00 [18:37:54]line Место: АЗС № 113 "Партнер Нефть" [18:37:54]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:37:54]line СНО: Общий режим [18:37:54]line Чек 146 28.10.2024 18:37 [18:37:54]line Смена: 554 ФФД: 1.0 [18:37:54]line ЗНМ: 0300000087 [18:37:54]line РНМ: 0000000000091644 [18:37:54]line Версия ККМ: 001 [18:37:54]line Талоны: Топливная Карта [18:37:54]line 02648 [18:37:54]line ФМ: 0000000000874662 [18:37:54]line ФД: 72618 [18:37:54]line ФПД: 25735405182461 [18:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183753&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72618&fm=25735405182461&tin=02508201610067®Number=0000000000091644&sum=0 [18:37:54]written 0, free lines is 4095 [18:37:54]OFD Sender: Processing packet 72618 [packets to send 276, broken 275] [18:37:54]ProducePacketName [18:37:54]name=ofd_packets/00072618 [18:37:54]OFD Sender: To server: pG, [18:37:54]CommunicateWithHost lk.salyk.kg:30040 [18:37:54]ConnectInit lk.salyk.kg [18:37:54]Write to MH i2c: 01 00 00 A4 00 A4 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 A4 00 00 00 00 00 00 DF 0C 96 [18:37:54]RasterBufferAndPrint [18:37:54]line [18:37:54]line [18:37:54]line [18:37:54]line [18:37:54]line [18:37:54]written 0, free lines is 3301 [18:37:54]MH_Cut [18:37:54]Write to MH i2c: D1 01 00 AB 00 01 7D [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: D1 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: D1 01 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: D1 01 00 AB 00 00 7C [18:37:54]Write to MH i2c: 01 00 00 AC 00 AC [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:55]*** Cut start [18:37:55]*** Partial cut [18:37:55]*** CUTSNS_PIN = 1 [18:37:55]Connected sock=10 [18:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E0 B6 07 01 87 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 48 30 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 01 DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AA 1B 01 00 35 04 06 00 17 67 FD AF 1D FD 36 6F AD B0 2C 72 72 BB [18:37:55]*** CUTSNS_PIN = 0 [18:37:55]*** Brake cut motor [18:37:56]Read from MH i2c: 01 [18:37:56]MH_I2C_Read... [18:37:56]*** Stop cut motor [18:37:56]*** Cut end [18:37:56]Read from MH i2c: 01 07 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: 01 07 00 AC 00 00 00 00 00 00 FF 0F C1 [18:37:56]process_action close_receipt done [18:37:56]requested_data is exist [18:37:56]produce_requested_data [18:37:56]requested_item fm.sn is exist - process it [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 11 00 00 [18:37:56]Write to MH i2c: E2 08 00 AD 00 80 11 00 00 00 00 00 00 27 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:56]Read from MH i2c: E2 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 17 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 17 00 AD 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7B [18:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:37:56]wFMCommunicate OK [18:37:56]requested_item fd.num is exist - process it [18:37:56]SAM_PROTO_GetFieldsCounters [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 13 00 00 [18:37:56]Write to MH i2c: E2 08 00 AE 00 80 13 00 00 00 00 00 00 2A [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:56]Read from MH i2c: E2 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 62 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 62 00 AE 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [18:37: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AA 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:37:56]wFMCommunicate OK [18:37:56]SAM_PROTO_GetFieldsCounters done [18:37:56]requested_item shift.num is exist - process it [18:37:56]requested_item shift.opened is exist - process it [18:37:56]req_shift_opened [18:37:56]FM_GetShiftState [18:37:56]SAM_PROTO_GetShiftState [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 13 01 00 [18:37:56]Write to MH i2c: E2 08 00 AF 00 80 13 01 00 00 00 00 00 2C [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:56]Read from MH i2c: E2 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 0E 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 0E 00 AF 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 94 [18:37:56]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:37:56]wFMCommunicate OK [18:37:56]SAM_PROTO_GetShiftState done [18:37:56]FM_GetShiftState done [18:37:56]req_shift_opened done [18:37:56]requested_item shift.open_date is exist - process it [18:37:56]req_shift_open_date [18:37:56]req_shift_open_date done [18:37:56]produce_requested_data done [18:37:56]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72618,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:37:56]process_action_free close_receipt [18:37:56]json_value_free [18:37:56]json_value_free done [18:37:56]process_json_proto returns [18:37:56]Send response to host [18:37:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72618,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:37:56]free response buf [18:37:56]execute_script done [18:37:56]execute_script returns [18:37:56]free content buf [18:37:56]Sock 6.Close socket [18:37:56]Sock 6.Thread stoped [18:37:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 91 F2 47 00 65 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 34 36 36 32 10 04 04 00 AA 1B 01 00 F4 03 04 00 BF 84 1F 67 B6 04 01 00 00 42 C9 A8 72 43 86 37 C2 [18:37:57]CommunicateWithHost err = 0 [18:37:57]CheckOFDResponse [18:37:57]1017 (14) - 77093643461234 [18:37:57]1041 (16) - 0000000000874662 [18:37:57]1040 (4) - 72618 [18:37:57]1012 (4) - 28.10.2024 12:34 [18:37:57]1206 (1) - 0 [18:37:57]OFD Sender: Remove packet 72618 [18:37:57]ProducePacketName [18:37:57]name=ofd_packets/00072618 [18:37:57]NVStorageDeleteData [18:37:58]OFD Sender: No OFD packet to send [18:38:00]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:56]recv_with_timeout no data received [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:13]recv_with_timeout no data received [18:39:18]OFD Sender: No OFD packet to send [18:39:22]accept exits with 9 [18:39:22]New connection [18:39:22]New thread 3067264356 created [18:39:22]Thread 3067120996 joined [18:39:22]Waiting for new connection... [18:39:22] Sock 9.Parse request [18:39:22]Sock 9.Check first char [18:39:22]Sock 9.First char is OK [18:39:22]request: POST /json_proto HTTP/1.0 [18:39:22]Method: POST [18:39:22]URL: /json_proto [18:39:22]Method is POST - this is cgi request [18:39:22]url: /json_proto [18:39:22]query_string will be loaded in cgi processing [18:39:22]execute_cgi json_proto POST (null) [18:39:22]execute_cgi path=json_proto method=POST [18:39:22]POST find Content-Length [18:39:22]Host: 172.17.43.195:8080 [18:39:22]Content-Length: 792 [18:39:22]Content-Type: application/json [18:39:22] [18:39:22]POST finish read [18:39:22]Found Content-Length = 792 [18:39:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:22]execute_script... [18:39:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 13.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\u000A02645", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:22]POST & json_proto [18:39:22]process_json_proto [18:39:22]json parsed OK: [18:39:22]protocol is kg_v1.0 [18:39:22]action value=close_receipt [18:39:22]process_action close_receipt [18:39:22]cmd_close_receipt [18:39:22]MH_GetDate [18:39:22]Write to MH i2c: F0 00 00 B0 00 9F [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: F0 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: F0 09 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: F0 09 00 B0 00 00 5B DA 1F 67 74 2C AD 66 16 [18:39:22]GetLastDocTimeStamp 1730140673 [18:39:22]current date 1730140763 [18:39:22]FM_GetShiftState [18:39:22]SAM_PROTO_GetShiftState [18:39:22]wFMCommunicate request_size=4 [18:39:22]MH_SAM_APDU [18:39:22]CAPDU: 80 13 01 00 [18:39:22]Write to MH i2c: E2 08 00 B1 00 80 13 01 00 00 00 00 00 2E [18:39:22]Write i2c OK [18:39:22]MH_I2C_Read... [18:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:22]Read from MH i2c: E2 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 0E 00 [18:39:22]MH_I2C_Read... [18:39:22]Read from MH i2c: E2 0E 00 B1 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 96 [18:39:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:39:22]wFMCommunicate OK [18:39:22]SAM_PROTO_GetShiftState done [18:39:22]FM_GetShiftState done [18:39:22]opened in 1730074113 [18:39:22]opened+sec_in_day 1730160513 [18:39:22]quantity*price = 0 [18:39:22]sum+1 = 1 [18:39:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 147 28.10.2024 18:39 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 02645 ФМ: 0000000000874662 ФД: 72619 ФПД: 257134532443139 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72619&fm=257134532443139&tin=02508201610067®Number=0000000000091644&sum=0 [18:39:23]StoreToDocumentArchive [18:39:23]shift 554 fd 72619 [18:39:23]save to /storage/0554/doc_00072619 [18:39:23]save last doc name /storage/0554/doc_00072619 to /storage/kkm_last_doc_name [18:39:23]save OK [18:39:23]Clear old archive folders... [18:39:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:23]tlvbuf is 0202E020 [18:39:23]SAM_PROTO_ClearQueue [18:39:23]wFMCommunicate request_size=4 [18:39:23]MH_SAM_APDU [18:39:23]CAPDU: 80 09 00 00 [18:39:23]Write to MH i2c: E2 08 00 BE 00 80 09 00 00 00 00 00 00 30 [18:39:23]Write i2c OK [18:39:23]MH_I2C_Read... [18:39:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [18:39:24]RAPDU: 90 00 [18:39:24]wFMCommunicate OK [18:39:24]SAM_PROTO_ClearQueue done [18:39:24]KKMCreateOFDPacket [18:39:24]OFDProtocolAddRootSTLVToBuf [18:39:24]FM_MakeSignedData [18:39:24]FM_MakeSignedData [18:39:24]SAM_PROTO_SignData [18:39:24]wFMCommunicate request_size=4 [18:39:24]MH_SAM_APDU [18:39:24]CAPDU: 80 0D 01 02 [18:39:24]Write to MH i2c: E2 08 00 BF 00 80 0D 01 02 00 00 00 00 38 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [18:39:24]RAPDU: 90 00 [18:39:24]wFMCommunicate OK [18:39:24]wFMCommunicate request_size=255 [18:39:24]MH_SAM_APDU [18:39:24]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5B DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1B 01 00 35 04 06 00 E9 [18:39:24]Write to MH i2c: E2 02 01 C0 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 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5B DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1B 01 00 35 04 06 00 E9 00 00 66 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [18:39:24]RAPDU: 90 00 [18:39:24]wFMCommunicate OK [18:39:24]wFMCommunicate request_size=10 [18:39:24]MH_SAM_APDU [18:39:24]CAPDU: 80 0D 02 02 05 DC CC 77 3C 03 [18:39:24]Write to MH i2c: E2 0D 00 C1 00 80 0D 02 02 05 00 DC CC 77 3C 03 00 00 A3 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [18:39:24]RAPDU: 90 00 [18:39:24]wFMCommunicate OK [18:39:24]wFMCommunicate request_size=4 [18:39:24]MH_SAM_APDU [18:39:24]CAPDU: 80 0D 03 02 [18:39:24]Write to MH i2c: E2 08 00 C2 00 80 0D 03 02 00 00 00 00 3D [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 0B 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 0B 00 C2 00 00 8B 0D DF 2A B5 06 CB CE 90 00 33 [18:39:24]RAPDU: 8B 0D DF 2A B5 06 CB CE 90 00 [18:39:24]wFMCommunicate OK [18:39:24]SAM_PROTO_SignData done [18:39:24]FM_MakeSignedData done [18:39:24]CreateOFDProtocolMessage [18:39:24]wFMCommunicate request_size=4 [18:39:24]MH_SAM_APDU [18:39:24]CAPDU: 80 11 00 00 [18:39:24]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:24]Read from MH i2c: E2 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 17 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 91 [18:39:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:39:24]wFMCommunicate OK [18:39:24]CreateOFDProtocolMessage done [18:39:24]OFDSenderStorePacket 72619 [18:39:24]StoreOFDPacket docnum=72619 [18:39:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D6 6E 07 01 24 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5B DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1B 01 00 35 04 06 00 E9 DC CC 77 3C 03 8B 0D DF 2A B5 06 CB CE [18:39:24]CheckFolder [18:39:24]dirname=/storage/ofd_packets [18:39:24]CheckFolder done [18:39:24]ProducePacketName [18:39:24]name=ofd_packets/00072619 [18:39:24]NVStorageSaveData ofd_packets/00072619 [18:39:24]File name is /storage/ofd_packets/00072619 [18:39:24]Write 301 bytes [18:39:24]NVStorageSaveData done [18:39:24]OFDSenderStorePacket done [18:39:24]KKMCreateOFDPacket done [18:39:24]NVStorageSaveData kkm_last_timestamp [18:39:24]File name is /storage/kkm_last_timestamp [18:39:24]Write 4 bytes [18:39:24]NVStorageSaveData done [18:39:24]ExternCall_PrintAddStr [18:39:24]wPrintStart [18:39:24]Write to MH i2c: 01 00 00 C4 00 C4 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 07 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 07 00 C4 00 00 00 00 00 00 FF 0F D9 [18:39:24]RasterBufferAndPrint [18:39:24]line Счет N : (1)952105 [18:39:24]line ИНН: 02508201610067 [18:39:24]line Контрольно-Кассовый Чек [18:39:24]line ПРОДАЖА [18:39:24]line ТРК (МРК, ГНК) : 63 [18:39:24]line Товар: 2710124130 [18:39:24]line Аи-92-К-5 [18:39:24]line 13.000 * 0.00 [18:39:24]line = 0.00 [18:39:24]line НДС 12% НСП 1% [18:39:24]line > о реализуемом товаре [18:39:24]line ИТОГО: 0.00 [18:39:24]line НСП 1% : 0.00 [18:39:24]line НДС 12% : 0.00 [18:39:24]line Наличными: 0.00 [18:39:24]line Безнал.: 0.00 [18:39:24]line Место: АЗС № 113 "Партнер Нефть" [18:39:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [18:39:24]line СНО: Общий режим [18:39:24]line Чек 147 28.10.2024 18:39 [18:39:24]line Смена: 554 ФФД: 1.0 [18:39:24]line ЗНМ: 0300000087 [18:39:24]line РНМ: 0000000000091644 [18:39:24]line Версия ККМ: 001 [18:39:24]line Талоны: Топливная Карта [18:39:24]line 02645 [18:39:24]line ФМ: 0000000000874662 [18:39:24]line ФД: 72619 [18:39:24]line ФПД: 257134532443139 [18:39:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T183923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72619&fm=257134532443139&tin=02508201610067®Number=0000000000091644&sum=0 [18:39:24]written 0, free lines is 4095 [18:39:24]OFD Sender: Processing packet 72619 [packets to send 276, broken 275] [18:39:24]ProducePacketName [18:39:24]name=ofd_packets/00072619 [18:39:24]OFD Sender: To server: pG, [18:39:24]CommunicateWithHost lk.salyk.kg:30040 [18:39:24]ConnectInit lk.salyk.kg [18:39:24]Write to MH i2c: 01 00 00 EE 00 EE [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 07 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: 01 07 00 EE 00 00 00 00 00 00 E0 0C E1 [18:39:24]RasterBufferAndPrint [18:39:24]line [18:39:24]line [18:39:24]line [18:39:24]line [18:39:24]line [18:39:24]written 0, free lines is 3302 [18:39:24]MH_Cut [18:39:24]Write to MH i2c: D1 01 00 F5 00 01 C7 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: D1 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: D1 01 00 [18:39:24]MH_I2C_Read... [18:39:24]Read from MH i2c: D1 01 00 F5 00 00 C6 [18:39:24]Write to MH i2c: 01 00 00 F6 00 F6 [18:39:24]Write i2c OK [18:39:24]MH_I2C_Read... [18:39:25]*** Cut start [18:39:25]*** Partial cut [18:39:25]*** CUTSNS_PIN = 1 [18:39:25]*** CUTSNS_PIN = 0 [18:39:25]Connected sock=7 [18:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 D6 6E 07 01 24 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 C8 32 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 5B DA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AB 1B 01 00 35 04 06 00 E9 DC CC 77 3C 03 8B 0D DF 2A B5 06 CB CE [18:39:25]*** Brake cut motor [18:39:26]Read from MH i2c: 01 [18:39:26]MH_I2C_Read... [18:39:26]*** Stop cut motor [18:39:26]*** Cut end [18:39:26]Read from MH i2c: 01 07 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: 01 07 00 F6 00 00 00 00 00 00 FF 0F 0B [18:39:26]process_action close_receipt done [18:39:26]requested_data is exist [18:39:26]produce_requested_data [18:39:26]requested_item fm.sn is exist - process it [18:39:26]wFMCommunicate request_size=4 [18:39:26]MH_SAM_APDU [18:39:26]CAPDU: 80 11 00 00 [18:39:26]Write to MH i2c: E2 08 00 F7 00 80 11 00 00 00 00 00 00 71 [18:39:26]Write i2c OK [18:39:26]MH_I2C_Read... [18:39:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:26]Read from MH i2c: E2 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 17 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 17 00 F7 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C5 [18:39:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [18:39:26]wFMCommunicate OK [18:39:26]requested_item fd.num is exist - process it [18:39:26]SAM_PROTO_GetFieldsCounters [18:39:26]wFMCommunicate request_size=4 [18:39:26]MH_SAM_APDU [18:39:26]CAPDU: 80 13 00 00 [18:39:26]Write to MH i2c: E2 08 00 F8 00 80 13 00 00 00 00 00 00 74 [18:39:26]Write i2c OK [18:39:26]MH_I2C_Read... [18:39:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:26]Read from MH i2c: E2 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 62 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 62 00 F8 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 41 [18:39:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AB 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:26]wFMCommunicate OK [18:39:26]SAM_PROTO_GetFieldsCounters done [18:39:26]requested_item shift.num is exist - process it [18:39:26]requested_item shift.opened is exist - process it [18:39:26]req_shift_opened [18:39:26]FM_GetShiftState [18:39:26]SAM_PROTO_GetShiftState [18:39:26]wFMCommunicate request_size=4 [18:39:26]MH_SAM_APDU [18:39:26]CAPDU: 80 13 01 00 [18:39:26]Write to MH i2c: E2 08 00 F9 00 80 13 01 00 00 00 00 00 76 [18:39:26]Write i2c OK [18:39:26]MH_I2C_Read... [18:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:26]Read from MH i2c: E2 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 0E 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 0E 00 F9 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DE [18:39:26]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [18:39:26]wFMCommunicate OK [18:39:26]SAM_PROTO_GetShiftState done [18:39:26]FM_GetShiftState done [18:39:26]req_shift_opened done [18:39:26]requested_item shift.open_date is exist - process it [18:39:26]req_shift_open_date [18:39:26]req_shift_open_date done [18:39:26]produce_requested_data done [18:39:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72619,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [18:39:26]process_action_free close_receipt [18:39:26]json_value_free [18:39:26]json_value_free done [18:39:26]process_json_proto returns [18:39:26]Send response to host [18:39:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72619,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [18:39:26]free response buf [18:39:26]execute_script done [18:39:26]execute_script returns [18:39:26]free content buf [18:39:26]Sock 9.Close socket [18:39:26]Sock 9.Thread stoped [18:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 26 07 47 00 F9 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 34 36 36 32 10 04 04 00 AB 1B 01 00 F4 03 04 00 1A 85 1F 67 B6 04 01 00 00 75 93 F2 10 47 56 DB 84 [18:39:26]CommunicateWithHost err = 0 [18:39:26]CheckOFDResponse [18:39:26]1017 (14) - 77093643461234 [18:39:26]1041 (16) - 0000000000874662 [18:39:26]1040 (4) - 72619 [18:39:26]1012 (4) - 28.10.2024 12:35 [18:39:26]1206 (1) - 0 [18:39:26]OFD Sender: Remove packet 72619 [18:39:26]ProducePacketName [18:39:26]name=ofd_packets/00072619 [18:39:26]NVStorageDeleteData [18:39:27]OFD Sender: No OFD packet to send [18:39:32]OFD Sender: No OFD packet to send [18:39:37]OFD Sender: No OFD packet to send [18:39:42]OFD Sender: No OFD packet to send [18:39:43]recv_with_timeout no data received [18:39:47]OFD Sender: No OFD packet to send [18:39:52]OFD Sender: No OFD packet to send [18:39:57]OFD Sender: No OFD packet to send [18:40:02]OFD Sender: No OFD packet to send [18:40:07]OFD Sender: No OFD packet to send [18:40:12]OFD Sender: No OFD packet to send [18:40:17]OFD Sender: No OFD packet to send [18:40:22]OFD Sender: No OFD packet to send [18:40:27]OFD Sender: No OFD packet to send [18:40:32]OFD Sender: No OFD packet to send [18:40:37]OFD Sender: No OFD packet to send [18:40:38]recv_with_timeout no data received [18:40:42]OFD Sender: No OFD packet to send [18:40:47]OFD Sender: No OFD packet to send [18:40:52]OFD Sender: No OFD packet to send [18:40:57]OFD Sender: No OFD packet to send [18:41:02]OFD Sender: No OFD packet to send [18:41:07]OFD Sender: No OFD packet to send [18:41:12]OFD Sender: No OFD packet to send [18:41:17]OFD Sender: No OFD packet to send [18:41:22]OFD Sender: No OFD packet to send [18:41:27]OFD Sender: No OFD packet to send [18:41:32]OFD Sender: No OFD packet to send [18:41:37]OFD Sender: No OFD packet to send [18:41:39]recv_with_timeout no data received [18:41:42]OFD Sender: No OFD packet to send [18:41:47]OFD Sender: No OFD packet to send [18:41:52]OFD Sender: No OFD packet to send [18:41:57]OFD Sender: No OFD packet to send [18:42:02]OFD Sender: No OFD packet to send [18:42:07]OFD Sender: No OFD packet to send [18:42:12]OFD Sender: No OFD packet to send [18:42:17]OFD Sender: No OFD packet to send [18:42:22]OFD Sender: No OFD packet to send [18:42:27]OFD Sender: No OFD packet to send [18:42:32]OFD Sender: No OFD packet to send [18:42:37]OFD Sender: No OFD packet to send [18:42:42]OFD Sender: No OFD packet to send [18:42:47]OFD Sender: No OFD packet to send [18:42:52]OFD Sender: No OFD packet to send [18:42:57]OFD Sender: No OFD packet to send [18:43:02]OFD Sender: No OFD packet to send [18:43:07]OFD Sender: No OFD packet to send [18:43:09]recv_with_timeout no data received [18:43:12]OFD Sender: No OFD packet to send [18:43:17]OFD Sender: No OFD packet to send [18:43:22]OFD Sender: No OFD packet to send [18:43:27]OFD Sender: No OFD packet to send [18:43:32]OFD Sender: No OFD packet to send [18:43:37]OFD Sender: No OFD packet to send [18:43:42]OFD Sender: No OFD packet to send [18:43:47]OFD Sender: No OFD packet to send [18:43:49]recv_with_timeout no data received [18:43:52]OFD Sender: No OFD packet to send [18:43:57]OFD Sender: No OFD packet to send [18:44:02]OFD Sender: No OFD packet to send [18:44:07]OFD Sender: No OFD packet to send [18:44:11]recv_with_timeout no data received [18:44:12]OFD Sender: No OFD packet to send [18:44:17]OFD Sender: No OFD packet to send [18:44:22]OFD Sender: No OFD packet to send [18:44:27]OFD Sender: No OFD packet to send [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:03]recv_with_timeout no data received [18:45:07]OFD Sender: No OFD packet to send [18:45:12]OFD Sender: No OFD packet to send [18:45:17]OFD Sender: No OFD packet to send [18:45:22]OFD Sender: No OFD packet to send [18:45:27]OFD Sender: No OFD packet to send [18:45:32]OFD Sender: No OFD packet to send [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:18]recv_with_timeout no data received [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:53]OFD Sender: No OFD packet to send [18:46:58]OFD Sender: No OFD packet to send [18:47:03]OFD Sender: No OFD packet to send [18:47:08]OFD Sender: No OFD packet to send [18:47:13]OFD Sender: No OFD packet to send [18:47:18]OFD Sender: No OFD packet to send [18:47:23]OFD Sender: No OFD packet to send [18:47:28]OFD Sender: No OFD packet to send [18:47:33]OFD Sender: No OFD packet to send [18:47:38]OFD Sender: No OFD packet to send [18:47:43]OFD Sender: No OFD packet to send [18:47:48]OFD Sender: No OFD packet to send [18:47:53]OFD Sender: No OFD packet to send [18:47:58]OFD Sender: No OFD packet to send [18:48:03]OFD Sender: No OFD packet to send [18:48:08]OFD Sender: No OFD packet to send [18:48:13]OFD Sender: No OFD packet to send [18:48:18]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:19]recv_with_timeout no data received [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:49:59]recv_with_timeout no data received [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:22]recv_with_timeout no data received [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:55]recv_with_timeout no data received [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:21]recv_with_timeout no data received [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:52]recv_with_timeout no data received [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:17]recv_with_timeout no data received [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]recv_with_timeout no data received [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:53]recv_with_timeout no data received [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:14]recv_with_timeout no data received [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:44]OFD Sender: No OFD packet to send [18:56:49]OFD Sender: No OFD packet to send [18:56:54]OFD Sender: No OFD packet to send [18:56:59]OFD Sender: No OFD packet to send [18:57:04]OFD Sender: No OFD packet to send [18:57:09]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:28]recv_with_timeout no data received [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:30]recv_with_timeout no data received [18:58:34]OFD Sender: No OFD packet to send [18:58:39]OFD Sender: No OFD packet to send [18:58:44]OFD Sender: No OFD packet to send [18:58:49]OFD Sender: No OFD packet to send [18:58:54]OFD Sender: No OFD packet to send [18:58:59]OFD Sender: No OFD packet to send [18:59:04]OFD Sender: No OFD packet to send [18:59:09]OFD Sender: No OFD packet to send [18:59:14]OFD Sender: No OFD packet to send [18:59:19]OFD Sender: No OFD packet to send [18:59:24]OFD Sender: No OFD packet to send [18:59:29]OFD Sender: No OFD packet to send [18:59:34]OFD Sender: No OFD packet to send [18:59:39]OFD Sender: No OFD packet to send [18:59:44]OFD Sender: No OFD packet to send [18:59:46]recv_with_timeout no data received [18:59:49]OFD Sender: No OFD packet to send [18:59:54]OFD Sender: No OFD packet to send [18:59:59]OFD Sender: No OFD packet to send [19:00:04]OFD Sender: No OFD packet to send [19:00:09]OFD Sender: No OFD packet to send [19:00:14]OFD Sender: No OFD packet to send [19:00:19]OFD Sender: No OFD packet to send [19:00:24]OFD Sender: No OFD packet to send [19:00:29]OFD Sender: No OFD packet to send [19:00:34]OFD Sender: No OFD packet to send [19:00:39]OFD Sender: No OFD packet to send [19:00:44]OFD Sender: No OFD packet to send [19:00:49]OFD Sender: No OFD packet to send [19:00:54]OFD Sender: No OFD packet to send [19:00:59]OFD Sender: No OFD packet to send [19:01:04]OFD Sender: No OFD packet to send [19:01:09]OFD Sender: No OFD packet to send [19:01:14]OFD Sender: No OFD packet to send [19:01:19]OFD Sender: No OFD packet to send [19:01:21]recv_with_timeout no data received [19:01:22]accept exits with 10 [19:01:22]New connection [19:01:22]New thread 3067120996 created [19:01:22]Thread 3067264356 joined [19:01:22]Waiting for new connection... [19:01:22] Sock 10.Parse request [19:01:22]Sock 10.Check first char [19:01:22]Sock 10.First char is OK [19:01:22]request: POST /json_proto HTTP/1.0 [19:01:22]Method: POST [19:01:22]URL: /json_proto [19:01:22]Method is POST - this is cgi request [19:01:22]url: /json_proto [19:01:22]query_string will be loaded in cgi processing [19:01:22]execute_cgi json_proto POST (null) [19:01:22]execute_cgi path=json_proto method=POST [19:01:22]POST find Content-Length [19:01:22]Host: 172.17.43.195:8080 [19:01:22]Content-Length: 792 [19:01:22]Content-Type: application/json [19:01:22] [19:01:22]POST finish read [19:01:22]Found Content-Length = 792 [19:01:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:22]execute_script... [19:01: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)952107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:01:22]POST & json_proto [19:01:22]process_json_proto [19:01:22]json parsed OK: [19:01:22]protocol is kg_v1.0 [19:01:22]action value=close_receipt [19:01:22]process_action close_receipt [19:01:22]cmd_close_receipt [19:01:22]MH_GetDate [19:01:22]Write to MH i2c: F0 00 00 FA 00 E9 [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: F0 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: F0 09 00 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: F0 09 00 FA 00 00 83 DF 1F 67 74 2C AD 66 8D [19:01:22]GetLastDocTimeStamp 1730140763 [19:01:22]current date 1730142083 [19:01:22]FM_GetShiftState [19:01:22]SAM_PROTO_GetShiftState [19:01:22]wFMCommunicate request_size=4 [19:01:22]MH_SAM_APDU [19:01:22]CAPDU: 80 13 01 00 [19:01:22]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:22]Read from MH i2c: E2 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: E2 0E 00 [19:01:22]MH_I2C_Read... [19:01:22]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E0 [19:01:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:01:22]wFMCommunicate OK [19:01:22]SAM_PROTO_GetShiftState done [19:01:22]FM_GetShiftState done [19:01:22]opened in 1730074113 [19:01:22]opened+sec_in_day 1730160513 [19:01:22]quantity*price = 0 [19:01:22]sum+1 = 1 [19:01:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 148 28.10.2024 19:01 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72620 ФПД: 130076211250423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190123&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72620&fm=130076211250423&tin=02508201610067®Number=0000000000091644&sum=0 [19:01:24]StoreToDocumentArchive [19:01:24]shift 554 fd 72620 [19:01:24]save to /storage/0554/doc_00072620 [19:01:24]save last doc name /storage/0554/doc_00072620 to /storage/kkm_last_doc_name [19:01:24]save OK [19:01:24]Clear old archive folders... [19:01:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:24]tlvbuf is 02047020 [19:01:24]SAM_PROTO_ClearQueue [19:01:24]wFMCommunicate request_size=4 [19:01:24]MH_SAM_APDU [19:01:24]CAPDU: 80 09 00 00 [19:01:24]Write to MH i2c: E2 08 00 08 01 80 09 00 00 00 00 00 00 7B [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 08 01 00 90 00 7D [19:01:24]RAPDU: 90 00 [19:01:24]wFMCommunicate OK [19:01:24]SAM_PROTO_ClearQueue done [19:01:24]KKMCreateOFDPacket [19:01:24]OFDProtocolAddRootSTLVToBuf [19:01:24]FM_MakeSignedData [19:01:24]FM_MakeSignedData [19:01:24]SAM_PROTO_SignData [19:01:24]wFMCommunicate request_size=4 [19:01:24]MH_SAM_APDU [19:01:24]CAPDU: 80 0D 01 02 [19:01:24]Write to MH i2c: E2 08 00 09 01 80 0D 01 02 00 00 00 00 83 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [19:01:24]RAPDU: 90 00 [19:01:24]wFMCommunicate OK [19:01:24]wFMCommunicate request_size=255 [19:01:24]MH_SAM_APDU [19:01: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 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 94 00 00 00 F4 03 04 00 83 DF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1B 01 00 35 04 06 00 76 [19:01:24]Write to MH i2c: E2 02 01 0A 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 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 94 00 00 00 F4 03 04 00 83 DF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1B 01 00 35 04 06 00 76 00 00 E1 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:24]OFD Sender: No OFD packet to send [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [19:01:24]RAPDU: 90 00 [19:01:24]wFMCommunicate OK [19:01:24]wFMCommunicate request_size=10 [19:01:24]MH_SAM_APDU [19:01:24]CAPDU: 80 0D 02 02 05 4D BA 5D 84 F7 [19:01:24]Write to MH i2c: E2 0D 00 0B 01 80 0D 02 02 05 00 4D BA 5D 84 F7 00 00 6F [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [19:01:24]RAPDU: 90 00 [19:01:24]wFMCommunicate OK [19:01:24]wFMCommunicate request_size=4 [19:01:24]MH_SAM_APDU [19:01:24]CAPDU: 80 0D 03 02 [19:01:24]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 0B 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 0B 00 0C 01 00 0D 14 D7 6B 1D F3 1B 63 90 00 7A [19:01:24]RAPDU: 0D 14 D7 6B 1D F3 1B 63 90 00 [19:01:24]wFMCommunicate OK [19:01:24]SAM_PROTO_SignData done [19:01:24]FM_MakeSignedData done [19:01:24]CreateOFDProtocolMessage [19:01:24]wFMCommunicate request_size=4 [19:01:24]MH_SAM_APDU [19:01:24]CAPDU: 80 11 00 00 [19:01:24]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:24]Read from MH i2c: E2 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 17 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [19:01:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:01:24]wFMCommunicate OK [19:01:24]CreateOFDProtocolMessage done [19:01:24]OFDSenderStorePacket 72620 [19:01:24]StoreOFDPacket docnum=72620 [19:01:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 22 42 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 83 DF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1B 01 00 35 04 06 00 76 4D BA 5D 84 F7 0D 14 D7 6B 1D F3 1B 63 [19:01:24]CheckFolder [19:01:24]dirname=/storage/ofd_packets [19:01:24]CheckFolder done [19:01:24]ProducePacketName [19:01:24]name=ofd_packets/00072620 [19:01:24]NVStorageSaveData ofd_packets/00072620 [19:01:24]File name is /storage/ofd_packets/00072620 [19:01:24]Write 301 bytes [19:01:24]NVStorageSaveData done [19:01:24]OFDSenderStorePacket done [19:01:24]KKMCreateOFDPacket done [19:01:24]NVStorageSaveData kkm_last_timestamp [19:01:24]File name is /storage/kkm_last_timestamp [19:01:24]Write 4 bytes [19:01:24]NVStorageSaveData done [19:01:24]ExternCall_PrintAddStr [19:01:24]wPrintStart [19:01:24]Write to MH i2c: 01 00 00 0E 01 0F [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 07 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [19:01:24]RasterBufferAndPrint [19:01:24]line Счет N : (1)952107 [19:01:24]line ИНН: 02508201610067 [19:01:24]line Контрольно-Кассовый Чек [19:01:24]line ПРОДАЖА [19:01:24]line ТРК (МРК, ГНК) : 53 [19:01:24]line Товар: 2710124130 [19:01:24]line Аи-92-К-5 [19:01:24]line 20.000 * 0.00 [19:01:24]line = 0.00 [19:01:24]line НДС 12% НСП 1% [19:01:24]line > о реализуемом товаре [19:01:24]line ИТОГО: 0.00 [19:01:24]line НСП 1% : 0.00 [19:01:24]line НДС 12% : 0.00 [19:01:24]line Наличными: 0.00 [19:01:24]line Безнал.: 0.00 [19:01:24]line Место: АЗС № 113 "Партнер Нефть" [19:01:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:01:24]line СНО: Общий режим [19:01:24]line Чек 148 28.10.2024 19:01 [19:01:24]line Смена: 554 ФФД: 1.0 [19:01:24]line ЗНМ: 0300000087 [19:01:24]line РНМ: 0000000000091644 [19:01:24]line Версия ККМ: 001 [19:01:24]line Талоны: Топливная Карта [19:01:24]line 03047 [19:01:24]line ФМ: 0000000000874662 [19:01:24]line ФД: 72620 [19:01:24]line ФПД: 130076211250423 [19:01:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190123&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72620&fm=130076211250423&tin=02508201610067®Number=0000000000091644&sum=0 [19:01:24]OFD Sender: Processing packet 72620 [packets to send 276, broken 275] [19:01:24]ProducePacketName [19:01:24]name=ofd_packets/00072620 [19:01:24]OFD Sender: To server: pG, [19:01:24]CommunicateWithHost lk.salyk.kg:30040 [19:01:24]ConnectInit lk.salyk.kg [19:01:24]written 0, free lines is 4095 [19:01:25]Write to MH i2c: 01 00 00 38 01 39 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: 01 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: 01 07 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 DD 0C 29 [19:01:25]RasterBufferAndPrint [19:01:25]line [19:01:25]line [19:01:25]line [19:01:25]line [19:01:25]line [19:01:25]written 0, free lines is 3299 [19:01:25]MH_Cut [19:01:25]Write to MH i2c: D1 01 00 3F 01 01 12 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: D1 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: D1 01 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: D1 01 00 3F 01 00 11 [19:01:25]Write to MH i2c: 01 00 00 40 01 41 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:26]*** Cut start [19:01:26]*** Partial cut [19:01:26]*** CUTSNS_PIN = 1 [19:01:26]*** CUTSNS_PIN = 0 [19:01:26]Connected sock=9 [19:01:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 22 42 07 01 F6 4E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 94 00 00 00 F4 03 04 00 83 DF 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1B 01 00 35 04 06 00 76 4D BA 5D 84 F7 0D 14 D7 6B 1D F3 1B 63 [19:01:26]*** Brake cut motor [19:01:26]Read from MH i2c: 01 [19:01:26]MH_I2C_Read... [19:01:26]*** Stop cut motor [19:01:26]*** Cut end [19:01:26]Read from MH i2c: 01 07 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [19:01:26]process_action close_receipt done [19:01:26]requested_data is exist [19:01:26]produce_requested_data [19:01:26]requested_item fm.sn is exist - process it [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 11 00 00 [19:01:26]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 17 00 [19:01:26]MH_I2C_Read... [19:01:26]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 34 36 36 32 90 00 10 [19:01:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:01:26]wFMCommunicate OK [19:01:26]requested_item fd.num is exist - process it [19:01:26]SAM_PROTO_GetFieldsCounters [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 13 00 00 [19:01:26]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 62 00 [19:01:26]MH_I2C_Read... [19:01:27]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [19:01:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AC 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_GetFieldsCounters done [19:01:27]requested_item shift.num is exist - process it [19:01:27]requested_item shift.opened is exist - process it [19:01:27]req_shift_opened [19:01:27]FM_GetShiftState [19:01:27]SAM_PROTO_GetShiftState [19:01:27]wFMCommunicate request_size=4 [19:01:27]MH_SAM_APDU [19:01:27]CAPDU: 80 13 01 00 [19:01:27]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [19:01:27]Write i2c OK [19:01:27]MH_I2C_Read... [19:01:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B6 89 47 00 98 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AC 1B 01 00 F4 03 04 00 42 8A 1F 67 B6 04 01 00 00 5C 96 F9 F2 26 1B 0A 2A [19:01:27]CommunicateWithHost err = 0 [19:01:27]CheckOFDResponse [19:01:27]1017 (14) - 77093643461234 [19:01:27]1041 (16) - 0000000000874662 [19:01:27]1040 (4) - 72620 [19:01:27]1012 (4) - 28.10.2024 12:57 [19:01:27]1206 (1) - 0 [19:01:27]OFD Sender: Remove packet 72620 [19:01:27]ProducePacketName [19:01:27]name=ofd_packets/00072620 [19:01:27]NVStorageDeleteData [19:01:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:27]Read from MH i2c: E2 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 0E 00 [19:01:27]MH_I2C_Read... [19:01:27]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 29 [19:01:27]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:01:27]wFMCommunicate OK [19:01:27]SAM_PROTO_GetShiftState done [19:01:27]FM_GetShiftState done [19:01:27]req_shift_opened done [19:01:27]requested_item shift.open_date is exist - process it [19:01:27]req_shift_open_date [19:01:27]req_shift_open_date done [19:01:27]produce_requested_data done [19:01:27]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72620,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [19:01:27]process_action_free close_receipt [19:01:27]json_value_free [19:01:27]json_value_free done [19:01:27]process_json_proto returns [19:01:27]Send response to host [19:01:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72620,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [19:01:27]free response buf [19:01:27]execute_script done [19:01:27]execute_script returns [19:01:27]free content buf [19:01:27]Sock 10.Close socket [19:01:27]Sock 10.Thread stoped [19:01:27]OFD Sender: No OFD packet to send [19:01:32]OFD Sender: No OFD packet to send [19:01:37]OFD Sender: No OFD packet to send [19:01:39]recv_with_timeout no data received [19:01:42]OFD Sender: No OFD packet to send [19:01:47]OFD Sender: No OFD packet to send [19:01:52]OFD Sender: No OFD packet to send [19:01:57]OFD Sender: No OFD packet to send [19:02:02]OFD Sender: No OFD packet to send [19:02:07]OFD Sender: No OFD packet to send [19:02:12]OFD Sender: No OFD packet to send [19:02:17]OFD Sender: No OFD packet to send [19:02:22]OFD Sender: No OFD packet to send [19:02:27]OFD Sender: No OFD packet to send [19:02:32]OFD Sender: No OFD packet to send [19:02:37]OFD Sender: No OFD packet to send [19:02:42]OFD Sender: No OFD packet to send [19:02:47]OFD Sender: No OFD packet to send [19:02:48]recv_with_timeout no data received [19:02:52]OFD Sender: No OFD packet to send [19:02:57]OFD Sender: No OFD packet to send [19:03:02]OFD Sender: No OFD packet to send [19:03:07]OFD Sender: No OFD packet to send [19:03:08]recv_with_timeout no data received [19:03:12]OFD Sender: No OFD packet to send [19:03:17]OFD Sender: No OFD packet to send [19:03:22]OFD Sender: No OFD packet to send [19:03:27]OFD Sender: No OFD packet to send [19:03:31]recv_with_timeout no data received [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:39]accept exits with 7 [19:03:39]New connection [19:03:39]New thread 3067264356 created [19:03:39]Thread 3067120996 joined [19:03:39]Waiting for new connection... [19:03:39] Sock 7.Parse request [19:03:39]Sock 7.Check first char [19:03:39]Sock 7.First char is OK [19:03:39]request: POST /json_proto HTTP/1.0 [19:03:39]Method: POST [19:03:39]URL: /json_proto [19:03:39]Method is POST - this is cgi request [19:03:39]url: /json_proto [19:03:39]query_string will be loaded in cgi processing [19:03:39]execute_cgi json_proto POST (null) [19:03:39]execute_cgi path=json_proto method=POST [19:03:39]POST find Content-Length [19:03:39]Host: 172.17.43.195:8080 [19:03:39]Content-Length: 840 [19:03:39]Content-Type: application/json [19:03:39] [19:03:39]POST finish read [19:03:39]Found Content-Length = 840 [19:03:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:39]execute_script... [19:03: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)952108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:39]POST & json_proto [19:03:39]process_json_proto [19:03:39]json parsed OK: [19:03:39]protocol is kg_v1.0 [19:03:39]action value=close_receipt [19:03:39]process_action close_receipt [19:03:39]cmd_close_receipt [19:03:39]MH_GetDate [19:03:39]Write to MH i2c: F0 00 00 44 01 34 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 09 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: F0 09 00 44 01 00 0C E0 1F 67 74 2C AD 66 62 [19:03:39]GetLastDocTimeStamp 1730142083 [19:03:39]current date 1730142220 [19:03:39]FM_GetShiftState [19:03:39]SAM_PROTO_GetShiftState [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 01 00 [19:03:39]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2B [19:03:39]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetShiftState done [19:03:39]FM_GetShiftState done [19:03:39]opened in 1730074113 [19:03:39]opened+sec_in_day 1730160513 [19:03:39]quantity*price = 30038 [19:03:39]sum+1 = 30039 [19:03:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 149 28.10.2024 19:03 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000874662 ФД: 72621 ФПД: 126378925069442 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72621&fm=126378925069442&tin=02508201610067®Number=0000000000091644&sum=30038 [19:03:40]StoreToDocumentArchive [19:03:40]shift 554 fd 72621 [19:03:40]save to /storage/0554/doc_00072621 [19:03:40]save last doc name /storage/0554/doc_00072621 to /storage/kkm_last_doc_name [19:03:40]save OK [19:03:40]Clear old archive folders... [19:03:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:40]tlvbuf is 01FCEDB0 [19:03:40]SAM_PROTO_ClearQueue [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 09 00 00 [19:03:40]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]SAM_PROTO_ClearQueue done [19:03:40]KKMCreateOFDPacket [19:03:40]OFDProtocolAddRootSTLVToBuf [19:03:40]FM_MakeSignedData [19:03:40]FM_MakeSignedData [19:03:40]SAM_PROTO_SignData [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 01 02 [19:03:40]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=255 [19:03:40]MH_SAM_APDU [19:03: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 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 95 00 00 00 F4 03 04 00 0C E0 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1B 01 00 35 04 06 00 72 [19:03:40]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 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 95 00 00 00 F4 03 04 00 0C E0 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1B 01 00 35 04 06 00 72 00 00 0A [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [19:03:40]RAPDU: 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=10 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 0D 02 02 05 F0 E2 EF 94 82 [19:03:40]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 F0 E2 EF 94 82 00 00 B1 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 03 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [19:03:41]RAPDU: 90 00 [19:03:41]wFMCommunicate OK [19:03:41]wFMCommunicate request_size=4 [19:03:41]MH_SAM_APDU [19:03:41]CAPDU: 80 0D 03 02 [19:03:41]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 0B 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 0B 00 56 01 00 44 D9 83 D0 00 67 08 35 90 00 E7 [19:03:41]RAPDU: 44 D9 83 D0 00 67 08 35 90 00 [19:03:41]wFMCommunicate OK [19:03:41]SAM_PROTO_SignData done [19:03:41]FM_MakeSignedData done [19:03:41]CreateOFDProtocolMessage [19:03:41]wFMCommunicate request_size=4 [19:03:41]MH_SAM_APDU [19:03:41]CAPDU: 80 11 00 00 [19:03:41]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 17 00 [19:03:41]MH_I2C_Read... [19:03:41]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 34 36 36 32 90 00 26 [19:03:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:03:41]wFMCommunicate OK [19:03:41]CreateOFDProtocolMessage done [19:03:41]OFDSenderStorePacket 72621 [19:03:41]StoreOFDPacket docnum=72621 [19:03:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9C 77 07 01 D7 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 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 95 00 00 00 F4 03 04 00 0C E0 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1B 01 00 35 04 06 00 72 F0 E2 EF 94 82 44 D9 83 D0 00 67 08 35 [19:03:41]CheckFolder [19:03:41]dirname=/storage/ofd_packets [19:03:41]CheckFolder done [19:03:41]ProducePacketName [19:03:41]name=ofd_packets/00072621 [19:03:41]NVStorageSaveData ofd_packets/00072621 [19:03:41]File name is /storage/ofd_packets/00072621 [19:03:41]Write 301 bytes [19:03:41]NVStorageSaveData done [19:03:41]OFDSenderStorePacket done [19:03:41]KKMCreateOFDPacket done [19:03:41]NVStorageSaveData kkm_last_timestamp [19:03:41]File name is /storage/kkm_last_timestamp [19:03:41]Write 4 bytes [19:03:41]NVStorageSaveData done [19:03:41]ExternCall_PrintAddStr [19:03:41]wPrintStart [19:03:41]Write to MH i2c: 01 00 00 58 01 59 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [19:03:41]RasterBufferAndPrint [19:03:41]line Счет N : (1)952108 [19:03:41]line ИНН: 02508201610067 [19:03:41]line Контрольно-Кассовый Чек [19:03:41]line ПРОДАЖА [19:03:41]line ТРК (МРК, ГНК) : 63 [19:03:41]line Товар: 2710124130 [19:03:41]line Аи-92-К-5 [19:03:41]line 4.490 * 66.90 [19:03:41]line = 300.38 [19:03:41]line НДС 12% НСП 1% [19:03:41]line > о реализуемом товаре [19:03:41]line ИТОГО: 300.38 [19:03:41]line НСП 1% : 2.66 [19:03:41]line НДС 12% : 31.90 [19:03:41]line Наличными: 0.00 [19:03:41]line Безнал.: 300.38 [19:03:41]line Место: АЗС № 113 "Партнер Нефть" [19:03:41]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:03:41]line СНО: Общий режим [19:03:41]line Чек 149 28.10.2024 19:03 [19:03:41]line Смена: 554 ФФД: 1.0 [19:03:41]line ЗНМ: 0300000087 [19:03:41]line РНМ: 0000000000091644 [19:03:41]line Версия ККМ: 001 [19:03:41]line Платежная система: АКБ Кыргызстан [19:03:41]line ФМ: 0000000000874662 [19:03:41]line ФД: 72621 [19:03:41]line ФПД: 126378925069442 [19:03:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190340&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72621&fm=126378925069442&tin=02508201610067®Number=0000000000091644&sum=30038 [19:03:41]OFD Sender: Processing packet 72621 [packets to send 276, broken 275] [19:03:41]ProducePacketName [19:03:41]name=ofd_packets/00072621 [19:03:41]OFD Sender: To server: pG, [19:03:41]CommunicateWithHost lk.salyk.kg:30040 [19:03:41]ConnectInit lk.salyk.kg [19:03:41]written 0, free lines is 4095 [19:03:41]Write to MH i2c: 01 00 00 82 01 83 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 EC 0C 82 [19:03:41]RasterBufferAndPrint [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]line [19:03:41]written 0, free lines is 3315 [19:03:41]MH_Cut [19:03:41]Write to MH i2c: D1 01 00 89 01 01 5C [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 01 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: D1 01 00 89 01 00 5B [19:03:41]Write to MH i2c: 01 00 00 8A 01 8B [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:42]Connected sock=10 [19:03:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9C 77 07 01 D7 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 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 95 00 00 00 F4 03 04 00 0C E0 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AD 1B 01 00 35 04 06 00 72 F0 E2 EF 94 82 44 D9 83 D0 00 67 08 35 [19:03:42]*** Cut start [19:03:42]*** Partial cut [19:03:42]*** CUTSNS_PIN = 1 [19:03:42]*** CUTSNS_PIN = 0 [19:03:42]*** Brake cut motor [19:03:43]Read from MH i2c: 01 [19:03:43]MH_I2C_Read... [19:03:43]*** Stop cut motor [19:03:43]*** Cut end [19:03:43]Read from MH i2c: 01 07 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [19:03:43]process_action close_receipt done [19:03:43]requested_data is exist [19:03:43]produce_requested_data [19:03:43]requested_item fm.sn is exist - process it [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 11 00 00 [19:03:43]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 17 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [19:03:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:03:43]wFMCommunicate OK [19:03:43]requested_item fd.num is exist - process it [19:03:43]SAM_PROTO_GetFieldsCounters [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 13 00 00 [19:03:43]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 62 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 62 00 8C 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 DE [19:03: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AD 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:43]wFMCommunicate OK [19:03:43]SAM_PROTO_GetFieldsCounters done [19:03:43]requested_item shift.num is exist - process it [19:03:43]requested_item shift.opened is exist - process it [19:03:43]req_shift_opened [19:03:43]FM_GetShiftState [19:03:43]SAM_PROTO_GetShiftState [19:03:43]wFMCommunicate request_size=4 [19:03:43]MH_SAM_APDU [19:03:43]CAPDU: 80 13 01 00 [19:03:43]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [19:03:43]Write i2c OK [19:03:43]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 0E 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 73 [19:03:43]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:03:43]wFMCommunicate OK [19:03:43]SAM_PROTO_GetShiftState done [19:03:43]FM_GetShiftState done [19:03:43]req_shift_opened done [19:03:43]requested_item shift.open_date is exist - process it [19:03:43]req_shift_open_date [19:03:43]req_shift_open_date done [19:03:43]produce_requested_data done [19:03:43]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72621,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [19:03:43]process_action_free close_receipt [19:03:43]json_value_free [19:03:43]json_value_free done [19:03:43]process_json_proto returns [19:03:43]Send response to host [19:03:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72621,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [19:03:43]free response buf [19:03:43]execute_script done [19:03:43]execute_script returns [19:03:43]free content buf [19:03:43]Sock 7.Close socket [19:03:43]Sock 7.Thread stoped [19:03:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B6 40 47 00 4A 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 34 36 36 32 10 04 04 00 AD 1B 01 00 F4 03 04 00 CA 8A 1F 67 B6 04 01 00 00 BB C5 7A AD 85 CE A8 D6 [19:03:43]CommunicateWithHost err = 0 [19:03:43]CheckOFDResponse [19:03:43]1017 (14) - 77093643461234 [19:03:43]1041 (16) - 0000000000874662 [19:03:43]1040 (4) - 72621 [19:03:43]1012 (4) - 28.10.2024 12:59 [19:03:43]1206 (1) - 0 [19:03:43]OFD Sender: Remove packet 72621 [19:03:43]ProducePacketName [19:03:43]name=ofd_packets/00072621 [19:03:43]NVStorageDeleteData [19:03:44]OFD Sender: No OFD packet to send [19:03:48]recv_with_timeout no data received [19:03:49]OFD Sender: No OFD packet to send [19:03:54]OFD Sender: No OFD packet to send [19:03:59]OFD Sender: No OFD packet to send [19:04:03]recv_with_timeout no data received [19:04:04]OFD Sender: No OFD packet to send [19:04:09]OFD Sender: No OFD packet to send [19:04:14]OFD Sender: No OFD packet to send [19:04:16]recv_with_timeout no data received [19:04:19]OFD Sender: No OFD packet to send [19:04:24]OFD Sender: No OFD packet to send [19:04:29]OFD Sender: No OFD packet to send [19:04:34]OFD Sender: No OFD packet to send [19:04:39]OFD Sender: No OFD packet to send [19:04:44]OFD Sender: No OFD packet to send [19:04:49]OFD Sender: No OFD packet to send [19:04:54]OFD Sender: No OFD packet to send [19:04:59]OFD Sender: No OFD packet to send [19:05:04]OFD Sender: No OFD packet to send [19:05:09]OFD Sender: No OFD packet to send [19:05:14]OFD Sender: No OFD packet to send [19:05:19]OFD Sender: No OFD packet to send [19:05:24]OFD Sender: No OFD packet to send [19:05:29]OFD Sender: No OFD packet to send [19:05:33]recv_with_timeout no data received [19:05:34]OFD Sender: No OFD packet to send [19:05:39]OFD Sender: No OFD packet to send [19:05:44]OFD Sender: No OFD packet to send [19:05:49]OFD Sender: No OFD packet to send [19:05:49]recv_with_timeout no data received [19:05:54]OFD Sender: No OFD packet to send [19:05:59]OFD Sender: No OFD packet to send [19:06:04]OFD Sender: No OFD packet to send [19:06:09]OFD Sender: No OFD packet to send [19:06:14]OFD Sender: No OFD packet to send [19:06:19]OFD Sender: No OFD packet to send [19:06:24]OFD Sender: No OFD packet to send [19:06:29]OFD Sender: No OFD packet to send [19:06:34]OFD Sender: No OFD packet to send [19:06:39]OFD Sender: No OFD packet to send [19:06:44]OFD Sender: No OFD packet to send [19:06:49]OFD Sender: No OFD packet to send [19:06:54]OFD Sender: No OFD packet to send [19:06:59]OFD Sender: No OFD packet to send [19:07:04]recv_with_timeout no data received [19:07:04]OFD Sender: No OFD packet to send [19:07:09]OFD Sender: No OFD packet to send [19:07:14]OFD Sender: No OFD packet to send [19:07:19]OFD Sender: No OFD packet to send [19:07:24]OFD Sender: No OFD packet to send [19:07:29]OFD Sender: No OFD packet to send [19:07:32]recv_with_timeout no data received [19:07:34]OFD Sender: No OFD packet to send [19:07:39]OFD Sender: No OFD packet to send [19:07:44]OFD Sender: No OFD packet to send [19:07:49]OFD Sender: No OFD packet to send [19:07:54]OFD Sender: No OFD packet to send [19:07:59]OFD Sender: No OFD packet to send [19:08:04]OFD Sender: No OFD packet to send [19:08:09]recv_with_timeout no data received [19:08:09]OFD Sender: No OFD packet to send [19:08:14]OFD Sender: No OFD packet to send [19:08:19]OFD Sender: No OFD packet to send [19:08:24]OFD Sender: No OFD packet to send [19:08:29]OFD Sender: No OFD packet to send [19:08:34]OFD Sender: No OFD packet to send [19:08:35]recv_with_timeout no data received [19:08:36]accept exits with 9 [19:08:36]New connection [19:08:36]New thread 3067120996 created [19:08:36]Thread 3067264356 joined [19:08:36]Waiting for new connection... [19:08:36] Sock 9.Parse request [19:08:36]Sock 9.Check first char [19:08:36]Sock 9.First char is OK [19:08:36]request: POST /json_proto HTTP/1.0 [19:08:36]Method: POST [19:08:36]URL: /json_proto [19:08:36]Method is POST - this is cgi request [19:08:36]url: /json_proto [19:08:36]query_string will be loaded in cgi processing [19:08:36]execute_cgi json_proto POST (null) [19:08:36]execute_cgi path=json_proto method=POST [19:08:36]POST find Content-Length [19:08:36]Host: 172.17.43.195:8080 [19:08:36]Content-Length: 677 [19:08:36]Content-Type: application/json [19:08:36] [19:08:36]POST finish read [19:08:36]Found Content-Length = 677 [19:08:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [19:08:36]execute_script... [19:08:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "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" ] } } [19:08:36]POST & json_proto [19:08:36]process_json_proto [19:08:36]json parsed OK: [19:08:36]protocol is kg_v1.0 [19:08:36]action value=close_receipt [19:08:36]process_action close_receipt [19:08:36]cmd_close_receipt [19:08:36]MH_GetDate [19:08:36]Write to MH i2c: F0 00 00 8E 01 7E [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: F0 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: F0 09 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: F0 09 00 8E 01 00 35 E1 1F 67 74 2C AD 66 D6 [19:08:36]GetLastDocTimeStamp 1730142220 [19:08:36]current date 1730142517 [19:08:36]FM_GetShiftState [19:08:36]SAM_PROTO_GetShiftState [19:08:36]wFMCommunicate request_size=4 [19:08:36]MH_SAM_APDU [19:08:36]CAPDU: 80 13 01 00 [19:08:36]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [19:08:36]Write i2c OK [19:08:36]MH_I2C_Read... [19:08:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:36]Read from MH i2c: E2 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 [19:08:36]MH_I2C_Read... [19:08:36]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 75 [19:08:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:08:36]wFMCommunicate OK [19:08:36]SAM_PROTO_GetShiftState done [19:08:36]FM_GetShiftState done [19:08:36]opened in 1730074113 [19:08:36]opened+sec_in_day 1730160513 [19:08:36]quantity*price = 35055 [19:08:36]sum+1 = 35057 [19:08:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 150 28.10.2024 19:08 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72622 ФПД: 68907499886393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190837&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72622&fm=68907499886393&tin=02508201610067®Number=0000000000091644&sum=35000 [19:08:37]StoreToDocumentArchive [19:08:37]shift 554 fd 72622 [19:08:37]save to /storage/0554/doc_00072622 [19:08:37]save last doc name /storage/0554/doc_00072622 to /storage/kkm_last_doc_name [19:08:37]save OK [19:08:37]Clear old archive folders... [19:08:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:08:37]tlvbuf is 020425E0 [19:08:37]SAM_PROTO_ClearQueue [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 09 00 00 [19:08:37]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:08:37]Read from MH i2c: E2 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 [19:08:37]MH_I2C_Read... [19:08:37]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [19:08:37]RAPDU: 90 00 [19:08:37]wFMCommunicate OK [19:08:37]SAM_PROTO_ClearQueue done [19:08:37]KKMCreateOFDPacket [19:08:37]OFDProtocolAddRootSTLVToBuf [19:08:37]FM_MakeSignedData [19:08:37]FM_MakeSignedData [19:08:37]SAM_PROTO_SignData [19:08:37]wFMCommunicate request_size=4 [19:08:37]MH_SAM_APDU [19:08:37]CAPDU: 80 0D 01 02 [19:08:37]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [19:08:37]Write i2c OK [19:08:37]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [19:08:38]RAPDU: 90 00 [19:08:38]wFMCommunicate OK [19:08:38]wFMCommunicate request_size=255 [19:08:38]MH_SAM_APDU [19:08: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 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 96 00 00 00 F4 03 04 00 35 E1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1B 01 00 35 04 06 00 3E [19:08:38]Write to MH i2c: E2 02 01 9E 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 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 96 00 00 00 F4 03 04 00 35 E1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1B 01 00 35 04 06 00 3E 00 00 17 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [19:08:38]RAPDU: 90 00 [19:08:38]wFMCommunicate OK [19:08:38]wFMCommunicate request_size=10 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 0D 02 02 05 AB C7 0D 97 39 [19:08:38]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 AB C7 0D 97 39 00 00 73 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [19:08:38]RAPDU: 90 00 [19:08:38]wFMCommunicate OK [19:08:38]wFMCommunicate request_size=4 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 0D 03 02 [19:08:38]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 0B 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 0B 00 A0 01 00 18 24 4A 20 8A E0 94 9B 90 00 5C [19:08:38]RAPDU: 18 24 4A 20 8A E0 94 9B 90 00 [19:08:38]wFMCommunicate OK [19:08:38]SAM_PROTO_SignData done [19:08:38]FM_MakeSignedData done [19:08:38]CreateOFDProtocolMessage [19:08:38]wFMCommunicate request_size=4 [19:08:38]MH_SAM_APDU [19:08:38]CAPDU: 80 11 00 00 [19:08:38]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:38]Read from MH i2c: E2 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 17 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [19:08:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:08:38]wFMCommunicate OK [19:08:38]CreateOFDProtocolMessage done [19:08:38]OFDSenderStorePacket 72622 [19:08:38]StoreOFDPacket docnum=72622 [19:08:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3B 16 07 01 A6 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 35 E1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1B 01 00 35 04 06 00 3E AB C7 0D 97 39 18 24 4A 20 8A E0 94 9B [19:08:38]CheckFolder [19:08:38]dirname=/storage/ofd_packets [19:08:38]CheckFolder done [19:08:38]ProducePacketName [19:08:38]name=ofd_packets/00072622 [19:08:38]NVStorageSaveData ofd_packets/00072622 [19:08:38]File name is /storage/ofd_packets/00072622 [19:08:38]Write 301 bytes [19:08:38]NVStorageSaveData done [19:08:38]OFDSenderStorePacket done [19:08:38]KKMCreateOFDPacket done [19:08:38]NVStorageSaveData kkm_last_timestamp [19:08:38]File name is /storage/kkm_last_timestamp [19:08:38]Write 4 bytes [19:08:38]NVStorageSaveData done [19:08:38]ExternCall_PrintAddStr [19:08:38]wPrintStart [19:08:38]Write to MH i2c: 01 00 00 A2 01 A3 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [19:08:38]RasterBufferAndPrint [19:08:38]line Счет N : (1)952109 [19:08:38]line ИНН: 02508201610067 [19:08:38]line Контрольно-Кассовый Чек [19:08:38]line ПРОДАЖА [19:08:38]line ТРК (МРК, ГНК) : 63 [19:08:38]line Товар: 2710124130 [19:08:38]line Аи-92-К-5 [19:08:38]line 5.240 * 66.90 [19:08:38]line = 350.56 [19:08:38]line НДС 12% НСП 1% [19:08:38]line > о реализуемом товаре [19:08:38]line ОКРУГЛЕНИЕ: -0.56 [19:08:38]line ИТОГО: 350.00 [19:08:38]line Внесено: 350.00 [19:08:38]line СДАЧА: 0.00 [19:08:38]line НСП 1% : 3.10 [19:08:38]line НДС 12% : 37.23 [19:08:38]line Наличными: 350.00 [19:08:38]line Безнал.: 0.00 [19:08:38]line Место: АЗС № 113 "Партнер Нефть" [19:08:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [19:08:38]line СНО: Общий режим [19:08:38]line Чек 150 28.10.2024 19:08 [19:08:38]line Смена: 554 ФФД: 1.0 [19:08:38]line ЗНМ: 0300000087 [19:08:38]line РНМ: 0000000000091644 [19:08:38]line Версия ККМ: 001 [19:08:38]line ФМ: 0000000000874662 [19:08:38]line ФД: 72622 [19:08:38]line ФПД: 68907499886393 [19:08:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T190837&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72622&fm=68907499886393&tin=02508201610067®Number=0000000000091644&sum=35000 [19:08:38]written 0, free lines is 4095 [19:08:38]OFD Sender: Processing packet 72622 [packets to send 276, broken 275] [19:08:38]ProducePacketName [19:08:38]name=ofd_packets/00072622 [19:08:38]OFD Sender: To server: pG, [19:08:38]CommunicateWithHost lk.salyk.kg:30040 [19:08:38]ConnectInit lk.salyk.kg [19:08:38]Write to MH i2c: 01 00 00 CD 01 CE [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: 01 07 00 CD 01 00 00 00 00 00 CD 0C AE [19:08:38]RasterBufferAndPrint [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]line [19:08:38]written 0, free lines is 3286 [19:08:38]MH_Cut [19:08:38]Write to MH i2c: D1 01 00 D4 01 01 A7 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 [19:08:38]MH_I2C_Read... [19:08:38]Read from MH i2c: D1 01 00 D4 01 00 A6 [19:08:38]Write to MH i2c: 01 00 00 D5 01 D6 [19:08:38]Write i2c OK [19:08:38]MH_I2C_Read... [19:08:39]Connected sock=10 [19:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 3B 16 07 01 A6 C8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 96 00 00 00 F4 03 04 00 35 E1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 AE 1B 01 00 35 04 06 00 3E AB C7 0D 97 39 18 24 4A 20 8A E0 94 9B [19:08:39]*** Cut start [19:08:39]*** Partial cut [19:08:39]*** CUTSNS_PIN = 1 [19:08:39]*** CUTSNS_PIN = 0 [19:08:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 69 28 47 00 5C 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 34 36 36 32 10 04 04 00 AE 1B 01 00 F4 03 04 00 F3 8B 1F 67 B6 04 01 00 00 06 06 2A 51 C4 EB 8F 0C [19:08:40]CommunicateWithHost err = 0 [19:08:40]CheckOFDResponse [19:08:40]1017 (14) - 77093643461234 [19:08:40]1041 (16) - 0000000000874662 [19:08:40]1040 (4) - 72622 [19:08:40]1012 (4) - 28.10.2024 13:04 [19:08:40]1206 (1) - 0 [19:08:40]OFD Sender: Remove packet 72622 [19:08:40]ProducePacketName [19:08:40]name=ofd_packets/00072622 [19:08:40]NVStorageDeleteData [19:08:40]*** Brake cut motor [19:08:40]Read from MH i2c: 01 [19:08:40]MH_I2C_Read... [19:08:40]*** Stop cut motor [19:08:40]*** Cut end [19:08:40]Read from MH i2c: 01 07 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: 01 07 00 D5 01 00 00 00 00 00 FF 0F EB [19:08:40]process_action close_receipt done [19:08:40]requested_data is exist [19:08:40]produce_requested_data [19:08:40]requested_item fm.sn is exist - process it [19:08:40]wFMCommunicate request_size=4 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 11 00 00 [19:08:40]Write to MH i2c: E2 08 00 D6 01 80 11 00 00 00 00 00 00 51 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:40]Read from MH i2c: E2 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 17 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 17 00 D6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A5 [19:08:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [19:08:40]wFMCommunicate OK [19:08:40]requested_item fd.num is exist - process it [19:08:40]SAM_PROTO_GetFieldsCounters [19:08:40]wFMCommunicate request_size=4 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 13 00 00 [19:08:40]Write to MH i2c: E2 08 00 D7 01 80 13 00 00 00 00 00 00 54 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]OFD Sender: No OFD packet to send [19:08:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:40]Read from MH i2c: E2 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 62 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 62 00 D7 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [19:08: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 AE 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:08:40]wFMCommunicate OK [19:08:40]SAM_PROTO_GetFieldsCounters done [19:08:40]requested_item shift.num is exist - process it [19:08:40]requested_item shift.opened is exist - process it [19:08:40]req_shift_opened [19:08:40]FM_GetShiftState [19:08:40]SAM_PROTO_GetShiftState [19:08:40]wFMCommunicate request_size=4 [19:08:40]MH_SAM_APDU [19:08:40]CAPDU: 80 13 01 00 [19:08:40]Write to MH i2c: E2 08 00 D8 01 80 13 01 00 00 00 00 00 56 [19:08:40]Write i2c OK [19:08:40]MH_I2C_Read... [19:08:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:40]Read from MH i2c: E2 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 0E 00 [19:08:40]MH_I2C_Read... [19:08:40]Read from MH i2c: E2 0E 00 D8 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BE [19:08:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [19:08:40]wFMCommunicate OK [19:08:40]SAM_PROTO_GetShiftState done [19:08:40]FM_GetShiftState done [19:08:40]req_shift_opened done [19:08:40]requested_item shift.open_date is exist - process it [19:08:40]req_shift_open_date [19:08:40]req_shift_open_date done [19:08:40]produce_requested_data done [19:08:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72622,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [19:08:40]process_action_free close_receipt [19:08:40]json_value_free [19:08:40]json_value_free done [19:08:40]process_json_proto returns [19:08:40]Send response to host [19:08:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72622,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [19:08:40]free response buf [19:08:40]execute_script done [19:08:40]execute_script returns [19:08:40]free content buf [19:08:40]Sock 9.Close socket [19:08:40]Sock 9.Thread stoped [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:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]recv_with_timeout no data received [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:10:00]OFD Sender: No OFD packet to send [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:23]recv_with_timeout no data received [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:49]recv_with_timeout no data received [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:10:59]recv_with_timeout no data received [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]recv_with_timeout no data received [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:09]recv_with_timeout no data received [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]recv_with_timeout no data received [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:40]recv_with_timeout no data received [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:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:18]recv_with_timeout no data received [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:00]recv_with_timeout no data received [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:23]recv_with_timeout no data received [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:48]recv_with_timeout no data received [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:15:59]recv_with_timeout no data received [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:16]OFD Sender: No OFD packet to send [19:16:21]OFD Sender: No OFD packet to send [19:16:26]OFD Sender: No OFD packet to send [19:16:31]OFD Sender: No OFD packet to send [19:16:36]OFD Sender: No OFD packet to send [19:16:41]OFD Sender: No OFD packet to send [19:16:45]recv_with_timeout no data received [19:16:46]OFD Sender: No OFD packet to send [19:16:51]OFD Sender: No OFD packet to send [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:12]recv_with_timeout no data received [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:11]OFD Sender: No OFD packet to send [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:19:46]OFD Sender: No OFD packet to send [19:19:51]OFD Sender: No OFD packet to send [19:19:56]OFD Sender: No OFD packet to send [19:20:01]OFD Sender: No OFD packet to send [19:20:06]OFD Sender: No OFD packet to send [19:20:08]recv_with_timeout no data received [19:20:11]OFD Sender: No OFD packet to send [19:20:16]OFD Sender: No OFD packet to send [19:20:21]OFD Sender: No OFD packet to send [19:20:26]OFD Sender: No OFD packet to send [19:20:31]OFD Sender: No OFD packet to send [19:20:36]OFD Sender: No OFD packet to send [19:20:41]OFD Sender: No OFD packet to send [19:20:46]OFD Sender: No OFD packet to send [19:20:51]OFD Sender: No OFD packet to send [19:20:56]OFD Sender: No OFD packet to send [19:21:01]OFD Sender: No OFD packet to send [19:21:06]OFD Sender: No OFD packet to send [19:21:11]OFD Sender: No OFD packet to send [19:21:16]OFD Sender: No OFD packet to send [19:21:21]OFD Sender: No OFD packet to send [19:21:26]OFD Sender: No OFD packet to send [19:21:31]recv_with_timeout no data received [19:21:31]OFD Sender: No OFD packet to send [19:21:36]OFD Sender: No OFD packet to send [19:21:41]OFD Sender: No OFD packet to send [19:21:46]OFD Sender: No OFD packet to send [19:21:51]OFD Sender: No OFD packet to send [19:21:56]OFD Sender: No OFD packet to send [19:22:01]OFD Sender: No OFD packet to send [19:22:06]OFD Sender: No OFD packet to send [19:22:11]OFD Sender: No OFD packet to send [19:22:16]OFD Sender: No OFD packet to send [19:22:19]recv_with_timeout no data received [19:22:21]OFD Sender: No OFD packet to send [19:22:26]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [19:23:22]OFD Sender: No OFD packet to send [19:23:27]OFD Sender: No OFD packet to send [19:23: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:44]recv_with_timeout no data received [19:23:47]OFD Sender: No OFD packet to send [19:23:52]OFD Sender: No OFD packet to send [19:23:54]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:23]recv_with_timeout no data received [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:34]recv_with_timeout no data received [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:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:51]recv_with_timeout no data received [19:28:52]OFD Sender: No OFD packet to send [19:28:57]OFD Sender: No OFD packet to send [19:29:01]recv_with_timeout no data received [19:29:02]OFD Sender: No OFD packet to send [19:29:07]OFD Sender: No OFD packet to send [19:29:12]OFD Sender: No OFD packet to send [19:29:17]OFD Sender: No OFD packet to send [19:29:22]OFD Sender: No OFD packet to send [19:29:27]OFD Sender: No OFD packet to send [19:29:32]OFD Sender: No OFD packet to send [19:29:33]recv_with_timeout no data received [19:29:37]OFD Sender: No OFD packet to send [19:29:42]OFD Sender: No OFD packet to send [19:29:47]OFD Sender: No OFD packet to send [19:29:52]OFD Sender: No OFD packet to send [19:29:57]OFD Sender: No OFD packet to send [19:30:02]OFD Sender: No OFD packet to send [19:30:07]OFD Sender: No OFD packet to send [19:30:11]recv_with_timeout no data received [19:30:12]OFD Sender: No OFD packet to send [19:30:17]OFD Sender: No OFD packet to send [19:30:22]OFD Sender: No OFD packet to send [19:30:27]OFD Sender: No OFD packet to send [19:30:31]recv_with_timeout no data received [19:30:32]OFD Sender: No OFD packet to send [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:24]recv_with_timeout no data received [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:44]recv_with_timeout no data received [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:08]OFD Sender: No OFD packet to send [19:33:13]OFD Sender: No OFD packet to send [19:33:18]OFD Sender: No OFD packet to send [19:33:23]OFD Sender: No OFD packet to send [19:33:28]OFD Sender: No OFD packet to send [19:33:33]OFD Sender: No OFD packet to send [19:33:38]OFD Sender: No OFD packet to send [19:33:43]OFD Sender: No OFD packet to send [19:33:48]OFD Sender: No OFD packet to send [19:33:53]OFD Sender: No OFD packet to send [19:33:54]recv_with_timeout no data received [19:33:58]OFD Sender: No OFD packet to send [19:34:03]OFD Sender: No OFD packet to send [19:34:08]OFD Sender: No OFD packet to send [19:34:13]OFD Sender: No OFD packet to send [19:34:18]OFD Sender: No OFD packet to send [19:34:19]recv_with_timeout no data received [19:34:23]OFD Sender: No OFD packet to send [19:34:28]OFD Sender: No OFD packet to send [19:34:33]OFD Sender: No OFD packet to send [19:34:38]OFD Sender: No OFD packet to send [19:34:43]OFD Sender: No OFD packet to send [19:34:48]OFD Sender: No OFD packet to send [19:34:53]OFD Sender: No OFD packet to send [19:34:58]OFD Sender: No OFD packet to send [19:35:03]OFD Sender: No OFD packet to send [19:35:08]OFD Sender: No OFD packet to send [19:35:13]OFD Sender: No OFD packet to send [19:35:18]OFD Sender: No OFD packet to send [19:35:23]OFD Sender: No OFD packet to send [19:35:28]OFD Sender: No OFD packet to send [19:35:33]OFD Sender: No OFD packet to send [19:35:38]OFD Sender: No OFD packet to send [19:35:43]OFD Sender: No OFD packet to send [19:35:48]OFD Sender: No OFD packet to send [19:35:48]recv_with_timeout no data received [19:35:53]OFD Sender: No OFD packet to send [19:35:58]OFD Sender: No OFD packet to send [19:36:03]OFD Sender: No OFD packet to send [19:36:08]OFD Sender: No OFD packet to send [19:36:13]OFD Sender: No OFD packet to send [19:36:18]OFD Sender: No OFD packet to send [19:36:23]OFD Sender: No OFD packet to send [19:36:28]OFD Sender: No OFD packet to send [19:36:33]OFD Sender: No OFD packet to send [19:36:38]OFD Sender: No OFD packet to send [19:36:43]OFD Sender: No OFD packet to send [19:36:48]OFD Sender: No OFD packet to send [19:36:53]OFD Sender: No OFD packet to send [19:36:58]OFD Sender: No OFD packet to send [19:37:03]OFD Sender: No OFD packet to send [19:37:08]recv_with_timeout no data received [19:37:08]OFD Sender: No OFD packet to send [19:37:13]OFD Sender: No OFD packet to send [19:37:18]OFD Sender: No OFD packet to send [19:37:23]OFD Sender: No OFD packet to send [19:37:28]OFD Sender: No OFD packet to send [19:37:33]OFD Sender: No OFD packet to send [19:37:38]OFD Sender: No OFD packet to send [19:37:43]OFD Sender: No OFD packet to send [19:37:48]OFD Sender: No OFD packet to send [19:37:50]recv_with_timeout no data received [19:37:53]OFD Sender: No OFD packet to send [19:37:58]OFD Sender: No OFD packet to send [19:38:01]recv_with_timeout no data received [19:38:03]OFD Sender: No OFD packet to send [19:38:08]OFD Sender: No OFD packet to send [19:38:13]OFD Sender: No OFD packet to send [19:38:18]OFD Sender: No OFD packet to send [19:38:23]OFD Sender: No OFD packet to send [19:38:28]OFD Sender: No OFD packet to send [19:38:33]OFD Sender: No OFD packet to send [19:38:38]OFD Sender: No OFD packet to send [19:38:43]OFD Sender: No OFD packet to send [19:38:48]OFD Sender: No OFD packet to send [19:38:53]OFD Sender: No OFD packet to send [19:38:58]OFD Sender: No OFD packet to send [19:39:03]OFD Sender: No OFD packet to send [19:39:08]OFD Sender: No OFD packet to send [19:39:13]OFD Sender: No OFD packet to send [19:39:14]recv_with_timeout no data received [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:00]recv_with_timeout no data received [19:40:03]OFD Sender: No OFD packet to send [19:40:08]OFD Sender: No OFD packet to send [19:40:13]OFD Sender: No OFD packet to send [19:40:18]OFD Sender: No OFD packet to send [19:40:23]OFD Sender: No OFD packet to send [19:40:28]OFD Sender: No OFD packet to send [19:40:33]OFD Sender: No OFD packet to send [19:40:38]OFD Sender: No OFD packet to send [19:40:43]OFD Sender: No OFD packet to send [19:40:48]OFD Sender: No OFD packet to send [19:40:53]OFD Sender: No OFD packet to send [19:40:58]OFD Sender: No OFD packet to send [19:41:03]OFD Sender: No OFD packet to send [19:41:08]OFD Sender: No OFD packet to send [19:41:13]OFD Sender: No OFD packet to send [19:41:18]OFD Sender: No OFD packet to send [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:45]recv_with_timeout no data received [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:29]recv_with_timeout no data received [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:19]OFD Sender: No OFD packet to send [19:44:24]OFD Sender: No OFD packet to send [19:44:26]recv_with_timeout no data received [19:44:29]OFD Sender: No OFD packet to send [19:44:34]OFD Sender: No OFD packet to send [19:44:39]OFD Sender: No OFD packet to send [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:30]recv_with_timeout no data received [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:40]recv_with_timeout no data received [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:05]recv_with_timeout no data received [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:50]recv_with_timeout no data received [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:52]recv_with_timeout no data received [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:27]recv_with_timeout no data received [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:49]recv_with_timeout no data received [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:36]recv_with_timeout no data received [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:52]recv_with_timeout no data received [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:31]recv_with_timeout no data received [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:48]recv_with_timeout no data received [19:52:49]OFD Sender: No OFD packet to send [19:52:55]OFD Sender: No OFD packet to send [19:53:00]OFD Sender: No OFD packet to send [19:53:05]OFD Sender: No OFD packet to send [19:53:10]OFD Sender: No OFD packet to send [19:53:15]OFD Sender: No OFD packet to send [19:53:20]OFD Sender: No OFD packet to send [19:53:25]OFD Sender: No OFD packet to send [19:53:26]recv_with_timeout no data received [19:53:30]OFD Sender: No OFD packet to send [19:53:35]OFD Sender: No OFD packet to send [19:53:40]OFD Sender: No OFD packet to send [19:53:42]recv_with_timeout no data received [19:53:45]OFD Sender: No OFD packet to send [19:53:50]OFD Sender: No OFD packet to send [19:53:55]OFD Sender: No OFD packet to send [19:54:00]OFD Sender: No OFD packet to send [19:54:03]recv_with_timeout no data received [19:54:05]OFD Sender: No OFD packet to send [19:54:10]OFD Sender: No OFD packet to send [19:54:15]OFD Sender: No OFD packet to send [19:54:20]OFD Sender: No OFD packet to send [19:54:23]recv_with_timeout no data received [19:54:25]OFD Sender: No OFD packet to send [19:54:30]OFD Sender: No OFD packet to send [19:54:35]OFD Sender: No OFD packet to send [19:54:35]recv_with_timeout no data received [19:54:40]OFD Sender: No OFD packet to send [19:54:45]OFD Sender: No OFD packet to send [19:54:50]OFD Sender: No OFD packet to send [19:54:55]OFD Sender: No OFD packet to send [19:55:00]OFD Sender: No OFD packet to send [19:55:05]OFD Sender: No OFD packet to send [19:55:10]OFD Sender: No OFD packet to send [19:55:15]OFD Sender: No OFD packet to send [19:55:20]OFD Sender: No OFD packet to send [19:55:25]OFD Sender: No OFD packet to send [19:55:30]OFD Sender: No OFD packet to send [19:55:35]OFD Sender: No OFD packet to send [19:55:40]OFD Sender: No OFD packet to send [19:55:42]recv_with_timeout no data received [19:55:45]OFD Sender: No OFD packet to send [19:55:50]OFD Sender: No OFD packet to send [19:55:55]OFD Sender: No OFD packet to send [19:56:00]OFD Sender: No OFD packet to send [19:56:05]OFD Sender: No OFD packet to send [19:56:10]OFD Sender: No OFD packet to send [19:56:15]OFD Sender: No OFD packet to send [19:56:20]OFD Sender: No OFD packet to send [19:56:25]OFD Sender: No OFD packet to send [19:56:30]OFD Sender: No OFD packet to send [19:56:35]OFD Sender: No OFD packet to send [19:56:40]OFD Sender: No OFD packet to send [19:56:45]OFD Sender: No OFD packet to send [19:56:50]OFD Sender: No OFD packet to send [19:56:55]OFD Sender: No OFD packet to send [19:57:00]OFD Sender: No OFD packet to send [19:57:05]OFD Sender: No OFD packet to send [19:57:10]OFD Sender: No OFD packet to send [19:57:15]OFD Sender: No OFD packet to send [19:57:20]OFD Sender: No OFD packet to send [19:57:25]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:10]OFD Sender: No OFD packet to send [19:58:11]recv_with_timeout no data received [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:08]recv_with_timeout no data received [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:19]recv_with_timeout no data received [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:04]recv_with_timeout no data received [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:03]recv_with_timeout no data received [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:20]OFD Sender: No OFD packet to send [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:02]recv_with_timeout no data received [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:34]recv_with_timeout no data received [20:02:36]OFD Sender: No OFD packet to send [20:02:41]OFD Sender: No OFD packet to send [20:02:46]OFD Sender: No OFD packet to send [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:30]recv_with_timeout no data received [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:21]recv_with_timeout no data received [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:32]recv_with_timeout no data received [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:43]recv_with_timeout no data received [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:16]OFD Sender: No OFD packet to send [20:05:21]OFD Sender: No OFD packet to send [20:05:23]recv_with_timeout no data received [20:05:26]OFD Sender: No OFD packet to send [20:05:31]OFD Sender: No OFD packet to send [20:05:34]recv_with_timeout no data received [20:05:36]OFD Sender: No OFD packet to send [20:05:41]OFD Sender: No OFD packet to send [20:05:46]OFD Sender: No OFD packet to send [20:05:51]OFD Sender: No OFD packet to send [20:05:56]OFD Sender: No OFD packet to send [20:06:01]OFD Sender: No OFD packet to send [20:06:06]OFD Sender: No OFD packet to send [20:06:11]OFD Sender: No OFD packet to send [20:06:13]recv_with_timeout no data received [20:06:16]OFD Sender: No OFD packet to send [20:06:21]OFD Sender: No OFD packet to send [20:06:26]OFD Sender: No OFD packet to send [20:06:31]OFD Sender: No OFD packet to send [20:06:36]OFD Sender: No OFD packet to send [20:06:37]recv_with_timeout no data received [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:50]recv_with_timeout no data received [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:17]recv_with_timeout no data received [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:10]recv_with_timeout no data received [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:40]recv_with_timeout no data received [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:11]recv_with_timeout no data received [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:38]recv_with_timeout no data received [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:49]recv_with_timeout no data received [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:00]recv_with_timeout no data received [20:10:01]OFD Sender: No OFD packet to send [20:10:06]OFD Sender: No OFD packet to send [20:10:11]OFD Sender: No OFD packet to send [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:23]recv_with_timeout no data received [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:06]OFD Sender: No OFD packet to send [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:00]recv_with_timeout no data received [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:15]recv_with_timeout no data received [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:40]recv_with_timeout no data received [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:51]recv_with_timeout no data received [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:01]recv_with_timeout no data received [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:13]recv_with_timeout no data received [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:44]recv_with_timeout no data received [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:11]recv_with_timeout no data received [20:16:12]OFD Sender: No OFD packet to send [20:16:17]OFD Sender: No OFD packet to send [20:16:22]recv_with_timeout no data received [20:16:22]OFD Sender: No OFD packet to send [20:16:24]accept exits with 7 [20:16:24]New connection [20:16:24]New thread 3067264356 created [20:16:24]Thread 3067120996 joined [20:16:24]Waiting for new connection... [20:16:24] Sock 7.Parse request [20:16:24]Sock 7.Check first char [20:16:24]Sock 7.First char is OK [20:16:24]request: POST /json_proto HTTP/1.0 [20:16:24]Method: POST [20:16:24]URL: /json_proto [20:16:24]Method is POST - this is cgi request [20:16:24]url: /json_proto [20:16:24]query_string will be loaded in cgi processing [20:16:24]execute_cgi json_proto POST (null) [20:16:24]execute_cgi path=json_proto method=POST [20:16:24]POST find Content-Length [20:16:24]Host: 172.17.43.195:8080 [20:16:24]Content-Length: 791 [20:16:24]Content-Type: application/json [20:16:24] [20:16:24]POST finish read [20:16:24]Found Content-Length = 791 [20:16:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.980, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:24]execute_script... [20:16: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)952115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 5.980, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:24]POST & json_proto [20:16:24]process_json_proto [20:16:24]json parsed OK: [20:16:24]protocol is kg_v1.0 [20:16:24]action value=close_receipt [20:16:24]process_action close_receipt [20:16:24]cmd_close_receipt [20:16:24]MH_GetDate [20:16:24]Write to MH i2c: F0 00 00 D9 01 C9 [20:16:24]Write i2c OK [20:16:24]MH_I2C_Read... [20:16:24]Read from MH i2c: F0 [20:16:24]MH_I2C_Read... [20:16:24]Read from MH i2c: F0 09 00 [20:16:24]MH_I2C_Read... [20:16:24]Read from MH i2c: F0 09 00 D9 01 00 19 F1 1F 67 74 2C AD 66 15 [20:16:24]GetLastDocTimeStamp 1730142517 [20:16:24]current date 1730146585 [20:16:24]FM_GetShiftState [20:16:24]SAM_PROTO_GetShiftState [20:16:24]wFMCommunicate request_size=4 [20:16:24]MH_SAM_APDU [20:16:24]CAPDU: 80 13 01 00 [20:16:24]Write to MH i2c: E2 08 00 DA 01 80 13 01 00 00 00 00 00 58 [20:16:24]Write i2c OK [20:16:24]MH_I2C_Read... [20:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:24]Read from MH i2c: E2 [20:16:24]MH_I2C_Read... [20:16:24]Read from MH i2c: E2 0E 00 [20:16:24]MH_I2C_Read... [20:16:24]Read from MH i2c: E2 0E 00 DA 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C0 [20:16:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:16:24]wFMCommunicate OK [20:16:24]SAM_PROTO_GetShiftState done [20:16:24]FM_GetShiftState done [20:16:24]opened in 1730074113 [20:16:24]opened+sec_in_day 1730160513 [20:16:24]quantity*price = 0 [20:16:24]sum+1 = 1 [20:16:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 152 28.10.2024 20:17 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72624 ФПД: 11392700035050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T201712&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72624&fm=11392700035050&tin=02508201610067®Number=0000000000091644&sum=0 [20:17:14]StoreToDocumentArchive [20:17:14]shift 554 fd 72624 [20:17:14]save to /storage/0554/doc_00072624 [20:17:14]save last doc name /storage/0554/doc_00072624 to /storage/kkm_last_doc_name [20:17:14]save OK [20:17:14]Clear old archive folders... [20:17:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:17:14]tlvbuf is 0025F900 [20:17:14]SAM_PROTO_ClearQueue [20:17:14]wFMCommunicate request_size=4 [20:17:14]MH_SAM_APDU [20:17:14]CAPDU: 80 09 00 00 [20:17:14]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [20:17:14]RAPDU: 90 00 [20:17:14]wFMCommunicate OK [20:17:14]SAM_PROTO_ClearQueue done [20:17:14]KKMCreateOFDPacket [20:17:14]OFDProtocolAddRootSTLVToBuf [20:17:14]FM_MakeSignedData [20:17:14]FM_MakeSignedData [20:17:14]SAM_PROTO_SignData [20:17:14]wFMCommunicate request_size=4 [20:17:14]MH_SAM_APDU [20:17:14]CAPDU: 80 0D 01 02 [20:17:14]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [20:17:14]RAPDU: 90 00 [20:17:14]wFMCommunicate OK [20:17:14]wFMCommunicate request_size=255 [20:17:14]MH_SAM_APDU [20:17: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 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 48 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1B 01 00 35 04 06 00 0A [20:17:14]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 48 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1B 01 00 35 04 06 00 0A 00 00 7B [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [20:17:14]RAPDU: 90 00 [20:17:14]wFMCommunicate OK [20:17:14]wFMCommunicate request_size=10 [20:17:14]MH_SAM_APDU [20:17:14]CAPDU: 80 0D 02 02 05 5C 91 D6 AF EA [20:17:14]Write to MH i2c: E2 0D 00 2E 00 80 0D 02 02 05 00 5C 91 D6 AF EA 00 00 0E [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [20:17:14]RAPDU: 90 00 [20:17:14]wFMCommunicate OK [20:17:14]wFMCommunicate request_size=4 [20:17:14]MH_SAM_APDU [20:17:14]CAPDU: 80 0D 03 02 [20:17:14]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 0B 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 0B 00 2F 00 00 0B FD 3E DB 11 2E 0A 2E 90 00 43 [20:17:14]RAPDU: 0B FD 3E DB 11 2E 0A 2E 90 00 [20:17:14]wFMCommunicate OK [20:17:14]SAM_PROTO_SignData done [20:17:14]FM_MakeSignedData done [20:17:14]CreateOFDProtocolMessage [20:17:14]wFMCommunicate request_size=4 [20:17:14]MH_SAM_APDU [20:17:14]CAPDU: 80 11 00 00 [20:17:14]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:14]Read from MH i2c: E2 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: E2 17 00 [20:17:14]MH_I2C_Read... [20:17:14]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 34 36 36 32 90 00 FE [20:17:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:17:14]wFMCommunicate OK [20:17:14]CreateOFDProtocolMessage done [20:17:14]OFDSenderStorePacket 72624 [20:17:14]StoreOFDPacket docnum=72624 [20:17:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 97 07 01 54 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 48 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1B 01 00 35 04 06 00 0A 5C 91 D6 AF EA 0B FD 3E DB 11 2E 0A 2E [20:17:14]CheckFolder [20:17:14]dirname=/storage/ofd_packets [20:17:14]CheckFolder done [20:17:14]ProducePacketName [20:17:14]name=ofd_packets/00072624 [20:17:14]NVStorageSaveData ofd_packets/00072624 [20:17:14]File name is /storage/ofd_packets/00072624 [20:17:14]Write 301 bytes [20:17:14]NVStorageSaveData done [20:17:14]OFDSenderStorePacket done [20:17:14]KKMCreateOFDPacket done [20:17:14]NVStorageSaveData kkm_last_timestamp [20:17:14]File name is /storage/kkm_last_timestamp [20:17:14]Write 4 bytes [20:17:14]NVStorageSaveData done [20:17:14]ExternCall_PrintAddStr [20:17:14]wPrintStart [20:17:14]Write to MH i2c: 01 00 00 31 00 31 [20:17:14]Write i2c OK [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: 01 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: 01 07 00 [20:17:14]MH_I2C_Read... [20:17:14]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [20:17:14]RasterBufferAndPrint [20:17:14]line Счет N : (1)952115 [20:17:14]line ИНН: 02508201610067 [20:17:14]line Контрольно-Кассовый Чек [20:17:14]line ПРОДАЖА [20:17:14]line ТРК (МРК, ГНК) : 53 [20:17:14]line Товар: 2710124130 [20:17:14]line Аи-92-К-5 [20:17:14]line 5.980 * 0.00 [20:17:14]line = 0.00 [20:17:14]line НДС 12% НСП 1% [20:17:14]line > о реализуемом товаре [20:17:14]line ИТОГО: 0.00 [20:17:14]line НСП 1% : 0.00 [20:17:14]line НДС 12% : 0.00 [20:17:14]line Наличными: 0.00 [20:17:14]line Безнал.: 0.00 [20:17:14]line Место: АЗС № 113 "Партнер Нефть" [20:17:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:17:14]line СНО: Общий режим [20:17:14]line Чек 152 28.10.2024 20:17 [20:17:14]line Смена: 554 ФФД: 1.0 [20:17:14]line ЗНМ: 0300000087 [20:17:14]line РНМ: 0000000000091644 [20:17:14]line Версия ККМ: 001 [20:17:14]line Талоны: Топливная Карта [20:17:14]line 03047 [20:17:14]line ФМ: 0000000000874662 [20:17:14]line ФД: 72624 [20:17:14]line ФПД: 11392700035050 [20:17:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T201712&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72624&fm=11392700035050&tin=02508201610067®Number=0000000000091644&sum=0 [20:17:14]written 0, free lines is 4095 [20:17:14]OFD Sender: Processing packet 72624 [packets to send 277, broken 276] [20:17:14]ProducePacketName [20:17:14]name=ofd_packets/00072624 [20:17:14]OFD Sender: To server: pG, [20:17:14]CommunicateWithHost lk.salyk.kg:30040 [20:17:14]ConnectInit lk.salyk.kg [20:17:15]Write to MH i2c: 01 00 00 5B 00 5B [20:17:15]Write i2c OK [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 07 00 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 EC 0C 5A [20:17:15]RasterBufferAndPrint [20:17:15]line [20:17:15]line [20:17:15]line [20:17:15]line [20:17:15]line [20:17:15]written 0, free lines is 3329 [20:17:15]MH_Cut [20:17:15]Write to MH i2c: D1 01 00 62 00 01 34 [20:17:15]Write i2c OK [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: D1 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: D1 01 00 [20:17:15]MH_I2C_Read... [20:17:15]Read from MH i2c: D1 01 00 62 00 00 33 [20:17:15]Write to MH i2c: 01 00 00 63 00 63 [20:17:15]Write i2c OK [20:17:15]MH_I2C_Read... [20:17:16]*** Cut start [20:17:16]*** Partial cut [20:17:16]*** CUTSNS_PIN = 1 [20:17:16]*** CUTSNS_PIN = 0 [20:17:16]*** Brake cut motor [20:17:16]Read from MH i2c: 01 [20:17:16]MH_I2C_Read... [20:17:16]*** Stop cut motor [20:17:16]*** Cut end [20:17:16]Read from MH i2c: 01 07 00 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [20:17:16]process_action close_receipt done [20:17:16]requested_data is exist [20:17:16]produce_requested_data [20:17:16]requested_item fm.sn is exist - process it [20:17:16]wFMCommunicate request_size=4 [20:17:16]MH_SAM_APDU [20:17:16]CAPDU: 80 11 00 00 [20:17:16]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [20:17:16]Write i2c OK [20:17:16]MH_I2C_Read... [20:17:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:17:16]Read from MH i2c: E2 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: E2 17 00 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [20:17:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:17:16]wFMCommunicate OK [20:17:16]requested_item fd.num is exist - process it [20:17:16]SAM_PROTO_GetFieldsCounters [20:17:16]wFMCommunicate request_size=4 [20:17:16]MH_SAM_APDU [20:17:16]CAPDU: 80 13 00 00 [20:17:16]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [20:17:16]Write i2c OK [20:17:16]MH_I2C_Read... [20:17:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:17:16]Read from MH i2c: E2 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: E2 62 00 [20:17:16]MH_I2C_Read... [20:17:16]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B0 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [20:17: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B0 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:17:17]wFMCommunicate OK [20:17:17]SAM_PROTO_GetFieldsCounters done [20:17:17]requested_item shift.num is exist - process it [20:17:17]requested_item shift.opened is exist - process it [20:17:17]req_shift_opened [20:17:17]FM_GetShiftState [20:17:17]SAM_PROTO_GetShiftState [20:17:17]wFMCommunicate request_size=4 [20:17:17]MH_SAM_APDU [20:17:17]CAPDU: 80 13 01 00 [20:17:17]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [20:17:17]Write i2c OK [20:17:17]MH_I2C_Read... [20:17:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:17:17]Read from MH i2c: E2 [20:17:17]MH_I2C_Read... [20:17:17]Read from MH i2c: E2 0E 00 [20:17:17]MH_I2C_Read... [20:17:17]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4B [20:17:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:17:17]wFMCommunicate OK [20:17:17]SAM_PROTO_GetShiftState done [20:17:17]FM_GetShiftState done [20:17:17]req_shift_opened done [20:17:17]requested_item shift.open_date is exist - process it [20:17:17]req_shift_open_date [20:17:17]req_shift_open_date done [20:17:17]produce_requested_data done [20:17:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72624,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [20:17:17]process_action_free close_receipt [20:17:17]json_value_free [20:17:17]json_value_free done [20:17:17]process_json_proto returns [20:17:17]Send response to host [20:17:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72624,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [20:17:17]free response buf [20:17:17]execute_script done [20:17:17]execute_script returns [20:17:17]free content buf [20:17:17]Sock 6.Close socket [20:17:17]Sock 6.Thread stoped [20:17:17]recv_with_timeout no data received [20:17:18]Connected sock=11 [20:17:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E6 97 07 01 54 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 48 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1B 01 00 35 04 06 00 0A 5C 91 D6 AF EA 0B FD 3E DB 11 2E 0A 2E [20:17:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F3 27 47 00 97 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B0 1B 01 00 F4 03 04 00 0A 9C 1F 67 B6 04 01 00 00 B6 23 3A D4 B2 F3 6C 55 [20:17:18]CommunicateWithHost err = 0 [20:17:18]CheckOFDResponse [20:17:18]1017 (14) - 77093643461234 [20:17:18]1041 (16) - 0000000000874662 [20:17:18]1040 (4) - 72624 [20:17:18]1012 (4) - 28.10.2024 14:13 [20:17:18]1206 (1) - 0 [20:17:18]OFD Sender: Remove packet 72624 [20:17:18]ProducePacketName [20:17:18]name=ofd_packets/00072624 [20:17:18]NVStorageDeleteData [20:17:19]OFD Sender: No OFD packet to send [20:17:24]OFD Sender: No OFD packet to send [20:17:29]OFD Sender: No OFD packet to send [20:17:34]OFD Sender: No OFD packet to send [20:17:39]OFD Sender: No OFD packet to send [20:17:44]OFD Sender: No OFD packet to send [20:17:48]recv_with_timeout no data received [20:17:49]OFD Sender: No OFD packet to send [20:17:54]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:09]OFD Sender: No OFD packet to send [20:18:09]recv_with_timeout no data received [20:18:14]OFD Sender: No OFD packet to send [20:18:19]OFD Sender: No OFD packet to send [20:18:22]recv_with_timeout no data received [20:18:24]OFD Sender: No OFD packet to send [20:18:29]OFD Sender: No OFD packet to send [20:18:34]OFD Sender: No OFD packet to send [20:18:39]OFD Sender: No OFD packet to send [20:18:43]accept exits with 9 [20:18:43]New connection [20:18:43]New thread 3066785124 created [20:18:43]Thread 3066928484 joined [20:18:43]Waiting for new connection... [20:18:43] Sock 9.Parse request [20:18:43]Sock 9.Check first char [20:18:43]Sock 9.First char is OK [20:18:43]request: POST /json_proto HTTP/1.0 [20:18:43]Method: POST [20:18:43]URL: /json_proto [20:18:43]Method is POST - this is cgi request [20:18:43]url: /json_proto [20:18:43]query_string will be loaded in cgi processing [20:18:43]execute_cgi json_proto POST (null) [20:18:43]execute_cgi path=json_proto method=POST [20:18:43]POST find Content-Length [20:18:43]Host: 172.17.43.195:8080 [20:18:43]Content-Length: 754 [20:18:43]Content-Type: application/json [20:18:43] [20:18:43]POST finish read [20:18:43]Found Content-Length = 754 [20:18:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:43]execute_script... [20:18: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)952116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30085833", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:43]POST & json_proto [20:18:43]process_json_proto [20:18:43]json parsed OK: [20:18:43]protocol is kg_v1.0 [20:18:43]action value=close_receipt [20:18:43]process_action close_receipt [20:18:43]cmd_close_receipt [20:18:43]MH_GetDate [20:18:43]Write to MH i2c: F0 00 00 67 00 56 [20:18:43]Write i2c OK [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: F0 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: F0 09 00 [20:18:43]MH_I2C_Read... [20:18:43]Read from MH i2c: F0 09 00 67 00 00 A4 F1 1F 67 74 2C AD 66 2D [20:18:43]GetLastDocTimeStamp 1730146632 [20:18:43]current date 1730146724 [20:18:43]FM_GetShiftState [20:18:43]SAM_PROTO_GetShiftState [20:18:43]wFMCommunicate request_size=4 [20:18:43]MH_SAM_APDU [20:18:43]CAPDU: 80 13 01 00 [20:18:43]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [20:18:43]Write i2c OK [20:18:43]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 4D [20:18:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:18:44]wFMCommunicate OK [20:18:44]SAM_PROTO_GetShiftState done [20:18:44]FM_GetShiftState done [20:18:44]opened in 1730074113 [20:18:44]opened+sec_in_day 1730160513 [20:18:44]quantity*price = 0 [20:18:44]sum+1 = 1 [20:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 153 28.10.2024 20:18 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30085833 ФМ: 0000000000874662 ФД: 72625 ФПД: 138404208744802 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T201844&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72625&fm=138404208744802&tin=02508201610067®Number=0000000000091644&sum=0 [20:18:45]StoreToDocumentArchive [20:18:45]shift 554 fd 72625 [20:18:45]save to /storage/0554/doc_00072625 [20:18:45]save last doc name /storage/0554/doc_00072625 to /storage/kkm_last_doc_name [20:18:45]save OK [20:18:45]Clear old archive folders... [20:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:45]tlvbuf is 0026C080 [20:18:45]SAM_PROTO_ClearQueue [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 09 00 00 [20:18:45]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]SAM_PROTO_ClearQueue done [20:18:45]KKMCreateOFDPacket [20:18:45]OFDProtocolAddRootSTLVToBuf [20:18:45]FM_MakeSignedData [20:18:45]FM_MakeSignedData [20:18:45]SAM_PROTO_SignData [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 01 02 [20:18:45]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=255 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 A4 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1B 01 00 35 04 06 00 7D [20:18:45]Write to MH i2c: E2 02 01 77 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 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 99 00 00 00 F4 03 04 00 A4 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1B 01 00 35 04 06 00 7D 00 00 C8 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=10 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 02 02 05 E0 BD B2 99 62 [20:18:45]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 E0 BD B2 99 62 00 00 46 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 03 02 [20:18:45]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 0B 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 0B 00 79 00 00 85 E6 A2 F9 1C 06 9E CD 90 00 88 [20:18:45]RAPDU: 85 E6 A2 F9 1C 06 9E CD 90 00 [20:18:45]wFMCommunicate OK [20:18:45]SAM_PROTO_SignData done [20:18:45]FM_MakeSignedData done [20:18:45]CreateOFDProtocolMessage [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 11 00 00 [20:18:45]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 17 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 48 [20:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:18:45]wFMCommunicate OK [20:18:45]CreateOFDProtocolMessage done [20:18:45]OFDSenderStorePacket 72625 [20:18:45]StoreOFDPacket docnum=72625 [20:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CD 15 07 01 D4 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 A4 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1B 01 00 35 04 06 00 7D E0 BD B2 99 62 85 E6 A2 F9 1C 06 9E CD [20:18:45]CheckFolder [20:18:45]dirname=/storage/ofd_packets [20:18:45]CheckFolder done [20:18:45]ProducePacketName [20:18:45]name=ofd_packets/00072625 [20:18:45]NVStorageSaveData ofd_packets/00072625 [20:18:45]File name is /storage/ofd_packets/00072625 [20:18:45]Write 301 bytes [20:18:45]NVStorageSaveData done [20:18:45]OFDSenderStorePacket done [20:18:45]KKMCreateOFDPacket done [20:18:45]NVStorageSaveData kkm_last_timestamp [20:18:45]File name is /storage/kkm_last_timestamp [20:18:45]Write 4 bytes [20:18:45]NVStorageSaveData done [20:18:45]ExternCall_PrintAddStr [20:18:45]wPrintStart [20:18:45]Write to MH i2c: 01 00 00 7B 00 7B [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 07 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [20:18:45]RasterBufferAndPrint [20:18:45]line Счет N : (1)952116 [20:18:45]line ИНН: 02508201610067 [20:18:45]line Контрольно-Кассовый Чек [20:18:45]line ПРОДАЖА [20:18:45]line ТРК (МРК, ГНК) : 63 [20:18:45]line Товар: 2710124130 [20:18:45]line Аи-92-К-5 [20:18:45]line 30.000 * 0.00 [20:18:45]line = 0.00 [20:18:45]line НДС 12% НСП 1% [20:18:45]line > о реализуемом товаре [20:18:45]line ИТОГО: 0.00 [20:18:45]line НСП 1% : 0.00 [20:18:45]line НДС 12% : 0.00 [20:18:45]line Наличными: 0.00 [20:18:45]line Безнал.: 0.00 [20:18:45]line Место: АЗС № 113 "Партнер Нефть" [20:18:45]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:18:45]line СНО: Общий режим [20:18:45]line Чек 153 28.10.2024 20:18 [20:18:45]line Смена: 554 ФФД: 1.0 [20:18:45]line ЗНМ: 0300000087 [20:18:45]line РНМ: 0000000000091644 [20:18:45]line Версия ККМ: 001 [20:18:45]line Талоны: ТК ГПНА Online [20:18:45]line 30085833 [20:18:45]line ФМ: 0000000000874662 [20:18:45]line ФД: 72625 [20:18:45]line ФПД: 138404208744802 [20:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T201844&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72625&fm=138404208744802&tin=02508201610067®Number=0000000000091644&sum=0 [20:18:45]written 0, free lines is 4095 [20:18:45]OFD Sender: Processing packet 72625 [packets to send 277, broken 276] [20:18:45]ProducePacketName [20:18:45]name=ofd_packets/00072625 [20:18:45]OFD Sender: To server: pG, [20:18:45]CommunicateWithHost lk.salyk.kg:30040 [20:18:45]ConnectInit lk.salyk.kg [20:18:46]Write to MH i2c: 01 00 00 A5 00 A5 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 E9 0C A1 [20:18:46]RasterBufferAndPrint [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]written 0, free lines is 3309 [20:18:46]MH_Cut [20:18:46]Write to MH i2c: D1 01 00 AC 00 01 7E [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 AC 00 00 7D [20:18:46]Write to MH i2c: 01 00 00 AD 00 AD [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Connected sock=10 [20:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 CD 15 07 01 D4 97 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 99 00 00 00 F4 03 04 00 A4 F1 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B1 1B 01 00 35 04 06 00 7D E0 BD B2 99 62 85 E6 A2 F9 1C 06 9E CD [20:18:46]*** Cut start [20:18:46]*** Partial cut [20:18:46]*** CUTSNS_PIN = 1 [20:18:46]*** CUTSNS_PIN = 0 [20:18:47]*** Brake cut motor [20:18:47]Read from MH i2c: 01 [20:18:47]MH_I2C_Read... [20:18:47]*** Stop cut motor [20:18:47]*** Cut end [20:18:47]Read from MH i2c: 01 07 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [20:18:47]process_action close_receipt done [20:18:47]requested_data is exist [20:18:47]produce_requested_data [20:18:47]requested_item fm.sn is exist - process it [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 11 00 00 [20:18:47]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 17 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7C [20:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:18:47]wFMCommunicate OK [20:18:47]requested_item fd.num is exist - process it [20:18:47]SAM_PROTO_GetFieldsCounters [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 13 00 00 [20:18:47]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 62 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 62 00 AF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [20:18: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B1 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:47]wFMCommunicate OK [20:18:47]SAM_PROTO_GetFieldsCounters done [20:18:47]requested_item shift.num is exist - process it [20:18:47]requested_item shift.opened is exist - process it [20:18:47]req_shift_opened [20:18:47]FM_GetShiftState [20:18:47]SAM_PROTO_GetShiftState [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 13 01 00 [20:18:47]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 0E 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 95 [20:18:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:18:47]wFMCommunicate OK [20:18:47]SAM_PROTO_GetShiftState done [20:18:47]FM_GetShiftState done [20:18:47]req_shift_opened done [20:18:47]requested_item shift.open_date is exist - process it [20:18:47]req_shift_open_date [20:18:47]req_shift_open_date done [20:18:47]produce_requested_data done [20:18:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72625,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [20:18:47]process_action_free close_receipt [20:18:47]json_value_free [20:18:47]json_value_free done [20:18:47]process_json_proto returns [20:18:47]Send response to host [20:18:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72625,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [20:18:47]free response buf [20:18:47]execute_script done [20:18:47]execute_script returns [20:18:47]free content buf [20:18:47]Sock 9.Close socket [20:18:47]Sock 9.Thread stoped [20:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 58 4C 47 00 B0 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 34 36 36 32 10 04 04 00 B1 1B 01 00 F4 03 04 00 66 9C 1F 67 B6 04 01 00 00 31 C8 F9 FE 04 2C 11 6C [20:18:51]CommunicateWithHost err = 0 [20:18:51]CheckOFDResponse [20:18:51]1017 (14) - 77093643461234 [20:18:51]1041 (16) - 0000000000874662 [20:18:51]1040 (4) - 72625 [20:18:51]1012 (4) - 28.10.2024 14:15 [20:18:51]1206 (1) - 0 [20:18:51]OFD Sender: Remove packet 72625 [20:18:51]ProducePacketName [20:18:51]name=ofd_packets/00072625 [20:18:51]NVStorageDeleteData [20:18:51]OFD Sender: No OFD packet to send [20:18:56]OFD Sender: No OFD packet to send [20:19:01]OFD Sender: No OFD packet to send [20:19:06]OFD Sender: No OFD packet to send [20:19:11]OFD Sender: No OFD packet to send [20:19:16]OFD Sender: No OFD packet to send [20:19:21]OFD Sender: No OFD packet to send [20:19:26]OFD Sender: No OFD packet to send [20:19:31]OFD Sender: No OFD packet to send [20:19:36]OFD Sender: No OFD packet to send [20:19:41]OFD Sender: No OFD packet to send [20:19:46]OFD Sender: No OFD packet to send [20:19:51]OFD Sender: No OFD packet to send [20:19:56]OFD Sender: No OFD packet to send [20:20:01]OFD Sender: No OFD packet to send [20:20:06]OFD Sender: No OFD packet to send [20:20:11]OFD Sender: No OFD packet to send [20:20:16]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:53]recv_with_timeout no data received [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:56]recv_with_timeout no data received [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:04]recv_with_timeout no data received [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:21]recv_with_timeout no data received [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:20]recv_with_timeout no data received [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:32]recv_with_timeout no data received [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:45]recv_with_timeout no data received [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:20]recv_with_timeout no data received [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:31]recv_with_timeout no data received [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:01]recv_with_timeout no data received [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]recv_with_timeout no data received [20:29:12]OFD Sender: No OFD packet to send [20:29:17]OFD Sender: No OFD packet to send [20:29:22]OFD Sender: No OFD packet to send [20:29:27]OFD Sender: No OFD packet to send [20:29:32]OFD Sender: No OFD packet to send [20:29:37]OFD Sender: No OFD packet to send [20:29:42]OFD Sender: No OFD packet to send [20:29:43]recv_with_timeout no data received [20:29:47]OFD Sender: No OFD packet to send [20:29:52]OFD Sender: No OFD packet to send [20:29:57]OFD Sender: No OFD packet to send [20:30:02]OFD Sender: No OFD packet to send [20:30:07]OFD Sender: No OFD packet to send [20:30:12]OFD Sender: No OFD packet to send [20:30:18]OFD Sender: No OFD packet to send [20:30:23]OFD Sender: No OFD packet to send [20:30:23]recv_with_timeout no data received [20:30:28]OFD Sender: No OFD packet to send [20:30:33]OFD Sender: No OFD packet to send [20:30:34]recv_with_timeout no data received [20:30:38]OFD Sender: No OFD packet to send [20:30:43]OFD Sender: No OFD packet to send [20:30:48]OFD Sender: No OFD packet to send [20:30:53]OFD Sender: No OFD packet to send [20:30:58]OFD Sender: No OFD packet to send [20:31:03]OFD Sender: No OFD packet to send [20:31:08]OFD Sender: No OFD packet to send [20:31:13]OFD Sender: No OFD packet to send [20:31:18]OFD Sender: No OFD packet to send [20:31:23]OFD Sender: No OFD packet to send [20:31:28]OFD Sender: No OFD packet to send [20:31:33]OFD Sender: No OFD packet to send [20:31:38]OFD Sender: No OFD packet to send [20:31:43]OFD Sender: No OFD packet to send [20:31:43]recv_with_timeout no data received [20:31:48]OFD Sender: No OFD packet to send [20:31:53]OFD Sender: No OFD packet to send [20:31:54]recv_with_timeout no data received [20:31:58]OFD Sender: No OFD packet to send [20:32:03]OFD Sender: No OFD packet to send [20:32:08]OFD Sender: No OFD packet to send [20:32:13]OFD Sender: No OFD packet to send [20:32:18]OFD Sender: No OFD packet to send [20:32:23]OFD Sender: No OFD packet to send [20:32:28]OFD Sender: No OFD packet to send [20:32:33]OFD Sender: No OFD packet to send [20:32:38]OFD Sender: No OFD packet to send [20:32:43]OFD Sender: No OFD packet to send [20:32:48]OFD Sender: No OFD packet to send [20:32:53]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:04]recv_with_timeout no data received [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:14]recv_with_timeout no data received [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:55]recv_with_timeout no data received [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:13]recv_with_timeout no data received [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:43]OFD Sender: No OFD packet to send [20:36:48]OFD Sender: No OFD packet to send [20:36:53]OFD Sender: No OFD packet to send [20:36:58]OFD Sender: No OFD packet to send [20:37:03]OFD Sender: No OFD packet to send [20:37:08]OFD Sender: No OFD packet to send [20:37:13]OFD Sender: No OFD packet to send [20:37:18]OFD Sender: No OFD packet to send [20:37:23]OFD Sender: No OFD packet to send [20:37:25]recv_with_timeout no data received [20:37:28]OFD Sender: No OFD packet to send [20:37:33]OFD Sender: No OFD packet to send [20:37:38]OFD Sender: No OFD packet to send [20:37:43]OFD Sender: No OFD packet to send [20:37:48]OFD Sender: No OFD packet to send [20:37:53]OFD Sender: No OFD packet to send [20:37:58]OFD Sender: No OFD packet to send [20:38:03]OFD Sender: No OFD packet to send [20:38:08]OFD Sender: No OFD packet to send [20:38:11]recv_with_timeout no data received [20:38:13]OFD Sender: No OFD packet to send [20:38:18]OFD Sender: No OFD packet to send [20:38:23]OFD Sender: No OFD packet to send [20:38:28]OFD Sender: No OFD packet to send [20:38:33]OFD Sender: No OFD packet to send [20:38:38]OFD Sender: No OFD packet to send [20:38:43]OFD Sender: No OFD packet to send [20:38:48]OFD Sender: No OFD packet to send [20:38:53]OFD Sender: No OFD packet to send [20:38:58]OFD Sender: No OFD packet to send [20:39:03]recv_with_timeout no data received [20:39:03]OFD Sender: No OFD packet to send [20:39:08]OFD Sender: No OFD packet to send [20:39:13]OFD Sender: No OFD packet to send [20:39:18]OFD Sender: No OFD packet to send [20:39:23]OFD Sender: No OFD packet to send [20:39:28]OFD Sender: No OFD packet to send [20:39:33]OFD Sender: No OFD packet to send [20:39:38]OFD Sender: No OFD packet to send [20:39:43]OFD Sender: No OFD packet to send [20:39:48]OFD Sender: No OFD packet to send [20:39:53]OFD Sender: No OFD packet to send [20:39:54]recv_with_timeout no data received [20:39:58]OFD Sender: No OFD packet to send [20:40:03]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:26]recv_with_timeout no data received [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:50]recv_with_timeout no data received [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:36]recv_with_timeout no data received [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:24]OFD Sender: No OFD packet to send [20:42:29]OFD Sender: No OFD packet to send [20:42:34]OFD Sender: No OFD packet to send [20:42:39]OFD Sender: No OFD packet to send [20:42:40]recv_with_timeout no data received [20:42:44]OFD Sender: No OFD packet to send [20:42:49]OFD Sender: No OFD packet to send [20:42:54]OFD Sender: No OFD packet to send [20:42:59]OFD Sender: No OFD packet to send [20:43:04]OFD Sender: No OFD packet to send [20:43:09]OFD Sender: No OFD packet to send [20:43:14]OFD Sender: No OFD packet to send [20:43:19]OFD Sender: No OFD packet to send [20:43:24]OFD Sender: No OFD packet to send [20:43:29]OFD Sender: No OFD packet to send [20:43:34]OFD Sender: No OFD packet to send [20:43:39]OFD Sender: No OFD packet to send [20:43:44]OFD Sender: No OFD packet to send [20:43:49]OFD Sender: No OFD packet to send [20:43:51]recv_with_timeout no data received [20:43:54]OFD Sender: No OFD packet to send [20:43:59]OFD Sender: No OFD packet to send [20:44:04]OFD Sender: No OFD packet to send [20:44:09]OFD Sender: No OFD packet to send [20:44:14]OFD Sender: No OFD packet to send [20:44:19]OFD Sender: No OFD packet to send [20:44:24]OFD Sender: No OFD packet to send [20:44:29]OFD Sender: No OFD packet to send [20:44:34]OFD Sender: No OFD packet to send [20:44:39]OFD Sender: No OFD packet to send [20:44:44]OFD Sender: No OFD packet to send [20:44:49]OFD Sender: No OFD packet to send [20:44:54]OFD Sender: No OFD packet to send [20:44:59]OFD Sender: No OFD packet to send [20:45:04]OFD Sender: No OFD packet to send [20:45:09]OFD Sender: No OFD packet to send [20:45:14]OFD Sender: No OFD packet to send [20:45:19]OFD Sender: No OFD packet to send [20:45:24]OFD Sender: No OFD packet to send [20:45:29]OFD Sender: No OFD packet to send [20:45:34]OFD Sender: No OFD packet to send [20:45:39]OFD Sender: No OFD packet to send [20:45:44]OFD Sender: No OFD packet to send [20:45:49]OFD Sender: No OFD packet to send [20:45:51]recv_with_timeout no data received [20:45:54]OFD Sender: No OFD packet to send [20:45:59]OFD Sender: No OFD packet to send [20:46:04]OFD Sender: No OFD packet to send [20:46:09]OFD Sender: No OFD packet to send [20:46:14]OFD Sender: No OFD packet to send [20:46:19]OFD Sender: No OFD packet to send [20:46:24]OFD Sender: No OFD packet to send [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:36]recv_with_timeout no data received [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:20]recv_with_timeout no data received [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:45]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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]recv_with_timeout no data received [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:53]recv_with_timeout no data received [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:05]OFD Sender: No OFD packet to send [20:50:10]OFD Sender: No OFD packet to send [20:50:15]OFD Sender: No OFD packet to send [20:50:20]OFD Sender: No OFD packet to send [20:50:25]OFD Sender: No OFD packet to send [20:50:30]OFD Sender: No OFD packet to send [20:50:35]OFD Sender: No OFD packet to send [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:54]recv_with_timeout no data received [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:07]recv_with_timeout no data received [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:23]recv_with_timeout no data received [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:34]recv_with_timeout no data received [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:45]OFD Sender: No OFD packet to send [20:51:50]OFD Sender: No OFD packet to send [20:51:55]OFD Sender: No OFD packet to send [20:52:00]OFD Sender: No OFD packet to send [20:52:05]OFD Sender: No OFD packet to send [20:52:09]recv_with_timeout no data received [20:52:10]OFD Sender: No OFD packet to send [20:52:15]OFD Sender: No OFD packet to send [20:52:20]recv_with_timeout no data received [20:52:20]OFD Sender: No OFD packet to send [20:52:25]OFD Sender: No OFD packet to send [20:52:30]OFD Sender: No OFD packet to send [20:52:30]recv_with_timeout no data received [20:52:35]OFD Sender: No OFD packet to send [20:52:40]OFD Sender: No OFD packet to send [20:52:45]OFD Sender: No OFD packet to send [20:52:50]OFD Sender: No OFD packet to send [20:52:54]recv_with_timeout no data received [20:52:55]OFD Sender: No OFD packet to send [20:53:00]OFD Sender: No OFD packet to send [20:53:05]OFD Sender: No OFD packet to send [20:53:10]OFD Sender: No OFD packet to send [20:53:15]OFD Sender: No OFD packet to send [20:53:20]OFD Sender: No OFD packet to send [20:53:25]OFD Sender: No OFD packet to send [20:53:30]OFD Sender: No OFD packet to send [20:53:35]OFD Sender: No OFD packet to send [20:53:40]OFD Sender: No OFD packet to send [20:53:45]OFD Sender: No OFD packet to send [20:53:50]OFD Sender: No OFD packet to send [20:53:55]OFD Sender: No OFD packet to send [20:54:00]OFD Sender: No OFD packet to send [20:54:05]OFD Sender: No OFD packet to send [20:54:10]OFD Sender: No OFD packet to send [20:54:12]recv_with_timeout no data received [20:54:15]OFD Sender: No OFD packet to send [20:54:20]OFD Sender: No OFD packet to send [20:54:25]OFD Sender: No OFD packet to send [20:54:29]recv_with_timeout no data received [20:54:30]OFD Sender: No OFD packet to send [20:54:35]OFD Sender: No OFD packet to send [20:54:40]OFD Sender: No OFD packet to send [20:54:44]accept exits with 7 [20:54:44]New connection [20:54:44]New thread 3066928484 created [20:54:44]Thread 3066785124 joined [20:54:44]Waiting for new connection... [20:54:44] Sock 7.Parse request [20:54:44]Sock 7.Check first char [20:54:44]Sock 7.First char is OK [20:54:44]request: POST /json_proto HTTP/1.0 [20:54:44]Method: POST [20:54:44]URL: /json_proto [20:54:44]Method is POST - this is cgi request [20:54:44]url: /json_proto [20:54:44]query_string will be loaded in cgi processing [20:54:44]execute_cgi json_proto POST (null) [20:54:44]execute_cgi path=json_proto method=POST [20:54:44]POST find Content-Length [20:54:44]Host: 172.17.43.195:8080 [20:54:44]Content-Length: 800 [20:54:44]Content-Type: application/json [20:54:44] [20:54:44]POST finish read [20:54:44]Found Content-Length = 800 [20:54:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:44]execute_script... [20:54:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:44]POST & json_proto [20:54:44]process_json_proto [20:54:44]json parsed OK: [20:54:44]protocol is kg_v1.0 [20:54:44]action value=close_receipt [20:54:44]process_action close_receipt [20:54:44]cmd_close_receipt [20:54:44]MH_GetDate [20:54:44]Write to MH i2c: F0 00 00 B1 00 A0 [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: F0 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: F0 09 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: F0 09 00 B1 00 00 15 FA 1F 67 74 2C AD 66 F1 [20:54:44]GetLastDocTimeStamp 1730146724 [20:54:44]current date 1730148885 [20:54:44]FM_GetShiftState [20:54:44]SAM_PROTO_GetShiftState [20:54:44]wFMCommunicate request_size=4 [20:54:44]MH_SAM_APDU [20:54:44]CAPDU: 80 13 01 00 [20:54:44]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [20:54:44]Write i2c OK [20:54:44]MH_I2C_Read... [20:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:44]Read from MH i2c: E2 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 0E 00 [20:54:44]MH_I2C_Read... [20:54:44]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 97 [20:54:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:54:44]wFMCommunicate OK [20:54:44]SAM_PROTO_GetShiftState done [20:54:44]FM_GetShiftState done [20:54:44]opened in 1730074113 [20:54:44]opened+sec_in_day 1730160513 [20:54:44]quantity*price = 30038 [20:54:44]sum+1 = 30039 [20:54:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 154 28.10.2024 20:54 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72626 ФПД: 180443127370626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205445&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72626&fm=180443127370626&tin=02508201610067®Number=0000000000091644&sum=30038 [20:54:46]StoreToDocumentArchive [20:54:46]shift 554 fd 72626 [20:54:46]save to /storage/0554/doc_00072626 [20:54:46]save last doc name /storage/0554/doc_00072626 to /storage/kkm_last_doc_name [20:54:46]save OK [20:54:46]Clear old archive folders... [20:54:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:54:46]tlvbuf is 001F8D90 [20:54:46]SAM_PROTO_ClearQueue [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 09 00 00 [20:54:46]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [20:54:46]RAPDU: 90 00 [20:54:46]wFMCommunicate OK [20:54:46]SAM_PROTO_ClearQueue done [20:54:46]KKMCreateOFDPacket [20:54:46]OFDProtocolAddRootSTLVToBuf [20:54:46]FM_MakeSignedData [20:54:46]FM_MakeSignedData [20:54:46]SAM_PROTO_SignData [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 0D 01 02 [20:54:46]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [20:54:46]RAPDU: 90 00 [20:54:46]wFMCommunicate OK [20:54:46]wFMCommunicate request_size=255 [20:54:46]MH_SAM_APDU [20:54: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 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 9A 00 00 00 F4 03 04 00 15 FA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1B 01 00 35 04 06 00 A4 [20:54:46]Write to MH i2c: E2 02 01 C1 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 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 9A 00 00 00 F4 03 04 00 15 FA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1B 01 00 35 04 06 00 A4 00 00 D5 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [20:54:46]RAPDU: 90 00 [20:54:46]wFMCommunicate OK [20:54:46]wFMCommunicate request_size=10 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 0D 02 02 05 1C B0 82 53 82 [20:54:46]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 1C B0 82 53 82 00 00 69 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [20:54:46]RAPDU: 90 00 [20:54:46]wFMCommunicate OK [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 0D 03 02 [20:54:46]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0B 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 0B 00 C3 00 00 3A 5F 1B C5 61 1E 71 2C 90 00 D4 [20:54:46]RAPDU: 3A 5F 1B C5 61 1E 71 2C 90 00 [20:54:46]wFMCommunicate OK [20:54:46]SAM_PROTO_SignData done [20:54:46]FM_MakeSignedData done [20:54:46]CreateOFDProtocolMessage [20:54:46]wFMCommunicate request_size=4 [20:54:46]MH_SAM_APDU [20:54:46]CAPDU: 80 11 00 00 [20:54:46]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:46]Read from MH i2c: E2 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 17 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 92 [20:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:54:46]wFMCommunicate OK [20:54:46]CreateOFDProtocolMessage done [20:54:46]OFDSenderStorePacket 72626 [20:54:46]StoreOFDPacket docnum=72626 [20:54:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 A4 07 01 E6 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 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 9A 00 00 00 F4 03 04 00 15 FA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1B 01 00 35 04 06 00 A4 1C B0 82 53 82 3A 5F 1B C5 61 1E 71 2C [20:54:46]CheckFolder [20:54:46]dirname=/storage/ofd_packets [20:54:46]CheckFolder done [20:54:46]ProducePacketName [20:54:46]name=ofd_packets/00072626 [20:54:46]NVStorageSaveData ofd_packets/00072626 [20:54:46]File name is /storage/ofd_packets/00072626 [20:54:46]Write 301 bytes [20:54:46]NVStorageSaveData done [20:54:46]OFDSenderStorePacket done [20:54:46]KKMCreateOFDPacket done [20:54:46]NVStorageSaveData kkm_last_timestamp [20:54:46]File name is /storage/kkm_last_timestamp [20:54:46]Write 4 bytes [20:54:46]NVStorageSaveData done [20:54:46]ExternCall_PrintAddStr [20:54:46]wPrintStart [20:54:46]Write to MH i2c: 01 00 00 C5 00 C5 [20:54:46]Write i2c OK [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: 01 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: 01 07 00 [20:54:46]MH_I2C_Read... [20:54:46]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [20:54:46]RasterBufferAndPrint [20:54:46]line Счет N : (1)952119 [20:54:46]line ИНН: 02508201610067 [20:54:46]line Контрольно-Кассовый Чек [20:54:46]line ПРОДАЖА [20:54:46]line ТРК (МРК, ГНК) : 42 [20:54:46]line Товар: 2710124130 [20:54:46]line Аи-92-К-5 [20:54:46]line 4.490 * 66.90 [20:54:46]line = 300.38 [20:54:46]line НДС 12% НСП 1% [20:54:46]line > о реализуемом товаре [20:54:46]line ИТОГО: 300.38 [20:54:46]line НСП 1% : 2.66 [20:54:46]line НДС 12% : 31.90 [20:54:46]line Наличными: 0.00 [20:54:46]line Безнал.: 300.38 [20:54:46]line Место: АЗС № 113 "Партнер Нефть" [20:54:46]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [20:54:46]line СНО: Общий режим [20:54:46]line Чек 154 28.10.2024 20:54 [20:54:46]line Смена: 554 ФФД: 1.0 [20:54:46]line ЗНМ: 0300000087 [20:54:46]line РНМ: 0000000000091644 [20:54:46]line Версия ККМ: 001 [20:54:46]line Платежная система: O! деньги [20:54:46]line ФМ: 0000000000874662 [20:54:46]line ФД: 72626 [20:54:46]line ФПД: 180443127370626 [20:54:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T205445&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72626&fm=180443127370626&tin=02508201610067®Number=0000000000091644&sum=30038 [20:54:46]written 0, free lines is 4095 [20:54:46]OFD Sender: Processing packet 72626 [packets to send 277, broken 276] [20:54:46]ProducePacketName [20:54:46]name=ofd_packets/00072626 [20:54:46]OFD Sender: To server: pG, [20:54:46]CommunicateWithHost lk.salyk.kg:30040 [20:54:46]ConnectInit lk.salyk.kg [20:54:47]Write to MH i2c: 01 00 00 EF 00 EF [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: 01 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: 01 07 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: 01 07 00 EF 00 00 00 00 00 00 DC 0C DE [20:54:47]RasterBufferAndPrint [20:54:47]line [20:54:47]line [20:54:47]line [20:54:47]line [20:54:47]line [20:54:47]written 0, free lines is 3298 [20:54:47]MH_Cut [20:54:47]Write to MH i2c: D1 01 00 F6 00 01 C8 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: D1 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: D1 01 00 [20:54:47]MH_I2C_Read... [20:54:47]Read from MH i2c: D1 01 00 F6 00 00 C7 [20:54:47]Write to MH i2c: 01 00 00 F7 00 F7 [20:54:47]Write i2c OK [20:54:47]MH_I2C_Read... [20:54:47]*** Cut start [20:54:47]*** Partial cut [20:54:47]*** CUTSNS_PIN = 1 [20:54:47]*** CUTSNS_PIN = 0 [20:54:48]*** Brake cut motor [20:54:48]Read from MH i2c: 01 [20:54:48]MH_I2C_Read... [20:54:48]*** Stop cut motor [20:54:48]*** Cut end [20:54:48]Read from MH i2c: 01 07 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: 01 07 00 F7 00 00 00 00 00 00 FF 0F 0C [20:54:48]process_action close_receipt done [20:54:48]requested_data is exist [20:54:48]produce_requested_data [20:54:48]requested_item fm.sn is exist - process it [20:54:48]wFMCommunicate request_size=4 [20:54:48]MH_SAM_APDU [20:54:48]CAPDU: 80 11 00 00 [20:54:48]Write to MH i2c: E2 08 00 F8 00 80 11 00 00 00 00 00 00 72 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:48]Read from MH i2c: E2 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 17 00 [20:54:48]MH_I2C_Read... [20:54:48]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 34 36 36 32 90 00 C6 [20:54:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [20:54:48]wFMCommunicate OK [20:54:48]requested_item fd.num is exist - process it [20:54:48]SAM_PROTO_GetFieldsCounters [20:54:48]wFMCommunicate request_size=4 [20:54:48]MH_SAM_APDU [20:54:48]CAPDU: 80 13 00 00 [20:54:48]Write to MH i2c: E2 08 00 F9 00 80 13 00 00 00 00 00 00 75 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:48]Read from MH i2c: E2 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 62 00 [20:54:48]MH_I2C_Read... [20:54:48]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [20:54:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:48]wFMCommunicate OK [20:54:48]SAM_PROTO_GetFieldsCounters done [20:54:48]requested_item shift.num is exist - process it [20:54:48]requested_item shift.opened is exist - process it [20:54:48]req_shift_opened [20:54:48]FM_GetShiftState [20:54:48]SAM_PROTO_GetShiftState [20:54:48]wFMCommunicate request_size=4 [20:54:48]MH_SAM_APDU [20:54:48]CAPDU: 80 13 01 00 [20:54:48]Write to MH i2c: E2 08 00 FA 00 80 13 01 00 00 00 00 00 77 [20:54:48]Write i2c OK [20:54:48]MH_I2C_Read... [20:54:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:48]Read from MH i2c: E2 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 0E 00 [20:54:48]MH_I2C_Read... [20:54:48]Read from MH i2c: E2 0E 00 FA 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 DF [20:54:48]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [20:54:48]wFMCommunicate OK [20:54:48]SAM_PROTO_GetShiftState done [20:54:48]FM_GetShiftState done [20:54:48]req_shift_opened done [20:54:48]requested_item shift.open_date is exist - process it [20:54:48]req_shift_open_date [20:54:48]req_shift_open_date done [20:54:48]produce_requested_data done [20:54:48]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72626,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [20:54:48]process_action_free close_receipt [20:54:48]json_value_free [20:54:48]json_value_free done [20:54:48]process_json_proto returns [20:54:48]Send response to host [20:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72626,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [20:54:48]free response buf [20:54:48]execute_script done [20:54:48]execute_script returns [20:54:48]free content buf [20:54:48]Sock 7.Close socket [20:54:48]Sock 7.Thread stoped [20:54:49]recv_with_timeout no data received [20:54:52]Connected sock=11 [20:54:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 91 A4 07 01 E6 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 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 9A 00 00 00 F4 03 04 00 15 FA 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B2 1B 01 00 35 04 06 00 A4 1C B0 82 53 82 3A 5F 1B C5 61 1E 71 2C [20:54:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 C6 FA 47 00 DA 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 34 36 36 32 10 04 04 00 B2 1B 01 00 F4 03 04 00 D7 A4 1F 67 B6 04 01 00 00 C2 03 71 3A 14 58 3F BD [20:54:55]CommunicateWithHost err = 0 [20:54:55]CheckOFDResponse [20:54:55]1017 (14) - 77093643461234 [20:54:55]1041 (16) - 0000000000874662 [20:54:55]1040 (4) - 72626 [20:54:55]1012 (4) - 28.10.2024 14:51 [20:54:55]1206 (1) - 0 [20:54:55]OFD Sender: Remove packet 72626 [20:54:55]ProducePacketName [20:54:55]name=ofd_packets/00072626 [20:54:55]NVStorageDeleteData [20:54:55]OFD Sender: No OFD packet to send [20:55:00]OFD Sender: No OFD packet to send [20:55:05]OFD Sender: No OFD packet to send [20:55:10]recv_with_timeout no data received [20:55:10]OFD Sender: No OFD packet to send [20:55:15]OFD Sender: No OFD packet to send [20:55:20]OFD Sender: No OFD packet to send [20:55:24]recv_with_timeout no data received [20:55:25]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: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:02]recv_with_timeout no data received [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:09]recv_with_timeout no data received [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:35]recv_with_timeout no data received [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]recv_with_timeout no data received [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:50]recv_with_timeout no data received [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:15]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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]accept exits with 10 [21:03:06]New connection [21:03:06]New thread 3066785124 created [21:03:06]Thread 3066928484 joined [21:03:06]Waiting for new connection... [21:03:06] Sock 10.Parse request [21:03:06]Sock 10.Check first char [21:03:06]Sock 10.First char is OK [21:03:06]request: POST /json_proto HTTP/1.0 [21:03:06]Method: POST [21:03:06]URL: /json_proto [21:03:06]Method is POST - this is cgi request [21:03:06]url: /json_proto [21:03:06]query_string will be loaded in cgi processing [21:03:06]execute_cgi json_proto POST (null) [21:03:06]execute_cgi path=json_proto method=POST [21:03:06]POST find Content-Length [21:03:06]Host: 172.17.43.195:8080 [21:03:06]Content-Length: 800 [21:03:06]Content-Type: application/json [21:03:06] [21:03:06]POST finish read [21:03:06]Found Content-Length = 800 [21:03:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:06]execute_script... [21:03:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0431\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:06]POST & json_proto [21:03:06]process_json_proto [21:03:06]json parsed OK: [21:03:06]protocol is kg_v1.0 [21:03:06]action value=close_receipt [21:03:06]process_action close_receipt [21:03:06]cmd_close_receipt [21:03:06]MH_GetDate [21:03:06]Write to MH i2c: F0 00 00 FB 00 EA [21:03:06]Write i2c OK [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: F0 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: F0 09 00 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: F0 09 00 FB 00 00 0A FC 1F 67 74 2C AD 66 32 [21:03:06]GetLastDocTimeStamp 1730148885 [21:03:06]current date 1730149386 [21:03:06]FM_GetShiftState [21:03:06]SAM_PROTO_GetShiftState [21:03:06]wFMCommunicate request_size=4 [21:03:06]MH_SAM_APDU [21:03:06]CAPDU: 80 13 01 00 [21:03:06]Write to MH i2c: E2 08 00 FC 00 80 13 01 00 00 00 00 00 79 [21:03:06]Write i2c OK [21:03:06]MH_I2C_Read... [21:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:06]Read from MH i2c: E2 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: E2 0E 00 [21:03:06]MH_I2C_Read... [21:03:06]Read from MH i2c: E2 0E 00 FC 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E1 [21:03:06]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:03:06]wFMCommunicate OK [21:03:06]SAM_PROTO_GetShiftState done [21:03:06]FM_GetShiftState done [21:03:06]opened in 1730074113 [21:03:06]opened+sec_in_day 1730160513 [21:03:06]quantity*price = 100000 [21:03:06]sum+1 = 100002 [21:03:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 155 28.10.2024 21:03 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: Бакай банк ФМ: 0000000000874662 ФД: 72627 ФПД: 216987407538461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210306&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72627&fm=216987407538461&tin=02508201610067®Number=0000000000091644&sum=100001 [21:03:07]StoreToDocumentArchive [21:03:07]shift 554 fd 72627 [21:03:07]save to /storage/0554/doc_00072627 [21:03:07]save last doc name /storage/0554/doc_00072627 to /storage/kkm_last_doc_name [21:03:07]save OK [21:03:07]Clear old archive folders... [21:03:07]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:03:07]tlvbuf is 001F9080 [21:03:07]SAM_PROTO_ClearQueue [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 09 00 00 [21:03:07]Write to MH i2c: E2 08 00 09 01 80 09 00 00 00 00 00 00 7C [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 09 01 00 90 00 7E [21:03:07]RAPDU: 90 00 [21:03:07]wFMCommunicate OK [21:03:07]SAM_PROTO_ClearQueue done [21:03:07]KKMCreateOFDPacket [21:03:07]OFDProtocolAddRootSTLVToBuf [21:03:07]FM_MakeSignedData [21:03:07]FM_MakeSignedData [21:03:07]SAM_PROTO_SignData [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 0D 01 02 [21:03:07]Write to MH i2c: E2 08 00 0A 01 80 0D 01 02 00 00 00 00 84 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [21:03:07]RAPDU: 90 00 [21:03:07]wFMCommunicate OK [21:03:07]wFMCommunicate request_size=253 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0A FC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1B 01 00 35 04 06 00 C5 59 51 58 D9 1D [21:03:07]Write to MH i2c: E2 00 01 0B 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0A FC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1B 01 00 35 04 06 00 C5 59 51 58 D9 1D 00 00 92 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [21:03:07]RAPDU: 90 00 [21:03:07]wFMCommunicate OK [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 0D 03 02 [21:03:07]Write to MH i2c: E2 08 00 0C 01 80 0D 03 02 00 00 00 00 88 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0B 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0B 00 0C 01 00 3F F9 1E B1 0D 2C 6B 5A 90 00 8E [21:03:07]RAPDU: 3F F9 1E B1 0D 2C 6B 5A 90 00 [21:03:07]wFMCommunicate OK [21:03:07]SAM_PROTO_SignData done [21:03:07]FM_MakeSignedData done [21:03:07]CreateOFDProtocolMessage [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 11 00 00 [21:03:07]Write to MH i2c: E2 08 00 0D 01 80 11 00 00 00 00 00 00 88 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 0D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [21:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:03:07]wFMCommunicate OK [21:03:07]CreateOFDProtocolMessage done [21:03:07]OFDSenderStorePacket 72627 [21:03:07]StoreOFDPacket docnum=72627 [21:03:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 06 E3 00 01 4F 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0A FC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1B 01 00 35 04 06 00 C5 59 51 58 D9 1D 3F F9 1E B1 0D 2C 6B 5A [21:03:07]CheckFolder [21:03:07]dirname=/storage/ofd_packets [21:03:07]CheckFolder done [21:03:07]ProducePacketName [21:03:07]name=ofd_packets/00072627 [21:03:07]NVStorageSaveData ofd_packets/00072627 [21:03:07]File name is /storage/ofd_packets/00072627 [21:03:07]Write 294 bytes [21:03:07]NVStorageSaveData done [21:03:07]OFDSenderStorePacket done [21:03:07]KKMCreateOFDPacket done [21:03:07]NVStorageSaveData kkm_last_timestamp [21:03:07]File name is /storage/kkm_last_timestamp [21:03:07]Write 4 bytes [21:03:07]NVStorageSaveData done [21:03:07]ExternCall_PrintAddStr [21:03:07]wPrintStart [21:03:07]Write to MH i2c: 01 00 00 0E 01 0F [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: 01 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: 01 07 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: 01 07 00 0E 01 00 00 00 00 00 FF 0F 24 [21:03:07]RasterBufferAndPrint [21:03:07]line Счет N : (1)952120 [21:03:07]line ИНН: 02508201610067 [21:03:07]line Контрольно-Кассовый Чек [21:03:07]line ПРОДАЖА [21:03:07]line ТРК (МРК, ГНК) : 51 [21:03:07]line Товар: 50.50.0 [21:03:07]line Super 92 [21:03:07]line 14.620 * 68.40 [21:03:07]line = 1000.01 [21:03:07]line НДС 12% НСП 1% [21:03:07]line > о реализуемом товаре [21:03:07]line ИТОГО: 1000.01 [21:03:07]line НСП 1% : 8.85 [21:03:07]line НДС 12% : 106.20 [21:03:07]line Наличными: 0.00 [21:03:07]line Безнал.: 1000.01 [21:03:07]line Место: АЗС № 113 "Партнер Нефть" [21:03:07]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:03:07]line СНО: Общий режим [21:03:07]line Чек 155 28.10.2024 21:03 [21:03:07]line Смена: 554 ФФД: 1.0 [21:03:07]line ЗНМ: 0300000087 [21:03:07]line РНМ: 0000000000091644 [21:03:07]line Версия ККМ: 001 [21:03:07]line Платежная система: Бакай банк [21:03:07]line ФМ: 0000000000874662 [21:03:07]line ФД: 72627 [21:03:07]line ФПД: 216987407538461 [21:03:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T210306&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72627&fm=216987407538461&tin=02508201610067®Number=0000000000091644&sum=100001 [21:03:08]OFD Sender: Processing packet 72627 [packets to send 277, broken 276] [21:03:08]ProducePacketName [21:03:08]name=ofd_packets/00072627 [21:03:08]OFD Sender: To server: pG, [21:03:08]CommunicateWithHost lk.salyk.kg:30040 [21:03:08]ConnectInit lk.salyk.kg [21:03:08]written 0, free lines is 4095 [21:03:08]Write to MH i2c: 01 00 00 38 01 39 [21:03:08]Write i2c OK [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 07 00 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: 01 07 00 38 01 00 00 00 00 00 EC 0C 38 [21:03:08]RasterBufferAndPrint [21:03:08]line [21:03:08]line [21:03:08]line [21:03:08]line [21:03:08]line [21:03:08]written 0, free lines is 3315 [21:03:08]MH_Cut [21:03:08]Write to MH i2c: D1 01 00 3F 01 01 12 [21:03:08]Write i2c OK [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: D1 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: D1 01 00 [21:03:08]MH_I2C_Read... [21:03:08]Read from MH i2c: D1 01 00 3F 01 00 11 [21:03:08]Write to MH i2c: 01 00 00 40 01 41 [21:03:08]Write i2c OK [21:03:08]MH_I2C_Read... [21:03:09]*** Cut start [21:03:09]*** Partial cut [21:03:09]*** CUTSNS_PIN = 1 [21:03:09]*** CUTSNS_PIN = 0 [21:03:09]Connected sock=9 [21:03:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 06 E3 00 01 4F 53 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 0A FC 1F 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1B 01 00 35 04 06 00 C5 59 51 58 D9 1D 3F F9 1E B1 0D 2C 6B 5A [21:03:09]*** Brake cut motor [21:03:09]Read from MH i2c: 01 [21:03:09]MH_I2C_Read... [21:03:09]*** Stop cut motor [21:03:09]*** Cut end [21:03:09]Read from MH i2c: 01 07 00 [21:03:09]MH_I2C_Read... [21:03:09]Read from MH i2c: 01 07 00 40 01 00 00 00 00 00 FF 0F 56 [21:03:09]process_action close_receipt done [21:03:09]requested_data is exist [21:03:09]produce_requested_data [21:03:09]requested_item fm.sn is exist - process it [21:03:09]wFMCommunicate request_size=4 [21:03:09]MH_SAM_APDU [21:03:09]CAPDU: 80 11 00 00 [21:03:09]Write to MH i2c: E2 08 00 41 01 80 11 00 00 00 00 00 00 BC [21:03:09]Write i2c OK [21:03:09]MH_I2C_Read... [21:03:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:10]Read from MH i2c: E2 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 17 00 [21:03:10]MH_I2C_Read... [21:03:10]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 34 36 36 32 90 00 10 [21:03:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:03:10]wFMCommunicate OK [21:03:10]requested_item fd.num is exist - process it [21:03:10]SAM_PROTO_GetFieldsCounters [21:03:10]wFMCommunicate request_size=4 [21:03:10]MH_SAM_APDU [21:03:10]CAPDU: 80 13 00 00 [21:03:10]Write to MH i2c: E2 08 00 42 01 80 13 00 00 00 00 00 00 BF [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:10]Read from MH i2c: E2 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 62 00 [21:03:10]MH_I2C_Read... [21:03:10]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [21:03: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B3 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:10]wFMCommunicate OK [21:03:10]SAM_PROTO_GetFieldsCounters done [21:03:10]requested_item shift.num is exist - process it [21:03:10]requested_item shift.opened is exist - process it [21:03:10]req_shift_opened [21:03:10]FM_GetShiftState [21:03:10]SAM_PROTO_GetShiftState [21:03:10]wFMCommunicate request_size=4 [21:03:10]MH_SAM_APDU [21:03:10]CAPDU: 80 13 01 00 [21:03:10]Write to MH i2c: E2 08 00 43 01 80 13 01 00 00 00 00 00 C1 [21:03:10]Write i2c OK [21:03:10]MH_I2C_Read... [21:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:10]Read from MH i2c: E2 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 0E 00 [21:03:10]MH_I2C_Read... [21:03:10]Read from MH i2c: E2 0E 00 43 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 29 [21:03:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:03:10]wFMCommunicate OK [21:03:10]SAM_PROTO_GetShiftState done [21:03:10]FM_GetShiftState done [21:03:10]req_shift_opened done [21:03:10]requested_item shift.open_date is exist - process it [21:03:10]req_shift_open_date [21:03:10]req_shift_open_date done [21:03:10]produce_requested_data done [21:03:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72627,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [21:03:10]process_action_free close_receipt [21:03:10]json_value_free [21:03:10]json_value_free done [21:03:10]process_json_proto returns [21:03:10]Send response to host [21:03:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72627,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [21:03:10]free response buf [21:03:10]execute_script done [21:03:10]execute_script returns [21:03:10]free content buf [21:03:10]Sock 10.Close socket [21:03:10]Sock 10.Thread stoped [21:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 28 60 47 00 A9 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B3 1B 01 00 F4 03 04 00 C9 A6 1F 67 B6 04 01 00 00 C1 45 02 3D E6 EC 6B FF [21:03:12]CommunicateWithHost err = 0 [21:03:12]CheckOFDResponse [21:03:12]1017 (14) - 77093643461234 [21:03:12]1041 (16) - 0000000000874662 [21:03:12]1040 (4) - 72627 [21:03:12]1012 (4) - 28.10.2024 14:59 [21:03:12]1206 (1) - 0 [21:03:12]OFD Sender: Remove packet 72627 [21:03:12]ProducePacketName [21:03:12]name=ofd_packets/00072627 [21:03:12]NVStorageDeleteData [21:03:12]OFD Sender: No OFD packet to send [21:03:17]recv_with_timeout no data received [21:03:17]OFD Sender: No OFD packet to send [21:03:22]OFD Sender: No OFD packet to send [21:03:27]OFD Sender: No OFD packet to send [21:03:30]recv_with_timeout no data received [21:03:32]OFD Sender: No OFD packet to send [21:03:37]OFD Sender: No OFD packet to send [21:03:42]OFD Sender: No OFD packet to send [21:03:45]recv_with_timeout no data received [21:03:47]OFD Sender: No OFD packet to send [21:03:52]OFD Sender: No OFD packet to send [21:03:57]OFD Sender: No OFD packet to send [21:04:02]OFD Sender: No OFD packet to send [21:04:07]OFD Sender: No OFD packet to send [21:04:12]OFD Sender: No OFD packet to send [21:04:17]OFD Sender: No OFD packet to send [21:04:22]OFD Sender: No OFD packet to send [21:04:27]OFD Sender: No OFD packet to send [21:04:31]recv_with_timeout no data received [21:04:32]OFD Sender: No OFD packet to send [21:04:37]OFD Sender: No OFD packet to send [21:04:42]OFD Sender: No OFD packet to send [21:04:47]OFD Sender: No OFD packet to send [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:02]OFD Sender: No OFD packet to send [21:05:07]OFD Sender: No OFD packet to send [21:05:12]OFD Sender: No OFD packet to send [21:05:17]OFD Sender: No OFD packet to send [21:05:22]OFD Sender: No OFD packet to send [21:05:27]OFD Sender: No OFD packet to send [21:05:32]OFD Sender: No OFD packet to send [21:05:37]OFD Sender: No OFD packet to send [21:05:42]OFD Sender: No OFD packet to send [21:05:47]OFD Sender: No OFD packet to send [21:05:52]OFD Sender: No OFD packet to send [21:05:57]OFD Sender: No OFD packet to send [21:06:02]OFD Sender: No OFD packet to send [21:06:07]OFD Sender: No OFD packet to send [21:06:12]OFD Sender: No OFD packet to send [21:06:17]OFD Sender: No OFD packet to send [21:06:22]OFD Sender: No OFD packet to send [21:06:27]OFD Sender: No OFD packet to send [21:06:32]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:04]recv_with_timeout no data received [21:07:08]OFD Sender: No OFD packet to send [21:07:13]OFD Sender: No OFD packet to send [21:07:18]OFD Sender: No OFD packet to send [21:07:23]OFD Sender: No OFD packet to send [21:07:28]OFD Sender: No OFD packet to send [21:07:33]OFD Sender: No OFD packet to send [21:07:38]OFD Sender: No OFD packet to send [21:07:43]OFD Sender: No OFD packet to send [21:07:48]OFD Sender: No OFD packet to send [21:07:53]OFD Sender: No OFD packet to send [21:07:54]recv_with_timeout no data received [21:07:58]OFD Sender: No OFD packet to send [21:08:03]OFD Sender: No OFD packet to send [21:08:08]OFD Sender: No OFD packet to send [21:08:13]OFD Sender: No OFD packet to send [21:08:14]recv_with_timeout no data received [21:08:18]OFD Sender: No OFD packet to send [21:08:23]OFD Sender: No OFD packet to send [21:08:26]recv_with_timeout no data received [21:08:28]OFD Sender: No OFD packet to send [21:08:33]OFD Sender: No OFD packet to send [21:08:38]OFD Sender: No OFD packet to send [21:08:43]OFD Sender: No OFD packet to send [21:08:48]OFD Sender: No OFD packet to send [21:08:53]OFD Sender: No OFD packet to send [21:08:58]OFD Sender: No OFD packet to send [21:09:03]OFD Sender: No OFD packet to send [21:09:03]recv_with_timeout no data received [21:09:08]OFD Sender: No OFD packet to send [21:09:13]OFD Sender: No OFD packet to send [21:09:18]OFD Sender: No OFD packet to send [21:09:23]OFD Sender: No OFD packet to send [21:09:28]OFD Sender: No OFD packet to send [21:09:33]OFD Sender: No OFD packet to send [21:09:38]OFD Sender: No OFD packet to send [21:09:43]OFD Sender: No OFD packet to send [21:09:48]OFD Sender: No OFD packet to send [21:09:51]recv_with_timeout no data received [21:09:53]OFD Sender: No OFD packet to send [21:09:58]OFD Sender: No OFD packet to send [21:10:03]OFD Sender: No OFD packet to send [21:10:08]OFD Sender: No OFD packet to send [21:10:13]OFD Sender: No OFD packet to send [21:10:18]OFD Sender: No OFD packet to send [21:10:23]OFD Sender: No OFD packet to send [21:10:28]OFD Sender: No OFD packet to send [21:10:33]OFD Sender: No OFD packet to send [21:10:38]OFD Sender: No OFD packet to send [21:10:43]OFD Sender: No OFD packet to send [21:10:48]OFD Sender: No OFD packet to send [21:10:53]recv_with_timeout no data received [21:10:53]OFD Sender: No OFD packet to send [21:10:58]OFD Sender: No OFD packet to send [21:11:03]OFD Sender: No OFD packet to send [21:11:08]OFD Sender: No OFD packet to send [21:11:13]OFD Sender: No OFD packet to send [21:11:18]OFD Sender: No OFD packet to send [21:11:23]OFD Sender: No OFD packet to send [21:11:28]OFD Sender: No OFD packet to send [21:11:33]OFD Sender: No OFD packet to send [21:11:38]OFD Sender: No OFD packet to send [21:11:43]OFD Sender: No OFD packet to send [21:11:46]recv_with_timeout no data received [21:11:48]OFD Sender: No OFD packet to send [21:11:53]OFD Sender: No OFD packet to send [21:11:58]OFD Sender: No OFD packet to send [21:12:02]recv_with_timeout no data received [21:12:03]OFD Sender: No OFD packet to send [21:12:08]OFD Sender: No OFD packet to send [21:12:13]OFD Sender: No OFD packet to send [21:12:18]OFD Sender: No OFD packet to send [21:12:23]OFD Sender: No OFD packet to send [21:12:28]OFD Sender: No OFD packet to send [21:12:33]recv_with_timeout no data received [21:12:33]OFD Sender: No OFD packet to send [21:12:38]OFD Sender: No OFD packet to send [21:12:43]OFD Sender: No OFD packet to send [21:12:48]OFD Sender: No OFD packet to send [21:12:53]OFD Sender: No OFD packet to send [21:12:58]OFD Sender: No OFD packet to send [21:13:03]recv_with_timeout no data received [21:13:03]OFD Sender: No OFD packet to send [21:13:08]OFD Sender: No OFD packet to send [21:13:13]OFD Sender: No OFD packet to send [21:13:18]OFD Sender: No OFD packet to send [21:13:20]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:01]recv_with_timeout no data received [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:11]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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:39]OFD Sender: No OFD packet to send [21:16:44]OFD Sender: No OFD packet to send [21:16:49]OFD Sender: No OFD packet to send [21:16:54]OFD Sender: No OFD packet to send [21:16:59]OFD Sender: No OFD packet to send [21:17:04]OFD Sender: No OFD packet to send [21:17:09]OFD Sender: No OFD packet to send [21:17:14]OFD Sender: No OFD packet to send [21:17:19]OFD Sender: No OFD packet to send [21:17:21]recv_with_timeout no data received [21:17:24]OFD Sender: No OFD packet to send [21:17:29]OFD Sender: No OFD packet to send [21:17:34]OFD Sender: No OFD packet to send [21:17:39]OFD Sender: No OFD packet to send [21:17:44]OFD Sender: No OFD packet to send [21:17:47]recv_with_timeout no data received [21:17:49]OFD Sender: No OFD packet to send [21:17:54]OFD Sender: No OFD packet to send [21:17:59]OFD Sender: No OFD packet to send [21:18:04]OFD Sender: No OFD packet to send [21:18:09]OFD Sender: No OFD packet to send [21:18:14]OFD Sender: No OFD packet to send [21:18:19]OFD Sender: No OFD packet to send [21:18:24]OFD Sender: No OFD packet to send [21:18:29]OFD Sender: No OFD packet to send [21:18:34]OFD Sender: No OFD packet to send [21:18:39]OFD Sender: No OFD packet to send [21:18:44]OFD Sender: No OFD packet to send [21:18:49]OFD Sender: No OFD packet to send [21:18:54]OFD Sender: No OFD packet to send [21:18:59]OFD Sender: No OFD packet to send [21:19:04]OFD Sender: No OFD packet to send [21:19:09]OFD Sender: No OFD packet to send [21:19:14]OFD Sender: No OFD packet to send [21:19:19]OFD Sender: No OFD packet to send [21:19:19]recv_with_timeout no data received [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:24]OFD Sender: No OFD packet to send [21:20:29]OFD Sender: No OFD packet to send [21:20:34]OFD Sender: No OFD packet to send [21:20:39]OFD Sender: No OFD packet to send [21:20:44]OFD Sender: No OFD packet to send [21:20:49]OFD Sender: No OFD packet to send [21:20:54]OFD Sender: No OFD packet to send [21:20:59]OFD Sender: No OFD packet to send [21:21:04]OFD Sender: No OFD packet to send [21:21:09]OFD Sender: No OFD packet to send [21:21:12]recv_with_timeout no data received [21:21:14]OFD Sender: No OFD packet to send [21:21:19]OFD Sender: No OFD packet to send [21:21:24]OFD Sender: No OFD packet to send [21:21:29]OFD Sender: No OFD packet to send [21:21:34]OFD Sender: No OFD packet to send [21:21:39]OFD Sender: No OFD packet to send [21:21:44]OFD Sender: No OFD packet to send [21:21:49]OFD Sender: No OFD packet to send [21:21:54]OFD Sender: No OFD packet to send [21:21:59]OFD Sender: No OFD packet to send [21:22:04]OFD Sender: No OFD packet to send [21:22:05]recv_with_timeout no data received [21:22:09]OFD Sender: No OFD packet to send [21:22:14]OFD Sender: No OFD packet to send [21:22:19]OFD Sender: No OFD packet to send [21:22:22]recv_with_timeout no data received [21:22:24]OFD Sender: No OFD packet to send [21:22:29]OFD Sender: No OFD packet to send [21:22:34]OFD Sender: No OFD packet to send [21:22:37]recv_with_timeout no data received [21:22:39]OFD Sender: No OFD packet to send [21:22:44]OFD Sender: No OFD packet to send [21:22:49]OFD Sender: No OFD packet to send [21:22:54]OFD Sender: No OFD packet to send [21:22:59]OFD Sender: No OFD packet to send [21:23:04]OFD Sender: No OFD packet to send [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:29]recv_with_timeout no data received [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]recv_with_timeout no data received [21:24:24]OFD Sender: No OFD packet to send [21:24:29]OFD Sender: No OFD packet to send [21:24:34]OFD Sender: No OFD packet to send [21:24:39]OFD Sender: No OFD packet to send [21:24:44]OFD Sender: No OFD packet to send [21:24:49]OFD Sender: No OFD packet to send [21:24:54]OFD Sender: No OFD packet to send [21:24:59]OFD Sender: No OFD packet to send [21:25:02]recv_with_timeout no data received [21:25:04]OFD Sender: No OFD packet to send [21:25:09]OFD Sender: No OFD packet to send [21:25:14]OFD Sender: No OFD packet to send [21:25:19]OFD Sender: No OFD packet to send [21:25:21]recv_with_timeout no data received [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:39]OFD Sender: No OFD packet to send [21:25:44]OFD Sender: No OFD packet to send [21:25:49]OFD Sender: No OFD packet to send [21:25:54]OFD Sender: No OFD packet to send [21:25:59]OFD Sender: No OFD packet to send [21:26:01]recv_with_timeout no data received [21:26:04]OFD Sender: No OFD packet to send [21:26:09]OFD Sender: No OFD packet to send [21:26:14]OFD Sender: No OFD packet to send [21:26:18]recv_with_timeout no data received [21:26:19]OFD Sender: No OFD packet to send [21:26:24]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:46]accept exits with 7 [21:27:46]New connection [21:27:46]New thread 3066928484 created [21:27:46]Thread 3066785124 joined [21:27:46]Waiting for new connection... [21:27:46] Sock 7.Parse request [21:27:46]Sock 7.Check first char [21:27:46]Sock 7.First char is OK [21:27:46]request: POST /json_proto HTTP/1.0 [21:27:46]Method: POST [21:27:46]URL: /json_proto [21:27:46]Method is POST - this is cgi request [21:27:46]url: /json_proto [21:27:46]query_string will be loaded in cgi processing [21:27:46]execute_cgi json_proto POST (null) [21:27:46]execute_cgi path=json_proto method=POST [21:27:46]POST find Content-Length [21:27:46]Host: 172.17.43.195:8080 [21:27:46]Content-Length: 792 [21:27:46]Content-Type: application/json [21:27:46] [21:27:46]POST finish read [21:27:46]Found Content-Length = 792 [21:27:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:46]execute_script... [21:27: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)952121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 14.950, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:27:46]POST & json_proto [21:27:46]process_json_proto [21:27:46]json parsed OK: [21:27:46]protocol is kg_v1.0 [21:27:46]action value=close_receipt [21:27:46]process_action close_receipt [21:27:46]cmd_close_receipt [21:27:46]MH_GetDate [21:27:46]Write to MH i2c: F0 00 00 44 01 34 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 09 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: F0 09 00 44 01 00 D3 01 20 67 74 2C AD 66 4B [21:27:46]GetLastDocTimeStamp 1730149386 [21:27:46]current date 1730150867 [21:27:46]FM_GetShiftState [21:27:46]SAM_PROTO_GetShiftState [21:27:46]wFMCommunicate request_size=4 [21:27:46]MH_SAM_APDU [21:27:46]CAPDU: 80 13 01 00 [21:27:46]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [21:27:46]Write i2c OK [21:27:46]MH_I2C_Read... [21:27:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:46]Read from MH i2c: E2 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 [21:27:46]MH_I2C_Read... [21:27:46]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 2B [21:27:46]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:27:46]wFMCommunicate OK [21:27:46]SAM_PROTO_GetShiftState done [21:27:46]FM_GetShiftState done [21:27:46]opened in 1730074113 [21:27:46]opened+sec_in_day 1730160513 [21:27:46]quantity*price = 0 [21:27:46]sum+1 = 1 [21:27:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 156 28.10.2024 21:27 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72628 ФПД: 11246597606569 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T212747&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72628&fm=11246597606569&tin=02508201610067®Number=0000000000091644&sum=0 [21:27:47]StoreToDocumentArchive [21:27:47]shift 554 fd 72628 [21:27:47]save to /storage/0554/doc_00072628 [21:27:47]save last doc name /storage/0554/doc_00072628 to /storage/kkm_last_doc_name [21:27:47]save OK [21:27:47]Clear old archive folders... [21:27:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:27:47]tlvbuf is 001F7B90 [21:27:47]SAM_PROTO_ClearQueue [21:27:47]wFMCommunicate request_size=4 [21:27:47]MH_SAM_APDU [21:27:47]CAPDU: 80 09 00 00 [21:27:47]Write to MH i2c: E2 08 00 52 01 80 09 00 00 00 00 00 00 C5 [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 52 01 00 90 00 C7 [21:27:47]RAPDU: 90 00 [21:27:47]wFMCommunicate OK [21:27:47]SAM_PROTO_ClearQueue done [21:27:47]KKMCreateOFDPacket [21:27:47]OFDProtocolAddRootSTLVToBuf [21:27:47]FM_MakeSignedData [21:27:47]FM_MakeSignedData [21:27:47]SAM_PROTO_SignData [21:27:47]wFMCommunicate request_size=4 [21:27:47]MH_SAM_APDU [21:27:47]CAPDU: 80 0D 01 02 [21:27:47]Write to MH i2c: E2 08 00 53 01 80 0D 01 02 00 00 00 00 CD [21:27:47]Write i2c OK [21:27:47]MH_I2C_Read... [21:27:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:27:47]Read from MH i2c: E2 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 [21:27:47]MH_I2C_Read... [21:27:47]Read from MH i2c: E2 03 00 53 01 00 90 00 C8 [21:27:47]RAPDU: 90 00 [21:27:47]wFMCommunicate OK [21:27:47]wFMCommunicate request_size=255 [21:27:47]MH_SAM_APDU [21:27: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 66 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 9C 00 00 00 F4 03 04 00 D3 01 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1B 01 00 35 04 06 00 0A [21:27:48]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 66 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 9C 00 00 00 F4 03 04 00 D3 01 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1B 01 00 35 04 06 00 0A 00 00 74 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]wFMCommunicate request_size=10 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 0D 02 02 05 3A 8D 74 8C A9 [21:27:48]Write to MH i2c: E2 0D 00 55 01 80 0D 02 02 05 00 3A 8D 74 8C A9 00 00 4A [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [21:27:48]RAPDU: 90 00 [21:27:48]wFMCommunicate OK [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 0D 03 02 [21:27:48]Write to MH i2c: E2 08 00 56 01 80 0D 03 02 00 00 00 00 D2 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 0B 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 0B 00 56 01 00 DB 62 DD 92 0D A0 6D 5E 90 00 F7 [21:27:48]RAPDU: DB 62 DD 92 0D A0 6D 5E 90 00 [21:27:48]wFMCommunicate OK [21:27:48]SAM_PROTO_SignData done [21:27:48]FM_MakeSignedData done [21:27:48]CreateOFDProtocolMessage [21:27:48]wFMCommunicate request_size=4 [21:27:48]MH_SAM_APDU [21:27:48]CAPDU: 80 11 00 00 [21:27:48]Write to MH i2c: E2 08 00 57 01 80 11 00 00 00 00 00 00 D2 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:48]Read from MH i2c: E2 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: E2 17 00 [21:27:48]MH_I2C_Read... [21:27:48]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 34 36 36 32 90 00 26 [21:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:27:48]wFMCommunicate OK [21:27:48]CreateOFDProtocolMessage done [21:27:48]OFDSenderStorePacket 72628 [21:27:48]StoreOFDPacket docnum=72628 [21:27:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9E BF 07 01 D2 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 9C 00 00 00 F4 03 04 00 D3 01 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1B 01 00 35 04 06 00 0A 3A 8D 74 8C A9 DB 62 DD 92 0D A0 6D 5E [21:27:48]CheckFolder [21:27:48]dirname=/storage/ofd_packets [21:27:48]CheckFolder done [21:27:48]ProducePacketName [21:27:48]name=ofd_packets/00072628 [21:27:48]NVStorageSaveData ofd_packets/00072628 [21:27:48]File name is /storage/ofd_packets/00072628 [21:27:48]Write 301 bytes [21:27:48]NVStorageSaveData done [21:27:48]OFDSenderStorePacket done [21:27:48]KKMCreateOFDPacket done [21:27:48]NVStorageSaveData kkm_last_timestamp [21:27:48]File name is /storage/kkm_last_timestamp [21:27:48]Write 4 bytes [21:27:48]NVStorageSaveData done [21:27:48]ExternCall_PrintAddStr [21:27:48]wPrintStart [21:27:48]Write to MH i2c: 01 00 00 58 01 59 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 58 01 00 00 00 00 00 FF 0F 6E [21:27:48]RasterBufferAndPrint [21:27:48]line Счет N : (1)952121 [21:27:48]line ИНН: 02508201610067 [21:27:48]line Контрольно-Кассовый Чек [21:27:48]line ПРОДАЖА [21:27:48]line ТРК (МРК, ГНК) : 63 [21:27:48]line Товар: 2710124130 [21:27:48]line Аи-92-К-5 [21:27:48]line 14.950 * 0.00 [21:27:48]line = 0.00 [21:27:48]line НДС 12% НСП 1% [21:27:48]line > о реализуемом товаре [21:27:48]line ИТОГО: 0.00 [21:27:48]line НСП 1% : 0.00 [21:27:48]line НДС 12% : 0.00 [21:27:48]line Наличными: 0.00 [21:27:48]line Безнал.: 0.00 [21:27:48]line Место: АЗС № 113 "Партнер Нефть" [21:27:48]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:27:48]line СНО: Общий режим [21:27:48]line Чек 156 28.10.2024 21:27 [21:27:48]line Смена: 554 ФФД: 1.0 [21:27:48]line ЗНМ: 0300000087 [21:27:48]line РНМ: 0000000000091644 [21:27:48]line Версия ККМ: 001 [21:27:48]line Талоны: Топливная Карта [21:27:48]line 03047 [21:27:48]line ФМ: 0000000000874662 [21:27:48]line ФД: 72628 [21:27:48]line ФПД: 11246597606569 [21:27:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T212747&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72628&fm=11246597606569&tin=02508201610067®Number=0000000000091644&sum=0 [21:27:48]written 0, free lines is 4095 [21:27:48]OFD Sender: Processing packet 72628 [packets to send 277, broken 276] [21:27:48]ProducePacketName [21:27:48]name=ofd_packets/00072628 [21:27:48]OFD Sender: To server: pG, [21:27:48]CommunicateWithHost lk.salyk.kg:30040 [21:27:48]ConnectInit lk.salyk.kg [21:27:48]Write to MH i2c: 01 00 00 82 01 83 [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: 01 07 00 82 01 00 00 00 00 00 E0 0C 76 [21:27:48]RasterBufferAndPrint [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]line [21:27:48]written 0, free lines is 3302 [21:27:48]MH_Cut [21:27:48]Write to MH i2c: D1 01 00 89 01 01 5C [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 01 00 [21:27:48]MH_I2C_Read... [21:27:48]Read from MH i2c: D1 01 00 89 01 00 5B [21:27:48]Write to MH i2c: 01 00 00 8A 01 8B [21:27:48]Write i2c OK [21:27:48]MH_I2C_Read... [21:27:49]*** Cut start [21:27:49]*** Partial cut [21:27:49]*** CUTSNS_PIN = 1 [21:27:49]*** CUTSNS_PIN = 0 [21:27:49]*** Brake cut motor [21:27:50]Read from MH i2c: 01 [21:27:50]MH_I2C_Read... [21:27:50]*** Stop cut motor [21:27:50]*** Cut end [21:27:50]Read from MH i2c: 01 07 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: 01 07 00 8A 01 00 00 00 00 00 FF 0F A0 [21:27:50]process_action close_receipt done [21:27:50]requested_data is exist [21:27:50]produce_requested_data [21:27:50]requested_item fm.sn is exist - process it [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 11 00 00 [21:27:50]Write to MH i2c: E2 08 00 8B 01 80 11 00 00 00 00 00 00 06 [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 17 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 17 00 8B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5A [21:27:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:27:50]wFMCommunicate OK [21:27:50]requested_item fd.num is exist - process it [21:27:50]SAM_PROTO_GetFieldsCounters [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 13 00 00 [21:27:50]Write to MH i2c: E2 08 00 8C 01 80 13 00 00 00 00 00 00 09 [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 62 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 62 00 8C 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [21:27: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B4 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:27:50]wFMCommunicate OK [21:27:50]SAM_PROTO_GetFieldsCounters done [21:27:50]requested_item shift.num is exist - process it [21:27:50]requested_item shift.opened is exist - process it [21:27:50]req_shift_opened [21:27:50]FM_GetShiftState [21:27:50]SAM_PROTO_GetShiftState [21:27:50]wFMCommunicate request_size=4 [21:27:50]MH_SAM_APDU [21:27:50]CAPDU: 80 13 01 00 [21:27:50]Write to MH i2c: E2 08 00 8D 01 80 13 01 00 00 00 00 00 0B [21:27:50]Write i2c OK [21:27:50]MH_I2C_Read... [21:27:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:27:50]Read from MH i2c: E2 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 0E 00 [21:27:50]MH_I2C_Read... [21:27:50]Read from MH i2c: E2 0E 00 8D 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 73 [21:27:50]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:27:50]wFMCommunicate OK [21:27:50]SAM_PROTO_GetShiftState done [21:27:50]FM_GetShiftState done [21:27:50]req_shift_opened done [21:27:50]requested_item shift.open_date is exist - process it [21:27:50]req_shift_open_date [21:27:50]req_shift_open_date done [21:27:50]produce_requested_data done [21:27:50]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72628,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [21:27:50]process_action_free close_receipt [21:27:50]json_value_free [21:27:50]json_value_free done [21:27:50]process_json_proto returns [21:27:50]Send response to host [21:27:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72628,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [21:27:50]free response buf [21:27:50]execute_script done [21:27:50]execute_script returns [21:27:50]free content buf [21:27:50]Sock 7.Close socket [21:27:50]Sock 7.Thread stoped [21:27:52]Connected sock=10 [21:27:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 9E BF 07 01 D2 A5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 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 9C 00 00 00 F4 03 04 00 D3 01 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1B 01 00 35 04 06 00 0A 3A 8D 74 8C A9 DB 62 DD 92 0D A0 6D 5E [21:27:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7A 75 47 00 B5 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B4 1B 01 00 F4 03 04 00 94 AC 1F 67 B6 04 01 00 00 89 3F 08 72 D7 19 F5 1E [21:27:55]CommunicateWithHost err = 0 [21:27:55]CheckOFDResponse [21:27:55]1017 (14) - 77093643461234 [21:27:55]1041 (16) - 0000000000874662 [21:27:55]1040 (4) - 72628 [21:27:55]1012 (4) - 28.10.2024 15:24 [21:27:55]1206 (1) - 0 [21:27:55]OFD Sender: Remove packet 72628 [21:27:55]ProducePacketName [21:27:55]name=ofd_packets/00072628 [21:27:55]NVStorageDeleteData [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:07]recv_with_timeout no data received [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:18]recv_with_timeout no data received [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:02]recv_with_timeout no data received [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:13]recv_with_timeout no data received [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:32]recv_with_timeout no data received [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:43]recv_with_timeout no data received [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:41]recv_with_timeout no data received [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:11]recv_with_timeout no data received [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]recv_with_timeout no data received [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:51]recv_with_timeout no data received [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:32]recv_with_timeout no data received [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:47]recv_with_timeout no data received [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:34:57]recv_with_timeout no data received [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:34]recv_with_timeout no data received [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:45]recv_with_timeout no data received [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:02]recv_with_timeout no data received [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:22]recv_with_timeout no data received [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:32]recv_with_timeout no data received [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:43]recv_with_timeout no data received [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:54]recv_with_timeout no data received [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:02]recv_with_timeout no data received [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:12]recv_with_timeout no data received [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:24]recv_with_timeout no data received [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:47]recv_with_timeout no data received [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:24]recv_with_timeout no data received [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]accept exits with 9 [21:42:41]New connection [21:42:41]New thread 3066785124 created [21:42:41]Thread 3066928484 joined [21:42:41]Waiting for new connection... [21:42:41] Sock 9.Parse request [21:42:41]Sock 9.Check first char [21:42:41]Sock 9.First char is OK [21:42:41]request: POST /json_proto HTTP/1.0 [21:42:41]Method: POST [21:42:41]URL: /json_proto [21:42:41]Method is POST - this is cgi request [21:42:41]url: /json_proto [21:42:41]query_string will be loaded in cgi processing [21:42:41]execute_cgi json_proto POST (null) [21:42:41]execute_cgi path=json_proto method=POST [21:42:41]POST find Content-Length [21:42:41]Host: 172.17.43.195:8080 [21:42:41]Content-Length: 791 [21:42:41]Content-Type: application/json [21:42:41] [21:42:41]POST finish read [21:42:41]Found Content-Length = 791 [21:42:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:41]execute_script... [21:42:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 7.480, "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\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:42:41]POST & json_proto [21:42:41]process_json_proto [21:42:41]json parsed OK: [21:42:41]protocol is kg_v1.0 [21:42:41]action value=close_receipt [21:42:41]process_action close_receipt [21:42:41]cmd_close_receipt [21:42:41]MH_GetDate [21:42:41]Write to MH i2c: F0 00 00 8E 01 7E [21:42:41]Write i2c OK [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: F0 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: F0 09 00 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: F0 09 00 8E 01 00 51 05 20 67 74 2C AD 66 17 [21:42:41]GetLastDocTimeStamp 1730150867 [21:42:41]current date 1730151761 [21:42:41]FM_GetShiftState [21:42:41]SAM_PROTO_GetShiftState [21:42:41]wFMCommunicate request_size=4 [21:42:41]MH_SAM_APDU [21:42:41]CAPDU: 80 13 01 00 [21:42:41]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [21:42:41]Write i2c OK [21:42:41]MH_I2C_Read... [21:42:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:41]Read from MH i2c: E2 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: E2 0E 00 [21:42:41]MH_I2C_Read... [21:42:41]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 75 [21:42:41]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:42:41]wFMCommunicate OK [21:42:41]SAM_PROTO_GetShiftState done [21:42:41]FM_GetShiftState done [21:42:41]opened in 1730074113 [21:42:41]opened+sec_in_day 1730160513 [21:42:41]quantity*price = 0 [21:42:41]sum+1 = 1 [21:42:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 157 28.10.2024 21:42 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72629 ФПД: 104361916016432 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214241&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72629&fm=104361916016432&tin=02508201610067®Number=0000000000091644&sum=0 [21:42:42]StoreToDocumentArchive [21:42:42]shift 554 fd 72629 [21:42:42]save to /storage/0554/doc_00072629 [21:42:42]save last doc name /storage/0554/doc_00072629 to /storage/kkm_last_doc_name [21:42:42]save OK [21:42:42]Clear old archive folders... [21:42:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:42:42]tlvbuf is 001F68A0 [21:42:42]SAM_PROTO_ClearQueue [21:42:42]wFMCommunicate request_size=4 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 09 00 00 [21:42:42]Write to MH i2c: E2 08 00 9C 01 80 09 00 00 00 00 00 00 0F [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 9C 01 00 90 00 11 [21:42:42]RAPDU: 90 00 [21:42:42]wFMCommunicate OK [21:42:42]SAM_PROTO_ClearQueue done [21:42:42]KKMCreateOFDPacket [21:42:42]OFDProtocolAddRootSTLVToBuf [21:42:42]FM_MakeSignedData [21:42:42]FM_MakeSignedData [21:42:42]SAM_PROTO_SignData [21:42:42]wFMCommunicate request_size=4 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 0D 01 02 [21:42:42]Write to MH i2c: E2 08 00 9D 01 80 0D 01 02 00 00 00 00 17 [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 9D 01 00 90 00 12 [21:42:42]RAPDU: 90 00 [21:42:42]wFMCommunicate OK [21:42:42]wFMCommunicate request_size=255 [21:42:42]MH_SAM_APDU [21:42: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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1B 01 00 35 04 06 00 5E [21:42:42]Write to MH i2c: E2 02 01 9E 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 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1B 01 00 35 04 06 00 5E 00 00 4B [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [21:42:42]RAPDU: 90 00 [21:42:42]wFMCommunicate OK [21:42:42]wFMCommunicate request_size=10 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 0D 02 02 05 EA A6 EE A7 30 [21:42:42]Write to MH i2c: E2 0D 00 9F 01 80 0D 02 02 05 00 EA A6 EE A7 30 00 00 79 [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [21:42:42]RAPDU: 90 00 [21:42:42]wFMCommunicate OK [21:42:42]wFMCommunicate request_size=4 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 0D 03 02 [21:42:42]Write to MH i2c: E2 08 00 A0 01 80 0D 03 02 00 00 00 00 1C [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 0B 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 0B 00 A0 01 00 1F F3 98 47 61 D3 FD CF 90 00 0E [21:42:42]RAPDU: 1F F3 98 47 61 D3 FD CF 90 00 [21:42:42]wFMCommunicate OK [21:42:42]SAM_PROTO_SignData done [21:42:42]FM_MakeSignedData done [21:42:42]CreateOFDProtocolMessage [21:42:42]wFMCommunicate request_size=4 [21:42:42]MH_SAM_APDU [21:42:42]CAPDU: 80 11 00 00 [21:42:42]Write to MH i2c: E2 08 00 A1 01 80 11 00 00 00 00 00 00 1C [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:42]Read from MH i2c: E2 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 17 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: E2 17 00 A1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 70 [21:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:42:42]wFMCommunicate OK [21:42:42]CreateOFDProtocolMessage done [21:42:42]OFDSenderStorePacket 72629 [21:42:42]StoreOFDPacket docnum=72629 [21:42:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 24 C0 07 01 41 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1B 01 00 35 04 06 00 5E EA A6 EE A7 30 1F F3 98 47 61 D3 FD CF [21:42:42]CheckFolder [21:42:42]dirname=/storage/ofd_packets [21:42:42]CheckFolder done [21:42:42]ProducePacketName [21:42:42]name=ofd_packets/00072629 [21:42:42]NVStorageSaveData ofd_packets/00072629 [21:42:42]File name is /storage/ofd_packets/00072629 [21:42:42]Write 301 bytes [21:42:42]NVStorageSaveData done [21:42:42]OFDSenderStorePacket done [21:42:42]KKMCreateOFDPacket done [21:42:42]NVStorageSaveData kkm_last_timestamp [21:42:42]File name is /storage/kkm_last_timestamp [21:42:42]Write 4 bytes [21:42:42]NVStorageSaveData done [21:42:42]ExternCall_PrintAddStr [21:42:42]wPrintStart [21:42:42]Write to MH i2c: 01 00 00 A2 01 A3 [21:42:42]Write i2c OK [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: 01 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: 01 07 00 [21:42:42]MH_I2C_Read... [21:42:42]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [21:42:42]RasterBufferAndPrint [21:42:42]line Счет N : (1)952124 [21:42:42]line ИНН: 02508201610067 [21:42:42]line Контрольно-Кассовый Чек [21:42:42]line ПРОДАЖА [21:42:42]line ТРК (МРК, ГНК) : 63 [21:42:42]line Товар: 2710124130 [21:42:42]line Аи-92-К-5 [21:42:42]line 7.480 * 0.00 [21:42:42]line = 0.00 [21:42:42]line НДС 12% НСП 1% [21:42:42]line > о реализуемом товаре [21:42:42]line ИТОГО: 0.00 [21:42:42]line НСП 1% : 0.00 [21:42:42]line НДС 12% : 0.00 [21:42:42]line Наличными: 0.00 [21:42:42]line Безнал.: 0.00 [21:42:42]line Место: АЗС № 113 "Партнер Нефть" [21:42:42]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:42:42]line СНО: Общий режим [21:42:42]line Чек 157 28.10.2024 21:42 [21:42:42]line Смена: 554 ФФД: 1.0 [21:42:42]line ЗНМ: 0300000087 [21:42:42]line РНМ: 0000000000091644 [21:42:42]line Версия ККМ: 001 [21:42:42]line Талоны: Топливная Карта [21:42:42]line 03047 [21:42:42]line ФМ: 0000000000874662 [21:42:42]line ФД: 72629 [21:42:42]line ФПД: 104361916016432 [21:42:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214241&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72629&fm=104361916016432&tin=02508201610067®Number=0000000000091644&sum=0 [21:42:42]written 0, free lines is 4095 [21:42:42]OFD Sender: Processing packet 72629 [packets to send 277, broken 276] [21:42:42]ProducePacketName [21:42:42]name=ofd_packets/00072629 [21:42:42]OFD Sender: To server: pG, [21:42:42]CommunicateWithHost lk.salyk.kg:30040 [21:42:42]ConnectInit lk.salyk.kg [21:42:43]Write to MH i2c: 01 00 00 CC 01 CD [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: 01 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: 01 07 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: 01 07 00 CC 01 00 00 00 00 00 E3 0C C3 [21:42:43]RasterBufferAndPrint [21:42:43]line [21:42:43]line [21:42:43]line [21:42:43]line [21:42:43]line [21:42:43]written 0, free lines is 3305 [21:42:43]MH_Cut [21:42:43]Write to MH i2c: D1 01 00 D3 01 01 A6 [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: D1 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: D1 01 00 [21:42:43]MH_I2C_Read... [21:42:43]Read from MH i2c: D1 01 00 D3 01 00 A5 [21:42:43]Write to MH i2c: 01 00 00 D4 01 D5 [21:42:43]Write i2c OK [21:42:43]MH_I2C_Read... [21:42:43]*** Cut start [21:42:43]*** Partial cut [21:42:43]*** CUTSNS_PIN = 1 [21:42:44]*** CUTSNS_PIN = 0 [21:42:44]*** Brake cut motor [21:42:44]Read from MH i2c: 01 [21:42:44]MH_I2C_Read... [21:42:44]*** Stop cut motor [21:42:44]*** Cut end [21:42:44]Read from MH i2c: 01 07 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: 01 07 00 D4 01 00 00 00 00 00 FF 0F EA [21:42:44]process_action close_receipt done [21:42:44]requested_data is exist [21:42:44]produce_requested_data [21:42:44]requested_item fm.sn is exist - process it [21:42:44]wFMCommunicate request_size=4 [21:42:44]MH_SAM_APDU [21:42:44]CAPDU: 80 11 00 00 [21:42:44]Write to MH i2c: E2 08 00 D5 01 80 11 00 00 00 00 00 00 50 [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:44]Read from MH i2c: E2 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 17 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 17 00 D5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A4 [21:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:42:44]wFMCommunicate OK [21:42:44]requested_item fd.num is exist - process it [21:42:44]SAM_PROTO_GetFieldsCounters [21:42:44]wFMCommunicate request_size=4 [21:42:44]MH_SAM_APDU [21:42:44]CAPDU: 80 13 00 00 [21:42:44]Write to MH i2c: E2 08 00 D6 01 80 13 00 00 00 00 00 00 53 [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:44]Read from MH i2c: E2 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 62 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 62 00 D6 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [21:42: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B5 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:44]wFMCommunicate OK [21:42:44]SAM_PROTO_GetFieldsCounters done [21:42:44]requested_item shift.num is exist - process it [21:42:44]requested_item shift.opened is exist - process it [21:42:44]req_shift_opened [21:42:44]FM_GetShiftState [21:42:44]SAM_PROTO_GetShiftState [21:42:44]wFMCommunicate request_size=4 [21:42:44]MH_SAM_APDU [21:42:44]CAPDU: 80 13 01 00 [21:42:44]Write to MH i2c: E2 08 00 D7 01 80 13 01 00 00 00 00 00 55 [21:42:44]Write i2c OK [21:42:44]MH_I2C_Read... [21:42:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:44]Read from MH i2c: E2 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 0E 00 [21:42:44]MH_I2C_Read... [21:42:44]Read from MH i2c: E2 0E 00 D7 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BD [21:42:44]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:42:44]wFMCommunicate OK [21:42:44]SAM_PROTO_GetShiftState done [21:42:44]FM_GetShiftState done [21:42:44]req_shift_opened done [21:42:44]requested_item shift.open_date is exist - process it [21:42:44]req_shift_open_date [21:42:44]req_shift_open_date done [21:42:44]produce_requested_data done [21:42:44]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72629,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [21:42:44]process_action_free close_receipt [21:42:44]json_value_free [21:42:44]json_value_free done [21:42:44]process_json_proto returns [21:42:44]Send response to host [21:42:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72629,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [21:42:44]free response buf [21:42:44]execute_script done [21:42:44]execute_script returns [21:42:44]free content buf [21:42:44]Sock 9.Close socket [21:42:44]Sock 9.Thread stoped [21:42:47]recv_with_timeout no data received [21:42:47]Connected sock=11 [21:42:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 24 C0 07 01 41 BE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 51 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1B 01 00 35 04 06 00 5E EA A6 EE A7 30 1F F3 98 47 61 D3 FD CF [21:42:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 36 59 47 00 25 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B5 1B 01 00 F4 03 04 00 13 B0 1F 67 B6 04 01 00 00 D3 C6 39 A1 95 FF 0C C0 [21:42:48]CommunicateWithHost err = 0 [21:42:48]CheckOFDResponse [21:42:48]1017 (14) - 77093643461234 [21:42:48]1041 (16) - 0000000000874662 [21:42:48]1040 (4) - 72629 [21:42:48]1012 (4) - 28.10.2024 15:38 [21:42:48]1206 (1) - 0 [21:42:48]OFD Sender: Remove packet 72629 [21:42:48]ProducePacketName [21:42:48]name=ofd_packets/00072629 [21:42:48]NVStorageDeleteData [21:42:48]OFD Sender: No OFD packet to send [21:42:53]OFD Sender: No OFD packet to send [21:42:58]OFD Sender: No OFD packet to send [21:43:03]OFD Sender: No OFD packet to send [21:43:07]recv_with_timeout no data received [21:43:08]OFD Sender: No OFD packet to send [21:43:13]OFD Sender: No OFD packet to send [21:43:18]OFD Sender: No OFD packet to send [21:43:23]OFD Sender: No OFD packet to send [21:43:28]OFD Sender: No OFD packet to send [21:43:33]OFD Sender: No OFD packet to send [21:43:38]OFD Sender: No OFD packet to send [21:43:43]OFD Sender: No OFD packet to send [21:43:43]recv_with_timeout no data received [21:43:48]OFD Sender: No OFD packet to send [21:43:53]OFD Sender: No OFD packet to send [21:43:58]OFD Sender: No OFD packet to send [21:44:02]recv_with_timeout no data received [21:44:03]OFD Sender: No OFD packet to send [21:44:08]OFD Sender: No OFD packet to send [21:44:13]OFD Sender: No OFD packet to send [21:44:18]OFD Sender: No OFD packet to send [21:44:23]OFD Sender: No OFD packet to send [21:44:28]OFD Sender: No OFD packet to send [21:44:33]OFD Sender: No OFD packet to send [21:44:38]OFD Sender: No OFD packet to send [21:44:43]OFD Sender: No OFD packet to send [21:44:48]OFD Sender: No OFD packet to send [21:44:53]OFD Sender: No OFD packet to send [21:44:55]accept exits with 7 [21:44:55]New connection [21:44:55]New thread 3066928484 created [21:44:55]Thread 3066785124 joined [21:44:55]Waiting for new connection... [21:44:55] Sock 7.Parse request [21:44:55]Sock 7.Check first char [21:44:55]Sock 7.First char is OK [21:44:55]request: POST /json_proto HTTP/1.0 [21:44:55]Method: POST [21:44:55]URL: /json_proto [21:44:55]Method is POST - this is cgi request [21:44:55]url: /json_proto [21:44:55]query_string will be loaded in cgi processing [21:44:55]execute_cgi json_proto POST (null) [21:44:55]execute_cgi path=json_proto method=POST [21:44:55]POST find Content-Length [21:44:55]Host: 172.17.43.195:8080 [21:44:55]Content-Length: 759 [21:44:55]Content-Type: application/json [21:44:55] [21:44:55]POST finish read [21:44:55]Found Content-Length = 759 [21:44:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:55]execute_script... [21:44:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30033189", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:55]POST & json_proto [21:44:55]process_json_proto [21:44:55]json parsed OK: [21:44:55]protocol is kg_v1.0 [21:44:55]action value=close_receipt [21:44:55]process_action close_receipt [21:44:55]cmd_close_receipt [21:44:55]MH_GetDate [21:44:55]Write to MH i2c: F0 00 00 D8 01 C8 [21:44:55]Write i2c OK [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: F0 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: F0 09 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: F0 09 00 D8 01 00 D7 05 20 67 74 2C AD 66 E7 [21:44:55]GetLastDocTimeStamp 1730151761 [21:44:55]current date 1730151895 [21:44:55]FM_GetShiftState [21:44:55]SAM_PROTO_GetShiftState [21:44:55]wFMCommunicate request_size=4 [21:44:55]MH_SAM_APDU [21:44:55]CAPDU: 80 13 01 00 [21:44:55]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [21:44:55]Write i2c OK [21:44:55]MH_I2C_Read... [21:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:55]Read from MH i2c: E2 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 0E 00 [21:44:55]MH_I2C_Read... [21:44:55]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 BF [21:44:55]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:44:55]wFMCommunicate OK [21:44:55]SAM_PROTO_GetShiftState done [21:44:55]FM_GetShiftState done [21:44:55]opened in 1730074113 [21:44:55]opened+sec_in_day 1730160513 [21:44:55]quantity*price = 0 [21:44:55]sum+1 = 1 [21:44:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 158 28.10.2024 21:44 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30033189 ФМ: 0000000000874662 ФД: 72630 ФПД: 271490207379405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214456&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72630&fm=271490207379405&tin=02508201610067®Number=0000000000091644&sum=0 [21:44:56]StoreToDocumentArchive [21:44:56]shift 554 fd 72630 [21:44:56]save to /storage/0554/doc_00072630 [21:44:56]save last doc name /storage/0554/doc_00072630 to /storage/kkm_last_doc_name [21:44:56]save OK [21:44:56]Clear old archive folders... [21:44:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [21:44:56]tlvbuf is 00281DF0 [21:44:56]SAM_PROTO_ClearQueue [21:44:56]wFMCommunicate request_size=4 [21:44:56]MH_SAM_APDU [21:44:56]CAPDU: 80 09 00 00 [21:44:56]Write to MH i2c: E2 08 00 E6 01 80 09 00 00 00 00 00 00 59 [21:44:56]Write i2c OK [21:44:56]MH_I2C_Read... [21:44:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:56]Read from MH i2c: E2 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 E6 01 00 90 00 5B [21:44:56]RAPDU: 90 00 [21:44:56]wFMCommunicate OK [21:44:56]SAM_PROTO_ClearQueue done [21:44:56]KKMCreateOFDPacket [21:44:56]OFDProtocolAddRootSTLVToBuf [21:44:56]FM_MakeSignedData [21:44:56]FM_MakeSignedData [21:44:56]SAM_PROTO_SignData [21:44:56]wFMCommunicate request_size=4 [21:44:56]MH_SAM_APDU [21:44:56]CAPDU: 80 0D 01 02 [21:44:56]Write to MH i2c: E2 08 00 E7 01 80 0D 01 02 00 00 00 00 61 [21:44:56]Write i2c OK [21:44:56]MH_I2C_Read... [21:44:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:56]Read from MH i2c: E2 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 E7 01 00 90 00 5C [21:44:56]RAPDU: 90 00 [21:44:56]wFMCommunicate OK [21:44:56]wFMCommunicate request_size=255 [21:44:56]MH_SAM_APDU [21:44:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D8 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1B 01 00 35 04 06 00 [21:44:56]Write to MH i2c: E2 02 01 E8 01 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D8 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1B 01 00 35 04 06 00 00 00 F0 [21:44:56]Write i2c OK [21:44:56]MH_I2C_Read... [21:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:56]Read from MH i2c: E2 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 [21:44:56]MH_I2C_Read... [21:44:56]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [21:44:56]RAPDU: 90 00 [21:44:56]wFMCommunicate OK [21:44:56]wFMCommunicate request_size=11 [21:44:56]MH_SAM_APDU [21:44:56]CAPDU: 80 0D 02 02 06 F6 EB 3D 5E EF CD [21:44:56]Write to MH i2c: E2 0E 00 E9 01 80 0D 02 02 06 00 F6 EB 3D 5E EF CD 00 00 A8 [21:44:56]Write i2c OK [21:44:56]MH_I2C_Read... [21:44:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:57]Read from MH i2c: E2 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 03 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [21:44:57]RAPDU: 90 00 [21:44:57]wFMCommunicate OK [21:44:57]wFMCommunicate request_size=4 [21:44:57]MH_SAM_APDU [21:44:57]CAPDU: 80 0D 03 02 [21:44:57]Write to MH i2c: E2 08 00 EA 01 80 0D 03 02 00 00 00 00 66 [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:57]Read from MH i2c: E2 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 0B 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 0B 00 EA 01 00 46 B2 12 EF 24 83 01 3B 90 00 43 [21:44:57]RAPDU: 46 B2 12 EF 24 83 01 3B 90 00 [21:44:57]wFMCommunicate OK [21:44:57]SAM_PROTO_SignData done [21:44:57]FM_MakeSignedData done [21:44:57]CreateOFDProtocolMessage [21:44:57]wFMCommunicate request_size=4 [21:44:57]MH_SAM_APDU [21:44:57]CAPDU: 80 11 00 00 [21:44:57]Write to MH i2c: E2 08 00 EB 01 80 11 00 00 00 00 00 00 66 [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:57]Read from MH i2c: E2 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 17 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: E2 17 00 EB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [21:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:44:57]wFMCommunicate OK [21:44:57]CreateOFDProtocolMessage done [21:44:57]OFDSenderStorePacket 72630 [21:44:57]StoreOFDPacket docnum=72630 [21:44:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 7D 08 01 47 CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D8 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1B 01 00 35 04 06 00 F6 EB 3D 5E EF CD 46 B2 12 EF 24 83 01 3B [21:44:57]CheckFolder [21:44:57]dirname=/storage/ofd_packets [21:44:57]CheckFolder done [21:44:57]ProducePacketName [21:44:57]name=ofd_packets/00072630 [21:44:57]NVStorageSaveData ofd_packets/00072630 [21:44:57]File name is /storage/ofd_packets/00072630 [21:44:57]Write 302 bytes [21:44:57]NVStorageSaveData done [21:44:57]OFDSenderStorePacket done [21:44:57]KKMCreateOFDPacket done [21:44:57]NVStorageSaveData kkm_last_timestamp [21:44:57]File name is /storage/kkm_last_timestamp [21:44:57]Write 4 bytes [21:44:57]NVStorageSaveData done [21:44:57]ExternCall_PrintAddStr [21:44:57]wPrintStart [21:44:57]Write to MH i2c: 01 00 00 EC 01 ED [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 07 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 FF 0F 02 [21:44:57]RasterBufferAndPrint [21:44:57]line Счет N : (1)952125 [21:44:57]line ИНН: 02508201610067 [21:44:57]line Контрольно-Кассовый Чек [21:44:57]line ПРОДАЖА [21:44:57]line ТРК (МРК, ГНК) : 33 [21:44:57]line Товар: 2710194210 [21:44:57]line ДТ(л)-К-5 [21:44:57]line 60.000 * 0.00 [21:44:57]line = 0.00 [21:44:57]line НДС 12% НСП 1% [21:44:57]line > о реализуемом товаре [21:44:57]line ИТОГО: 0.00 [21:44:57]line НСП 1% : 0.00 [21:44:57]line НДС 12% : 0.00 [21:44:57]line Наличными: 0.00 [21:44:57]line Безнал.: 0.00 [21:44:57]line Место: АЗС № 113 "Партнер Нефть" [21:44:57]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:44:57]line СНО: Общий режим [21:44:57]line Чек 158 28.10.2024 21:44 [21:44:57]line Смена: 554 ФФД: 1.0 [21:44:57]line ЗНМ: 0300000087 [21:44:57]line РНМ: 0000000000091644 [21:44:57]line Версия ККМ: 001 [21:44:57]line Талоны: ТК ГПНА Online [21:44:57]line 30033189 [21:44:57]line ФМ: 0000000000874662 [21:44:57]line ФД: 72630 [21:44:57]line ФПД: 271490207379405 [21:44:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T214456&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72630&fm=271490207379405&tin=02508201610067®Number=0000000000091644&sum=0 [21:44:57]written 0, free lines is 4095 [21:44:57]OFD Sender: Processing packet 72630 [packets to send 277, broken 276] [21:44:57]ProducePacketName [21:44:57]name=ofd_packets/00072630 [21:44:57]OFD Sender: To server: pG, [21:44:57]CommunicateWithHost lk.salyk.kg:30040 [21:44:57]ConnectInit lk.salyk.kg [21:44:57]Write to MH i2c: 01 00 00 16 02 18 [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 07 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 DD 0C 08 [21:44:57]RasterBufferAndPrint [21:44:57]line [21:44:57]line [21:44:57]line [21:44:57]line [21:44:57]line [21:44:57]written 0, free lines is 3299 [21:44:57]MH_Cut [21:44:57]Write to MH i2c: D1 01 00 1D 02 01 F1 [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: D1 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: D1 01 00 [21:44:57]MH_I2C_Read... [21:44:57]Read from MH i2c: D1 01 00 1D 02 00 F0 [21:44:57]Write to MH i2c: 01 00 00 1E 02 20 [21:44:57]Write i2c OK [21:44:57]MH_I2C_Read... [21:44:58]*** Cut start [21:44:58]*** Partial cut [21:44:58]*** CUTSNS_PIN = 1 [21:44:58]*** CUTSNS_PIN = 0 [21:44:58]Connected sock=10 [21:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 B5 7D 08 01 47 CE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 D8 05 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1B 01 00 35 04 06 00 F6 EB 3D 5E EF CD 46 B2 12 EF 24 83 01 3B [21:44:58]*** Brake cut motor [21:44:58]Read from MH i2c: 01 [21:44:58]MH_I2C_Read... [21:44:58]*** Stop cut motor [21:44:58]*** Cut end [21:44:58]Read from MH i2c: 01 07 00 [21:44:58]MH_I2C_Read... [21:44:58]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [21:44:58]process_action close_receipt done [21:44:58]requested_data is exist [21:44:58]produce_requested_data [21:44:58]requested_item fm.sn is exist - process it [21:44:58]wFMCommunicate request_size=4 [21:44:58]MH_SAM_APDU [21:44:58]CAPDU: 80 11 00 00 [21:44:58]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [21:44:58]Write i2c OK [21:44:58]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 17 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EF [21:44:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:44:59]wFMCommunicate OK [21:44:59]requested_item fd.num is exist - process it [21:44:59]SAM_PROTO_GetFieldsCounters [21:44:59]wFMCommunicate request_size=4 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 13 00 00 [21:44:59]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 62 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 62 00 20 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [21: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B6 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:59]wFMCommunicate OK [21:44:59]SAM_PROTO_GetFieldsCounters done [21:44:59]requested_item shift.num is exist - process it [21:44:59]requested_item shift.opened is exist - process it [21:44:59]req_shift_opened [21:44:59]FM_GetShiftState [21:44:59]SAM_PROTO_GetShiftState [21:44:59]wFMCommunicate request_size=4 [21:44:59]MH_SAM_APDU [21:44:59]CAPDU: 80 13 01 00 [21:44:59]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [21:44:59]Write i2c OK [21:44:59]MH_I2C_Read... [21:44:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:59]Read from MH i2c: E2 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0E 00 [21:44:59]MH_I2C_Read... [21:44:59]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 08 [21:44:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:44:59]wFMCommunicate OK [21:44:59]SAM_PROTO_GetShiftState done [21:44:59]FM_GetShiftState done [21:44:59]req_shift_opened done [21:44:59]requested_item shift.open_date is exist - process it [21:44:59]req_shift_open_date [21:44:59]req_shift_open_date done [21:44:59]produce_requested_data done [21:44:59]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72630,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [21:44:59]process_action_free close_receipt [21:44:59]json_value_free [21:44:59]json_value_free done [21:44:59]process_json_proto returns [21:44:59]Send response to host [21:44:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72630,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [21:44:59]free response buf [21:44:59]execute_script done [21:44:59]execute_script returns [21:44:59]free content buf [21:44:59]Sock 7.Close socket [21:44:59]Sock 7.Thread stoped [21:44:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 82 A0 47 00 25 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B6 1B 01 00 F4 03 04 00 96 B0 1F 67 B6 04 01 00 00 86 51 6F C8 B0 F8 85 AA [21:44:59]CommunicateWithHost err = 0 [21:44:59]CheckOFDResponse [21:44:59]1017 (14) - 77093643461234 [21:44:59]1041 (16) - 0000000000874662 [21:44:59]1040 (4) - 72630 [21:44:59]1012 (4) - 28.10.2024 15:41 [21:44:59]1206 (1) - 0 [21:44:59]OFD Sender: Remove packet 72630 [21:44:59]ProducePacketName [21:44:59]name=ofd_packets/00072630 [21:44:59]NVStorageDeleteData [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]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:20]OFD Sender: No OFD packet to send [21:46:25]OFD Sender: No OFD packet to send [21:46:30]OFD Sender: No OFD packet to send [21:46:35]OFD Sender: No OFD packet to send [21:46:40]OFD Sender: No OFD packet to send [21:46:41]recv_with_timeout no data received [21:46:45]OFD Sender: No OFD packet to send [21:46:50]OFD Sender: No OFD packet to send [21:46:55]OFD Sender: No OFD packet to send [21:47:00]OFD Sender: No OFD packet to send [21:47:05]OFD Sender: No OFD packet to send [21:47:10]OFD Sender: No OFD packet to send [21:47:15]OFD Sender: No OFD packet to send [21:47:20]OFD Sender: No OFD packet to send [21:47:25]OFD Sender: No OFD packet to send [21:47:26]recv_with_timeout no data received [21:47:30]OFD Sender: No OFD packet to send [21:47:35]OFD Sender: No OFD packet to send [21:47:40]OFD Sender: No OFD packet to send [21:47:44]recv_with_timeout no data received [21:47:45]OFD Sender: No OFD packet to send [21:47:50]OFD Sender: No OFD packet to send [21:47:55]OFD Sender: No OFD packet to send [21:48:00]OFD Sender: No OFD packet to send [21:48:05]OFD Sender: No OFD packet to send [21:48:10]OFD Sender: No OFD packet to send [21:48:15]OFD Sender: No OFD packet to send [21:48:20]OFD Sender: No OFD packet to send [21:48:25]OFD Sender: No OFD packet to send [21:48:30]OFD Sender: No OFD packet to send [21:48:35]OFD Sender: No OFD packet to send [21:48:40]OFD Sender: No OFD packet to send [21:48:45]OFD Sender: No OFD packet to send [21:48:46]recv_with_timeout no data received [21:48:50]OFD Sender: No OFD packet to send [21:48:55]OFD Sender: No OFD packet to send [21:49:00]OFD Sender: No OFD packet to send [21:49:05]OFD Sender: No OFD packet to send [21:49:07]recv_with_timeout no data received [21:49:10]OFD Sender: No OFD packet to send [21:49:15]OFD Sender: No OFD packet to send [21:49:20]OFD Sender: No OFD packet to send [21:49:25]OFD Sender: No OFD packet to send [21:49:30]OFD Sender: No OFD packet to send [21:49:35]OFD Sender: No OFD packet to send [21:49:40]OFD Sender: No OFD packet to send [21:49:45]OFD Sender: No OFD packet to send [21:49:50]OFD Sender: No OFD packet to send [21:49:55]OFD Sender: No OFD packet to send [21:50:00]OFD Sender: No OFD packet to send [21:50:05]OFD Sender: No OFD packet to send [21:50:10]OFD Sender: No OFD packet to send [21:50:15]OFD Sender: No OFD packet to send [21:50:16]recv_with_timeout no data received [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:04]recv_with_timeout no data received [21:51:05]OFD Sender: No OFD packet to send [21:51:10]OFD Sender: No OFD packet to send [21:51:14]recv_with_timeout no data received [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:32]recv_with_timeout no data received [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:34]recv_with_timeout no data received [21:52:35]OFD Sender: No OFD packet to send [21:52:40]OFD Sender: No OFD packet to send [21:52:45]recv_with_timeout no data received [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:52:56]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:41]recv_with_timeout no data received [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:45]recv_with_timeout no data received [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]recv_with_timeout no data received [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:24]recv_with_timeout no data received [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]recv_with_timeout no data received [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:16]OFD Sender: No OFD packet to send [21:56:21]OFD Sender: No OFD packet to send [21:56:26]OFD Sender: No OFD packet to send [21:56:31]OFD Sender: No OFD packet to send [21:56:36]OFD Sender: No OFD packet to send [21:56:41]OFD Sender: No OFD packet to send [21:56:44]recv_with_timeout no data received [21:56:46]OFD Sender: No OFD packet to send [21:56:51]OFD Sender: No OFD packet to send [21:56:56]OFD Sender: No OFD packet to send [21:56:57]recv_with_timeout no data received [21:57:01]OFD Sender: No OFD packet to send [21:57:06]OFD Sender: No OFD packet to send [21:57:11]OFD Sender: No OFD packet to send [21:57:16]OFD Sender: No OFD packet to send [21:57:21]OFD Sender: No OFD packet to send [21:57:26]OFD Sender: No OFD packet to send [21:57:31]OFD Sender: No OFD packet to send [21:57:36]OFD Sender: No OFD packet to send [21:57:36]recv_with_timeout no data received [21:57:41]OFD Sender: No OFD packet to send [21:57:46]OFD Sender: No OFD packet to send [21:57:51]OFD Sender: No OFD packet to send [21:57:56]recv_with_timeout no data received [21:57:56]OFD Sender: No OFD packet to send [21:58:01]OFD Sender: No OFD packet to send [21:58:06]OFD Sender: No OFD packet to send [21:58:06]recv_with_timeout no data received [21:58:11]OFD Sender: No OFD packet to send [21:58:16]OFD Sender: No OFD packet to send [21:58:21]OFD Sender: No OFD packet to send [21:58:24]recv_with_timeout no data received [21:58:26]OFD Sender: No OFD packet to send [21:58:31]OFD Sender: No OFD packet to send [21:58:36]OFD Sender: No OFD packet to send [21:58:41]OFD Sender: No OFD packet to send [21:58:46]OFD Sender: No OFD packet to send [21:58:51]OFD Sender: No OFD packet to send [21:58:56]OFD Sender: No OFD packet to send [21:58:56]recv_with_timeout no data received [21:59:01]OFD Sender: No OFD packet to send [21:59:06]OFD Sender: No OFD packet to send [21:59:11]OFD Sender: No OFD packet to send [21:59:16]OFD Sender: No OFD packet to send [21:59:21]OFD Sender: No OFD packet to send [21:59:26]OFD Sender: No OFD packet to send [21:59:31]OFD Sender: No OFD packet to send [21:59:36]OFD Sender: No OFD packet to send [21:59:39]accept exits with 9 [21:59:39]New connection [21:59:39]New thread 3066785124 created [21:59:39]Thread 3066928484 joined [21:59:39]Waiting for new connection... [21:59:39] Sock 9.Parse request [21:59:39]Sock 9.Check first char [21:59:39]Sock 9.First char is OK [21:59:39]request: POST /json_proto HTTP/1.0 [21:59:39]Method: POST [21:59:39]URL: /json_proto [21:59:39]Method is POST - this is cgi request [21:59:39]url: /json_proto [21:59:39]query_string will be loaded in cgi processing [21:59:39]execute_cgi json_proto POST (null) [21:59:39]execute_cgi path=json_proto method=POST [21:59:39]POST find Content-Length [21:59:39]Host: 172.17.43.195:8080 [21:59:39]Content-Length: 792 [21:59:39]Content-Type: application/json [21:59:39] [21:59:39]POST finish read [21:59:39]Found Content-Length = 792 [21:59:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:39]execute_script... [21:59: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)952126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A03047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:59:39]POST & json_proto [21:59:39]process_json_proto [21:59:39]json parsed OK: [21:59:39]protocol is kg_v1.0 [21:59:39]action value=close_receipt [21:59:39]process_action close_receipt [21:59:39]cmd_close_receipt [21:59:39]MH_GetDate [21:59:39]Write to MH i2c: F0 00 00 22 02 13 [21:59:39]Write i2c OK [21:59:39]MH_I2C_Read... [21:59:39]Read from MH i2c: F0 [21:59:39]MH_I2C_Read... [21:59:39]Read from MH i2c: F0 09 00 [21:59:39]MH_I2C_Read... [21:59:39]Read from MH i2c: F0 09 00 22 02 00 4B 09 20 67 74 2C AD 66 AA [21:59:39]GetLastDocTimeStamp 1730151896 [21:59:39]current date 1730152779 [21:59:39]FM_GetShiftState [21:59:39]SAM_PROTO_GetShiftState [21:59:39]wFMCommunicate request_size=4 [21:59:39]MH_SAM_APDU [21:59:39]CAPDU: 80 13 01 00 [21:59:39]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [21:59:39]Write i2c OK [21:59:39]MH_I2C_Read... [21:59:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:39]Read from MH i2c: E2 [21:59:39]MH_I2C_Read... [21:59:39]Read from MH i2c: E2 0E 00 [21:59:39]MH_I2C_Read... [21:59:39]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0A [21:59:39]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:59:39]wFMCommunicate OK [21:59:39]SAM_PROTO_GetShiftState done [21:59:39]FM_GetShiftState done [21:59:39]opened in 1730074113 [21:59:39]opened+sec_in_day 1730160513 [21:59:39]quantity*price = 0 [21:59:39]sum+1 = 1 [21:59:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 159 28.10.2024 21:59 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 03047 ФМ: 0000000000874662 ФД: 72631 ФПД: 158758894414059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T215939&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72631&fm=158758894414059&tin=02508201610067®Number=0000000000091644&sum=0 [21:59:40]StoreToDocumentArchive [21:59:40]shift 554 fd 72631 [21:59:40]save to /storage/0554/doc_00072631 [21:59:40]save last doc name /storage/0554/doc_00072631 to /storage/kkm_last_doc_name [21:59:40]save OK [21:59:40]Clear old archive folders... [21:59:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:59:40]tlvbuf is 001FA290 [21:59:40]SAM_PROTO_ClearQueue [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 09 00 00 [21:59:40]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [21:59:40]RAPDU: 90 00 [21:59:40]wFMCommunicate OK [21:59:40]SAM_PROTO_ClearQueue done [21:59:40]KKMCreateOFDPacket [21:59:40]OFDProtocolAddRootSTLVToBuf [21:59:40]FM_MakeSignedData [21:59:40]FM_MakeSignedData [21:59:40]SAM_PROTO_SignData [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 0D 01 02 [21:59:40]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [21:59:40]RAPDU: 90 00 [21:59:40]wFMCommunicate OK [21:59:40]wFMCommunicate request_size=255 [21:59:40]MH_SAM_APDU [21:59: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 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 9F 00 00 00 F4 03 04 00 4B 09 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1B 01 00 35 04 06 00 90 [21:59:40]Write to MH i2c: E2 02 01 32 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 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 9F 00 00 00 F4 03 04 00 4B 09 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1B 01 00 35 04 06 00 90 00 00 F6 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [21:59:40]RAPDU: 90 00 [21:59:40]wFMCommunicate OK [21:59:40]wFMCommunicate request_size=10 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 0D 02 02 05 63 EF 81 A8 EB [21:59:40]Write to MH i2c: E2 0D 00 33 02 80 0D 02 02 05 00 63 EF 81 A8 EB 00 00 1F [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [21:59:40]RAPDU: 90 00 [21:59:40]wFMCommunicate OK [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 0D 03 02 [21:59:40]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 0B 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 0B 00 34 02 00 B5 D2 EB B3 5A 46 7A B6 90 00 A7 [21:59:40]RAPDU: B5 D2 EB B3 5A 46 7A B6 90 00 [21:59:40]wFMCommunicate OK [21:59:40]SAM_PROTO_SignData done [21:59:40]FM_MakeSignedData done [21:59:40]CreateOFDProtocolMessage [21:59:40]wFMCommunicate request_size=4 [21:59:40]MH_SAM_APDU [21:59:40]CAPDU: 80 11 00 00 [21:59:40]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:40]Read from MH i2c: E2 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 17 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 05 [21:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:59:40]wFMCommunicate OK [21:59:40]CreateOFDProtocolMessage done [21:59:40]OFDSenderStorePacket 72631 [21:59:40]StoreOFDPacket docnum=72631 [21:59:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7F A7 07 01 66 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 4B 09 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1B 01 00 35 04 06 00 90 63 EF 81 A8 EB B5 D2 EB B3 5A 46 7A B6 [21:59:40]CheckFolder [21:59:40]dirname=/storage/ofd_packets [21:59:40]CheckFolder done [21:59:40]ProducePacketName [21:59:40]name=ofd_packets/00072631 [21:59:40]NVStorageSaveData ofd_packets/00072631 [21:59:40]File name is /storage/ofd_packets/00072631 [21:59:40]Write 301 bytes [21:59:40]NVStorageSaveData done [21:59:40]OFDSenderStorePacket done [21:59:40]KKMCreateOFDPacket done [21:59:40]NVStorageSaveData kkm_last_timestamp [21:59:40]File name is /storage/kkm_last_timestamp [21:59:40]Write 4 bytes [21:59:40]NVStorageSaveData done [21:59:40]ExternCall_PrintAddStr [21:59:40]wPrintStart [21:59:40]Write to MH i2c: 01 00 00 36 02 38 [21:59:40]Write i2c OK [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: 01 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: 01 07 00 [21:59:40]MH_I2C_Read... [21:59:40]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [21:59:40]RasterBufferAndPrint [21:59:40]line Счет N : (1)952126 [21:59:40]line ИНН: 02508201610067 [21:59:40]line Контрольно-Кассовый Чек [21:59:40]line ПРОДАЖА [21:59:40]line ТРК (МРК, ГНК) : 63 [21:59:40]line Товар: 2710124130 [21:59:40]line Аи-92-К-5 [21:59:40]line 10.000 * 0.00 [21:59:40]line = 0.00 [21:59:40]line НДС 12% НСП 1% [21:59:40]line > о реализуемом товаре [21:59:40]line ИТОГО: 0.00 [21:59:40]line НСП 1% : 0.00 [21:59:40]line НДС 12% : 0.00 [21:59:40]line Наличными: 0.00 [21:59:40]line Безнал.: 0.00 [21:59:40]line Место: АЗС № 113 "Партнер Нефть" [21:59:40]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [21:59:40]line СНО: Общий режим [21:59:40]line Чек 159 28.10.2024 21:59 [21:59:40]line Смена: 554 ФФД: 1.0 [21:59:40]line ЗНМ: 0300000087 [21:59:40]line РНМ: 0000000000091644 [21:59:40]line Версия ККМ: 001 [21:59:40]line Талоны: Топливная Карта [21:59:40]line 03047 [21:59:40]line ФМ: 0000000000874662 [21:59:40]line ФД: 72631 [21:59:40]line ФПД: 158758894414059 [21:59:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T215939&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72631&fm=158758894414059&tin=02508201610067®Number=0000000000091644&sum=0 [21:59:40]written 0, free lines is 4095 [21:59:40]OFD Sender: Processing packet 72631 [packets to send 277, broken 276] [21:59:40]ProducePacketName [21:59:40]name=ofd_packets/00072631 [21:59:40]OFD Sender: To server: pG, [21:59:40]CommunicateWithHost lk.salyk.kg:30040 [21:59:40]ConnectInit lk.salyk.kg [21:59:41]Write to MH i2c: 01 00 00 60 02 62 [21:59:41]Write i2c OK [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: 01 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: 01 07 00 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: 01 07 00 60 02 00 00 00 00 00 DD 0C 52 [21:59:41]RasterBufferAndPrint [21:59:41]line [21:59:41]line [21:59:41]line [21:59:41]line [21:59:41]line [21:59:41]written 0, free lines is 3299 [21:59:41]MH_Cut [21:59:41]Write to MH i2c: D1 01 00 67 02 01 3B [21:59:41]Write i2c OK [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: D1 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: D1 01 00 [21:59:41]MH_I2C_Read... [21:59:41]Read from MH i2c: D1 01 00 67 02 00 3A [21:59:41]Write to MH i2c: 01 00 00 68 02 6A [21:59:41]Write i2c OK [21:59:41]MH_I2C_Read... [21:59:41]Connected sock=7 [21:59:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 7F A7 07 01 66 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 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 9F 00 00 00 F4 03 04 00 4B 09 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1B 01 00 35 04 06 00 90 63 EF 81 A8 EB B5 D2 EB B3 5A 46 7A B6 [21:59:41]*** Cut start [21:59:41]*** Partial cut [21:59:41]*** CUTSNS_PIN = 1 [21:59:41]*** CUTSNS_PIN = 0 [21:59:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2B 4B 47 00 E5 8A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B7 1B 01 00 F4 03 04 00 09 B4 1F 67 B6 04 01 00 00 52 FA 36 C0 CB D7 07 8D [21:59:42]CommunicateWithHost err = 0 [21:59:42]CheckOFDResponse [21:59:42]1017 (14) - 77093643461234 [21:59:42]1041 (16) - 0000000000874662 [21:59:42]1040 (4) - 72631 [21:59:42]1012 (4) - 28.10.2024 15:55 [21:59:42]1206 (1) - 0 [21:59:42]OFD Sender: Remove packet 72631 [21:59:42]ProducePacketName [21:59:42]name=ofd_packets/00072631 [21:59:42]NVStorageDeleteData [21:59:42]*** Brake cut motor [21:59:42]Read from MH i2c: 01 [21:59:42]MH_I2C_Read... [21:59:42]*** Stop cut motor [21:59:42]*** Cut end [21:59:42]Read from MH i2c: 01 07 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 FF 0F 7F [21:59:42]process_action close_receipt done [21:59:42]requested_data is exist [21:59:42]produce_requested_data [21:59:42]requested_item fm.sn is exist - process it [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 11 00 00 [21:59:42]Write to MH i2c: E2 08 00 69 02 80 11 00 00 00 00 00 00 E5 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 17 00 [21:59:42]MH_I2C_Read... [21:59:42]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 34 36 36 32 90 00 39 [21:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [21:59:42]wFMCommunicate OK [21:59:42]requested_item fd.num is exist - process it [21:59:42]SAM_PROTO_GetFieldsCounters [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 13 00 00 [21:59:42]Write to MH i2c: E2 08 00 6A 02 80 13 00 00 00 00 00 00 E8 [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]OFD Sender: No OFD packet to send [21:59:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 62 00 [21:59:42]MH_I2C_Read... [21:59:42]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:59: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B7 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_GetFieldsCounters done [21:59:42]requested_item shift.num is exist - process it [21:59:42]requested_item shift.opened is exist - process it [21:59:42]req_shift_opened [21:59:42]FM_GetShiftState [21:59:42]SAM_PROTO_GetShiftState [21:59:42]wFMCommunicate request_size=4 [21:59:42]MH_SAM_APDU [21:59:42]CAPDU: 80 13 01 00 [21:59:42]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [21:59:42]Write i2c OK [21:59:42]MH_I2C_Read... [21:59:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:59:42]Read from MH i2c: E2 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0E 00 [21:59:42]MH_I2C_Read... [21:59:42]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 52 [21:59:42]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [21:59:42]wFMCommunicate OK [21:59:42]SAM_PROTO_GetShiftState done [21:59:42]FM_GetShiftState done [21:59:42]req_shift_opened done [21:59:42]requested_item shift.open_date is exist - process it [21:59:42]req_shift_open_date [21:59:42]req_shift_open_date done [21:59:42]produce_requested_data done [21:59:42]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72631,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [21:59:42]process_action_free close_receipt [21:59:42]json_value_free [21:59:42]json_value_free done [21:59:42]process_json_proto returns [21:59:42]Send response to host [21:59:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72631,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [21:59:42]free response buf [21:59:42]execute_script done [21:59:42]execute_script returns [21:59:42]free content buf [21:59:42]Sock 9.Close socket [21:59:42]Sock 9.Thread stoped [21:59:47]OFD Sender: No OFD packet to send [21:59:50]recv_with_timeout no data received [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:01]recv_with_timeout no data received [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:16]recv_with_timeout no data received [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:46]recv_with_timeout no data received [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:01:59]recv_with_timeout no data received [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:23]OFD Sender: No OFD packet to send [22:02:28]OFD Sender: No OFD packet to send [22:02:33]OFD Sender: No OFD packet to send [22:02:38]OFD Sender: No OFD packet to send [22:02:43]OFD Sender: No OFD packet to send [22:02:48]OFD Sender: No OFD packet to send [22:02:53]OFD Sender: No OFD packet to send [22:02:58]OFD Sender: No OFD packet to send [22:03:03]OFD Sender: No OFD packet to send [22:03:08]OFD Sender: No OFD packet to send [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:42]recv_with_timeout no data received [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:46]recv_with_timeout no data received [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:03]recv_with_timeout no data received [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:20]recv_with_timeout no data received [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:33]recv_with_timeout no data received [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:32]recv_with_timeout no data received [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:56]recv_with_timeout no data received [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:07]recv_with_timeout no data received [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [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:40]recv_with_timeout no data received [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:57]recv_with_timeout no data received [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:46]recv_with_timeout no data received [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:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:01]recv_with_timeout no data received [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:12]recv_with_timeout no data received [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:14]recv_with_timeout no data received [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]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:38]recv_with_timeout no data received [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:55]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:41]recv_with_timeout no data received [22:18:44]OFD Sender: No OFD packet to send [22:18:49]OFD Sender: No OFD packet to send [22:18:51]recv_with_timeout no data received [22:18:54]OFD Sender: No OFD packet to send [22:18:59]accept exits with 10 [22:18:59]New connection [22:18:59]New thread 3066928484 created [22:18:59]Thread 3066785124 joined [22:18:59]Waiting for new connection... [22:18:59] Sock 10.Parse request [22:18:59]Sock 10.Check first char [22:18:59]Sock 10.First char is OK [22:18:59]request: POST /json_proto HTTP/1.0 [22:18:59]Method: POST [22:18:59]URL: /json_proto [22:18:59]Method is POST - this is cgi request [22:18:59]url: /json_proto [22:18:59]query_string will be loaded in cgi processing [22:18:59]execute_cgi json_proto POST (null) [22:18:59]execute_cgi path=json_proto method=POST [22:18:59]POST find Content-Length [22:18:59]Host: 172.17.43.195:8080 [22:18:59]Content-Length: 803 [22:18:59]Content-Type: application/json [22:18:59] [22:18:59]POST finish read [22:18:59]Found Content-Length = 803 [22:18:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:59]execute_script... [22:18:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:59]POST & json_proto [22:18:59]process_json_proto [22:18:59]json parsed OK: [22:18:59]protocol is kg_v1.0 [22:18:59]action value=close_receipt [22:18:59]process_action close_receipt [22:18:59]cmd_close_receipt [22:18:59]MH_GetDate [22:18:59]Write to MH i2c: F0 00 00 6C 02 5D [22:18:59]Write i2c OK [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: F0 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: F0 09 00 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: F0 09 00 6C 02 00 D3 0D 20 67 74 2C AD 66 80 [22:18:59]GetLastDocTimeStamp 1730152779 [22:18:59]current date 1730153939 [22:18:59]FM_GetShiftState [22:18:59]SAM_PROTO_GetShiftState [22:18:59]wFMCommunicate request_size=4 [22:18:59]MH_SAM_APDU [22:18:59]CAPDU: 80 13 01 00 [22:18:59]Write to MH i2c: E2 08 00 6D 02 80 13 01 00 00 00 00 00 EC [22:18:59]Write i2c OK [22:18:59]MH_I2C_Read... [22:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:59]Read from MH i2c: E2 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 0E 00 [22:18:59]MH_I2C_Read... [22:18:59]Read from MH i2c: E2 0E 00 6D 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 54 [22:18:59]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:18:59]wFMCommunicate OK [22:18:59]SAM_PROTO_GetShiftState done [22:18:59]FM_GetShiftState done [22:18:59]opened in 1730074113 [22:18:59]opened+sec_in_day 1730160513 [22:18:59]quantity*price = 150032 [22:18:59]sum+1 = 150033 [22:18:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 160 28.10.2024 22:18 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72632 ФПД: 58404388559087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T221859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72632&fm=58404388559087&tin=02508201610067®Number=0000000000091644&sum=150032 [22:19:00]StoreToDocumentArchive [22:19:00]shift 554 fd 72632 [22:19:00]save to /storage/0554/doc_00072632 [22:19:00]save last doc name /storage/0554/doc_00072632 to /storage/kkm_last_doc_name [22:19:00]save OK [22:19:00]Clear old archive folders... [22:19:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:19:00]tlvbuf is 001F7320 [22:19:00]SAM_PROTO_ClearQueue [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 09 00 00 [22:19:00]Write to MH i2c: E2 08 00 7A 02 80 09 00 00 00 00 00 00 EE [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]SAM_PROTO_ClearQueue done [22:19:00]KKMCreateOFDPacket [22:19:00]OFDProtocolAddRootSTLVToBuf [22:19:00]FM_MakeSignedData [22:19:00]FM_MakeSignedData [22:19:00]SAM_PROTO_SignData [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 01 02 [22:19:00]Write to MH i2c: E2 08 00 7B 02 80 0D 01 02 00 00 00 00 F6 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]wFMCommunicate request_size=255 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D3 0D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1B 01 00 35 04 06 00 35 [22:19:00]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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D3 0D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1B 01 00 35 04 06 00 35 00 00 64 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 7C 02 00 90 00 F2 [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]wFMCommunicate request_size=10 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 02 02 05 1E 54 D5 58 EF [22:19:00]Write to MH i2c: E2 0D 00 7D 02 80 0D 02 02 05 00 1E 54 D5 58 EF 00 00 91 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 03 00 7D 02 00 90 00 F3 [22:19:00]RAPDU: 90 00 [22:19:00]wFMCommunicate OK [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 0D 03 02 [22:19:00]Write to MH i2c: E2 08 00 7E 02 80 0D 03 02 00 00 00 00 FB [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0B 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 0B 00 7E 02 00 DB 50 46 D0 8B 6D 47 E9 90 00 65 [22:19:00]RAPDU: DB 50 46 D0 8B 6D 47 E9 90 00 [22:19:00]wFMCommunicate OK [22:19:00]SAM_PROTO_SignData done [22:19:00]FM_MakeSignedData done [22:19:00]CreateOFDProtocolMessage [22:19:00]wFMCommunicate request_size=4 [22:19:00]MH_SAM_APDU [22:19:00]CAPDU: 80 11 00 00 [22:19:00]Write to MH i2c: E2 08 00 7F 02 80 11 00 00 00 00 00 00 FB [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:00]Read from MH i2c: E2 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: E2 17 00 [22:19:00]MH_I2C_Read... [22:19:00]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 34 36 36 32 90 00 4F [22:19:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:19:00]wFMCommunicate OK [22:19:00]CreateOFDProtocolMessage done [22:19:00]OFDSenderStorePacket 72632 [22:19:00]StoreOFDPacket docnum=72632 [22:19:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 06 36 07 01 8F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D3 0D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1B 01 00 35 04 06 00 35 1E 54 D5 58 EF DB 50 46 D0 8B 6D 47 E9 [22:19:00]CheckFolder [22:19:00]dirname=/storage/ofd_packets [22:19:00]CheckFolder done [22:19:00]ProducePacketName [22:19:00]name=ofd_packets/00072632 [22:19:00]NVStorageSaveData ofd_packets/00072632 [22:19:00]File name is /storage/ofd_packets/00072632 [22:19:00]Write 301 bytes [22:19:00]NVStorageSaveData done [22:19:00]OFDSenderStorePacket done [22:19:00]KKMCreateOFDPacket done [22:19:00]NVStorageSaveData kkm_last_timestamp [22:19:00]File name is /storage/kkm_last_timestamp [22:19:00]Write 4 bytes [22:19:00]NVStorageSaveData done [22:19:00]ExternCall_PrintAddStr [22:19:00]wPrintStart [22:19:00]Write to MH i2c: 01 00 00 80 02 82 [22:19:00]Write i2c OK [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: 01 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: 01 07 00 [22:19:00]MH_I2C_Read... [22:19:00]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 FF 0F 97 [22:19:00]RasterBufferAndPrint [22:19:00]line Счет N : (1)952127 [22:19:00]line ИНН: 02508201610067 [22:19:00]line Контрольно-Кассовый Чек [22:19:00]line ПРОДАЖА [22:19:00]line ТРК (МРК, ГНК) : 41 [22:19:00]line Товар: 2710124500 [22:19:00]line Аи-95-К-3 [22:19:00]line 20.220 * 74.20 [22:19:00]line = 1500.32 [22:19:00]line НДС 12% НСП 1% [22:19:00]line > о реализуемом товаре [22:19:00]line ИТОГО: 1500.32 [22:19:00]line НСП 1% : 13.28 [22:19:00]line НДС 12% : 159.33 [22:19:00]line Наличными: 0.00 [22:19:00]line Безнал.: 1500.32 [22:19:00]line Место: АЗС № 113 "Партнер Нефть" [22:19:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:19:00]line СНО: Общий режим [22:19:00]line Чек 160 28.10.2024 22:18 [22:19:00]line Смена: 554 ФФД: 1.0 [22:19:00]line ЗНМ: 0300000087 [22:19:00]line РНМ: 0000000000091644 [22:19:00]line Версия ККМ: 001 [22:19:00]line Платежная система: O! деньги [22:19:00]line ФМ: 0000000000874662 [22:19:00]line ФД: 72632 [22:19:00]line ФПД: 58404388559087 [22:19:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T221859&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72632&fm=58404388559087&tin=02508201610067®Number=0000000000091644&sum=150032 [22:19:01]written 0, free lines is 4095 [22:19:01]OFD Sender: Processing packet 72632 [packets to send 277, broken 276] [22:19:01]ProducePacketName [22:19:01]name=ofd_packets/00072632 [22:19:01]OFD Sender: To server: pG, [22:19:01]CommunicateWithHost lk.salyk.kg:30040 [22:19:01]ConnectInit lk.salyk.kg [22:19:01]Write to MH i2c: 01 00 00 AA 02 AC [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: 01 07 00 AA 02 00 00 00 00 00 E2 0C A1 [22:19:01]RasterBufferAndPrint [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]line [22:19:01]written 0, free lines is 3303 [22:19:01]MH_Cut [22:19:01]Write to MH i2c: D1 01 00 B1 02 01 85 [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 01 00 [22:19:01]MH_I2C_Read... [22:19:01]Read from MH i2c: D1 01 00 B1 02 00 84 [22:19:01]Write to MH i2c: 01 00 00 B2 02 B4 [22:19:01]Write i2c OK [22:19:01]MH_I2C_Read... [22:19:02]*** Cut start [22:19:02]*** Partial cut [22:19:02]*** CUTSNS_PIN = 1 [22:19:02]*** CUTSNS_PIN = 0 [22:19:02]*** Brake cut motor [22:19:03]Read from MH i2c: 01 [22:19:03]MH_I2C_Read... [22:19:03]*** Stop cut motor [22:19:03]*** Cut end [22:19:03]Read from MH i2c: 01 07 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 FF 0F C9 [22:19:03]process_action close_receipt done [22:19:03]requested_data is exist [22:19:03]produce_requested_data [22:19:03]requested_item fm.sn is exist - process it [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 11 00 00 [22:19:03]Write to MH i2c: E2 08 00 B3 02 80 11 00 00 00 00 00 00 2F [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 17 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 17 00 B3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 83 [22:19:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:19:03]wFMCommunicate OK [22:19:03]requested_item fd.num is exist - process it [22:19:03]SAM_PROTO_GetFieldsCounters [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 13 00 00 [22:19:03]Write to MH i2c: E2 08 00 B4 02 80 13 00 00 00 00 00 00 32 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 62 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 62 00 B4 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [22:19:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B8 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:19:03]wFMCommunicate OK [22:19:03]SAM_PROTO_GetFieldsCounters done [22:19:03]requested_item shift.num is exist - process it [22:19:03]requested_item shift.opened is exist - process it [22:19:03]req_shift_opened [22:19:03]FM_GetShiftState [22:19:03]SAM_PROTO_GetShiftState [22:19:03]wFMCommunicate request_size=4 [22:19:03]MH_SAM_APDU [22:19:03]CAPDU: 80 13 01 00 [22:19:03]Write to MH i2c: E2 08 00 B5 02 80 13 01 00 00 00 00 00 34 [22:19:03]Write i2c OK [22:19:03]MH_I2C_Read... [22:19:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:19:03]Read from MH i2c: E2 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 0E 00 [22:19:03]MH_I2C_Read... [22:19:03]Read from MH i2c: E2 0E 00 B5 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9C [22:19:03]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:19:03]wFMCommunicate OK [22:19:03]SAM_PROTO_GetShiftState done [22:19:03]FM_GetShiftState done [22:19:03]req_shift_opened done [22:19:03]requested_item shift.open_date is exist - process it [22:19:03]req_shift_open_date [22:19:03]req_shift_open_date done [22:19:03]produce_requested_data done [22:19:03]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72632,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [22:19:03]process_action_free close_receipt [22:19:03]json_value_free [22:19:03]json_value_free done [22:19:03]process_json_proto returns [22:19:03]Send response to host [22:19:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72632,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [22:19:03]free response buf [22:19:03]execute_script done [22:19:03]execute_script returns [22:19:03]free content buf [22:19:03]Sock 10.Close socket [22:19:03]Sock 10.Thread stoped [22:19:04]recv_with_timeout no data received [22:19:06]ConnectInit Can't take IP for lk.salyk.kg [22:19:06]CommunicateWithHost connect error [22:19:06]CommunicateWithHost err = -1 [22:19:06]OFD Sender: Server communicate error [22:19:11]OFD Sender: Processing packet 72632 [packets to send 277, broken 276] [22:19:11]ProducePacketName [22:19:11]name=ofd_packets/00072632 [22:19:11]OFD Sender: To server: pG, [22:19:11]CommunicateWithHost lk.salyk.kg:30040 [22:19:11]ConnectInit lk.salyk.kg [22:19:14]Connected sock=10 [22:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 06 36 07 01 8F 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D3 0D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B8 1B 01 00 35 04 06 00 35 1E 54 D5 58 EF DB 50 46 D0 8B 6D 47 E9 [22:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6C 1E 47 00 17 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 34 36 36 32 10 04 04 00 B8 1B 01 00 F4 03 04 00 9D B8 1F 67 B6 04 01 00 00 5D 58 17 8B CB 96 AF 36 [22:19:14]CommunicateWithHost err = 0 [22:19:14]CheckOFDResponse [22:19:14]1017 (14) - 77093643461234 [22:19:14]1041 (16) - 0000000000874662 [22:19:14]1040 (4) - 72632 [22:19:14]1012 (4) - 28.10.2024 16:15 [22:19:14]1206 (1) - 0 [22:19:14]OFD Sender: Remove packet 72632 [22:19:14]ProducePacketName [22:19:14]name=ofd_packets/00072632 [22:19:14]NVStorageDeleteData [22:19:15]OFD Sender: No OFD packet to send [22:19:20]OFD Sender: No OFD packet to send [22:19:24]recv_with_timeout no data received [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:24]recv_with_timeout no data received [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:35]recv_with_timeout no data received [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:46]recv_with_timeout no data received [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:03]recv_with_timeout no data received [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:20]recv_with_timeout no data received [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:31]recv_with_timeout no data received [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:44]recv_with_timeout no data received [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:01]recv_with_timeout no data received [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]recv_with_timeout no data received [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:42]recv_with_timeout no data received [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:00]recv_with_timeout no data received [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:41]recv_with_timeout no data received [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:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:28:59]recv_with_timeout no data received [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:54]recv_with_timeout no data received [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:20]recv_with_timeout no data received [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:53]recv_with_timeout no data received [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]recv_with_timeout no data received [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:38]recv_with_timeout no data received [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:02]recv_with_timeout no data received [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:01]recv_with_timeout no data received [22:33:01]OFD Sender: No OFD packet to send [22:33:06]OFD Sender: No OFD packet to send [22:33:11]OFD Sender: No OFD packet to send [22:33:16]OFD Sender: No OFD packet to send [22:33:21]OFD Sender: No OFD packet to send [22:33:26]OFD Sender: No OFD packet to send [22:33:31]OFD Sender: No OFD packet to send [22:33:36]OFD Sender: No OFD packet to send [22:33:41]OFD Sender: No OFD packet to send [22:33:42]accept exits with 9 [22:33:42]New connection [22:33:42]New thread 3066785124 created [22:33:42]Thread 3066928484 joined [22:33:42]Waiting for new connection... [22:33:42] Sock 9.Parse request [22:33:42]Sock 9.Check first char [22:33:42]Sock 9.First char is OK [22:33:42]request: POST /json_proto HTTP/1.0 [22:33:42]Method: POST [22:33:42]URL: /json_proto [22:33:42]Method is POST - this is cgi request [22:33:42]url: /json_proto [22:33:42]query_string will be loaded in cgi processing [22:33:42]execute_cgi json_proto POST (null) [22:33:42]execute_cgi path=json_proto method=POST [22:33:42]POST find Content-Length [22:33:42]Host: 172.17.43.195:8080 [22:33:42]Content-Length: 800 [22:33:42]Content-Type: application/json [22:33:42] [22:33:42]POST finish read [22:33:42]Found Content-Length = 800 [22:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:42]execute_script... [22:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:33:42]POST & json_proto [22:33:42]process_json_proto [22:33:42]json parsed OK: [22:33:42]protocol is kg_v1.0 [22:33:42]action value=close_receipt [22:33:42]process_action close_receipt [22:33:42]cmd_close_receipt [22:33:42]MH_GetDate [22:33:42]Write to MH i2c: F0 00 00 B6 02 A7 [22:33:42]Write i2c OK [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 09 00 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: F0 09 00 B6 02 00 47 11 20 67 74 2C AD 66 42 [22:33:42]GetLastDocTimeStamp 1730153939 [22:33:42]current date 1730154823 [22:33:42]FM_GetShiftState [22:33:42]SAM_PROTO_GetShiftState [22:33:42]wFMCommunicate request_size=4 [22:33:42]MH_SAM_APDU [22:33:42]CAPDU: 80 13 01 00 [22:33:42]Write to MH i2c: E2 08 00 B7 02 80 13 01 00 00 00 00 00 36 [22:33:42]Write i2c OK [22:33:42]MH_I2C_Read... [22:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:42]Read from MH i2c: E2 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: E2 0E 00 [22:33:42]MH_I2C_Read... [22:33:42]Read from MH i2c: E2 0E 00 B7 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 9E [22:33:42]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:33:42]wFMCommunicate OK [22:33:42]SAM_PROTO_GetShiftState done [22:33:42]FM_GetShiftState done [22:33:42]opened in 1730074113 [22:33:42]opened+sec_in_day 1730160513 [22:33:42]quantity*price = 50041 [22:33:42]sum+1 = 50042 [22:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 161 28.10.2024 22:33 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72633 ФПД: 21001212956532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223343&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72633&fm=21001212956532&tin=02508201610067®Number=0000000000091644&sum=50041 [22:33:44]StoreToDocumentArchive [22:33:44]shift 554 fd 72633 [22:33:44]save to /storage/0554/doc_00072633 [22:33:44]save last doc name /storage/0554/doc_00072633 to /storage/kkm_last_doc_name [22:33:44]save OK [22:33:44]Clear old archive folders... [22:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:33:44]tlvbuf is 00282060 [22:33:44]SAM_PROTO_ClearQueue [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 09 00 00 [22:33:44]Write to MH i2c: E2 08 00 C4 02 80 09 00 00 00 00 00 00 38 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [22:33:44]RAPDU: 90 00 [22:33:44]wFMCommunicate OK [22:33:44]SAM_PROTO_ClearQueue done [22:33:44]KKMCreateOFDPacket [22:33:44]OFDProtocolAddRootSTLVToBuf [22:33:44]FM_MakeSignedData [22:33:44]FM_MakeSignedData [22:33:44]SAM_PROTO_SignData [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 0D 01 02 [22:33:44]Write to MH i2c: E2 08 00 C5 02 80 0D 01 02 00 00 00 00 40 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 C5 02 00 90 00 3B [22:33:44]RAPDU: 90 00 [22:33:44]wFMCommunicate OK [22:33:44]wFMCommunicate request_size=255 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 A1 00 00 00 F4 03 04 00 47 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1B 01 00 35 04 06 00 13 [22:33:44]Write to MH i2c: E2 02 01 C6 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 A1 00 00 00 F4 03 04 00 47 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1B 01 00 35 04 06 00 13 00 00 B5 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 C6 02 00 90 00 3C [22:33:44]RAPDU: 90 00 [22:33:44]wFMCommunicate OK [22:33:44]wFMCommunicate request_size=10 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 0D 02 02 05 19 B9 D6 8F 74 [22:33:44]Write to MH i2c: E2 0D 00 C7 02 80 0D 02 02 05 00 19 B9 D6 8F 74 00 00 F8 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 03 00 C7 02 00 90 00 3D [22:33:44]RAPDU: 90 00 [22:33:44]wFMCommunicate OK [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 0D 03 02 [22:33:44]Write to MH i2c: E2 08 00 C8 02 80 0D 03 02 00 00 00 00 45 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0B 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 0B 00 C8 02 00 0C 9A 72 B9 96 4C 4A FE 90 00 41 [22:33:44]RAPDU: 0C 9A 72 B9 96 4C 4A FE 90 00 [22:33:44]wFMCommunicate OK [22:33:44]SAM_PROTO_SignData done [22:33:44]FM_MakeSignedData done [22:33:44]CreateOFDProtocolMessage [22:33:44]wFMCommunicate request_size=4 [22:33:44]MH_SAM_APDU [22:33:44]CAPDU: 80 11 00 00 [22:33:44]Write to MH i2c: E2 08 00 C9 02 80 11 00 00 00 00 00 00 45 [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:44]Read from MH i2c: E2 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 17 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: E2 17 00 C9 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 99 [22:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:33:44]wFMCommunicate OK [22:33:44]CreateOFDProtocolMessage done [22:33:44]OFDSenderStorePacket 72633 [22:33:44]StoreOFDPacket docnum=72633 [22:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 38 FD 07 01 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 A1 00 00 00 F4 03 04 00 47 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1B 01 00 35 04 06 00 13 19 B9 D6 8F 74 0C 9A 72 B9 96 4C 4A FE [22:33:44]CheckFolder [22:33:44]dirname=/storage/ofd_packets [22:33:44]CheckFolder done [22:33:44]ProducePacketName [22:33:44]name=ofd_packets/00072633 [22:33:44]NVStorageSaveData ofd_packets/00072633 [22:33:44]File name is /storage/ofd_packets/00072633 [22:33:44]Write 301 bytes [22:33:44]NVStorageSaveData done [22:33:44]OFDSenderStorePacket done [22:33:44]KKMCreateOFDPacket done [22:33:44]NVStorageSaveData kkm_last_timestamp [22:33:44]File name is /storage/kkm_last_timestamp [22:33:44]Write 4 bytes [22:33:44]NVStorageSaveData done [22:33:44]ExternCall_PrintAddStr [22:33:44]wPrintStart [22:33:44]Write to MH i2c: 01 00 00 CA 02 CC [22:33:44]Write i2c OK [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 07 00 [22:33:44]MH_I2C_Read... [22:33:44]Read from MH i2c: 01 07 00 CA 02 00 00 00 00 00 FF 0F E1 [22:33:44]RasterBufferAndPrint [22:33:44]line Счет N : (1)952128 [22:33:44]line ИНН: 02508201610067 [22:33:44]line Контрольно-Кассовый Чек [22:33:44]line ПРОДАЖА [22:33:44]line ТРК (МРК, ГНК) : 53 [22:33:44]line Товар: 2710124130 [22:33:44]line Аи-92-К-5 [22:33:44]line 7.480 * 66.90 [22:33:44]line = 500.41 [22:33:44]line НДС 12% НСП 1% [22:33:44]line > о реализуемом товаре [22:33:44]line ИТОГО: 500.41 [22:33:44]line НСП 1% : 4.43 [22:33:44]line НДС 12% : 53.14 [22:33:44]line Наличными: 0.00 [22:33:44]line Безнал.: 500.41 [22:33:44]line Место: АЗС № 113 "Партнер Нефть" [22:33:44]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:33:44]line СНО: Общий режим [22:33:44]line Чек 161 28.10.2024 22:33 [22:33:44]line Смена: 554 ФФД: 1.0 [22:33:44]line ЗНМ: 0300000087 [22:33:44]line РНМ: 0000000000091644 [22:33:44]line Версия ККМ: 001 [22:33:44]line Платежная система: O! деньги [22:33:44]line ФМ: 0000000000874662 [22:33:44]line ФД: 72633 [22:33:44]line ФПД: 21001212956532 [22:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223343&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72633&fm=21001212956532&tin=02508201610067®Number=0000000000091644&sum=50041 [22:33:44]OFD Sender: Processing packet 72633 [packets to send 277, broken 276] [22:33:45]ProducePacketName [22:33:45]name=ofd_packets/00072633 [22:33:45]OFD Sender: To server: pG, [22:33:45]CommunicateWithHost lk.salyk.kg:30040 [22:33:45]ConnectInit lk.salyk.kg [22:33:45]written 0, free lines is 4095 [22:33:45]Write to MH i2c: 01 00 00 F4 02 F6 [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 07 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: 01 07 00 F4 02 00 00 00 00 00 DE 0C E7 [22:33:45]RasterBufferAndPrint [22:33:45]line [22:33:45]line [22:33:45]line [22:33:45]line [22:33:45]line [22:33:45]written 0, free lines is 3300 [22:33:45]MH_Cut [22:33:45]Write to MH i2c: D1 01 00 FB 02 01 CF [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: D1 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: D1 01 00 [22:33:45]MH_I2C_Read... [22:33:45]Read from MH i2c: D1 01 00 FB 02 00 CE [22:33:45]Write to MH i2c: 01 00 00 FC 02 FE [22:33:45]Write i2c OK [22:33:45]MH_I2C_Read... [22:33:46]*** Cut start [22:33:46]*** Partial cut [22:33:46]*** CUTSNS_PIN = 1 [22:33:46]*** CUTSNS_PIN = 0 [22:33:46]*** Brake cut motor [22:33:46]Read from MH i2c: 01 [22:33:46]MH_I2C_Read... [22:33:46]*** Stop cut motor [22:33:46]*** Cut end [22:33:46]Read from MH i2c: 01 07 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: 01 07 00 FC 02 00 00 00 00 00 FF 0F 13 [22:33:46]process_action close_receipt done [22:33:46]requested_data is exist [22:33:46]produce_requested_data [22:33:46]requested_item fm.sn is exist - process it [22:33:46]wFMCommunicate request_size=4 [22:33:46]MH_SAM_APDU [22:33:46]CAPDU: 80 11 00 00 [22:33:46]Write to MH i2c: E2 08 00 FD 02 80 11 00 00 00 00 00 00 79 [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:33:46]Read from MH i2c: E2 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 17 00 [22:33:46]MH_I2C_Read... [22:33:46]Read from MH i2c: E2 17 00 FD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 CD [22:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:33:46]wFMCommunicate OK [22:33:46]requested_item fd.num is exist - process it [22:33:46]SAM_PROTO_GetFieldsCounters [22:33:46]wFMCommunicate request_size=4 [22:33:46]MH_SAM_APDU [22:33:46]CAPDU: 80 13 00 00 [22:33:46]Write to MH i2c: E2 08 00 FE 02 80 13 00 00 00 00 00 00 7C [22:33:46]Write i2c OK [22:33:46]MH_I2C_Read... [22:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:33:47]Read from MH i2c: E2 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 62 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 62 00 FE 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 B9 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:33:47]wFMCommunicate OK [22:33:47]SAM_PROTO_GetFieldsCounters done [22:33:47]requested_item shift.num is exist - process it [22:33:47]requested_item shift.opened is exist - process it [22:33:47]req_shift_opened [22:33:47]FM_GetShiftState [22:33:47]SAM_PROTO_GetShiftState [22:33:47]wFMCommunicate request_size=4 [22:33:47]MH_SAM_APDU [22:33:47]CAPDU: 80 13 01 00 [22:33:47]Write to MH i2c: E2 08 00 FF 02 80 13 01 00 00 00 00 00 7E [22:33:47]Write i2c OK [22:33:47]MH_I2C_Read... [22:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:33:47]Read from MH i2c: E2 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 0E 00 [22:33:47]MH_I2C_Read... [22:33:47]Read from MH i2c: E2 0E 00 FF 02 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E6 [22:33:47]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:33:47]wFMCommunicate OK [22:33:47]SAM_PROTO_GetShiftState done [22:33:47]FM_GetShiftState done [22:33:47]req_shift_opened done [22:33:47]requested_item shift.open_date is exist - process it [22:33:47]req_shift_open_date [22:33:47]req_shift_open_date done [22:33:47]produce_requested_data done [22:33:47]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72633,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [22:33:47]process_action_free close_receipt [22:33:47]json_value_free [22:33:47]json_value_free done [22:33:47]process_json_proto returns [22:33:47]Send response to host [22:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72633,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [22:33:47]free response buf [22:33:47]execute_script done [22:33:47]execute_script returns [22:33:47]free content buf [22:33:47]Sock 9.Close socket [22:33:47]Sock 9.Thread stoped [22:33:47]Connected sock=7 [22: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 34 36 36 32 0F 01 00 00 38 FD 07 01 2B 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 A1 00 00 00 F4 03 04 00 47 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1B 01 00 35 04 06 00 13 19 B9 D6 8F 74 0C 9A 72 B9 96 4C 4A FE [22:33:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 93 DB 47 00 ED 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 B9 1B 01 00 F4 03 04 00 07 BC 1F 67 B6 04 01 00 00 7A A7 B9 B6 78 2E A6 23 [22:33:48]CommunicateWithHost err = 0 [22:33:48]CheckOFDResponse [22:33:48]1017 (14) - 77093643461234 [22:33:48]1041 (16) - 0000000000874662 [22:33:48]1040 (4) - 72633 [22:33:48]1012 (4) - 28.10.2024 16:29 [22:33:48]1206 (1) - 0 [22:33:48]OFD Sender: Remove packet 72633 [22:33:48]ProducePacketName [22:33:48]name=ofd_packets/00072633 [22:33:48]NVStorageDeleteData [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:07]accept exits with 10 [22:34:07]New connection [22:34:07]New thread 3066928484 created [22:34:07]Thread 3066785124 joined [22:34:07]Waiting for new connection... [22:34:07] Sock 10.Parse request [22:34:07]Sock 10.Check first char [22:34:07]Sock 10.First char is OK [22:34:07]request: POST /json_proto HTTP/1.0 [22:34:07]Method: POST [22:34:07]URL: /json_proto [22:34:07]Method is POST - this is cgi request [22:34:07]url: /json_proto [22:34:07]query_string will be loaded in cgi processing [22:34:07]execute_cgi json_proto POST (null) [22:34:07]execute_cgi path=json_proto method=POST [22:34:07]POST find Content-Length [22:34:07]Host: 172.17.43.195:8080 [22:34:07]Content-Length: 677 [22:34:07]Content-Type: application/json [22:34:07] [22:34:07]POST finish read [22:34:07]Found Content-Length = 677 [22:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:07]execute_script... [22:34: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)952129", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:07]POST & json_proto [22:34:07]process_json_proto [22:34:07]json parsed OK: [22:34:07]protocol is kg_v1.0 [22:34:07]action value=close_receipt [22:34:07]process_action close_receipt [22:34:07]cmd_close_receipt [22:34:07]MH_GetDate [22:34:07]Write to MH i2c: F0 00 00 00 03 F2 [22:34:07]Write i2c OK [22:34:07]MH_I2C_Read... [22:34:07]Read from MH i2c: F0 [22:34:07]MH_I2C_Read... [22:34:07]Read from MH i2c: F0 09 00 [22:34:07]MH_I2C_Read... [22:34:07]Read from MH i2c: F0 09 00 00 03 00 5F 11 20 67 74 2C AD 66 A5 [22:34:07]GetLastDocTimeStamp 1730154823 [22:34:07]current date 1730154847 [22:34:07]FM_GetShiftState [22:34:07]SAM_PROTO_GetShiftState [22:34:07]wFMCommunicate request_size=4 [22:34:07]MH_SAM_APDU [22:34:07]CAPDU: 80 13 01 00 [22:34:07]Write to MH i2c: E2 08 00 01 03 80 13 01 00 00 00 00 00 81 [22:34:07]Write i2c OK [22:34:07]MH_I2C_Read... [22:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:07]Read from MH i2c: E2 [22:34:07]MH_I2C_Read... [22:34:07]Read from MH i2c: E2 0E 00 [22:34:07]MH_I2C_Read... [22:34:07]Read from MH i2c: E2 0E 00 01 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 E9 [22:34:07]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:34:07]wFMCommunicate OK [22:34:07]SAM_PROTO_GetShiftState done [22:34:07]FM_GetShiftState done [22:34:07]opened in 1730074113 [22:34:07]opened+sec_in_day 1730160513 [22:34:07]quantity*price = 50010 [22:34:07]sum+1 = 50012 [22:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 162 28.10.2024 22:34 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72634 ФПД: 215410269534088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223407&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72634&fm=215410269534088&tin=02508201610067®Number=0000000000091644&sum=50000 [22:34:08]StoreToDocumentArchive [22:34:08]shift 554 fd 72634 [22:34:08]save to /storage/0554/doc_00072634 [22:34:08]save last doc name /storage/0554/doc_00072634 to /storage/kkm_last_doc_name [22:34:08]save OK [22:34:08]Clear old archive folders... [22:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:08]tlvbuf is 001F9C80 [22:34:08]SAM_PROTO_ClearQueue [22:34:08]wFMCommunicate request_size=4 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 09 00 00 [22:34:08]Write to MH i2c: E2 08 00 0E 03 80 09 00 00 00 00 00 00 83 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 0E 03 00 90 00 85 [22:34:08]RAPDU: 90 00 [22:34:08]wFMCommunicate OK [22:34:08]SAM_PROTO_ClearQueue done [22:34:08]KKMCreateOFDPacket [22:34:08]OFDProtocolAddRootSTLVToBuf [22:34:08]FM_MakeSignedData [22:34:08]FM_MakeSignedData [22:34:08]SAM_PROTO_SignData [22:34:08]wFMCommunicate request_size=4 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 0D 01 02 [22:34:08]Write to MH i2c: E2 08 00 0F 03 80 0D 01 02 00 00 00 00 8B [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 0F 03 00 90 00 86 [22:34:08]RAPDU: 90 00 [22:34:08]wFMCommunicate OK [22:34:08]wFMCommunicate request_size=255 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5F 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1B 01 00 35 04 06 00 C3 [22:34:08]Write to MH i2c: E2 02 01 10 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5F 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1B 01 00 35 04 06 00 C3 00 00 4E [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]OFD Sender: No OFD packet to send [22:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 10 03 00 90 00 87 [22:34:08]RAPDU: 90 00 [22:34:08]wFMCommunicate OK [22:34:08]wFMCommunicate request_size=10 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 0D 02 02 05 EA 1C 98 B7 88 [22:34:08]Write to MH i2c: E2 0D 00 11 03 80 0D 02 02 05 00 EA 1C 98 B7 88 00 00 75 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 03 00 11 03 00 90 00 88 [22:34:08]RAPDU: 90 00 [22:34:08]wFMCommunicate OK [22:34:08]wFMCommunicate request_size=4 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 0D 03 02 [22:34:08]Write to MH i2c: E2 08 00 12 03 80 0D 03 02 00 00 00 00 90 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 0B 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 0B 00 12 03 00 94 2F C1 0F B5 F1 32 55 90 00 51 [22:34:08]RAPDU: 94 2F C1 0F B5 F1 32 55 90 00 [22:34:08]wFMCommunicate OK [22:34:08]SAM_PROTO_SignData done [22:34:08]FM_MakeSignedData done [22:34:08]CreateOFDProtocolMessage [22:34:08]wFMCommunicate request_size=4 [22:34:08]MH_SAM_APDU [22:34:08]CAPDU: 80 11 00 00 [22:34:08]Write to MH i2c: E2 08 00 13 03 80 11 00 00 00 00 00 00 90 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:08]Read from MH i2c: E2 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 17 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: E2 17 00 13 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E4 [22:34:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:34:08]wFMCommunicate OK [22:34:08]CreateOFDProtocolMessage done [22:34:08]OFDSenderStorePacket 72634 [22:34:08]StoreOFDPacket docnum=72634 [22:34:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 88 1D 07 01 7B DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5F 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1B 01 00 35 04 06 00 C3 EA 1C 98 B7 88 94 2F C1 0F B5 F1 32 55 [22:34:08]CheckFolder [22:34:08]dirname=/storage/ofd_packets [22:34:08]CheckFolder done [22:34:08]ProducePacketName [22:34:08]name=ofd_packets/00072634 [22:34:08]NVStorageSaveData ofd_packets/00072634 [22:34:08]File name is /storage/ofd_packets/00072634 [22:34:08]Write 301 bytes [22:34:08]NVStorageSaveData done [22:34:08]OFDSenderStorePacket done [22:34:08]KKMCreateOFDPacket done [22:34:08]NVStorageSaveData kkm_last_timestamp [22:34:08]File name is /storage/kkm_last_timestamp [22:34:08]Write 4 bytes [22:34:08]NVStorageSaveData done [22:34:08]ExternCall_PrintAddStr [22:34:08]wPrintStart [22:34:08]Write to MH i2c: 01 00 00 14 03 17 [22:34:08]Write i2c OK [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: 01 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: 01 07 00 [22:34:08]MH_I2C_Read... [22:34:08]Read from MH i2c: 01 07 00 14 03 00 00 00 00 00 FF 0F 2C [22:34:08]RasterBufferAndPrint [22:34:08]line Счет N : (1)952129 [22:34:08]line ИНН: 02508201610067 [22:34:08]line Контрольно-Кассовый Чек [22:34:08]line ПРОДАЖА [22:34:08]line ТРК (МРК, ГНК) : 31 [22:34:08]line Товар: 2710124500 [22:34:08]line Аи-95-К-3 [22:34:08]line 6.740 * 74.20 [22:34:08]line = 500.11 [22:34:08]line НДС 12% НСП 1% [22:34:08]line > о реализуемом товаре [22:34:08]line ОКРУГЛЕНИЕ: -0.11 [22:34:08]line ИТОГО: 500.00 [22:34:08]line Внесено: 500.00 [22:34:08]line СДАЧА: 0.00 [22:34:08]line НСП 1% : 4.43 [22:34:08]line НДС 12% : 53.11 [22:34:08]line Наличными: 500.00 [22:34:08]line Безнал.: 0.00 [22:34:08]line Место: АЗС № 113 "Партнер Нефть" [22:34:08]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:34:08]line СНО: Общий режим [22:34:08]line Чек 162 28.10.2024 22:34 [22:34:08]line Смена: 554 ФФД: 1.0 [22:34:08]line ЗНМ: 0300000087 [22:34:08]line РНМ: 0000000000091644 [22:34:08]line Версия ККМ: 001 [22:34:08]line ФМ: 0000000000874662 [22:34:08]line ФД: 72634 [22:34:08]line ФПД: 215410269534088 [22:34:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T223407&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72634&fm=215410269534088&tin=02508201610067®Number=0000000000091644&sum=50000 [22:34:08]written 0, free lines is 4095 [22:34:08]OFD Sender: Processing packet 72634 [packets to send 277, broken 276] [22:34:08]ProducePacketName [22:34:08]name=ofd_packets/00072634 [22:34:08]OFD Sender: To server: pG, [22:34:08]CommunicateWithHost lk.salyk.kg:30040 [22:34:08]ConnectInit lk.salyk.kg [22:34:09]Write to MH i2c: 01 00 00 3F 03 42 [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 07 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: 01 07 00 3F 03 00 00 00 00 00 D3 0C 28 [22:34:09]RasterBufferAndPrint [22:34:09]line [22:34:09]line [22:34:09]line [22:34:09]line [22:34:09]line [22:34:09]written 0, free lines is 3290 [22:34:09]MH_Cut [22:34:09]Write to MH i2c: D1 01 00 46 03 01 1B [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: D1 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: D1 01 00 [22:34:09]MH_I2C_Read... [22:34:09]Read from MH i2c: D1 01 00 46 03 00 1A [22:34:09]Write to MH i2c: 01 00 00 47 03 4A [22:34:09]Write i2c OK [22:34:09]MH_I2C_Read... [22:34:10]*** Cut start [22:34:10]*** Partial cut [22:34:10]*** CUTSNS_PIN = 1 [22:34:10]*** CUTSNS_PIN = 0 [22:34:10]*** Brake cut motor [22:34:10]Read from MH i2c: 01 [22:34:10]MH_I2C_Read... [22:34:10]*** Stop cut motor [22:34:10]*** Cut end [22:34:10]Read from MH i2c: 01 07 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: 01 07 00 47 03 00 00 00 00 00 FF 0F 5F [22:34:10]process_action close_receipt done [22:34:10]requested_data is exist [22:34:10]produce_requested_data [22:34:10]requested_item fm.sn is exist - process it [22:34:10]wFMCommunicate request_size=4 [22:34:10]MH_SAM_APDU [22:34:10]CAPDU: 80 11 00 00 [22:34:10]Write to MH i2c: E2 08 00 48 03 80 11 00 00 00 00 00 00 C5 [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:10]Read from MH i2c: E2 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 17 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 17 00 48 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 19 [22:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:34:10]wFMCommunicate OK [22:34:10]requested_item fd.num is exist - process it [22:34:10]SAM_PROTO_GetFieldsCounters [22:34:10]wFMCommunicate request_size=4 [22:34:10]MH_SAM_APDU [22:34:10]CAPDU: 80 13 00 00 [22:34:10]Write to MH i2c: E2 08 00 49 03 80 13 00 00 00 00 00 00 C8 [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:10]Read from MH i2c: E2 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 62 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 62 00 49 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1B 01 00 0E 04 04 00 2A 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 D1 [22:34:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BA 1B 01 00 0E 04 04 00 2A 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 [22:34:10]wFMCommunicate OK [22:34:10]SAM_PROTO_GetFieldsCounters done [22:34:10]requested_item shift.num is exist - process it [22:34:10]requested_item shift.opened is exist - process it [22:34:10]req_shift_opened [22:34:10]FM_GetShiftState [22:34:10]SAM_PROTO_GetShiftState [22:34:10]wFMCommunicate request_size=4 [22:34:10]MH_SAM_APDU [22:34:10]CAPDU: 80 13 01 00 [22:34:10]Write to MH i2c: E2 08 00 4A 03 80 13 01 00 00 00 00 00 CA [22:34:10]Write i2c OK [22:34:10]MH_I2C_Read... [22:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:10]Read from MH i2c: E2 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 0E 00 [22:34:10]MH_I2C_Read... [22:34:10]Read from MH i2c: E2 0E 00 4A 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 32 [22:34:10]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:34:10]wFMCommunicate OK [22:34:10]SAM_PROTO_GetShiftState done [22:34:10]FM_GetShiftState done [22:34:10]req_shift_opened done [22:34:10]requested_item shift.open_date is exist - process it [22:34:10]req_shift_open_date [22:34:10]req_shift_open_date done [22:34:10]produce_requested_data done [22:34:10]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72634,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [22:34:10]process_action_free close_receipt [22:34:10]json_value_free [22:34:10]json_value_free done [22:34:10]process_json_proto returns [22:34:10]Send response to host [22:34:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72634,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [22:34:10]free response buf [22:34:10]execute_script done [22:34:10]execute_script returns [22:34:10]free content buf [22:34:10]Sock 10.Close socket [22:34:10]Sock 10.Thread stoped [22:34:13]Connected sock=11 [22:34:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 88 1D 07 01 7B DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 5F 11 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1B 01 00 35 04 06 00 C3 EA 1C 98 B7 88 94 2F C1 0F B5 F1 32 55 [22:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7B 82 47 00 D4 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BA 1B 01 00 F4 03 04 00 21 BC 1F 67 B6 04 01 00 00 90 26 70 B8 28 17 BE D5 [22:34:13]CommunicateWithHost err = 0 [22:34:13]CheckOFDResponse [22:34:13]1017 (14) - 77093643461234 [22:34:13]1041 (16) - 0000000000874662 [22:34:13]1040 (4) - 72634 [22:34:13]1012 (4) - 28.10.2024 16:30 [22:34:13]1206 (1) - 0 [22:34:13]OFD Sender: Remove packet 72634 [22:34:13]ProducePacketName [22:34:13]name=ofd_packets/00072634 [22:34:13]NVStorageDeleteData [22:34:14]OFD Sender: No OFD packet to send [22:34:19]OFD Sender: No OFD packet to send [22:34:24]OFD Sender: No OFD packet to send [22:34:29]OFD Sender: No OFD packet to send [22:34:34]OFD Sender: No OFD packet to send [22:34:39]OFD Sender: No OFD packet to send [22:34:44]OFD Sender: No OFD packet to send [22:34:49]OFD Sender: No OFD packet to send [22:34:54]OFD Sender: No OFD packet to send [22:34:59]OFD Sender: No OFD packet to send [22:35:04]OFD Sender: No OFD packet to send [22:35:09]OFD Sender: No OFD packet to send [22:35:14]OFD Sender: No OFD packet to send [22:35:19]OFD Sender: No OFD packet to send [22:35:24]OFD Sender: No OFD packet to send [22:35:29]OFD Sender: No OFD packet to send [22:35:34]OFD Sender: No OFD packet to send [22:35:39]OFD Sender: No OFD packet to send [22:35:44]OFD Sender: No OFD packet to send [22:35:49]OFD Sender: No OFD packet to send [22:35:54]OFD Sender: No OFD packet to send [22:35:54]recv_with_timeout no data received [22:35:59]OFD Sender: No OFD packet to send [22:36:04]OFD Sender: No OFD packet to send [22:36:09]OFD Sender: No OFD packet to send [22:36:14]OFD Sender: No OFD packet to send [22:36:19]OFD Sender: No OFD packet to send [22:36:24]OFD Sender: No OFD packet to send [22:36:29]OFD Sender: No OFD packet to send [22:36:34]OFD Sender: No OFD packet to send [22:36:39]OFD Sender: No OFD packet to send [22:36:44]OFD Sender: No OFD packet to send [22:36:49]OFD Sender: No OFD packet to send [22:36:54]recv_with_timeout no data received [22:36:54]OFD Sender: No OFD packet to send [22:36:59]OFD Sender: No OFD packet to send [22:37:04]OFD Sender: No OFD packet to send [22:37:09]OFD Sender: No OFD packet to send [22:37:14]OFD Sender: No OFD packet to send [22:37:19]OFD Sender: No OFD packet to send [22:37:24]recv_with_timeout no data received [22:37:24]OFD Sender: No OFD packet to send [22:37:29]OFD Sender: No OFD packet to send [22:37:34]OFD Sender: No OFD packet to send [22:37:39]OFD Sender: No OFD packet to send [22:37:44]OFD Sender: No OFD packet to send [22:37:49]OFD Sender: No OFD packet to send [22:37:53]recv_with_timeout no data received [22:37:54]OFD Sender: No OFD packet to send [22:37:59]OFD Sender: No OFD packet to send [22:38:04]OFD Sender: No OFD packet to send [22:38:09]OFD Sender: No OFD packet to send [22:38:14]OFD Sender: No OFD packet to send [22:38:19]OFD Sender: No OFD packet to send [22:38:24]OFD Sender: No OFD packet to send [22:38:29]OFD Sender: No OFD packet to send [22:38:34]OFD Sender: No OFD packet to send [22:38:39]OFD Sender: No OFD packet to send [22:38:44]OFD Sender: No OFD packet to send [22:38:49]OFD Sender: No OFD packet to send [22:38:54]OFD Sender: No OFD packet to send [22:38:59]OFD Sender: No OFD packet to send [22:39:04]OFD Sender: No OFD packet to send [22:39:09]OFD Sender: No OFD packet to send [22:39:14]OFD Sender: No OFD packet to send [22:39:19]OFD Sender: No OFD packet to send [22:39:24]recv_with_timeout no data received [22:39:24]OFD Sender: No OFD packet to send [22:39:29]OFD Sender: No OFD packet to send [22:39:34]recv_with_timeout no data received [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:12]recv_with_timeout no data received [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]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:52]recv_with_timeout no data received [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:28]recv_with_timeout no data received [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:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:19]recv_with_timeout no data received [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:30]OFD Sender: No OFD packet to send [22:43:35]OFD Sender: No OFD packet to send [22:43:40]OFD Sender: No OFD packet to send [22:43:45]OFD Sender: No OFD packet to send [22:43:50]OFD Sender: No OFD packet to send [22:43:52]recv_with_timeout no data received [22:43:55]OFD Sender: No OFD packet to send [22:44:00]OFD Sender: No OFD packet to send [22:44:05]OFD Sender: No OFD packet to send [22:44:10]OFD Sender: No OFD packet to send [22:44:15]OFD Sender: No OFD packet to send [22:44:20]OFD Sender: No OFD packet to send [22:44:25]OFD Sender: No OFD packet to send [22:44:30]OFD Sender: No OFD packet to send [22:44:35]OFD Sender: No OFD packet to send [22:44:40]OFD Sender: No OFD packet to send [22:44:41]recv_with_timeout no data received [22:44:45]OFD Sender: No OFD packet to send [22:44:50]OFD Sender: No OFD packet to send [22:44:55]OFD Sender: No OFD packet to send [22:45:00]OFD Sender: No OFD packet to send [22:45:05]OFD Sender: No OFD packet to send [22:45:10]OFD Sender: No OFD packet to send [22:45:15]OFD Sender: No OFD packet to send [22:45:20]OFD Sender: No OFD packet to send [22:45:25]OFD Sender: No OFD packet to send [22:45:30]OFD Sender: No OFD packet to send [22:45:35]OFD Sender: No OFD packet to send [22:45:40]OFD Sender: No OFD packet to send [22:45:45]OFD Sender: No OFD packet to send [22:45:50]OFD Sender: No OFD packet to send [22:45:50]recv_with_timeout no data received [22:45:55]OFD Sender: No OFD packet to send [22:46:00]OFD Sender: No OFD packet to send [22:46:05]OFD Sender: No OFD packet to send [22:46:10]OFD Sender: No OFD packet to send [22:46:15]OFD Sender: No OFD packet to send [22:46:20]OFD Sender: No OFD packet to send [22:46:25]OFD Sender: No OFD packet to send [22:46:30]OFD Sender: No OFD packet to send [22:46:35]OFD Sender: No OFD packet to send [22:46:40]OFD Sender: No OFD packet to send [22:46:45]OFD Sender: No OFD packet to send [22:46:50]OFD Sender: No OFD packet to send [22:46:55]OFD Sender: No OFD packet to send [22:47:00]OFD Sender: No OFD packet to send [22:47:00]recv_with_timeout no data received [22:47:05]OFD Sender: No OFD packet to send [22:47:10]OFD Sender: No OFD packet to send [22:47:15]OFD Sender: No OFD packet to send [22:47:20]OFD Sender: No OFD packet to send [22:47:24]recv_with_timeout no data received [22:47:25]OFD Sender: No OFD packet to send [22:47:30]OFD Sender: No OFD packet to send [22:47:35]OFD Sender: No OFD packet to send [22:47:40]OFD Sender: No OFD packet to send [22:47:45]OFD Sender: No OFD packet to send [22:47:50]OFD Sender: No OFD packet to send [22:47:55]OFD Sender: No OFD packet to send [22:48:00]OFD Sender: No OFD packet to send [22:48:05]OFD Sender: No OFD packet to send [22:48:08]recv_with_timeout no data received [22:48:10]OFD Sender: No OFD packet to send [22:48:15]OFD Sender: No OFD packet to send [22:48:20]OFD Sender: No OFD packet to send [22:48:25]OFD Sender: No OFD packet to send [22:48:30]OFD Sender: No OFD packet to send [22:48:35]OFD Sender: No OFD packet to send [22:48:40]OFD Sender: No OFD packet to send [22:48:45]OFD Sender: No OFD packet to send [22:48:50]OFD Sender: No OFD packet to send [22:48:51]recv_with_timeout no data received [22:48:55]OFD Sender: No OFD packet to send [22:49:00]OFD Sender: No OFD packet to send [22:49:05]OFD Sender: No OFD packet to send [22:49:10]OFD Sender: No OFD packet to send [22:49:15]OFD Sender: No OFD packet to send [22:49:20]OFD Sender: No OFD packet to send [22:49:25]OFD Sender: No OFD packet to send [22:49:30]OFD Sender: No OFD packet to send [22:49:35]OFD Sender: No OFD packet to send [22:49:40]OFD Sender: No OFD packet to send [22:49:45]OFD Sender: No OFD packet to send [22:49:50]OFD Sender: No OFD packet to send [22:49:52]recv_with_timeout no data received [22:49:55]OFD Sender: No OFD packet to send [22:50:00]OFD Sender: No OFD packet to send [22:50:05]OFD Sender: No OFD packet to send [22:50:10]OFD Sender: No OFD packet to send [22:50:15]OFD Sender: No OFD packet to send [22:50:20]OFD Sender: No OFD packet to send [22:50:25]OFD Sender: No OFD packet to send [22:50:30]OFD Sender: No OFD packet to send [22:50:35]OFD Sender: No OFD packet to send [22:50:40]OFD Sender: No OFD packet to send [22:50:45]OFD Sender: No OFD packet to send [22:50:50]OFD Sender: No OFD packet to send [22:50:50]accept exits with 7 [22:50:50]New connection [22:50:50]New thread 3066785124 created [22:50:50]Thread 3066928484 joined [22:50:50]Waiting for new connection... [22:50:50] Sock 7.Parse request [22:50:50]Sock 7.Check first char [22:50:50]Sock 7.First char is OK [22:50:50]request: POST /json_proto HTTP/1.0 [22:50:50]Method: POST [22:50:50]URL: /json_proto [22:50:50]Method is POST - this is cgi request [22:50:50]url: /json_proto [22:50:50]query_string will be loaded in cgi processing [22:50:50]execute_cgi json_proto POST (null) [22:50:50]execute_cgi path=json_proto method=POST [22:50:50]POST find Content-Length [22:50:50]Host: 172.17.43.195:8080 [22:50:50]Content-Length: 800 [22:50:50]Content-Type: application/json [22:50:50] [22:50:50]POST finish read [22:50:50]Found Content-Length = 800 [22:50:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:50]execute_script... [22:50: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)952130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.11 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:50]POST & json_proto [22:50:50]process_json_proto [22:50:50]json parsed OK: [22:50:50]protocol is kg_v1.0 [22:50:50]action value=close_receipt [22:50:50]process_action close_receipt [22:50:50]cmd_close_receipt [22:50:50]MH_GetDate [22:50:50]Write to MH i2c: F0 00 00 4B 03 3D [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: F0 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: F0 09 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: F0 09 00 4B 03 00 4B 15 20 67 74 2C AD 66 E0 [22:50:50]GetLastDocTimeStamp 1730154847 [22:50:50]current date 1730155851 [22:50:50]FM_GetShiftState [22:50:50]SAM_PROTO_GetShiftState [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 13 01 00 [22:50:50]Write to MH i2c: E2 08 00 4C 03 80 13 01 00 00 00 00 00 CC [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:51]Read from MH i2c: E2 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 0E 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: E2 0E 00 4C 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 34 [22:50:51]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:50:51]wFMCommunicate OK [22:50:51]SAM_PROTO_GetShiftState done [22:50:51]FM_GetShiftState done [22:50:51]opened in 1730074113 [22:50:51]opened+sec_in_day 1730160513 [22:50:51]quantity*price = 50010 [22:50:51]sum+1 = 50012 [22:50:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.11 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 0.00 Безнал.: 500.11 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 163 28.10.2024 22:50 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874662 ФД: 72635 ФПД: 189155072308264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225051&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72635&fm=189155072308264&tin=02508201610067®Number=0000000000091644&sum=50011 [22:50:52]StoreToDocumentArchive [22:50:52]shift 554 fd 72635 [22:50:52]save to /storage/0554/doc_00072635 [22:50:52]save last doc name /storage/0554/doc_00072635 to /storage/kkm_last_doc_name [22:50:52]save OK [22:50:52]Clear old archive folders... [22:50:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:50:52]tlvbuf is B6F52EF0 [22:50:52]SAM_PROTO_ClearQueue [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 09 00 00 [22:50:52]Write to MH i2c: E2 08 00 59 03 80 09 00 00 00 00 00 00 CE [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 59 03 00 90 00 D0 [22:50:52]RAPDU: 90 00 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_ClearQueue done [22:50:52]KKMCreateOFDPacket [22:50:52]OFDProtocolAddRootSTLVToBuf [22:50:52]FM_MakeSignedData [22:50:52]FM_MakeSignedData [22:50:52]SAM_PROTO_SignData [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 0D 01 02 [22:50:52]Write to MH i2c: E2 08 00 5A 03 80 0D 01 02 00 00 00 00 D6 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 5A 03 00 90 00 D1 [22:50:52]RAPDU: 90 00 [22:50:52]wFMCommunicate OK [22:50:52]wFMCommunicate request_size=255 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 4B 15 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1B 01 00 35 04 06 00 AC [22:50:52]Write to MH i2c: E2 02 01 5B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 4B 15 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1B 01 00 35 04 06 00 AC 00 00 8A [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 5B 03 00 90 00 D2 [22:50:52]RAPDU: 90 00 [22:50:52]wFMCommunicate OK [22:50:52]wFMCommunicate request_size=10 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 0D 02 02 05 09 18 E4 74 28 [22:50:52]Write to MH i2c: E2 0D 00 5C 03 80 0D 02 02 05 00 09 18 E4 74 28 00 00 84 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 03 00 5C 03 00 90 00 D3 [22:50:52]RAPDU: 90 00 [22:50:52]wFMCommunicate OK [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 0D 03 02 [22:50:52]Write to MH i2c: E2 08 00 5D 03 80 0D 03 02 00 00 00 00 DB [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0B 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0B 00 5D 03 00 A2 7D E0 62 1B 23 2B FA 90 00 A0 [22:50:52]RAPDU: A2 7D E0 62 1B 23 2B FA 90 00 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_SignData done [22:50:52]FM_MakeSignedData done [22:50:52]CreateOFDProtocolMessage [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 11 00 00 [22:50:52]Write to MH i2c: E2 08 00 5E 03 80 11 00 00 00 00 00 00 DB [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 5E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2F [22:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:50:52]wFMCommunicate OK [22:50:52]CreateOFDProtocolMessage done [22:50:52]OFDSenderStorePacket 72635 [22:50:52]StoreOFDPacket docnum=72635 [22:50:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 EC 07 01 C5 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 4B 15 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1B 01 00 35 04 06 00 AC 09 18 E4 74 28 A2 7D E0 62 1B 23 2B FA [22:50:52]CheckFolder [22:50:52]dirname=/storage/ofd_packets [22:50:52]CheckFolder done [22:50:52]ProducePacketName [22:50:52]name=ofd_packets/00072635 [22:50:52]NVStorageSaveData ofd_packets/00072635 [22:50:52]File name is /storage/ofd_packets/00072635 [22:50:52]Write 301 bytes [22:50:52]NVStorageSaveData done [22:50:52]OFDSenderStorePacket done [22:50:52]KKMCreateOFDPacket done [22:50:52]NVStorageSaveData kkm_last_timestamp [22:50:52]File name is /storage/kkm_last_timestamp [22:50:52]Write 4 bytes [22:50:52]NVStorageSaveData done [22:50:52]ExternCall_PrintAddStr [22:50:52]wPrintStart [22:50:52]Write to MH i2c: 01 00 00 5F 03 62 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 07 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 07 00 5F 03 00 00 00 00 00 FF 0F 77 [22:50:52]RasterBufferAndPrint [22:50:52]line Счет N : (1)952130 [22:50:52]line ИНН: 02508201610067 [22:50:52]line Контрольно-Кассовый Чек [22:50:52]line ПРОДАЖА [22:50:52]line ТРК (МРК, ГНК) : 62 [22:50:52]line Товар: 2710124500 [22:50:52]line Аи-95-К-3 [22:50:52]line 6.740 * 74.20 [22:50:52]line = 500.11 [22:50:52]line НДС 12% НСП 1% [22:50:52]line > о реализуемом товаре [22:50:52]line ИТОГО: 500.11 [22:50:52]line НСП 1% : 4.43 [22:50:52]line НДС 12% : 53.11 [22:50:52]line Наличными: 0.00 [22:50:52]line Безнал.: 500.11 [22:50:52]line Место: АЗС № 113 "Партнер Нефть" [22:50:52]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:50:52]line СНО: Общий режим [22:50:52]line Чек 163 28.10.2024 22:50 [22:50:52]line Смена: 554 ФФД: 1.0 [22:50:52]line ЗНМ: 0300000087 [22:50:52]line РНМ: 0000000000091644 [22:50:52]line Версия ККМ: 001 [22:50:52]line Платежная система: O! деньги [22:50:52]line ФМ: 0000000000874662 [22:50:52]line ФД: 72635 [22:50:52]line ФПД: 189155072308264 [22:50:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225051&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72635&fm=189155072308264&tin=02508201610067®Number=0000000000091644&sum=50011 [22:50:53]OFD Sender: Processing packet 72635 [packets to send 277, broken 276] [22:50:53]ProducePacketName [22:50:53]name=ofd_packets/00072635 [22:50:53]OFD Sender: To server: pG, [22:50:53]CommunicateWithHost lk.salyk.kg:30040 [22:50:53]ConnectInit lk.salyk.kg [22:50:53]written 0, free lines is 4095 [22:50:53]Write to MH i2c: 01 00 00 89 03 8C [22:50:53]Write i2c OK [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: 01 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: 01 07 00 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: 01 07 00 89 03 00 00 00 00 00 D9 0C 78 [22:50:53]RasterBufferAndPrint [22:50:53]line [22:50:53]line [22:50:53]line [22:50:53]line [22:50:53]line [22:50:53]written 0, free lines is 3296 [22:50:53]MH_Cut [22:50:53]Write to MH i2c: D1 01 00 90 03 01 65 [22:50:53]Write i2c OK [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: D1 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: D1 01 00 [22:50:53]MH_I2C_Read... [22:50:53]Read from MH i2c: D1 01 00 90 03 00 64 [22:50:53]Write to MH i2c: 01 00 00 91 03 94 [22:50:53]Write i2c OK [22:50:53]MH_I2C_Read... [22:50:54]*** Cut start [22:50:54]*** Partial cut [22:50:54]*** CUTSNS_PIN = 1 [22:50:54]*** CUTSNS_PIN = 0 [22:50:54]*** Brake cut motor [22:50:54]Read from MH i2c: 01 [22:50:54]MH_I2C_Read... [22:50:54]*** Stop cut motor [22:50:54]*** Cut end [22:50:54]Read from MH i2c: 01 07 00 [22:50:54]MH_I2C_Read... [22:50:54]Read from MH i2c: 01 07 00 91 03 00 00 00 00 00 FF 0F A9 [22:50:54]process_action close_receipt done [22:50:54]requested_data is exist [22:50:54]produce_requested_data [22:50:54]requested_item fm.sn is exist - process it [22:50:54]wFMCommunicate request_size=4 [22:50:54]MH_SAM_APDU [22:50:54]CAPDU: 80 11 00 00 [22:50:54]Write to MH i2c: E2 08 00 92 03 80 11 00 00 00 00 00 00 0F [22:50:54]Write i2c OK [22:50:54]MH_I2C_Read... [22:50:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:54]Read from MH i2c: E2 [22:50:54]MH_I2C_Read... [22:50:54]Read from MH i2c: E2 17 00 [22:50:54]MH_I2C_Read... [22:50:54]Read from MH i2c: E2 17 00 92 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 63 [22:50:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:50:54]wFMCommunicate OK [22:50:54]requested_item fd.num is exist - process it [22:50:54]SAM_PROTO_GetFieldsCounters [22:50:54]wFMCommunicate request_size=4 [22:50:54]MH_SAM_APDU [22:50:54]CAPDU: 80 13 00 00 [22:50:54]Write to MH i2c: E2 08 00 93 03 80 13 00 00 00 00 00 00 12 [22:50:54]Write i2c OK [22:50:54]MH_I2C_Read... [22:50:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:55]Read from MH i2c: E2 [22:50:55]MH_I2C_Read... [22:50:55]Read from MH i2c: E2 62 00 [22:50:55]MH_I2C_Read... [22:50:55]Read from MH i2c: E2 62 00 93 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1B 01 00 0E 04 04 00 2A 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 1F [22:50:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BB 1B 01 00 0E 04 04 00 2A 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 [22:50:55]wFMCommunicate OK [22:50:55]SAM_PROTO_GetFieldsCounters done [22:50:55]requested_item shift.num is exist - process it [22:50:55]requested_item shift.opened is exist - process it [22:50:55]req_shift_opened [22:50:55]FM_GetShiftState [22:50:55]SAM_PROTO_GetShiftState [22:50:55]wFMCommunicate request_size=4 [22:50:55]MH_SAM_APDU [22:50:55]CAPDU: 80 13 01 00 [22:50:55]Write to MH i2c: E2 08 00 94 03 80 13 01 00 00 00 00 00 14 [22:50:55]Write i2c OK [22:50:55]MH_I2C_Read... [22:50:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:55]Read from MH i2c: E2 [22:50:55]MH_I2C_Read... [22:50:55]Read from MH i2c: E2 0E 00 [22:50:55]MH_I2C_Read... [22:50:55]Read from MH i2c: E2 0E 00 94 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7C [22:50:55]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:50:55]wFMCommunicate OK [22:50:55]SAM_PROTO_GetShiftState done [22:50:55]FM_GetShiftState done [22:50:55]req_shift_opened done [22:50:55]requested_item shift.open_date is exist - process it [22:50:55]req_shift_open_date [22:50:55]req_shift_open_date done [22:50:55]produce_requested_data done [22:50:55]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72635,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [22:50:55]process_action_free close_receipt [22:50:55]json_value_free [22:50:55]json_value_free done [22:50:55]process_json_proto returns [22:50:55]Send response to host [22:50:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72635,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [22:50:55]free response buf [22:50:55]execute_script done [22:50:55]execute_script returns [22:50:55]free content buf [22:50:55]Sock 7.Close socket [22:50:55]Sock 7.Thread stoped [22:50:56]Connected sock=11 [22:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 B6 EC 07 01 C5 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5B C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5B C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 4B 15 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1B 01 00 35 04 06 00 AC 09 18 E4 74 28 A2 7D E0 62 1B 23 2B FA [22:50:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 FA A5 47 00 6D 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BB 1B 01 00 F4 03 04 00 0C C0 1F 67 B6 04 01 00 00 7D B9 A3 DD A3 46 85 FC [22:50:57]CommunicateWithHost err = 0 [22:50:57]CheckOFDResponse [22:50:57]1017 (14) - 77093643461234 [22:50:57]1041 (16) - 0000000000874662 [22:50:57]1040 (4) - 72635 [22:50:57]1012 (4) - 28.10.2024 16:47 [22:50:57]1206 (1) - 0 [22:50:57]OFD Sender: Remove packet 72635 [22:50:57]ProducePacketName [22:50:57]name=ofd_packets/00072635 [22:50:57]NVStorageDeleteData [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:14]recv_with_timeout no data received [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:54]recv_with_timeout no data received [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:14]recv_with_timeout no data received [22:52:17]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:33]recv_with_timeout no data received [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:50]recv_with_timeout no data received [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:01]recv_with_timeout no data received [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:12]recv_with_timeout no data received [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:53]recv_with_timeout no data received [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:26]recv_with_timeout no data received [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:56]recv_with_timeout no data received [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:13]recv_with_timeout no data received [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:47]recv_with_timeout no data received [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:41]recv_with_timeout no data received [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:56:58]recv_with_timeout no data received [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:31]recv_with_timeout no data received [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:54]recv_with_timeout no data received [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:02]recv_with_timeout no data received [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:12]recv_with_timeout no data received [22:59:13]accept exits with 9 [22:59:13]New connection [22:59:13]New thread 3066928484 created [22:59:13]Thread 3066785124 joined [22:59:13]Waiting for new connection... [22:59:13] Sock 9.Parse request [22:59:13]Sock 9.Check first char [22:59:13]Sock 9.First char is OK [22:59:13]request: POST /json_proto HTTP/1.0 [22:59:13]Method: POST [22:59:13]URL: /json_proto [22:59:13]Method is POST - this is cgi request [22:59:13]url: /json_proto [22:59:13]query_string will be loaded in cgi processing [22:59:13]execute_cgi json_proto POST (null) [22:59:13]execute_cgi path=json_proto method=POST [22:59:13]POST find Content-Length [22:59:13]Host: 172.17.43.195:8080 [22:59:13]Content-Length: 677 [22:59:13]Content-Type: application/json [22:59:13] [22:59:13]POST finish read [22:59:13]Found Content-Length = 677 [22:59:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.770, "sum" : 319.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 319.00, "payments": [ { "type": 0, "sum" : 319.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:13]execute_script... [22:59: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)952131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.770, "sum" : 319.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 330.00, "total" : 319.00, "payments": [ { "type": 0, "sum" : 319.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:13]POST & json_proto [22:59:13]process_json_proto [22:59:13]json parsed OK: [22:59:13]protocol is kg_v1.0 [22:59:13]action value=close_receipt [22:59:13]process_action close_receipt [22:59:13]cmd_close_receipt [22:59:13]MH_GetDate [22:59:13]Write to MH i2c: F0 00 00 95 03 87 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: F0 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: F0 09 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: F0 09 00 95 03 00 42 17 20 67 74 2C AD 66 23 [22:59:13]GetLastDocTimeStamp 1730155851 [22:59:13]current date 1730156354 [22:59:13]FM_GetShiftState [22:59:13]SAM_PROTO_GetShiftState [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 13 01 00 [22:59:13]Write to MH i2c: E2 08 00 96 03 80 13 01 00 00 00 00 00 16 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 0E 00 96 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 7E [22:59:13]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_GetShiftState done [22:59:13]FM_GetShiftState done [22:59:13]opened in 1730074113 [22:59:13]opened+sec_in_day 1730160513 [22:59:13]quantity*price = 31911 [22:59:13]sum+1 = 31912 [22:59:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 319.00 Внесено: 330.00 СДАЧА: 11.00 НСП 1% : 2.82 НДС 12% : 33.89 Наличными: 319.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 164 28.10.2024 22:59 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72636 ФПД: 69303574869669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225914&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72636&fm=69303574869669&tin=02508201610067®Number=0000000000091644&sum=31900 [22:59:14]StoreToDocumentArchive [22:59:14]shift 554 fd 72636 [22:59:14]save to /storage/0554/doc_00072636 [22:59:14]save last doc name /storage/0554/doc_00072636 to /storage/kkm_last_doc_name [22:59:14]save OK [22:59:14]Clear old archive folders... [22:59:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:59:14]tlvbuf is 001FB650 [22:59:14]SAM_PROTO_ClearQueue [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 09 00 00 [22:59:14]Write to MH i2c: E2 08 00 A3 03 80 09 00 00 00 00 00 00 18 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [22:59:14]RAPDU: 90 00 [22:59:14]wFMCommunicate OK [22:59:14]SAM_PROTO_ClearQueue done [22:59:14]KKMCreateOFDPacket [22:59:14]OFDProtocolAddRootSTLVToBuf [22:59:14]FM_MakeSignedData [22:59:14]FM_MakeSignedData [22:59:14]SAM_PROTO_SignData [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 0D 01 02 [22:59:14]Write to MH i2c: E2 08 00 A4 03 80 0D 01 02 00 00 00 00 20 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [22:59:14]RAPDU: 90 00 [22:59:14]wFMCommunicate OK [22:59:14]wFMCommunicate request_size=255 [22:59:14]MH_SAM_APDU [22:59: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 A2 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0D 00 00 00 00 07 04 06 00 9C 7C 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 42 17 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1B 01 00 35 04 06 00 3F [22:59:14]Write to MH i2c: E2 02 01 A5 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 A2 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0D 00 00 00 00 07 04 06 00 9C 7C 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 42 17 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1B 01 00 35 04 06 00 3F 00 00 99 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 03 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [22:59:15]RAPDU: 90 00 [22:59:15]wFMCommunicate OK [22:59:15]wFMCommunicate request_size=10 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 0D 02 02 05 07 FE F6 36 A5 [22:59:15]Write to MH i2c: E2 0D 00 A6 03 80 0D 02 02 05 00 07 FE F6 36 A5 00 00 03 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 03 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 03 00 A6 03 00 90 00 1D [22:59:15]RAPDU: 90 00 [22:59:15]wFMCommunicate OK [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 0D 03 02 [22:59:15]Write to MH i2c: E2 08 00 A7 03 80 0D 03 02 00 00 00 00 25 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 0B 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 0B 00 A7 03 00 22 78 2D 40 70 D4 E9 CD 90 00 27 [22:59:15]RAPDU: 22 78 2D 40 70 D4 E9 CD 90 00 [22:59:15]wFMCommunicate OK [22:59:15]SAM_PROTO_SignData done [22:59:15]FM_MakeSignedData done [22:59:15]CreateOFDProtocolMessage [22:59:15]wFMCommunicate request_size=4 [22:59:15]MH_SAM_APDU [22:59:15]CAPDU: 80 11 00 00 [22:59:15]Write to MH i2c: E2 08 00 A8 03 80 11 00 00 00 00 00 00 25 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:15]Read from MH i2c: E2 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: E2 17 00 A8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 79 [22:59:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:59:15]wFMCommunicate OK [22:59:15]CreateOFDProtocolMessage done [22:59:15]OFDSenderStorePacket 72636 [22:59:15]StoreOFDPacket docnum=72636 [22:59:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 46 43 07 01 61 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0D 00 00 00 00 07 04 06 00 9C 7C 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 42 17 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1B 01 00 35 04 06 00 3F 07 FE F6 36 A5 22 78 2D 40 70 D4 E9 CD [22:59:15]CheckFolder [22:59:15]dirname=/storage/ofd_packets [22:59:15]CheckFolder done [22:59:15]ProducePacketName [22:59:15]name=ofd_packets/00072636 [22:59:15]NVStorageSaveData ofd_packets/00072636 [22:59:15]File name is /storage/ofd_packets/00072636 [22:59:15]Write 301 bytes [22:59:15]NVStorageSaveData done [22:59:15]OFDSenderStorePacket done [22:59:15]KKMCreateOFDPacket done [22:59:15]NVStorageSaveData kkm_last_timestamp [22:59:15]File name is /storage/kkm_last_timestamp [22:59:15]Write 4 bytes [22:59:15]NVStorageSaveData done [22:59:15]ExternCall_PrintAddStr [22:59:15]wPrintStart [22:59:15]Write to MH i2c: 01 00 00 A9 03 AC [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 A9 03 00 00 00 00 00 FF 0F C1 [22:59:15]RasterBufferAndPrint [22:59:15]line Счет N : (1)952131 [22:59:15]line ИНН: 02508201610067 [22:59:15]line Контрольно-Кассовый Чек [22:59:15]line ПРОДАЖА [22:59:15]line ТРК (МРК, ГНК) : 63 [22:59:15]line Товар: 2710124130 [22:59:15]line Аи-92-К-5 [22:59:15]line 4.770 * 66.90 [22:59:15]line = 319.11 [22:59:15]line НДС 12% НСП 1% [22:59:15]line > о реализуемом товаре [22:59:15]line ОКРУГЛЕНИЕ: -0.11 [22:59:15]line ИТОГО: 319.00 [22:59:15]line Внесено: 330.00 [22:59:15]line СДАЧА: 11.00 [22:59:15]line НСП 1% : 2.82 [22:59:15]line НДС 12% : 33.89 [22:59:15]line Наличными: 319.00 [22:59:15]line Безнал.: 0.00 [22:59:15]line Место: АЗС № 113 "Партнер Нефть" [22:59:15]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [22:59:15]line СНО: Общий режим [22:59:15]line Чек 164 28.10.2024 22:59 [22:59:15]line Смена: 554 ФФД: 1.0 [22:59:15]line ЗНМ: 0300000087 [22:59:15]line РНМ: 0000000000091644 [22:59:15]line Версия ККМ: 001 [22:59:15]line ФМ: 0000000000874662 [22:59:15]line ФД: 72636 [22:59:15]line ФПД: 69303574869669 [22:59:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T225914&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72636&fm=69303574869669&tin=02508201610067®Number=0000000000091644&sum=31900 [22:59:15]written 0, free lines is 4095 [22:59:15]OFD Sender: Processing packet 72636 [packets to send 277, broken 276] [22:59:15]ProducePacketName [22:59:15]name=ofd_packets/00072636 [22:59:15]OFD Sender: To server: pG, [22:59:15]CommunicateWithHost lk.salyk.kg:30040 [22:59:15]ConnectInit lk.salyk.kg [22:59:15]Write to MH i2c: 01 00 00 D4 03 D7 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: 01 07 00 D4 03 00 00 00 00 00 D1 0C BB [22:59:15]RasterBufferAndPrint [22:59:15]line [22:59:15]line [22:59:15]line [22:59:15]line [22:59:15]line [22:59:15]written 0, free lines is 3286 [22:59:15]MH_Cut [22:59:15]Write to MH i2c: D1 01 00 DB 03 01 B0 [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: D1 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: D1 01 00 [22:59:15]MH_I2C_Read... [22:59:15]Read from MH i2c: D1 01 00 DB 03 00 AF [22:59:15]Write to MH i2c: 01 00 00 DC 03 DF [22:59:15]Write i2c OK [22:59:15]MH_I2C_Read... [22:59:15]Connected sock=10 [22:59:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 46 43 07 01 61 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 A2 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A7 7C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 7C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0D 00 00 00 00 07 04 06 00 9C 7C 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 42 17 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BC 1B 01 00 35 04 06 00 3F 07 FE F6 36 A5 22 78 2D 40 70 D4 E9 CD [22:59:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 DD 81 47 00 AE 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 34 36 36 32 10 04 04 00 BC 1B 01 00 F4 03 04 00 FF C1 1F 67 B6 04 01 00 00 87 4D 86 16 11 FF 79 A0 [22:59:16]CommunicateWithHost err = 0 [22:59:16]CheckOFDResponse [22:59:16]1017 (14) - 77093643461234 [22:59:16]1041 (16) - 0000000000874662 [22:59:16]1040 (4) - 72636 [22:59:16]1012 (4) - 28.10.2024 16:55 [22:59:16]1206 (1) - 0 [22:59:16]OFD Sender: Remove packet 72636 [22:59:16]ProducePacketName [22:59:16]name=ofd_packets/00072636 [22:59:16]NVStorageDeleteData [22:59:16]*** Cut start [22:59:16]*** Partial cut [22:59:16]*** CUTSNS_PIN = 1 [22:59:16]*** CUTSNS_PIN = 0 [22:59:16]*** Brake cut motor [22:59:16]OFD Sender: No OFD packet to send [22:59:17]Read from MH i2c: 01 [22:59:17]MH_I2C_Read... [22:59:17]*** Stop cut motor [22:59:17]*** Cut end [22:59:17]Read from MH i2c: 01 07 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: 01 07 00 DC 03 00 00 00 00 00 FF 0F F4 [22:59:17]process_action close_receipt done [22:59:17]requested_data is exist [22:59:17]produce_requested_data [22:59:17]requested_item fm.sn is exist - process it [22:59:17]wFMCommunicate request_size=4 [22:59:17]MH_SAM_APDU [22:59:17]CAPDU: 80 11 00 00 [22:59:17]Write to MH i2c: E2 08 00 DD 03 80 11 00 00 00 00 00 00 5A [22:59:17]Write i2c OK [22:59:17]MH_I2C_Read... [22:59:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:17]Read from MH i2c: E2 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 17 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 17 00 DD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 AE [22:59:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [22:59:17]wFMCommunicate OK [22:59:17]requested_item fd.num is exist - process it [22:59:17]SAM_PROTO_GetFieldsCounters [22:59:17]wFMCommunicate request_size=4 [22:59:17]MH_SAM_APDU [22:59:17]CAPDU: 80 13 00 00 [22:59:17]Write to MH i2c: E2 08 00 DE 03 80 13 00 00 00 00 00 00 5D [22:59:17]Write i2c OK [22:59:17]MH_I2C_Read... [22:59:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:17]Read from MH i2c: E2 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 62 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 62 00 DE 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1B 01 00 0E 04 04 00 2A 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 6E [22:59: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BC 1B 01 00 0E 04 04 00 2A 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 [22:59:17]wFMCommunicate OK [22:59:17]SAM_PROTO_GetFieldsCounters done [22:59:17]requested_item shift.num is exist - process it [22:59:17]requested_item shift.opened is exist - process it [22:59:17]req_shift_opened [22:59:17]FM_GetShiftState [22:59:17]SAM_PROTO_GetShiftState [22:59:17]wFMCommunicate request_size=4 [22:59:17]MH_SAM_APDU [22:59:17]CAPDU: 80 13 01 00 [22:59:17]Write to MH i2c: E2 08 00 DF 03 80 13 01 00 00 00 00 00 5F [22:59:17]Write i2c OK [22:59:17]MH_I2C_Read... [22:59:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:17]Read from MH i2c: E2 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 0E 00 [22:59:17]MH_I2C_Read... [22:59:17]Read from MH i2c: E2 0E 00 DF 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C7 [22:59:17]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [22:59:17]wFMCommunicate OK [22:59:17]SAM_PROTO_GetShiftState done [22:59:17]FM_GetShiftState done [22:59:17]req_shift_opened done [22:59:17]requested_item shift.open_date is exist - process it [22:59:17]req_shift_open_date [22:59:17]req_shift_open_date done [22:59:17]produce_requested_data done [22:59:17]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72636,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [22:59:17]process_action_free close_receipt [22:59:17]json_value_free [22:59:17]json_value_free done [22:59:17]process_json_proto returns [22:59:17]Send response to host [22:59:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72636,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [22:59:17]free response buf [22:59:17]execute_script done [22:59:17]execute_script returns [22:59:17]free content buf [22:59:17]Sock 9.Close socket [22:59:17]Sock 9.Thread stoped [22:59:21]OFD Sender: No OFD packet to send [22:59:24]recv_with_timeout no data received [22:59:26]OFD Sender: No OFD packet to send [22:59:31]OFD Sender: No OFD packet to send [22:59:36]OFD Sender: No OFD packet to send [22:59:41]OFD Sender: No OFD packet to send [22:59:46]OFD Sender: No OFD packet to send [22:59:51]OFD Sender: No OFD packet to send [22:59:56]OFD Sender: No OFD packet to send [23:00:01]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:22]OFD Sender: No OFD packet to send [23:00:27]OFD Sender: No OFD packet to send [23:00:32]OFD Sender: No OFD packet to send [23:00:37]OFD Sender: No OFD packet to send [23:00:42]OFD Sender: No OFD packet to send [23:00:47]OFD Sender: No OFD packet to send [23:00:52]OFD Sender: No OFD packet to send [23:00:57]OFD Sender: No OFD packet to send [23:00:57]recv_with_timeout no data received [23:01:02]OFD Sender: No OFD packet to send [23:01:07]OFD Sender: No OFD packet to send [23:01:12]OFD Sender: No OFD packet to send [23:01:17]OFD Sender: No OFD packet to send [23:01:22]OFD Sender: No OFD packet to send [23:01:27]OFD Sender: No OFD packet to send [23:01:32]OFD Sender: No OFD packet to send [23:01:37]OFD Sender: No OFD packet to send [23:01:42]OFD Sender: No OFD packet to send [23:01:47]OFD Sender: No OFD packet to send [23:01:52]OFD Sender: No OFD packet to send [23:01:57]OFD Sender: No OFD packet to send [23:02:02]OFD Sender: No OFD packet to send [23:02:07]OFD Sender: No OFD packet to send [23:02:11]recv_with_timeout no data received [23:02:12]OFD Sender: No OFD packet to send [23:02:17]OFD Sender: No OFD packet to send [23:02:22]OFD Sender: No OFD packet to send [23:02:27]OFD Sender: No OFD packet to send [23:02:32]OFD Sender: No OFD packet to send [23:02:34]recv_with_timeout no data received [23:02:37]OFD Sender: No OFD packet to send [23:02:42]OFD Sender: No OFD packet to send [23:02:47]OFD Sender: No OFD packet to send [23:02:52]OFD Sender: No OFD packet to send [23:02:57]OFD Sender: No OFD packet to send [23:03:02]OFD Sender: No OFD packet to send [23:03:07]OFD Sender: No OFD packet to send [23:03:12]OFD Sender: No OFD packet to send [23:03:17]OFD Sender: No OFD packet to send [23:03:22]OFD Sender: No OFD packet to send [23:03:27]OFD Sender: No OFD packet to send [23:03:32]OFD Sender: No OFD packet to send [23:03:37]OFD Sender: No OFD packet to send [23:03:42]OFD Sender: No OFD packet to send [23:03:47]OFD Sender: No OFD packet to send [23:03:47]recv_with_timeout no data received [23:03:52]OFD Sender: No OFD packet to send [23:03:57]OFD Sender: No OFD packet to send [23:04:02]OFD Sender: No OFD packet to send [23:04:07]OFD Sender: No OFD packet to send [23:04:12]OFD Sender: No OFD packet to send [23:04:17]OFD Sender: No OFD packet to send [23:04:22]OFD Sender: No OFD packet to send [23:04:27]OFD Sender: No OFD packet to send [23:04:32]OFD Sender: No OFD packet to send [23:04:37]OFD Sender: No OFD packet to send [23:04:42]OFD Sender: No OFD packet to send [23:04:47]OFD Sender: No OFD packet to send [23:04:52]OFD Sender: No OFD packet to send [23:04:57]OFD Sender: No OFD packet to send [23:05:02]OFD Sender: No OFD packet to send [23:05:05]recv_with_timeout no data received [23:05:07]OFD Sender: No OFD packet to send [23:05:12]OFD Sender: No OFD packet to send [23:05:17]OFD Sender: No OFD packet to send [23:05:22]OFD Sender: No OFD packet to send [23:05:24]recv_with_timeout no data received [23:05:27]OFD Sender: No OFD packet to send [23:05:32]OFD Sender: No OFD packet to send [23:05:37]OFD Sender: No OFD packet to send [23:05:42]OFD Sender: No OFD packet to send [23:05:47]OFD Sender: No OFD packet to send [23:05:52]OFD Sender: No OFD packet to send [23:05:57]OFD Sender: No OFD packet to send [23:06:02]OFD Sender: No OFD packet to send [23:06:07]OFD Sender: No OFD packet to send [23:06:12]OFD Sender: No OFD packet to send [23:06:17]OFD Sender: No OFD packet to send [23:06:22]OFD Sender: No OFD packet to send [23:06:27]OFD Sender: No OFD packet to send [23:06:32]OFD Sender: No OFD packet to send [23:06:37]OFD Sender: No OFD packet to send [23:06:42]OFD Sender: No OFD packet to send [23:06:47]OFD Sender: No OFD packet to send [23:06:49]recv_with_timeout no data received [23:06:52]OFD Sender: No OFD packet to send [23:06:57]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:15]recv_with_timeout no data received [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:27]OFD Sender: No OFD packet to send [23:07:32]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:54]recv_with_timeout no data received [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:04]recv_with_timeout no data received [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:30]recv_with_timeout no data received [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:41]recv_with_timeout no data received [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:49]accept exits with 7 [23:08:49]New connection [23:08:49]New thread 3066785124 created [23:08:49]Thread 3066928484 joined [23:08:49]Waiting for new connection... [23:08:49] Sock 7.Parse request [23:08:49]Sock 7.Check first char [23:08:49]Sock 7.First char is OK [23:08:49]request: POST /json_proto HTTP/1.0 [23:08:49]Method: POST [23:08:49]URL: /json_proto [23:08:49]Method is POST - this is cgi request [23:08:49]url: /json_proto [23:08:49]query_string will be loaded in cgi processing [23:08:49]execute_cgi json_proto POST (null) [23:08:49]execute_cgi path=json_proto method=POST [23:08:49]POST find Content-Length [23:08:49]Host: 172.17.43.195:8080 [23:08:49]Content-Length: 677 [23:08:49]Content-Type: application/json [23:08:49] [23:08:49]POST finish read [23:08:49]Found Content-Length = 677 [23:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [23:08:49]execute_script... [23:08: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)952132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "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" ] } } [23:08:49]POST & json_proto [23:08:49]process_json_proto [23:08:49]json parsed OK: [23:08:49]protocol is kg_v1.0 [23:08:49]action value=close_receipt [23:08:49]process_action close_receipt [23:08:49]cmd_close_receipt [23:08:49]MH_GetDate [23:08:49]Write to MH i2c: F0 00 00 E0 03 D2 [23:08:49]Write i2c OK [23:08:49]MH_I2C_Read... [23:08:49]Read from MH i2c: F0 [23:08:49]MH_I2C_Read... [23:08:49]Read from MH i2c: F0 09 00 [23:08:49]MH_I2C_Read... [23:08:49]Read from MH i2c: F0 09 00 E0 03 00 82 19 20 67 74 2C AD 66 B0 [23:08:49]GetLastDocTimeStamp 1730156354 [23:08:49]current date 1730156930 [23:08:49]FM_GetShiftState [23:08:49]SAM_PROTO_GetShiftState [23:08:49]wFMCommunicate request_size=4 [23:08:49]MH_SAM_APDU [23:08:49]CAPDU: 80 13 01 00 [23:08:49]Write to MH i2c: E2 08 00 E1 03 80 13 01 00 00 00 00 00 61 [23:08:49]Write i2c OK [23:08:49]MH_I2C_Read... [23:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:49]Read from MH i2c: E2 [23:08:49]MH_I2C_Read... [23:08:49]Read from MH i2c: E2 0E 00 [23:08:49]MH_I2C_Read... [23:08:49]Read from MH i2c: E2 0E 00 E1 03 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 C9 [23:08:49]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:08:49]wFMCommunicate OK [23:08:49]SAM_PROTO_GetShiftState done [23:08:49]FM_GetShiftState done [23:08:49]opened in 1730074113 [23:08:49]opened+sec_in_day 1730160513 [23:08:49]quantity*price = 40006 [23:08:49]sum+1 = 40007 [23:08:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 165 28.10.2024 23:08 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72637 ФПД: 231661704995783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230850&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72637&fm=231661704995783&tin=02508201610067®Number=0000000000091644&sum=40000 [23:08:50]StoreToDocumentArchive [23:08:50]shift 554 fd 72637 [23:08:50]save to /storage/0554/doc_00072637 [23:08:50]save last doc name /storage/0554/doc_00072637 to /storage/kkm_last_doc_name [23:08:50]save OK [23:08:50]Clear old archive folders... [23:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:08:50]tlvbuf is 002020C0 [23:08:50]SAM_PROTO_ClearQueue [23:08:50]wFMCommunicate request_size=4 [23:08:50]MH_SAM_APDU [23:08:50]CAPDU: 80 09 00 00 [23:08:50]Write to MH i2c: E2 08 00 EE 03 80 09 00 00 00 00 00 00 63 [23:08:50]Write i2c OK [23:08:50]MH_I2C_Read... [23:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:08:50]Read from MH i2c: E2 [23:08:50]MH_I2C_Read... [23:08:50]Read from MH i2c: E2 03 00 [23:08:50]MH_I2C_Read... [23:08:50]Read from MH i2c: E2 03 00 EE 03 00 90 00 65 [23:08:50]RAPDU: 90 00 [23:08:50]wFMCommunicate OK [23:08:50]SAM_PROTO_ClearQueue done [23:08:50]KKMCreateOFDPacket [23:08:50]OFDProtocolAddRootSTLVToBuf [23:08:50]FM_MakeSignedData [23:08:50]FM_MakeSignedData [23:08:50]SAM_PROTO_SignData [23:08:50]wFMCommunicate request_size=4 [23:08:50]MH_SAM_APDU [23:08:50]CAPDU: 80 0D 01 02 [23:08:50]Write to MH i2c: E2 08 00 EF 03 80 0D 01 02 00 00 00 00 6B [23:08:50]Write i2c OK [23:08:50]MH_I2C_Read... [23:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:08:50]Read from MH i2c: E2 [23:08:50]MH_I2C_Read... [23:08:50]Read from MH i2c: E2 03 00 [23:08:50]MH_I2C_Read... [23:08:50]Read from MH i2c: E2 03 00 EF 03 00 90 00 66 [23:08:50]RAPDU: 90 00 [23:08:50]wFMCommunicate OK [23:08:50]wFMCommunicate request_size=255 [23:08:50]MH_SAM_APDU [23:08: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 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 A5 00 00 00 F4 03 04 00 82 19 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 35 04 06 00 D2 [23:08:50]Write to MH i2c: E2 02 01 F0 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 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 A5 00 00 00 F4 03 04 00 82 19 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 35 04 06 00 D2 00 00 67 [23:08:50]Write i2c OK [23:08:50]MH_I2C_Read... [23:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:51]Read from MH i2c: E2 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 03 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 03 00 F0 03 00 90 00 67 [23:08:51]RAPDU: 90 00 [23:08:51]wFMCommunicate OK [23:08:51]wFMCommunicate request_size=10 [23:08:51]MH_SAM_APDU [23:08:51]CAPDU: 80 0D 02 02 05 B1 F1 A2 63 C7 [23:08:51]Write to MH i2c: E2 0D 00 F1 03 80 0D 02 02 05 00 B1 F1 A2 63 C7 00 00 E6 [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:08:51]Read from MH i2c: E2 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 03 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 03 00 F1 03 00 90 00 68 [23:08:51]RAPDU: 90 00 [23:08:51]wFMCommunicate OK [23:08:51]wFMCommunicate request_size=4 [23:08:51]MH_SAM_APDU [23:08:51]CAPDU: 80 0D 03 02 [23:08:51]Write to MH i2c: E2 08 00 F2 03 80 0D 03 02 00 00 00 00 70 [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:08:51]Read from MH i2c: E2 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 0B 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 0B 00 F2 03 00 E0 B3 AA 30 0B FC 38 06 90 00 23 [23:08:51]RAPDU: E0 B3 AA 30 0B FC 38 06 90 00 [23:08:51]wFMCommunicate OK [23:08:51]SAM_PROTO_SignData done [23:08:51]FM_MakeSignedData done [23:08:51]CreateOFDProtocolMessage [23:08:51]wFMCommunicate request_size=4 [23:08:51]MH_SAM_APDU [23:08:51]CAPDU: 80 11 00 00 [23:08:51]Write to MH i2c: E2 08 00 F3 03 80 11 00 00 00 00 00 00 70 [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:51]Read from MH i2c: E2 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 17 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: E2 17 00 F3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C4 [23:08:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:08:51]wFMCommunicate OK [23:08:51]CreateOFDProtocolMessage done [23:08:51]OFDSenderStorePacket 72637 [23:08:51]StoreOFDPacket docnum=72637 [23:08:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 2E 07 01 3A 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 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 A5 00 00 00 F4 03 04 00 82 19 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 35 04 06 00 D2 B1 F1 A2 63 C7 E0 B3 AA 30 0B FC 38 06 [23:08:51]CheckFolder [23:08:51]dirname=/storage/ofd_packets [23:08:51]CheckFolder done [23:08:51]ProducePacketName [23:08:51]name=ofd_packets/00072637 [23:08:51]NVStorageSaveData ofd_packets/00072637 [23:08:51]File name is /storage/ofd_packets/00072637 [23:08:51]Write 301 bytes [23:08:51]NVStorageSaveData done [23:08:51]OFDSenderStorePacket done [23:08:51]KKMCreateOFDPacket done [23:08:51]NVStorageSaveData kkm_last_timestamp [23:08:51]File name is /storage/kkm_last_timestamp [23:08:51]Write 4 bytes [23:08:51]NVStorageSaveData done [23:08:51]ExternCall_PrintAddStr [23:08:51]wPrintStart [23:08:51]Write to MH i2c: 01 00 00 F4 03 F7 [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 07 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 07 00 F4 03 00 00 00 00 00 FF 0F 0C [23:08:51]RasterBufferAndPrint [23:08:51]line Счет N : (1)952132 [23:08:51]line ИНН: 02508201610067 [23:08:51]line Контрольно-Кассовый Чек [23:08:51]line ПРОДАЖА [23:08:51]line ТРК (МРК, ГНК) : 53 [23:08:51]line Товар: 2710124130 [23:08:51]line Аи-92-К-5 [23:08:51]line 5.980 * 66.90 [23:08:51]line = 400.06 [23:08:51]line НДС 12% НСП 1% [23:08:51]line > о реализуемом товаре [23:08:51]line ОКРУГЛЕНИЕ: -0.06 [23:08:51]line ИТОГО: 400.00 [23:08:51]line Внесено: 400.00 [23:08:51]line СДАЧА: 0.00 [23:08:51]line НСП 1% : 3.54 [23:08:51]line НДС 12% : 42.48 [23:08:51]line Наличными: 400.00 [23:08:51]line Безнал.: 0.00 [23:08:51]line Место: АЗС № 113 "Партнер Нефть" [23:08:51]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:08:51]line СНО: Общий режим [23:08:51]line Чек 165 28.10.2024 23:08 [23:08:51]line Смена: 554 ФФД: 1.0 [23:08:51]line ЗНМ: 0300000087 [23:08:51]line РНМ: 0000000000091644 [23:08:51]line Версия ККМ: 001 [23:08:51]line ФМ: 0000000000874662 [23:08:51]line ФД: 72637 [23:08:51]line ФПД: 231661704995783 [23:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T230850&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72637&fm=231661704995783&tin=02508201610067®Number=0000000000091644&sum=40000 [23:08:51]written 0, free lines is 4095 [23:08:51]OFD Sender: Processing packet 72637 [packets to send 277, broken 276] [23:08:51]ProducePacketName [23:08:51]name=ofd_packets/00072637 [23:08:51]OFD Sender: To server: pG, [23:08:51]CommunicateWithHost lk.salyk.kg:30040 [23:08:51]ConnectInit lk.salyk.kg [23:08:51]Write to MH i2c: 01 00 00 1F 04 23 [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 07 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: 01 07 00 1F 04 00 00 00 00 00 D3 0C 09 [23:08:51]RasterBufferAndPrint [23:08:51]line [23:08:51]line [23:08:51]line [23:08:51]line [23:08:51]line [23:08:51]written 0, free lines is 3290 [23:08:51]MH_Cut [23:08:51]Write to MH i2c: D1 01 00 26 04 01 FC [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: D1 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: D1 01 00 [23:08:51]MH_I2C_Read... [23:08:51]Read from MH i2c: D1 01 00 26 04 00 FB [23:08:51]Write to MH i2c: 01 00 00 27 04 2B [23:08:51]Write i2c OK [23:08:51]MH_I2C_Read... [23:08:51]recv_with_timeout no data received [23:08:52]*** Cut start [23:08:52]*** Partial cut [23:08:52]*** CUTSNS_PIN = 1 [23:08:52]*** CUTSNS_PIN = 0 [23:08:52]*** Brake cut motor [23:08:53]Read from MH i2c: 01 [23:08:53]MH_I2C_Read... [23:08:53]*** Stop cut motor [23:08:53]*** Cut end [23:08:53]Read from MH i2c: 01 07 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: 01 07 00 27 04 00 00 00 00 00 FF 0F 40 [23:08:53]process_action close_receipt done [23:08:53]requested_data is exist [23:08:53]produce_requested_data [23:08:53]requested_item fm.sn is exist - process it [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 11 00 00 [23:08:53]Write to MH i2c: E2 08 00 28 04 80 11 00 00 00 00 00 00 A6 [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]Connected sock=11 [23:08:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 2E 07 01 3A 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 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 A5 00 00 00 F4 03 04 00 82 19 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 35 04 06 00 D2 B1 F1 A2 63 C7 E0 B3 AA 30 0B FC 38 06 [23:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 17 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 17 00 28 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 FA [23:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:08:53]wFMCommunicate OK [23:08:53]requested_item fd.num is exist - process it [23:08:53]SAM_PROTO_GetFieldsCounters [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 13 00 00 [23:08:53]Write to MH i2c: E2 08 00 29 04 80 13 00 00 00 00 00 00 A9 [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 62 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 62 00 29 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1B 01 00 0E 04 04 00 2A 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 BE [23:08: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BD 1B 01 00 0E 04 04 00 2A 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 [23:08:53]wFMCommunicate OK [23:08:53]SAM_PROTO_GetFieldsCounters done [23:08:53]requested_item shift.num is exist - process it [23:08:53]requested_item shift.opened is exist - process it [23:08:53]req_shift_opened [23:08:53]FM_GetShiftState [23:08:53]SAM_PROTO_GetShiftState [23:08:53]wFMCommunicate request_size=4 [23:08:53]MH_SAM_APDU [23:08:53]CAPDU: 80 13 01 00 [23:08:53]Write to MH i2c: E2 08 00 2A 04 80 13 01 00 00 00 00 00 AB [23:08:53]Write i2c OK [23:08:53]MH_I2C_Read... [23:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:08:53]Read from MH i2c: E2 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 0E 00 [23:08:53]MH_I2C_Read... [23:08:53]Read from MH i2c: E2 0E 00 2A 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 13 [23:08:53]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:08:53]wFMCommunicate OK [23:08:53]SAM_PROTO_GetShiftState done [23:08:53]FM_GetShiftState done [23:08:53]req_shift_opened done [23:08:53]requested_item shift.open_date is exist - process it [23:08:53]req_shift_open_date [23:08:53]req_shift_open_date done [23:08:53]produce_requested_data done [23:08:53]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72637,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:08:53]process_action_free close_receipt [23:08:53]json_value_free [23:08:53]json_value_free done [23:08:53]process_json_proto returns [23:08:53]Send response to host [23:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72637,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:08:53]free response buf [23:08:53]execute_script done [23:08:53]execute_script returns [23:08:53]free content buf [23:08:53]Sock 7.Close socket [23:08:53]Sock 7.Thread stoped [23:08:58]recv_with_timeout no data received [23:08:58]CommunicateWithHost answer receiving error [23:08:58]CommunicateWithHost err = -3 [23:08:58]OFD Sender: Server communicate error [23:09:03]OFD Sender: Processing packet 72637 [packets to send 277, broken 276] [23:09:03]ProducePacketName [23:09:03]name=ofd_packets/00072637 [23:09:03]OFD Sender: To server: pG, [23:09:03]CommunicateWithHost lk.salyk.kg:30040 [23:09:03]ConnectInit lk.salyk.kg [23:09:08]Connected sock=9 [23:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 4E 2E 07 01 3A 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 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 A5 00 00 00 F4 03 04 00 82 19 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 35 04 06 00 D2 B1 F1 A2 63 C7 E0 B3 AA 30 0B FC 38 06 [23:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 F8 D3 47 00 9D 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BD 1B 01 00 F4 03 04 00 50 C4 1F 67 B6 04 01 00 00 0E 82 E7 77 DD 27 52 FE [23:09:08]CommunicateWithHost err = 0 [23:09:08]CheckOFDResponse [23:09:08]1017 (14) - 77093643461234 [23:09:08]1041 (16) - 0000000000874662 [23:09:08]1040 (4) - 72637 [23:09:08]1012 (4) - 28.10.2024 17:05 [23:09:08]1206 (1) - 0 [23:09:08]OFD Sender: Remove packet 72637 [23:09:08]ProducePacketName [23:09:08]name=ofd_packets/00072637 [23:09:08]NVStorageDeleteData [23:09:09]OFD Sender: No OFD packet to send [23:09:14]OFD Sender: No OFD packet to send [23:09:18]recv_with_timeout no data received [23:09:19]OFD Sender: No OFD packet to send [23:09:24]OFD Sender: No OFD packet to send [23:09:29]OFD Sender: No OFD packet to send [23:09:33]recv_with_timeout no data received [23:09:34]OFD Sender: No OFD packet to send [23:09:39]OFD Sender: No OFD packet to send [23:09:44]OFD Sender: No OFD packet to send [23:09:49]OFD Sender: No OFD packet to send [23:09:54]OFD Sender: No OFD packet to send [23:09:59]OFD Sender: No OFD packet to send [23:10:02]recv_with_timeout no data received [23:10:04]OFD Sender: No OFD packet to send [23:10:09]OFD Sender: No OFD packet to send [23:10:14]OFD Sender: No OFD packet to send [23:10:19]OFD Sender: No OFD packet to send [23:10:24]OFD Sender: No OFD packet to send [23:10:29]OFD Sender: No OFD packet to send [23:10:33]recv_with_timeout no data received [23:10:34]OFD Sender: No OFD packet to send [23:10:39]OFD Sender: No OFD packet to send [23:10:44]OFD Sender: No OFD packet to send [23:10:49]OFD Sender: No OFD packet to send [23:10:54]OFD Sender: No OFD packet to send [23:10:59]OFD Sender: No OFD packet to send [23:11:04]OFD Sender: No OFD packet to send [23:11:09]OFD Sender: No OFD packet to send [23:11:14]OFD Sender: No OFD packet to send [23:11:19]OFD Sender: No OFD packet to send [23:11:24]OFD Sender: No OFD packet to send [23:11:27]recv_with_timeout no data received [23:11:29]OFD Sender: No OFD packet to send [23:11:34]OFD Sender: No OFD packet to send [23:11:39]OFD Sender: No OFD packet to send [23:11:44]OFD Sender: No OFD packet to send [23:11:47]recv_with_timeout no data received [23:11:49]OFD Sender: No OFD packet to send [23:11:54]OFD Sender: No OFD packet to send [23:11:58]accept exits with 10 [23:11:58]New connection [23:11:58]New thread 3066928484 created [23:11:58]Thread 3066785124 joined [23:11:58]Waiting for new connection... [23:11:58] Sock 10.Parse request [23:11:58]Sock 10.Check first char [23:11:58]Sock 10.First char is OK [23:11:58]request: POST /json_proto HTTP/1.0 [23:11:58]Method: POST [23:11:58]URL: /json_proto [23:11:58]Method is POST - this is cgi request [23:11:58]url: /json_proto [23:11:58]query_string will be loaded in cgi processing [23:11:58]execute_cgi json_proto POST (null) [23:11:58]execute_cgi path=json_proto method=POST [23:11:58]POST find Content-Length [23:11:58]Host: 172.17.43.195:8080 [23:11:58]Content-Length: 681 [23:11:58]Content-Type: application/json [23:11:58] [23:11:58]POST finish read [23:11:58]Found Content-Length = 681 [23:11:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:58]execute_script... [23:11: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)952133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 12.860, "sum" : 500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:11:58]POST & json_proto [23:11:58]process_json_proto [23:11:58]json parsed OK: [23:11:58]protocol is kg_v1.0 [23:11:58]action value=close_receipt [23:11:58]process_action close_receipt [23:11:58]cmd_close_receipt [23:11:58]MH_GetDate [23:11:58]Write to MH i2c: F0 00 00 2B 04 1E [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: F0 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: F0 09 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: F0 09 00 2B 04 00 3F 1A 20 67 74 2C AD 66 BA [23:11:58]GetLastDocTimeStamp 1730156930 [23:11:58]current date 1730157119 [23:11:58]FM_GetShiftState [23:11:58]SAM_PROTO_GetShiftState [23:11:58]wFMCommunicate request_size=4 [23:11:58]MH_SAM_APDU [23:11:58]CAPDU: 80 13 01 00 [23:11:58]Write to MH i2c: E2 08 00 2C 04 80 13 01 00 00 00 00 00 AD [23:11:58]Write i2c OK [23:11:58]MH_I2C_Read... [23:11:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:58]Read from MH i2c: E2 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 0E 00 [23:11:58]MH_I2C_Read... [23:11:58]Read from MH i2c: E2 0E 00 2C 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 15 [23:11:58]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:11:58]wFMCommunicate OK [23:11:58]SAM_PROTO_GetShiftState done [23:11:58]FM_GetShiftState done [23:11:58]opened in 1730074113 [23:11:58]opened+sec_in_day 1730160513 [23:11:58]quantity*price = 50025 [23:11:58]sum+1 = 50026 [23:11:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 166 28.10.2024 23:11 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72638 ФПД: 127800615447627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T231159&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72638&fm=127800615447627&tin=02508201610067®Number=0000000000091644&sum=50000 [23:11:59]StoreToDocumentArchive [23:11:59]shift 554 fd 72638 [23:11:59]save to /storage/0554/doc_00072638 [23:11:59]save last doc name /storage/0554/doc_00072638 to /storage/kkm_last_doc_name [23:11:59]save OK [23:11:59]Clear old archive folders... [23:11:59]ProcessDocumentItem done err = 0, tmpTLVsize=250 [23:11:59]tlvbuf is 00201B80 [23:11:59]SAM_PROTO_ClearQueue [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 09 00 00 [23:11:59]Write to MH i2c: E2 08 00 39 04 80 09 00 00 00 00 00 00 AF [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 39 04 00 90 00 B1 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]SAM_PROTO_ClearQueue done [23:11:59]KKMCreateOFDPacket [23:11:59]OFDProtocolAddRootSTLVToBuf [23:11:59]FM_MakeSignedData [23:11:59]FM_MakeSignedData [23:11:59]SAM_PROTO_SignData [23:11:59]wFMCommunicate request_size=4 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 01 02 [23:11:59]Write to MH i2c: E2 08 00 3A 04 80 0D 01 02 00 00 00 00 B7 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 3A 04 00 90 00 B2 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]wFMCommunicate request_size=255 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1B 01 00 35 04 06 00 74 3B [23:11:59]Write to MH i2c: E2 02 01 3B 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1B 01 00 35 04 06 00 74 3B 00 00 32 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]OFD Sender: No OFD packet to send [23:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 3B 04 00 90 00 B3 [23:11:59]RAPDU: 90 00 [23:11:59]wFMCommunicate OK [23:11:59]wFMCommunicate request_size=9 [23:11:59]MH_SAM_APDU [23:11:59]CAPDU: 80 0D 02 02 04 E6 49 2C 4B [23:11:59]Write to MH i2c: E2 0C 00 3C 04 80 0D 02 02 04 00 E6 49 2C 4B 00 00 68 [23:11:59]Write i2c OK [23:11:59]MH_I2C_Read... [23:11:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:59]Read from MH i2c: E2 [23:11:59]MH_I2C_Read... [23:11:59]Read from MH i2c: E2 03 00 [23:11:59]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 03 00 3C 04 00 90 00 B4 [23:12:00]RAPDU: 90 00 [23:12:00]wFMCommunicate OK [23:12:00]wFMCommunicate request_size=4 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 0D 03 02 [23:12:00]Write to MH i2c: E2 08 00 3D 04 80 0D 03 02 00 00 00 00 BC [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 0B 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 0B 00 3D 04 00 A3 7D 65 9E 4D 55 71 58 90 00 4B [23:12:00]RAPDU: A3 7D 65 9E 4D 55 71 58 90 00 [23:12:00]wFMCommunicate OK [23:12:00]SAM_PROTO_SignData done [23:12:00]FM_MakeSignedData done [23:12:00]CreateOFDProtocolMessage [23:12:00]wFMCommunicate request_size=4 [23:12:00]MH_SAM_APDU [23:12:00]CAPDU: 80 11 00 00 [23:12:00]Write to MH i2c: E2 08 00 3E 04 80 11 00 00 00 00 00 00 BC [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:00]Read from MH i2c: E2 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 17 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: E2 17 00 3E 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 10 [23:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:12:00]wFMCommunicate OK [23:12:00]CreateOFDProtocolMessage done [23:12:00]OFDSenderStorePacket 72638 [23:12:00]StoreOFDPacket docnum=72638 [23:12:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 82 23 06 01 CB DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1B 01 00 35 04 06 00 74 3B E6 49 2C 4B A3 7D 65 9E 4D 55 71 58 [23:12:00]CheckFolder [23:12:00]dirname=/storage/ofd_packets [23:12:00]CheckFolder done [23:12:00]ProducePacketName [23:12:00]name=ofd_packets/00072638 [23:12:00]NVStorageSaveData ofd_packets/00072638 [23:12:00]File name is /storage/ofd_packets/00072638 [23:12:00]Write 300 bytes [23:12:00]NVStorageSaveData done [23:12:00]OFDSenderStorePacket done [23:12:00]KKMCreateOFDPacket done [23:12:00]NVStorageSaveData kkm_last_timestamp [23:12:00]File name is /storage/kkm_last_timestamp [23:12:00]Write 4 bytes [23:12:00]NVStorageSaveData done [23:12:00]ExternCall_PrintAddStr [23:12:00]wPrintStart [23:12:00]Write to MH i2c: 01 00 00 3F 04 43 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 3F 04 00 00 00 00 00 FF 0F 58 [23:12:00]RasterBufferAndPrint [23:12:00]line Счет N : (1)952133 [23:12:00]line ИНН: 02508201610067 [23:12:00]line Контрольно-Кассовый Чек [23:12:00]line ПРОДАЖА [23:12:00]line ТРК (МРК, ГНК) : 71 [23:12:00]line Товар: 2711190000 [23:12:00]line ГАЗ-К-3 [23:12:00]line 12.860 * 38.90 [23:12:00]line = 500.25 [23:12:00]line НДС 12% НСП 1% [23:12:00]line > о реализуемом товаре [23:12:00]line ОКРУГЛЕНИЕ: -0.25 [23:12:00]line ИТОГО: 500.00 [23:12:00]line Внесено: 500.00 [23:12:00]line СДАЧА: 0.00 [23:12:00]line НСП 1% : 4.43 [23:12:00]line НДС 12% : 53.12 [23:12:00]line Наличными: 500.00 [23:12:00]line Безнал.: 0.00 [23:12:00]line Место: АЗС № 113 "Партнер Нефть" [23:12:00]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:12:00]line СНО: Общий режим [23:12:00]line Чек 166 28.10.2024 23:11 [23:12:00]line Смена: 554 ФФД: 1.0 [23:12:00]line ЗНМ: 0300000087 [23:12:00]line РНМ: 0000000000091644 [23:12:00]line Версия ККМ: 001 [23:12:00]line ФМ: 0000000000874662 [23:12:00]line ФД: 72638 [23:12:00]line ФПД: 127800615447627 [23:12:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T231159&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72638&fm=127800615447627&tin=02508201610067®Number=0000000000091644&sum=50000 [23:12:00]OFD Sender: Processing packet 72638 [packets to send 277, broken 276] [23:12:00]ProducePacketName [23:12:00]name=ofd_packets/00072638 [23:12:00]OFD Sender: To server: pG, [23:12:00]CommunicateWithHost lk.salyk.kg:30040 [23:12:00]ConnectInit lk.salyk.kg [23:12:00]written 0, free lines is 4095 [23:12:00]Write to MH i2c: 01 00 00 6A 04 6E [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: 01 07 00 6A 04 00 00 00 00 00 CF 0C 50 [23:12:00]RasterBufferAndPrint [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]line [23:12:00]written 0, free lines is 3283 [23:12:00]MH_Cut [23:12:00]Write to MH i2c: D1 01 00 71 04 01 47 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 01 00 [23:12:00]MH_I2C_Read... [23:12:00]Read from MH i2c: D1 01 00 71 04 00 46 [23:12:00]Write to MH i2c: 01 00 00 72 04 76 [23:12:00]Write i2c OK [23:12:00]MH_I2C_Read... [23:12:01]*** Cut start [23:12:01]*** Partial cut [23:12:01]*** CUTSNS_PIN = 1 [23:12:01]*** CUTSNS_PIN = 0 [23:12:01]*** Brake cut motor [23:12:02]Read from MH i2c: 01 [23:12:02]MH_I2C_Read... [23:12:02]*** Stop cut motor [23:12:02]*** Cut end [23:12:02]Read from MH i2c: 01 07 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: 01 07 00 72 04 00 00 00 00 00 FF 0F 8B [23:12:02]process_action close_receipt done [23:12:02]requested_data is exist [23:12:02]produce_requested_data [23:12:02]requested_item fm.sn is exist - process it [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 11 00 00 [23:12:02]Write to MH i2c: E2 08 00 73 04 80 11 00 00 00 00 00 00 F1 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 17 00 73 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [23:12:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:12:02]wFMCommunicate OK [23:12:02]requested_item fd.num is exist - process it [23:12:02]SAM_PROTO_GetFieldsCounters [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 13 00 00 [23:12:02]Write to MH i2c: E2 08 00 74 04 80 13 00 00 00 00 00 00 F4 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 62 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 62 00 74 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1B 01 00 0E 04 04 00 2A 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 0D [23:12: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BE 1B 01 00 0E 04 04 00 2A 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 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_GetFieldsCounters done [23:12:02]requested_item shift.num is exist - process it [23:12:02]requested_item shift.opened is exist - process it [23:12:02]req_shift_opened [23:12:02]FM_GetShiftState [23:12:02]SAM_PROTO_GetShiftState [23:12:02]wFMCommunicate request_size=4 [23:12:02]MH_SAM_APDU [23:12:02]CAPDU: 80 13 01 00 [23:12:02]Write to MH i2c: E2 08 00 75 04 80 13 01 00 00 00 00 00 F6 [23:12:02]Write i2c OK [23:12:02]MH_I2C_Read... [23:12:02]Connected sock=11 [23:12:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 82 23 06 01 CB DD 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 3C 32 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 69 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 3F 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1B 01 00 35 04 06 00 74 3B E6 49 2C 4B A3 7D 65 9E 4D 55 71 58 [23:12:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:12:02]Read from MH i2c: E2 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 0E 00 [23:12:02]MH_I2C_Read... [23:12:02]Read from MH i2c: E2 0E 00 75 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 5E [23:12:02]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:12:02]wFMCommunicate OK [23:12:02]SAM_PROTO_GetShiftState done [23:12:02]FM_GetShiftState done [23:12:02]req_shift_opened done [23:12:02]requested_item shift.open_date is exist - process it [23:12:02]req_shift_open_date [23:12:02]req_shift_open_date done [23:12:02]produce_requested_data done [23:12:02]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72638,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:12:02]process_action_free close_receipt [23:12:02]json_value_free [23:12:02]json_value_free done [23:12:02]process_json_proto returns [23:12:02]Send response to host [23:12:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72638,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:12:02]free response buf [23:12:02]execute_script done [23:12:02]execute_script returns [23:12:02]free content buf [23:12:02]Sock 10.Close socket [23:12:02]Sock 10.Thread stoped [23:12:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 70 2A 47 00 52 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BE 1B 01 00 F4 03 04 00 FE C4 1F 67 B6 04 01 00 00 8C AE 62 C4 C5 36 48 E2 [23:12:02]CommunicateWithHost err = 0 [23:12:02]CheckOFDResponse [23:12:02]1017 (14) - 77093643461234 [23:12:02]1041 (16) - 0000000000874662 [23:12:02]1040 (4) - 72638 [23:12:02]1012 (4) - 28.10.2024 17:08 [23:12:02]1206 (1) - 0 [23:12:02]OFD Sender: Remove packet 72638 [23:12:02]ProducePacketName [23:12:02]name=ofd_packets/00072638 [23:12:02]NVStorageDeleteData [23:12:03]OFD Sender: No OFD packet to send [23:12:08]OFD Sender: No OFD packet to send [23:12:13]OFD Sender: No OFD packet to send [23:12:13]recv_with_timeout no data received [23:12:18]OFD Sender: No OFD packet to send [23:12:23]OFD Sender: No OFD packet to send [23:12:24]recv_with_timeout no data received [23:12:28]OFD Sender: No OFD packet to send [23:12:33]OFD Sender: No OFD packet to send [23:12:38]OFD Sender: No OFD packet to send [23:12:43]OFD Sender: No OFD packet to send [23:12:48]OFD Sender: No OFD packet to send [23:12:52]recv_with_timeout no data received [23:12:53]OFD Sender: No OFD packet to send [23:12:58]OFD Sender: No OFD packet to send [23:13:03]OFD Sender: No OFD packet to send [23:13:08]OFD Sender: No OFD packet to send [23:13:13]OFD Sender: No OFD packet to send [23:13:16]recv_with_timeout no data received [23:13:18]OFD Sender: No OFD packet to send [23:13:23]OFD Sender: No OFD packet to send [23:13:28]OFD Sender: No OFD packet to send [23:13:33]OFD Sender: No OFD packet to send [23:13:38]OFD Sender: No OFD packet to send [23:13:40]recv_with_timeout no data received [23:13:43]OFD Sender: No OFD packet to send [23:13:48]OFD Sender: No OFD packet to send [23:13:53]OFD Sender: No OFD packet to send [23:13:58]OFD Sender: No OFD packet to send [23:14:03]OFD Sender: No OFD packet to send [23:14:08]OFD Sender: No OFD packet to send [23:14:13]OFD Sender: No OFD packet to send [23:14:18]OFD Sender: No OFD packet to send [23:14:22]accept exits with 7 [23:14:22]New connection [23:14:22]New thread 3066785124 created [23:14:22]Thread 3066928484 joined [23:14:22]Waiting for new connection... [23:14:22] Sock 7.Parse request [23:14:22]Sock 7.Check first char [23:14:22]Sock 7.First char is OK [23:14:22]request: POST /json_proto HTTP/1.0 [23:14:22]Method: POST [23:14:22]URL: /json_proto [23:14:22]Method is POST - this is cgi request [23:14:22]url: /json_proto [23:14:22]query_string will be loaded in cgi processing [23:14:22]execute_cgi json_proto POST (null) [23:14:22]execute_cgi path=json_proto method=POST [23:14:22]POST find Content-Length [23:14:22]Host: 172.17.43.195:8080 [23:14:22]Content-Length: 677 [23:14:22]Content-Type: application/json [23:14:22] [23:14:22]POST finish read [23:14:22]Found Content-Length = 677 [23:14:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.710, "sum" : 315.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:22]execute_script... [23:14: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)952134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 4.710, "sum" : 315.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 315.00, "payments": [ { "type": 0, "sum" : 315.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:14:22]POST & json_proto [23:14:22]process_json_proto [23:14:22]json parsed OK: [23:14:22]protocol is kg_v1.0 [23:14:22]action value=close_receipt [23:14:22]process_action close_receipt [23:14:22]cmd_close_receipt [23:14:22]MH_GetDate [23:14:22]Write to MH i2c: F0 00 00 76 04 69 [23:14:22]Write i2c OK [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 09 00 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: F0 09 00 76 04 00 CF 1A 20 67 74 2C AD 66 95 [23:14:22]GetLastDocTimeStamp 1730157119 [23:14:22]current date 1730157263 [23:14:22]FM_GetShiftState [23:14:22]SAM_PROTO_GetShiftState [23:14:22]wFMCommunicate request_size=4 [23:14:22]MH_SAM_APDU [23:14:22]CAPDU: 80 13 01 00 [23:14:22]Write to MH i2c: E2 08 00 77 04 80 13 01 00 00 00 00 00 F8 [23:14:22]Write i2c OK [23:14:22]MH_I2C_Read... [23:14:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:22]Read from MH i2c: E2 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: E2 0E 00 [23:14:22]MH_I2C_Read... [23:14:22]Read from MH i2c: E2 0E 00 77 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 60 [23:14:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:14:22]wFMCommunicate OK [23:14:22]SAM_PROTO_GetShiftState done [23:14:22]FM_GetShiftState done [23:14:22]opened in 1730074113 [23:14:22]opened+sec_in_day 1730160513 [23:14:22]quantity*price = 31509 [23:14:22]sum+1 = 31511 [23:14:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 315.00 Внесено: 320.00 СДАЧА: 5.00 НСП 1% : 2.79 НДС 12% : 33.46 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 167 28.10.2024 23:14 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72639 ФПД: 83710918652504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T231423&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72639&fm=83710918652504&tin=02508201610067®Number=0000000000091644&sum=31500 [23:14:23]StoreToDocumentArchive [23:14:23]shift 554 fd 72639 [23:14:23]save to /storage/0554/doc_00072639 [23:14:23]save last doc name /storage/0554/doc_00072639 to /storage/kkm_last_doc_name [23:14:23]save OK [23:14:23]Clear old archive folders... [23:14:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:14:23]tlvbuf is 00275270 [23:14:23]SAM_PROTO_ClearQueue [23:14:23]wFMCommunicate request_size=4 [23:14:23]MH_SAM_APDU [23:14:23]CAPDU: 80 09 00 00 [23:14:23]Write to MH i2c: E2 08 00 84 04 80 09 00 00 00 00 00 00 FA [23:14:23]Write i2c OK [23:14:23]MH_I2C_Read... [23:14:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:14:23]Read from MH i2c: E2 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 03 00 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 03 00 84 04 00 90 00 FC [23:14:23]RAPDU: 90 00 [23:14:23]wFMCommunicate OK [23:14:23]SAM_PROTO_ClearQueue done [23:14:23]KKMCreateOFDPacket [23:14:23]OFDProtocolAddRootSTLVToBuf [23:14:23]FM_MakeSignedData [23:14:23]FM_MakeSignedData [23:14:23]SAM_PROTO_SignData [23:14:23]wFMCommunicate request_size=4 [23:14:23]MH_SAM_APDU [23:14:23]CAPDU: 80 0D 01 02 [23:14:23]Write to MH i2c: E2 08 00 85 04 80 0D 01 02 00 00 00 00 02 [23:14:23]Write i2c OK [23:14:23]MH_I2C_Read... [23:14:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:14:23]Read from MH i2c: E2 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 03 00 [23:14:23]MH_I2C_Read... [23:14:23]Read from MH i2c: E2 03 00 85 04 00 90 00 FD [23:14:23]RAPDU: 90 00 [23:14:23]wFMCommunicate OK [23:14:23]wFMCommunicate request_size=255 [23:14:23]MH_SAM_APDU [23:14: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 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 CF 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1B 01 00 35 04 06 00 4C [23:14:23]Write to MH i2c: E2 02 01 86 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 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 CF 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1B 01 00 35 04 06 00 4C 00 00 00 [23:14:23]Write i2c OK [23:14:23]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 86 04 00 90 00 FE [23:14:24]RAPDU: 90 00 [23:14:24]wFMCommunicate OK [23:14:24]wFMCommunicate request_size=10 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 0D 02 02 05 22 77 91 F2 58 [23:14:24]Write to MH i2c: E2 0D 00 87 04 80 0D 02 02 05 00 22 77 91 F2 58 00 00 83 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 03 00 87 04 00 90 00 FF [23:14:24]RAPDU: 90 00 [23:14:24]wFMCommunicate OK [23:14:24]wFMCommunicate request_size=4 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 0D 03 02 [23:14:24]Write to MH i2c: E2 08 00 88 04 80 0D 03 02 00 00 00 00 07 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 0B 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 0B 00 88 04 00 04 2B 43 FF 86 A7 5B 73 90 00 74 [23:14:24]RAPDU: 04 2B 43 FF 86 A7 5B 73 90 00 [23:14:24]wFMCommunicate OK [23:14:24]SAM_PROTO_SignData done [23:14:24]FM_MakeSignedData done [23:14:24]CreateOFDProtocolMessage [23:14:24]wFMCommunicate request_size=4 [23:14:24]MH_SAM_APDU [23:14:24]CAPDU: 80 11 00 00 [23:14:24]Write to MH i2c: E2 08 00 89 04 80 11 00 00 00 00 00 00 07 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:24]Read from MH i2c: E2 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 17 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: E2 17 00 89 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [23:14:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:14:24]wFMCommunicate OK [23:14:24]CreateOFDProtocolMessage done [23:14:24]OFDSenderStorePacket 72639 [23:14:24]StoreOFDPacket docnum=72639 [23:14:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 19 C1 07 01 C4 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 CF 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1B 01 00 35 04 06 00 4C 22 77 91 F2 58 04 2B 43 FF 86 A7 5B 73 [23:14:24]CheckFolder [23:14:24]dirname=/storage/ofd_packets [23:14:24]CheckFolder done [23:14:24]ProducePacketName [23:14:24]name=ofd_packets/00072639 [23:14:24]NVStorageSaveData ofd_packets/00072639 [23:14:24]File name is /storage/ofd_packets/00072639 [23:14:24]Write 301 bytes [23:14:24]NVStorageSaveData done [23:14:24]OFDSenderStorePacket done [23:14:24]KKMCreateOFDPacket done [23:14:24]NVStorageSaveData kkm_last_timestamp [23:14:24]File name is /storage/kkm_last_timestamp [23:14:24]Write 4 bytes [23:14:24]NVStorageSaveData done [23:14:24]ExternCall_PrintAddStr [23:14:24]wPrintStart [23:14:24]Write to MH i2c: 01 00 00 8A 04 8E [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 07 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 07 00 8A 04 00 00 00 00 00 FF 0F A3 [23:14:24]RasterBufferAndPrint [23:14:24]line Счет N : (1)952134 [23:14:24]line ИНН: 02508201610067 [23:14:24]line Контрольно-Кассовый Чек [23:14:24]line ПРОДАЖА [23:14:24]line ТРК (МРК, ГНК) : 63 [23:14:24]line Товар: 2710124130 [23:14:24]line Аи-92-К-5 [23:14:24]line 4.710 * 66.90 [23:14:24]line = 315.10 [23:14:24]line НДС 12% НСП 1% [23:14:24]line > о реализуемом товаре [23:14:24]line ОКРУГЛЕНИЕ: -0.10 [23:14:24]line ИТОГО: 315.00 [23:14:24]line Внесено: 320.00 [23:14:24]line СДАЧА: 5.00 [23:14:24]line НСП 1% : 2.79 [23:14:24]line НДС 12% : 33.46 [23:14:24]line Наличными: 315.00 [23:14:24]line Безнал.: 0.00 [23:14:24]line Место: АЗС № 113 "Партнер Нефть" [23:14:24]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:14:24]line СНО: Общий режим [23:14:24]line Чек 167 28.10.2024 23:14 [23:14:24]line Смена: 554 ФФД: 1.0 [23:14:24]line ЗНМ: 0300000087 [23:14:24]line РНМ: 0000000000091644 [23:14:24]line Версия ККМ: 001 [23:14:24]line ФМ: 0000000000874662 [23:14:24]line ФД: 72639 [23:14:24]line ФПД: 83710918652504 [23:14:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T231423&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72639&fm=83710918652504&tin=02508201610067®Number=0000000000091644&sum=31500 [23:14:24]written 0, free lines is 4095 [23:14:24]OFD Sender: Processing packet 72639 [packets to send 277, broken 276] [23:14:24]ProducePacketName [23:14:24]name=ofd_packets/00072639 [23:14:24]OFD Sender: To server: pG, [23:14:24]CommunicateWithHost lk.salyk.kg:30040 [23:14:24]ConnectInit lk.salyk.kg [23:14:24]Write to MH i2c: 01 00 00 B5 04 B9 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 07 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: 01 07 00 B5 04 00 00 00 00 00 CF 0C 9B [23:14:24]RasterBufferAndPrint [23:14:24]line [23:14:24]line [23:14:24]line [23:14:24]line [23:14:24]line [23:14:24]written 0, free lines is 3287 [23:14:24]MH_Cut [23:14:24]Write to MH i2c: D1 01 00 BC 04 01 92 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: D1 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: D1 01 00 [23:14:24]MH_I2C_Read... [23:14:24]Read from MH i2c: D1 01 00 BC 04 00 91 [23:14:24]Write to MH i2c: 01 00 00 BD 04 C1 [23:14:24]Write i2c OK [23:14:24]MH_I2C_Read... [23:14:25]*** Cut start [23:14:25]*** Partial cut [23:14:25]*** CUTSNS_PIN = 1 [23:14:25]Connected sock=10 [23:14:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 19 C1 07 01 C4 E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 12 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 16 7B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 12 0D 00 00 00 00 07 04 06 00 0C 7B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 CF 1A 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1B 01 00 35 04 06 00 4C 22 77 91 F2 58 04 2B 43 FF 86 A7 5B 73 [23:14:25]*** CUTSNS_PIN = 0 [23:14:25]*** Brake cut motor [23:14:26]Read from MH i2c: 01 [23:14:26]MH_I2C_Read... [23:14:26]*** Stop cut motor [23:14:26]*** Cut end [23:14:26]Read from MH i2c: 01 07 00 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: 01 07 00 BD 04 00 00 00 00 00 FF 0F D6 [23:14:26]process_action close_receipt done [23:14:26]requested_data is exist [23:14:26]produce_requested_data [23:14:26]requested_item fm.sn is exist - process it [23:14:26]wFMCommunicate request_size=4 [23:14:26]MH_SAM_APDU [23:14:26]CAPDU: 80 11 00 00 [23:14:26]Write to MH i2c: E2 08 00 BE 04 80 11 00 00 00 00 00 00 3C [23:14:26]Write i2c OK [23:14:26]MH_I2C_Read... [23:14:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:14:26]Read from MH i2c: E2 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 17 00 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 17 00 BE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 90 [23:14:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:14:26]wFMCommunicate OK [23:14:26]requested_item fd.num is exist - process it [23:14:26]SAM_PROTO_GetFieldsCounters [23:14:26]wFMCommunicate request_size=4 [23:14:26]MH_SAM_APDU [23:14:26]CAPDU: 80 13 00 00 [23:14:26]Write to MH i2c: E2 08 00 BF 04 80 13 00 00 00 00 00 00 3F [23:14:26]Write i2c OK [23:14:26]MH_I2C_Read... [23:14:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:14:26]Read from MH i2c: E2 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 62 00 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 62 00 BF 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1B 01 00 0E 04 04 00 2A 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 5C [23:14:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 BF 1B 01 00 0E 04 04 00 2A 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 [23:14:26]wFMCommunicate OK [23:14:26]SAM_PROTO_GetFieldsCounters done [23:14:26]requested_item shift.num is exist - process it [23:14:26]requested_item shift.opened is exist - process it [23:14:26]req_shift_opened [23:14:26]FM_GetShiftState [23:14:26]SAM_PROTO_GetShiftState [23:14:26]wFMCommunicate request_size=4 [23:14:26]MH_SAM_APDU [23:14:26]CAPDU: 80 13 01 00 [23:14:26]Write to MH i2c: E2 08 00 C0 04 80 13 01 00 00 00 00 00 41 [23:14:26]Write i2c OK [23:14:26]MH_I2C_Read... [23:14:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:14:26]Read from MH i2c: E2 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 0E 00 [23:14:26]MH_I2C_Read... [23:14:26]Read from MH i2c: E2 0E 00 C0 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 A9 [23:14:26]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:14:26]wFMCommunicate OK [23:14:26]SAM_PROTO_GetShiftState done [23:14:26]FM_GetShiftState done [23:14:26]req_shift_opened done [23:14:26]requested_item shift.open_date is exist - process it [23:14:26]req_shift_open_date [23:14:26]req_shift_open_date done [23:14:26]produce_requested_data done [23:14:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72639,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:14:26]process_action_free close_receipt [23:14:26]json_value_free [23:14:26]json_value_free done [23:14:26]process_json_proto returns [23:14:26]Send response to host [23:14:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72639,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:14:26]free response buf [23:14:26]execute_script done [23:14:26]execute_script returns [23:14:26]free content buf [23:14:26]Sock 7.Close socket [23:14:26]Sock 7.Thread stoped [23:14:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 8C 98 47 00 68 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 BF 1B 01 00 F4 03 04 00 8D C5 1F 67 B6 04 01 00 00 C3 AF 29 9B 98 8C 6E E0 [23:14:27]CommunicateWithHost err = 0 [23:14:27]CheckOFDResponse [23:14:27]1017 (14) - 77093643461234 [23:14:27]1041 (16) - 0000000000874662 [23:14:27]1040 (4) - 72639 [23:14:27]1012 (4) - 28.10.2024 17:10 [23:14:27]1206 (1) - 0 [23:14:27]OFD Sender: Remove packet 72639 [23:14:27]ProducePacketName [23:14:27]name=ofd_packets/00072639 [23:14:27]NVStorageDeleteData [23:14:27]OFD Sender: No OFD packet to send [23:14:32]recv_with_timeout no data received [23:14:32]OFD Sender: No OFD packet to send [23:14:37]OFD Sender: No OFD packet to send [23:14:42]OFD Sender: No OFD packet to send [23:14:42]recv_with_timeout no data received [23:14:47]OFD Sender: No OFD packet to send [23:14:52]OFD Sender: No OFD packet to send [23:14:56]recv_with_timeout no data received [23:14:57]OFD Sender: No OFD packet to send [23:15:02]OFD Sender: No OFD packet to send [23:15:07]OFD Sender: No OFD packet to send [23:15:12]OFD Sender: No OFD packet to send [23:15:17]OFD Sender: No OFD packet to send [23:15:22]OFD Sender: No OFD packet to send [23:15:27]OFD Sender: No OFD packet to send [23:15:32]OFD Sender: No OFD packet to send [23:15:37]OFD Sender: No OFD packet to send [23:15:42]OFD Sender: No OFD packet to send [23:15:47]OFD Sender: No OFD packet to send [23:15:52]OFD Sender: No OFD packet to send [23:15:57]OFD Sender: No OFD packet to send [23:16:02]OFD Sender: No OFD packet to send [23:16:06]recv_with_timeout no data received [23:16:07]OFD Sender: No OFD packet to send [23:16:12]OFD Sender: No OFD packet to send [23:16:17]OFD Sender: No OFD packet to send [23:16:22]OFD Sender: No OFD packet to send [23:16:27]OFD Sender: No OFD packet to send [23:16:32]OFD Sender: No OFD packet to send [23:16:37]OFD Sender: No OFD packet to send [23:16:41]recv_with_timeout no data received [23:16:42]OFD Sender: No OFD packet to send [23:16:47]OFD Sender: No OFD packet to send [23:16:52]OFD Sender: No OFD packet to send [23:16:53]recv_with_timeout no data received [23:16:57]OFD Sender: No OFD packet to send [23:17:02]OFD Sender: No OFD packet to send [23:17:07]OFD Sender: No OFD packet to send [23:17:12]OFD Sender: No OFD packet to send [23:17:17]OFD Sender: No OFD packet to send [23:17:22]OFD Sender: No OFD packet to send [23:17:27]OFD Sender: No OFD packet to send [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:18]OFD Sender: No OFD packet to send [23:18:23]OFD Sender: No OFD packet to send [23:18:28]OFD Sender: No OFD packet to send [23:18:33]OFD Sender: No OFD packet to send [23:18:38]OFD Sender: No OFD packet to send [23:18:43]OFD Sender: No OFD packet to send [23:18:48]OFD Sender: No OFD packet to send [23:18:53]OFD Sender: No OFD packet to send [23:18:58]OFD Sender: No OFD packet to send [23:19:03]OFD Sender: No OFD packet to send [23:19:08]OFD Sender: No OFD packet to send [23:19:13]OFD Sender: No OFD packet to send [23:19:17]recv_with_timeout no data received [23:19:18]OFD Sender: No OFD packet to send [23:19:23]OFD Sender: No OFD packet to send [23:19:28]OFD Sender: No OFD packet to send [23:19:33]OFD Sender: No OFD packet to send [23:19:34]recv_with_timeout no data received [23:19:38]OFD Sender: No OFD packet to send [23:19:43]OFD Sender: No OFD packet to send [23:19:48]OFD Sender: No OFD packet to send [23:19:52]recv_with_timeout no data received [23:19:53]OFD Sender: No OFD packet to send [23:19:58]OFD Sender: No OFD packet to send [23:20:03]OFD Sender: No OFD packet to send [23:20:08]OFD Sender: No OFD packet to send [23:20:13]OFD Sender: No OFD packet to send [23:20:18]OFD Sender: No OFD packet to send [23:20:23]OFD Sender: No OFD packet to send [23:20:28]OFD Sender: No OFD packet to send [23:20:33]OFD Sender: No OFD packet to send [23:20:38]OFD Sender: No OFD packet to send [23:20:43]OFD Sender: No OFD packet to send [23:20:48]OFD Sender: No OFD packet to send [23:20:53]OFD Sender: No OFD packet to send [23:20:58]OFD Sender: No OFD packet to send [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:40]recv_with_timeout no data received [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:38]OFD Sender: No OFD packet to send [23:22:43]OFD Sender: No OFD packet to send [23:22:48]OFD Sender: No OFD packet to send [23:22:53]OFD Sender: No OFD packet to send [23:22:58]OFD Sender: No OFD packet to send [23:23:03]OFD Sender: No OFD packet to send [23:23:08]OFD Sender: No OFD packet to send [23:23:13]OFD Sender: No OFD packet to send [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [23:23:26]recv_with_timeout no data received [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:22]recv_with_timeout no data received [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:36]accept exits with 9 [23:25:36]New connection [23:25:36]New thread 3066928484 created [23:25:36]Thread 3066785124 joined [23:25:36]Waiting for new connection... [23:25:36] Sock 9.Parse request [23:25:36]Sock 9.Check first char [23:25:36]Sock 9.First char is OK [23:25:36]request: POST /json_proto HTTP/1.0 [23:25:36]Method: POST [23:25:36]URL: /json_proto [23:25:36]Method is POST - this is cgi request [23:25:36]url: /json_proto [23:25:36]query_string will be loaded in cgi processing [23:25:36]execute_cgi json_proto POST (null) [23:25:36]execute_cgi path=json_proto method=POST [23:25:36]POST find Content-Length [23:25:36]Host: 172.17.43.195:8080 [23:25:36]Content-Length: 687 [23:25:36]Content-Type: application/json [23:25:36] [23:25:36]POST finish read [23:25:36]Found Content-Length = 687 [23:25:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 25.440, "sum" : 1938.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1938.00, "payments": [ { "type": 0, "sum" : 1938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:36]execute_script... [23:25:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 25.440, "sum" : 1938.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 1938.00, "payments": [ { "type": 0, "sum" : 1938.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:25:36]POST & json_proto [23:25:36]process_json_proto [23:25:36]json parsed OK: [23:25:36]protocol is kg_v1.0 [23:25:36]action value=close_receipt [23:25:36]process_action close_receipt [23:25:36]cmd_close_receipt [23:25:36]MH_GetDate [23:25:36]Write to MH i2c: F0 00 00 C1 04 B4 [23:25:36]Write i2c OK [23:25:36]MH_I2C_Read... [23:25:36]Read from MH i2c: F0 [23:25:36]MH_I2C_Read... [23:25:36]Read from MH i2c: F0 09 00 [23:25:36]MH_I2C_Read... [23:25:36]Read from MH i2c: F0 09 00 C1 04 00 71 1D 20 67 74 2C AD 66 85 [23:25:36]GetLastDocTimeStamp 1730157263 [23:25:36]current date 1730157937 [23:25:36]FM_GetShiftState [23:25:36]SAM_PROTO_GetShiftState [23:25:36]wFMCommunicate request_size=4 [23:25:36]MH_SAM_APDU [23:25:36]CAPDU: 80 13 01 00 [23:25:36]Write to MH i2c: E2 08 00 C2 04 80 13 01 00 00 00 00 00 43 [23:25:36]Write i2c OK [23:25:36]MH_I2C_Read... [23:25:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:36]Read from MH i2c: E2 [23:25:36]MH_I2C_Read... [23:25:36]Read from MH i2c: E2 0E 00 [23:25:36]MH_I2C_Read... [23:25:36]Read from MH i2c: E2 0E 00 C2 04 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 AB [23:25:36]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:25:36]wFMCommunicate OK [23:25:36]SAM_PROTO_GetShiftState done [23:25:36]FM_GetShiftState done [23:25:36]opened in 1730074113 [23:25:36]opened+sec_in_day 1730160513 [23:25:36]quantity*price = 193852 [23:25:36]sum+1 = 193854 [23:25:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 1938.00 Внесено: 2000.00 СДАЧА: 62.00 НСП 1% : 17.15 НДС 12% : 205.86 Наличными: 1938.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 168 28.10.2024 23:25 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72640 ФПД: 97671841865615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T232537&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72640&fm=97671841865615&tin=02508201610067®Number=0000000000091644&sum=193800 [23:25:38]StoreToDocumentArchive [23:25:38]shift 554 fd 72640 [23:25:38]save to /storage/0554/doc_00072640 [23:25:38]save last doc name /storage/0554/doc_00072640 to /storage/kkm_last_doc_name [23:25:38]save OK [23:25:38]Clear old archive folders... [23:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:25:38]tlvbuf is 00200090 [23:25:38]SAM_PROTO_ClearQueue [23:25:38]wFMCommunicate request_size=4 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 09 00 00 [23:25:38]Write to MH i2c: E2 08 00 CF 04 80 09 00 00 00 00 00 00 45 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 CF 04 00 90 00 47 [23:25:38]RAPDU: 90 00 [23:25:38]wFMCommunicate OK [23:25:38]SAM_PROTO_ClearQueue done [23:25:38]KKMCreateOFDPacket [23:25:38]OFDProtocolAddRootSTLVToBuf [23:25:38]FM_MakeSignedData [23:25:38]FM_MakeSignedData [23:25:38]SAM_PROTO_SignData [23:25:38]wFMCommunicate request_size=4 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 0D 01 02 [23:25:38]Write to MH i2c: E2 08 00 D0 04 80 0D 01 02 00 00 00 00 4D [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 D0 04 00 90 00 48 [23:25:38]RAPDU: 90 00 [23:25:38]wFMCommunicate OK [23:25:38]wFMCommunicate request_size=255 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 63 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D F5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 F5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 50 00 00 00 00 07 04 06 00 08 F5 02 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 71 1D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1B 01 00 35 04 06 00 [23:25:38]Write to MH i2c: E2 02 01 D1 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 63 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D F5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 F5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 50 00 00 00 00 07 04 06 00 08 F5 02 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 71 1D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1B 01 00 35 04 06 00 00 00 A0 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 D1 04 00 90 00 49 [23:25:38]RAPDU: 90 00 [23:25:38]wFMCommunicate OK [23:25:38]wFMCommunicate request_size=11 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 0D 02 02 06 58 D4 FF 70 5F 8F [23:25:38]Write to MH i2c: E2 0E 00 D2 04 80 0D 02 02 06 00 58 D4 FF 70 5F 8F 00 00 E5 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 03 00 D2 04 00 90 00 4A [23:25:38]RAPDU: 90 00 [23:25:38]wFMCommunicate OK [23:25:38]wFMCommunicate request_size=4 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 0D 03 02 [23:25:38]Write to MH i2c: E2 08 00 D3 04 80 0D 03 02 00 00 00 00 52 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 0B 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 0B 00 D3 04 00 E4 46 4E 0C 69 56 1F 36 90 00 EB [23:25:38]RAPDU: E4 46 4E 0C 69 56 1F 36 90 00 [23:25:38]wFMCommunicate OK [23:25:38]SAM_PROTO_SignData done [23:25:38]FM_MakeSignedData done [23:25:38]CreateOFDProtocolMessage [23:25:38]wFMCommunicate request_size=4 [23:25:38]MH_SAM_APDU [23:25:38]CAPDU: 80 11 00 00 [23:25:38]Write to MH i2c: E2 08 00 D4 04 80 11 00 00 00 00 00 00 52 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:38]Read from MH i2c: E2 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 17 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: E2 17 00 D4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A6 [23:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:25:38]wFMCommunicate OK [23:25:38]CreateOFDProtocolMessage done [23:25:38]OFDSenderStorePacket 72640 [23:25:38]StoreOFDPacket docnum=72640 [23:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E9 05 08 01 69 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 63 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D F5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 F5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 50 00 00 00 00 07 04 06 00 08 F5 02 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 71 1D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1B 01 00 35 04 06 00 58 D4 FF 70 5F 8F E4 46 4E 0C 69 56 1F 36 [23:25:38]CheckFolder [23:25:38]dirname=/storage/ofd_packets [23:25:38]CheckFolder done [23:25:38]ProducePacketName [23:25:38]name=ofd_packets/00072640 [23:25:38]NVStorageSaveData ofd_packets/00072640 [23:25:38]File name is /storage/ofd_packets/00072640 [23:25:38]Write 302 bytes [23:25:38]NVStorageSaveData done [23:25:38]OFDSenderStorePacket done [23:25:38]KKMCreateOFDPacket done [23:25:38]NVStorageSaveData kkm_last_timestamp [23:25:38]File name is /storage/kkm_last_timestamp [23:25:38]Write 4 bytes [23:25:38]NVStorageSaveData done [23:25:38]ExternCall_PrintAddStr [23:25:38]wPrintStart [23:25:38]Write to MH i2c: 01 00 00 D5 04 D9 [23:25:38]Write i2c OK [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: 01 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: 01 07 00 [23:25:38]MH_I2C_Read... [23:25:38]Read from MH i2c: 01 07 00 D5 04 00 00 00 00 00 FF 0F EE [23:25:38]RasterBufferAndPrint [23:25:38]line Счет N : (1)952135 [23:25:38]line ИНН: 02508201610067 [23:25:38]line Контрольно-Кассовый Чек [23:25:38]line ПРОДАЖА [23:25:38]line ТРК (МРК, ГНК) : 43 [23:25:38]line Товар: 2710194210 [23:25:38]line ДТ(л)-К-5 [23:25:38]line 25.440 * 76.20 [23:25:38]line = 1938.53 [23:25:38]line НДС 12% НСП 1% [23:25:38]line > о реализуемом товаре [23:25:38]line ОКРУГЛЕНИЕ: -0.53 [23:25:38]line ИТОГО: 1938.00 [23:25:38]line Внесено: 2000.00 [23:25:38]line СДАЧА: 62.00 [23:25:38]line НСП 1% : 17.15 [23:25:38]line НДС 12% : 205.86 [23:25:38]line Наличными: 1938.00 [23:25:38]line Безнал.: 0.00 [23:25:38]line Место: АЗС № 113 "Партнер Нефть" [23:25:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:25:38]line СНО: Общий режим [23:25:38]line Чек 168 28.10.2024 23:25 [23:25:38]line Смена: 554 ФФД: 1.0 [23:25:38]line ЗНМ: 0300000087 [23:25:38]line РНМ: 0000000000091644 [23:25:38]line Версия ККМ: 001 [23:25:38]line ФМ: 0000000000874662 [23:25:38]line ФД: 72640 [23:25:38]line ФПД: 97671841865615 [23:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T232537&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72640&fm=97671841865615&tin=02508201610067®Number=0000000000091644&sum=193800 [23:25:38]OFD Sender: Processing packet 72640 [packets to send 277, broken 276] [23:25:38]ProducePacketName [23:25:38]name=ofd_packets/00072640 [23:25:38]OFD Sender: To server: pG, [23:25:38]CommunicateWithHost lk.salyk.kg:30040 [23:25:38]ConnectInit lk.salyk.kg [23:25:38]written 0, free lines is 4095 [23:25:39]Write to MH i2c: 01 00 00 00 05 05 [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 07 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: 01 07 00 00 05 00 00 00 00 00 EB 0C 03 [23:25:39]RasterBufferAndPrint [23:25:39]line [23:25:39]line [23:25:39]line [23:25:39]line [23:25:39]line [23:25:39]written 0, free lines is 3310 [23:25:39]MH_Cut [23:25:39]Write to MH i2c: D1 01 00 07 05 01 DE [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: D1 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: D1 01 00 [23:25:39]MH_I2C_Read... [23:25:39]Read from MH i2c: D1 01 00 07 05 00 DD [23:25:39]Write to MH i2c: 01 00 00 08 05 0D [23:25:39]Write i2c OK [23:25:39]MH_I2C_Read... [23:25:40]*** Cut start [23:25:40]*** Partial cut [23:25:40]*** CUTSNS_PIN = 1 [23:25:40]*** CUTSNS_PIN = 0 [23:25:40]*** Brake cut motor [23:25:40]Read from MH i2c: 01 [23:25:40]MH_I2C_Read... [23:25:40]*** Stop cut motor [23:25:40]*** Cut end [23:25:40]Read from MH i2c: 01 07 00 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: 01 07 00 08 05 00 00 00 00 00 FF 0F 22 [23:25:40]process_action close_receipt done [23:25:40]requested_data is exist [23:25:40]produce_requested_data [23:25:40]requested_item fm.sn is exist - process it [23:25:40]wFMCommunicate request_size=4 [23:25:40]MH_SAM_APDU [23:25:40]CAPDU: 80 11 00 00 [23:25:40]Write to MH i2c: E2 08 00 09 05 80 11 00 00 00 00 00 00 88 [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:25:40]Read from MH i2c: E2 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: E2 17 00 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: E2 17 00 09 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [23:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:25:40]wFMCommunicate OK [23:25:40]requested_item fd.num is exist - process it [23:25:40]SAM_PROTO_GetFieldsCounters [23:25:40]wFMCommunicate request_size=4 [23:25:40]MH_SAM_APDU [23:25:40]CAPDU: 80 13 00 00 [23:25:40]Write to MH i2c: E2 08 00 0A 05 80 13 00 00 00 00 00 00 8B [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:25:40]Read from MH i2c: E2 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: E2 62 00 [23:25:40]MH_I2C_Read... [23:25:40]Read from MH i2c: E2 62 00 0A 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1B 01 00 0E 04 04 00 2A 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 AC [23:25: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C0 1B 01 00 0E 04 04 00 2A 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 [23:25:40]wFMCommunicate OK [23:25:40]SAM_PROTO_GetFieldsCounters done [23:25:40]requested_item shift.num is exist - process it [23:25:40]requested_item shift.opened is exist - process it [23:25:40]req_shift_opened [23:25:40]FM_GetShiftState [23:25:40]SAM_PROTO_GetShiftState [23:25:40]wFMCommunicate request_size=4 [23:25:40]MH_SAM_APDU [23:25:40]CAPDU: 80 13 01 00 [23:25:40]Write to MH i2c: E2 08 00 0B 05 80 13 01 00 00 00 00 00 8D [23:25:40]Write i2c OK [23:25:40]MH_I2C_Read... [23:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:25:41]Read from MH i2c: E2 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: E2 0E 00 [23:25:41]MH_I2C_Read... [23:25:41]Read from MH i2c: E2 0E 00 0B 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F5 [23:25:41]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:25:41]wFMCommunicate OK [23:25:41]SAM_PROTO_GetShiftState done [23:25:41]FM_GetShiftState done [23:25:41]req_shift_opened done [23:25:41]requested_item shift.open_date is exist - process it [23:25:41]req_shift_open_date [23:25:41]req_shift_open_date done [23:25:41]produce_requested_data done [23:25:41]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72640,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:25:41]process_action_free close_receipt [23:25:41]json_value_free [23:25:41]json_value_free done [23:25:41]process_json_proto returns [23:25:41]Send response to host [23:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72640,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:25:41]free response buf [23:25:41]execute_script done [23:25:41]execute_script returns [23:25:41]free content buf [23:25:41]Sock 9.Close socket [23:25:41]Sock 9.Thread stoped [23:25:44]recv_with_timeout no data received [23:25:52]Connected sock=11 [23:25:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 E9 05 08 01 69 89 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 60 63 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 3D F5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 F5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B3 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 50 00 00 00 00 07 04 06 00 08 F5 02 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 71 1D 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1B 01 00 35 04 06 00 58 D4 FF 70 5F 8F E4 46 4E 0C 69 56 1F 36 [23:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 E6 5B 47 00 0E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C0 1B 01 00 F4 03 04 00 3F C8 1F 67 B6 04 01 00 00 DB 85 21 B8 F4 03 4A B7 [23:25:55]CommunicateWithHost err = 0 [23:25:55]CheckOFDResponse [23:25:55]1017 (14) - 77093643461234 [23:25:55]1041 (16) - 0000000000874662 [23:25:55]1040 (4) - 72640 [23:25:55]1012 (4) - 28.10.2024 17:22 [23:25:55]1206 (1) - 0 [23:25:55]OFD Sender: Remove packet 72640 [23:25:55]ProducePacketName [23:25:55]name=ofd_packets/00072640 [23:25:55]NVStorageDeleteData [23:25:56]OFD Sender: No OFD packet to send [23:25:59]recv_with_timeout no data received [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:13]recv_with_timeout no data received [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:42]recv_with_timeout no data received [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:35]recv_with_timeout no data received [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:48]recv_with_timeout no data received [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:01]recv_with_timeout no data received [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]recv_with_timeout no data received [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:27]OFD Sender: No OFD packet to send [23:31:32]OFD Sender: No OFD packet to send [23:31:33]recv_with_timeout no data received [23:31:37]OFD Sender: No OFD packet to send [23:31:42]OFD Sender: No OFD packet to send [23:31:47]OFD Sender: No OFD packet to send [23:31:52]OFD Sender: No OFD packet to send [23:31:57]OFD Sender: No OFD packet to send [23:32:02]OFD Sender: No OFD packet to send [23:32:07]OFD Sender: No OFD packet to send [23:32:12]OFD Sender: No OFD packet to send [23:32:17]OFD Sender: No OFD packet to send [23:32:22]OFD Sender: No OFD packet to send [23:32:27]OFD Sender: No OFD packet to send [23:32:32]OFD Sender: No OFD packet to send [23:32:37]OFD Sender: No OFD packet to send [23:32:38]recv_with_timeout no data received [23:32:42]OFD Sender: No OFD packet to send [23:32:47]OFD Sender: No OFD packet to send [23:32:52]OFD Sender: No OFD packet to send [23:32:57]OFD Sender: No OFD packet to send [23:33:02]OFD Sender: No OFD packet to send [23:33:04]recv_with_timeout no data received [23:33:07]OFD Sender: No OFD packet to send [23:33:12]OFD Sender: No OFD packet to send [23:33:17]OFD Sender: No OFD packet to send [23:33:22]OFD Sender: No OFD packet to send [23:33:23]recv_with_timeout no data received [23:33:27]OFD Sender: No OFD packet to send [23:33:32]OFD Sender: No OFD packet to send [23:33:37]OFD Sender: No OFD packet to send [23:33:42]OFD Sender: No OFD packet to send [23:33:47]OFD Sender: No OFD packet to send [23:33:52]OFD Sender: No OFD packet to send [23:33:57]OFD Sender: No OFD packet to send [23:34:02]OFD Sender: No OFD packet to send [23:34:02]recv_with_timeout no data received [23:34:07]OFD Sender: No OFD packet to send [23:34:08]accept exits with 7 [23:34:08]New connection [23:34:08]New thread 3066785124 created [23:34:08]Thread 3066928484 joined [23:34:08]Waiting for new connection... [23:34:08] Sock 7.Parse request [23:34:08]Sock 7.Check first char [23:34:08]Sock 7.First char is OK [23:34:08]request: POST /json_proto HTTP/1.0 [23:34:08]Method: POST [23:34:08]URL: /json_proto [23:34:08]Method is POST - this is cgi request [23:34:08]url: /json_proto [23:34:08]query_string will be loaded in cgi processing [23:34:08]execute_cgi json_proto POST (null) [23:34:08]execute_cgi path=json_proto method=POST [23:34:08]POST find Content-Length [23:34:08]Host: 172.17.43.195:8080 [23:34:08]Content-Length: 677 [23:34:08]Content-Type: application/json [23:34:08] [23:34:08]POST finish read [23:34:08]Found Content-Length = 677 [23:34:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:08]execute_script... [23:34:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 6.740, "sum" : 500.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:34:08]POST & json_proto [23:34:08]process_json_proto [23:34:08]json parsed OK: [23:34:08]protocol is kg_v1.0 [23:34:08]action value=close_receipt [23:34:08]process_action close_receipt [23:34:08]cmd_close_receipt [23:34:08]MH_GetDate [23:34:08]Write to MH i2c: F0 00 00 0C 05 00 [23:34:08]Write i2c OK [23:34:08]MH_I2C_Read... [23:34:08]Read from MH i2c: F0 [23:34:08]MH_I2C_Read... [23:34:08]Read from MH i2c: F0 09 00 [23:34:08]MH_I2C_Read... [23:34:08]Read from MH i2c: F0 09 00 0C 05 00 71 1F 20 67 74 2C AD 66 D3 [23:34:08]GetLastDocTimeStamp 1730157937 [23:34:08]current date 1730158449 [23:34:08]FM_GetShiftState [23:34:08]SAM_PROTO_GetShiftState [23:34:08]wFMCommunicate request_size=4 [23:34:08]MH_SAM_APDU [23:34:08]CAPDU: 80 13 01 00 [23:34:08]Write to MH i2c: E2 08 00 0D 05 80 13 01 00 00 00 00 00 8F [23:34:08]Write i2c OK [23:34:08]MH_I2C_Read... [23:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:08]Read from MH i2c: E2 [23:34:08]MH_I2C_Read... [23:34:08]Read from MH i2c: E2 0E 00 [23:34:08]MH_I2C_Read... [23:34:08]Read from MH i2c: E2 0E 00 0D 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F7 [23:34:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:34:08]wFMCommunicate OK [23:34:08]SAM_PROTO_GetShiftState done [23:34:08]FM_GetShiftState done [23:34:08]opened in 1730074113 [23:34:08]opened+sec_in_day 1730160513 [23:34:08]quantity*price = 50010 [23:34:08]sum+1 = 50012 [23:34:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 169 28.10.2024 23:34 Смена: 554 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72641 ФПД: 102330760159148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T233409&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72641&fm=102330760159148&tin=02508201610067®Number=0000000000091644&sum=50000 [23:34:09]StoreToDocumentArchive [23:34:09]shift 554 fd 72641 [23:34:09]save to /storage/0554/doc_00072641 [23:34:09]save last doc name /storage/0554/doc_00072641 to /storage/kkm_last_doc_name [23:34:09]save OK [23:34:09]Clear old archive folders... [23:34:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:34:09]tlvbuf is 00201C70 [23:34:09]SAM_PROTO_ClearQueue [23:34:09]wFMCommunicate request_size=4 [23:34:09]MH_SAM_APDU [23:34:09]CAPDU: 80 09 00 00 [23:34:09]Write to MH i2c: E2 08 00 1A 05 80 09 00 00 00 00 00 00 91 [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:34:09]Read from MH i2c: E2 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 1A 05 00 90 00 93 [23:34:09]RAPDU: 90 00 [23:34:09]wFMCommunicate OK [23:34:09]SAM_PROTO_ClearQueue done [23:34:09]KKMCreateOFDPacket [23:34:09]OFDProtocolAddRootSTLVToBuf [23:34:09]FM_MakeSignedData [23:34:09]FM_MakeSignedData [23:34:09]SAM_PROTO_SignData [23:34:09]wFMCommunicate request_size=4 [23:34:09]MH_SAM_APDU [23:34:09]CAPDU: 80 0D 01 02 [23:34:09]Write to MH i2c: E2 08 00 1B 05 80 0D 01 02 00 00 00 00 99 [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:34:09]Read from MH i2c: E2 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 1B 05 00 90 00 94 [23:34:09]RAPDU: 90 00 [23:34:09]wFMCommunicate OK [23:34:09]wFMCommunicate request_size=255 [23:34:09]MH_SAM_APDU [23:34:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 71 1F 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1B 01 00 35 04 06 00 5D [23:34:09]Write to MH i2c: E2 02 01 1C 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 71 1F 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1B 01 00 35 04 06 00 5D 00 00 24 [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:09]Read from MH i2c: E2 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 [23:34:09]MH_I2C_Read... [23:34:09]Read from MH i2c: E2 03 00 1C 05 00 90 00 95 [23:34:09]RAPDU: 90 00 [23:34:09]wFMCommunicate OK [23:34:09]wFMCommunicate request_size=10 [23:34:09]MH_SAM_APDU [23:34:09]CAPDU: 80 0D 02 02 05 11 BC 9B DF AC [23:34:09]Write to MH i2c: E2 0D 00 1D 05 80 0D 02 02 05 00 11 BC 9B DF AC 00 00 99 [23:34:09]Write i2c OK [23:34:09]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 03 00 1D 05 00 90 00 96 [23:34:10]RAPDU: 90 00 [23:34:10]wFMCommunicate OK [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 0D 03 02 [23:34:10]Write to MH i2c: E2 08 00 1E 05 80 0D 03 02 00 00 00 00 9E [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 0B 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 0B 00 1E 05 00 76 7B EA 01 A1 5E 39 3B 90 00 EE [23:34:10]RAPDU: 76 7B EA 01 A1 5E 39 3B 90 00 [23:34:10]wFMCommunicate OK [23:34:10]SAM_PROTO_SignData done [23:34:10]FM_MakeSignedData done [23:34:10]CreateOFDProtocolMessage [23:34:10]wFMCommunicate request_size=4 [23:34:10]MH_SAM_APDU [23:34:10]CAPDU: 80 11 00 00 [23:34:10]Write to MH i2c: E2 08 00 1F 05 80 11 00 00 00 00 00 00 9E [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:10]Read from MH i2c: E2 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 17 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: E2 17 00 1F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F2 [23:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:34:10]wFMCommunicate OK [23:34:10]CreateOFDProtocolMessage done [23:34:10]OFDSenderStorePacket 72641 [23:34:10]StoreOFDPacket docnum=72641 [23:34:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E1 81 07 01 F3 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 71 1F 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1B 01 00 35 04 06 00 5D 11 BC 9B DF AC 76 7B EA 01 A1 5E 39 3B [23:34:10]CheckFolder [23:34:10]dirname=/storage/ofd_packets [23:34:10]CheckFolder done [23:34:10]ProducePacketName [23:34:10]name=ofd_packets/00072641 [23:34:10]NVStorageSaveData ofd_packets/00072641 [23:34:10]File name is /storage/ofd_packets/00072641 [23:34:10]Write 301 bytes [23:34:10]NVStorageSaveData done [23:34:10]OFDSenderStorePacket done [23:34:10]KKMCreateOFDPacket done [23:34:10]NVStorageSaveData kkm_last_timestamp [23:34:10]File name is /storage/kkm_last_timestamp [23:34:10]Write 4 bytes [23:34:10]NVStorageSaveData done [23:34:10]ExternCall_PrintAddStr [23:34:10]wPrintStart [23:34:10]Write to MH i2c: 01 00 00 20 05 25 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 07 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 07 00 20 05 00 00 00 00 00 FF 0F 3A [23:34:10]RasterBufferAndPrint [23:34:10]line Счет N : (1)952136 [23:34:10]line ИНН: 02508201610067 [23:34:10]line Контрольно-Кассовый Чек [23:34:10]line ПРОДАЖА [23:34:10]line ТРК (МРК, ГНК) : 62 [23:34:10]line Товар: 2710124500 [23:34:10]line Аи-95-К-3 [23:34:10]line 6.740 * 74.20 [23:34:10]line = 500.11 [23:34:10]line НДС 12% НСП 1% [23:34:10]line > о реализуемом товаре [23:34:10]line ОКРУГЛЕНИЕ: -0.11 [23:34:10]line ИТОГО: 500.00 [23:34:10]line Внесено: 500.00 [23:34:10]line СДАЧА: 0.00 [23:34:10]line НСП 1% : 4.43 [23:34:10]line НДС 12% : 53.11 [23:34:10]line Наличными: 500.00 [23:34:10]line Безнал.: 0.00 [23:34:10]line Место: АЗС № 113 "Партнер Нефть" [23:34:10]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [23:34:10]line СНО: Общий режим [23:34:10]line Чек 169 28.10.2024 23:34 [23:34:10]line Смена: 554 ФФД: 1.0 [23:34:10]line ЗНМ: 0300000087 [23:34:10]line РНМ: 0000000000091644 [23:34:10]line Версия ККМ: 001 [23:34:10]line ФМ: 0000000000874662 [23:34:10]line ФД: 72641 [23:34:10]line ФПД: 102330760159148 [23:34:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241028T233409&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72641&fm=102330760159148&tin=02508201610067®Number=0000000000091644&sum=50000 [23:34:10]OFD Sender: Processing packet 72641 [packets to send 277, broken 276] [23:34:10]ProducePacketName [23:34:10]name=ofd_packets/00072641 [23:34:10]OFD Sender: To server: pG, [23:34:10]CommunicateWithHost lk.salyk.kg:30040 [23:34:10]ConnectInit lk.salyk.kg [23:34:10]written 0, free lines is 4095 [23:34:10]Write to MH i2c: 01 00 00 4B 05 50 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 07 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: 01 07 00 4B 05 00 00 00 00 00 DA 0C 3D [23:34:10]RasterBufferAndPrint [23:34:10]line [23:34:10]line [23:34:10]line [23:34:10]line [23:34:10]line [23:34:10]written 0, free lines is 3297 [23:34:10]MH_Cut [23:34:10]Write to MH i2c: D1 01 00 52 05 01 29 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: D1 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: D1 01 00 [23:34:10]MH_I2C_Read... [23:34:10]Read from MH i2c: D1 01 00 52 05 00 28 [23:34:10]Write to MH i2c: 01 00 00 53 05 58 [23:34:10]Write i2c OK [23:34:10]MH_I2C_Read... [23:34:11]Connected sock=9 [23:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 E1 81 07 01 F3 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 5B C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BF 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 71 1F 20 67 0E 04 04 00 2A 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C1 1B 01 00 35 04 06 00 5D 11 BC 9B DF AC 76 7B EA 01 A1 5E 39 3B [23:34:11]*** Cut start [23:34:11]*** Partial cut [23:34:11]*** CUTSNS_PIN = 1 [23:34:11]*** CUTSNS_PIN = 0 [23:34:11]*** Brake cut motor [23:34:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 91 A2 47 00 F2 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 34 36 36 32 10 04 04 00 C1 1B 01 00 F4 03 04 00 2F CA 1F 67 B6 04 01 00 00 BB FD 39 31 DD AF 7F 60 [23:34:12]CommunicateWithHost err = 0 [23:34:12]CheckOFDResponse [23:34:12]1017 (14) - 77093643461234 [23:34:12]1041 (16) - 0000000000874662 [23:34:12]1040 (4) - 72641 [23:34:12]1012 (4) - 28.10.2024 17:30 [23:34:12]1206 (1) - 0 [23:34:12]OFD Sender: Remove packet 72641 [23:34:12]ProducePacketName [23:34:12]name=ofd_packets/00072641 [23:34:12]NVStorageDeleteData [23:34:12]Read from MH i2c: 01 [23:34:12]MH_I2C_Read... [23:34:12]*** Stop cut motor [23:34:12]*** Cut end [23:34:12]Read from MH i2c: 01 07 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: 01 07 00 53 05 00 00 00 00 00 FF 0F 6D [23:34:12]process_action close_receipt done [23:34:12]requested_data is exist [23:34:12]produce_requested_data [23:34:12]requested_item fm.sn is exist - process it [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 11 00 00 [23:34:12]Write to MH i2c: E2 08 00 54 05 80 11 00 00 00 00 00 00 D3 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 17 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 17 00 54 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 27 [23:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:34:12]wFMCommunicate OK [23:34:12]requested_item fd.num is exist - process it [23:34:12]SAM_PROTO_GetFieldsCounters [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 13 00 00 [23:34:12]Write to MH i2c: E2 08 00 55 05 80 13 00 00 00 00 00 00 D6 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 62 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 62 00 55 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 FB [23:34:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:34:12]wFMCommunicate OK [23:34:12]SAM_PROTO_GetFieldsCounters done [23:34:12]requested_item shift.num is exist - process it [23:34:12]requested_item shift.opened is exist - process it [23:34:12]req_shift_opened [23:34:12]FM_GetShiftState [23:34:12]SAM_PROTO_GetShiftState [23:34:12]wFMCommunicate request_size=4 [23:34:12]MH_SAM_APDU [23:34:12]CAPDU: 80 13 01 00 [23:34:12]Write to MH i2c: E2 08 00 56 05 80 13 01 00 00 00 00 00 D8 [23:34:12]Write i2c OK [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 [23:34:12]MH_I2C_Read... [23:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:34:12]Read from MH i2c: E2 0E 00 [23:34:12]MH_I2C_Read... [23:34:12]Read from MH i2c: E2 0E 00 56 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 40 [23:34:12]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:34:12]wFMCommunicate OK [23:34:12]SAM_PROTO_GetShiftState done [23:34:12]FM_GetShiftState done [23:34:12]req_shift_opened done [23:34:12]requested_item shift.open_date is exist - process it [23:34:12]req_shift_open_date [23:34:12]req_shift_open_date done [23:34:12]produce_requested_data done [23:34:12]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:34:12]process_action_free close_receipt [23:34:12]json_value_free [23:34:12]json_value_free done [23:34:12]process_json_proto returns [23:34:12]Send response to host [23:34:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:34:12]free response buf [23:34:12]execute_script done [23:34:12]execute_script returns [23:34:12]free content buf [23:34:12]Sock 7.Close socket [23:34:12]Sock 7.Thread stoped [23:34:12]OFD Sender: No OFD packet to send [23:34:17]OFD Sender: No OFD packet to send [23:34:19]recv_with_timeout no data received [23:34:22]OFD Sender: No OFD packet to send [23:34:27]OFD Sender: No OFD packet to send [23:34:31]recv_with_timeout no data received [23:34:32]OFD Sender: No OFD packet to send [23:34:37]OFD Sender: No OFD packet to send [23:34:42]OFD Sender: No OFD packet to send [23:34:47]OFD Sender: No OFD packet to send [23:34:52]OFD Sender: No OFD packet to send [23:34:57]OFD Sender: No OFD packet to send [23:35:02]OFD Sender: No OFD packet to send [23:35:07]OFD Sender: No OFD packet to send [23:35:12]OFD Sender: No OFD packet to send [23:35:17]OFD Sender: No OFD packet to send [23:35:22]OFD Sender: No OFD packet to send [23:35:27]OFD Sender: No OFD packet to send [23:35:31]recv_with_timeout no data received [23:35:32]OFD Sender: No OFD packet to send [23:35:37]OFD Sender: No OFD packet to send [23:35:42]OFD Sender: No OFD packet to send [23:35:47]OFD Sender: No OFD packet to send [23:35:52]OFD Sender: No OFD packet to send [23:35:57]OFD Sender: No OFD packet to send [23:36:02]OFD Sender: No OFD packet to send [23:36:06]recv_with_timeout no data received [23:36:07]OFD Sender: No OFD packet to send [23:36:12]OFD Sender: No OFD packet to send [23:36:17]OFD Sender: No OFD packet to send [23:36:22]OFD Sender: No OFD packet to send [23:36:27]OFD Sender: No OFD packet to send [23:36:32]OFD Sender: No OFD packet to send [23:36:37]OFD Sender: No OFD packet to send [23:36:42]OFD Sender: No OFD packet to send [23:36:47]OFD Sender: No OFD packet to send [23:36:52]OFD Sender: No OFD packet to send [23:36:57]recv_with_timeout no data received [23:36:57]OFD Sender: No OFD packet to send [23:37:02]OFD Sender: No OFD packet to send [23:37:07]OFD Sender: No OFD packet to send [23:37:12]OFD Sender: No OFD packet to send [23:37:12]recv_with_timeout no data received [23:37:17]OFD Sender: No OFD packet to send [23:37:22]OFD Sender: No OFD packet to send [23:37:27]OFD Sender: No OFD packet to send [23:37:32]OFD Sender: No OFD packet to send [23:37:33]recv_with_timeout no data received [23:37:37]OFD Sender: No OFD packet to send [23:37:42]OFD Sender: No OFD packet to send [23:37:47]OFD Sender: No OFD packet to send [23:37:52]OFD Sender: No OFD packet to send [23:37:57]OFD Sender: No OFD packet to send [23:38:02]OFD Sender: No OFD packet to send [23:38:08]OFD Sender: No OFD packet to send [23:38:13]OFD Sender: No OFD packet to send [23:38:18]OFD Sender: No OFD packet to send [23:38:23]OFD Sender: No OFD packet to send [23:38:24]recv_with_timeout no data received [23:38:28]OFD Sender: No OFD packet to send [23:38:33]OFD Sender: No OFD packet to send [23:38:38]OFD Sender: No OFD packet to send [23:38:43]OFD Sender: No OFD packet to send [23:38:48]OFD Sender: No OFD packet to send [23:38:53]OFD Sender: No OFD packet to send [23:38:58]OFD Sender: No OFD packet to send [23:39:03]OFD Sender: No OFD packet to send [23:39:08]OFD Sender: No OFD packet to send [23:39:13]OFD Sender: No OFD packet to send [23:39:18]OFD Sender: No OFD packet to send [23:39:23]OFD Sender: No OFD packet to send [23:39:28]OFD Sender: No OFD packet to send [23:39:33]OFD Sender: No OFD packet to send [23:39:38]OFD Sender: No OFD packet to send [23:39:43]OFD Sender: No OFD packet to send [23:39:48]OFD Sender: No OFD packet to send [23:39:50]recv_with_timeout no data received [23:39:53]OFD Sender: No OFD packet to send [23:39:58]OFD Sender: No OFD packet to send [23:40:03]OFD Sender: No OFD packet to send [23:40:08]OFD Sender: No OFD packet to send [23:40:13]OFD Sender: No OFD packet to send [23:40:18]OFD Sender: No OFD packet to send [23:40:23]OFD Sender: No OFD packet to send [23:40:28]OFD Sender: No OFD packet to send [23:40:33]OFD Sender: No OFD packet to send [23:40:38]OFD Sender: No OFD packet to send [23:40:43]OFD Sender: No OFD packet to send [23:40:48]OFD Sender: No OFD packet to send [23:40:53]OFD Sender: No OFD packet to send [23:40:54]recv_with_timeout no data received [23:40:58]OFD Sender: No OFD packet to send [23:41:03]OFD Sender: No OFD packet to send [23:41:08]OFD Sender: No OFD packet to send [23:41:12]recv_with_timeout no data received [23:41:13]OFD Sender: No OFD packet to send [23:41:18]OFD Sender: No OFD packet to send [23:41:23]OFD Sender: No OFD packet to send [23:41:28]OFD Sender: No OFD packet to send [23:41:33]OFD Sender: No OFD packet to send [23:41:38]OFD Sender: No OFD packet to send [23:41:42]recv_with_timeout no data received [23:41:43]OFD Sender: No OFD packet to send [23:41:48]OFD Sender: No OFD packet to send [23:41:53]OFD Sender: No OFD packet to send [23:41:58]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:12]recv_with_timeout no data received [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:35]recv_with_timeout no data received [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:18]recv_with_timeout no data received [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:44]recv_with_timeout no data received [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:01]recv_with_timeout no data received [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:12]recv_with_timeout no data received [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:37]recv_with_timeout no data received [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:24]recv_with_timeout no data received [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:53]OFD Sender: No OFD packet to send [23:45:58]OFD Sender: No OFD packet to send [23:46:03]OFD Sender: No OFD packet to send [23:46:08]OFD Sender: No OFD packet to send [23:46:13]OFD Sender: No OFD packet to send [23:46:13]recv_with_timeout no data received [23:46:18]OFD Sender: No OFD packet to send [23:46:23]OFD Sender: No OFD packet to send [23:46:24]recv_with_timeout no data received [23:46:28]OFD Sender: No OFD packet to send [23:46:33]OFD Sender: No OFD packet to send [23:46:38]OFD Sender: No OFD packet to send [23:46:43]OFD Sender: No OFD packet to send [23:46:48]OFD Sender: No OFD packet to send [23:46:53]OFD Sender: No OFD packet to send [23:46:58]OFD Sender: No OFD packet to send [23:47:03]OFD Sender: No OFD packet to send [23:47:08]OFD Sender: No OFD packet to send [23:47:13]OFD Sender: No OFD packet to send [23:47:18]OFD Sender: No OFD packet to send [23:47:20]recv_with_timeout no data received [23:47:23]OFD Sender: No OFD packet to send [23:47:28]OFD Sender: No OFD packet to send [23:47:30]recv_with_timeout no data received [23:47:33]OFD Sender: No OFD packet to send [23:47:38]OFD Sender: No OFD packet to send [23:47:43]OFD Sender: No OFD packet to send [23:47:48]OFD Sender: No OFD packet to send [23:47:53]OFD Sender: No OFD packet to send [23:47:58]OFD Sender: No OFD packet to send [23:48:02]recv_with_timeout no data received [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:23]recv_with_timeout no data received [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:40]recv_with_timeout no data received [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]recv_with_timeout no data received [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:44]OFD Sender: No OFD packet to send [23:49:49]OFD Sender: No OFD packet to send [23:49:52]recv_with_timeout no data received [23:49:54]OFD Sender: No OFD packet to send [23:49:59]OFD Sender: No OFD packet to send [23:50:02]recv_with_timeout no data received [23:50:04]OFD Sender: No OFD packet to send [23:50:09]OFD Sender: No OFD packet to send [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:21]recv_with_timeout no data received [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:38]recv_with_timeout no data received [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:01]recv_with_timeout no data received [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:12]recv_with_timeout no data received [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:44]recv_with_timeout no data received [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:08]recv_with_timeout no data received [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:24]OFD Sender: No OFD packet to send [23:53:27]recv_with_timeout no data received [23:53:29]OFD Sender: No OFD packet to send [23:53:34]OFD Sender: No OFD packet to send [23:53:39]OFD Sender: No OFD packet to send [23:53:44]OFD Sender: No OFD packet to send [23:53:49]OFD Sender: No OFD packet to send [23:53:54]OFD Sender: No OFD packet to send [23:53:59]OFD Sender: No OFD packet to send [23:54:04]OFD Sender: No OFD packet to send [23:54:09]OFD Sender: No OFD packet to send [23:54:14]OFD Sender: No OFD packet to send [23:54:19]OFD Sender: No OFD packet to send [23:54:24]OFD Sender: No OFD packet to send [23:54:29]OFD Sender: No OFD packet to send [23:54:33]recv_with_timeout no data received [23:54:34]OFD Sender: No OFD packet to send [23:54:39]OFD Sender: No OFD packet to send [23:54:44]OFD Sender: No OFD packet to send [23:54:49]OFD Sender: No OFD packet to send [23:54:54]OFD Sender: No OFD packet to send [23:54:59]OFD Sender: No OFD packet to send [23:55:04]OFD Sender: No OFD packet to send [23:55:05]recv_with_timeout no data received [23:55:09]OFD Sender: No OFD packet to send [23:55:14]OFD Sender: No OFD packet to send [23:55:19]OFD Sender: No OFD packet to send [23:55:24]OFD Sender: No OFD packet to send [23:55:29]OFD Sender: No OFD packet to send [23:55:34]OFD Sender: No OFD packet to send [23:55:39]OFD Sender: No OFD packet to send [23:55:42]recv_with_timeout no data received [23:55:44]OFD Sender: No OFD packet to send [23:55:49]OFD Sender: No OFD packet to send [23:55:54]OFD Sender: No OFD packet to send [23:55:59]OFD Sender: No OFD packet to send [23:56:04]OFD Sender: No OFD packet to send [23:56:09]OFD Sender: No OFD packet to send [23:56:14]OFD Sender: No OFD packet to send [23:56:19]OFD Sender: No OFD packet to send [23:56:24]OFD Sender: No OFD packet to send [23:56:29]OFD Sender: No OFD packet to send [23:56:34]OFD Sender: No OFD packet to send [23:56:39]OFD Sender: No OFD packet to send [23:56:44]OFD Sender: No OFD packet to send [23:56:49]OFD Sender: No OFD packet to send [23:56:54]OFD Sender: No OFD packet to send [23:56:59]OFD Sender: No OFD packet to send [23:57:04]recv_with_timeout no data received [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:22]accept exits with 10 [23:57:22]New connection [23:57:22]New thread 3066928484 created [23:57:22]Thread 3066785124 joined [23:57:22]Waiting for new connection... [23:57:22] Sock 10.Parse request [23:57:22]Sock 10.Check first char [23:57:22]Sock 10.First char is OK [23:57:22]request: POST /json_proto HTTP/1.0 [23:57:22]Method: POST [23:57:22]URL: /json_proto [23:57:22]Method is POST - this is cgi request [23:57:22]url: /json_proto [23:57:22]query_string will be loaded in cgi processing [23:57:22]execute_cgi json_proto POST (null) [23:57:22]execute_cgi path=json_proto method=POST [23:57:22]POST find Content-Length [23:57:22]Host: 172.17.43.195:8080 [23:57:22]Content-Length: 215 [23:57:22]Content-Type: application/json [23:57:22] [23:57:22]POST finish read [23:57:22]Found Content-Length = 215 [23:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:22]execute_script... [23:57:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:22]POST & json_proto [23:57:22]process_json_proto [23:57:22]json parsed OK: [23:57:22]protocol is kg_v1.0 [23:57:22]action value=get_value [23:57:22]process_action get_value [23:57:22]cmd_get_value [23:57:22]process_action get_value done [23:57:22]requested_data is exist [23:57:22]produce_requested_data [23:57:22]requested_item kkm.sn is exist - process it [23:57:22]requested_item kkm.ver is exist - process it [23:57:22]requested_item fm.sn is exist - process it [23:57:22]wFMCommunicate request_size=4 [23:57:22]MH_SAM_APDU [23:57:22]CAPDU: 80 11 00 00 [23:57:22]Write to MH i2c: E2 08 00 57 05 80 11 00 00 00 00 00 00 D6 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 17 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 17 00 57 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 2A [23:57:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:57:22]wFMCommunicate OK [23:57:22]requested_item fd.num is exist - process it [23:57:22]SAM_PROTO_GetFieldsCounters [23:57:22]wFMCommunicate request_size=4 [23:57:22]MH_SAM_APDU [23:57:22]CAPDU: 80 13 00 00 [23:57:22]Write to MH i2c: E2 08 00 58 05 80 13 00 00 00 00 00 00 D9 [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 62 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 62 00 58 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 FE [23:57: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:57:22]wFMCommunicate OK [23:57:22]SAM_PROTO_GetFieldsCounters done [23:57:22]requested_item shift.num is exist - process it [23:57:22]requested_item shift.opened is exist - process it [23:57:22]req_shift_opened [23:57:22]FM_GetShiftState [23:57:22]SAM_PROTO_GetShiftState [23:57:22]wFMCommunicate request_size=4 [23:57:22]MH_SAM_APDU [23:57:22]CAPDU: 80 13 01 00 [23:57:22]Write to MH i2c: E2 08 00 59 05 80 13 01 00 00 00 00 00 DB [23:57:22]Write i2c OK [23:57:22]MH_I2C_Read... [23:57:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:22]Read from MH i2c: E2 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 0E 00 [23:57:22]MH_I2C_Read... [23:57:22]Read from MH i2c: E2 0E 00 59 05 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 43 [23:57:22]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:57:22]wFMCommunicate OK [23:57:22]SAM_PROTO_GetShiftState done [23:57:22]FM_GetShiftState done [23:57:22]req_shift_opened done [23:57:22]requested_item shift.open_date is exist - process it [23:57:22]req_shift_open_date [23:57:22]req_shift_open_date done [23:57:22]produce_requested_data done [23:57:22]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:57:22]process_action_free get_value [23:57:22]json_value_free [23:57:22]json_value_free done [23:57:22]process_json_proto returns [23:57:22]Send response to host [23:57:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:57:22]free response buf [23:57:22]execute_script done [23:57:22]execute_script returns [23:57:22]free content buf [23:57:22]Sock 10.Close socket [23:57:22]Sock 10.Thread stoped [23:57:22]accept exits with 7 [23:57:22]New connection [23:57:22]New thread 3066785124 created [23:57:22]Thread 3066928484 joined [23:57:22]Waiting for new connection... [23:57:22] Sock 7.Parse request [23:57:22]Sock 7.Check first char [23:57:22]Sock 7.First char is OK [23:57:22]request: POST /json_proto HTTP/1.0 [23:57:22]Method: POST [23:57:22]URL: /json_proto [23:57:22]Method is POST - this is cgi request [23:57:22]url: /json_proto [23:57:22]query_string will be loaded in cgi processing [23:57:22]execute_cgi json_proto POST (null) [23:57:22]execute_cgi path=json_proto method=POST [23:57:22]POST find Content-Length [23:57:22]Host: 172.17.43.195:8080 [23:57:22]Content-Length: 331 [23:57:22]Content-Type: application/json [23:57:22] [23:57:22]POST finish read [23:57:22]Found Content-Length = 331 [23:57:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:57:22]execute_script... [23:57:23]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" ] } } [23:57:23]POST & json_proto [23:57:23]process_json_proto [23:57:23]json parsed OK: [23:57:23]protocol is kg_v1.0 [23:57:23]action value=get_value [23:57:23]process_action get_value [23:57:23]cmd_get_value [23:57:23]process_action get_value done [23:57:23]requested_data is exist [23:57:23]produce_requested_data [23:57:23]requested_item fm.sale.total is exist - process it [23:57:23]SAM_PROTO_GetFMData [23:57:23]wFMCommunicate request_size=4 [23:57:23]MH_SAM_APDU [23:57:23]CAPDU: 80 13 03 00 [23:57:23]Write to MH i2c: E2 08 00 5A 05 80 13 03 00 00 00 00 00 DE [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:57:23]Read from MH i2c: E2 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: E2 FD 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: E2 FD 00 5A 05 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 2F [23:57:23]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:57:23]wFMCommunicate OK [23:57:23]wFMCommunicate request_size=4 [23:57:23]MH_SAM_APDU [23:57:23]CAPDU: 80 17 00 00 [23:57:23]Write to MH i2c: E2 08 00 5B 05 80 17 00 00 00 00 00 00 E0 [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:23]Read from MH i2c: E2 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: E2 FD 00 [23:57:23]MH_I2C_Read... [23:57:23]Read from MH i2c: E2 FD 00 5B 05 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 16 [23:57:23]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:57:23]wFMCommunicate OK [23:57:23]wFMCommunicate request_size=4 [23:57:23]MH_SAM_APDU [23:57:23]CAPDU: 80 17 00 00 [23:57:23]Write to MH i2c: E2 08 00 5C 05 80 17 00 00 00 00 00 00 E1 [23:57:23]Write i2c OK [23:57:23]MH_I2C_Read... [23:57:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:24]Read from MH i2c: E2 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 5C 05 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F6 [23:57:24]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:57:24]wFMCommunicate OK [23:57:24]wFMCommunicate request_size=4 [23:57:24]MH_SAM_APDU [23:57:24]CAPDU: 80 17 00 00 [23:57:24]Write to MH i2c: E2 08 00 5D 05 80 17 00 00 00 00 00 00 E2 [23:57:24]Write i2c OK [23:57:24]MH_I2C_Read... [23:57:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:24]Read from MH i2c: E2 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 FD 00 5D 05 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 5A [23:57:24]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:57:24]wFMCommunicate OK [23:57:24]wFMCommunicate request_size=4 [23:57:24]MH_SAM_APDU [23:57:24]CAPDU: 80 17 00 00 [23:57:24]Write to MH i2c: E2 08 00 5E 05 80 17 00 00 00 00 00 00 E3 [23:57:24]Write i2c OK [23:57:24]MH_I2C_Read... [23:57:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:57:24]Read from MH i2c: E2 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 E1 00 [23:57:24]MH_I2C_Read... [23:57:24]Read from MH i2c: E2 E1 00 5E 05 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D1 [23:57:24]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:57:24]wFMCommunicate OK [23:57:24]SAM_PROTO_GetFMData done [23:57:24]requested_item fm.sale_refund.total is exist - process it [23:57:24]requested_item fm.buy.total is exist - process it [23:57:24]requested_item shift.sale.total is exist - process it [23:57:24]SAM_PROTO_GetShiftData [23:57:24]wFMCommunicate request_size=4 [23:57:24]MH_SAM_APDU [23:57:24]CAPDU: 80 13 02 00 [23:57:24]Write to MH i2c: E2 08 00 5F 05 80 13 02 00 00 00 00 00 E2 [23:57:24]Write i2c OK [23:57:24]MH_I2C_Read... [23:57:25]OFD Sender: No OFD packet to send [23:57:25]Read from MH i2c: E2 [23:57:25]MH_I2C_Read... [23:57:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:25]Read from MH i2c: E2 FD 00 [23:57:25]MH_I2C_Read... [23:57:25]Read from MH i2c: E2 FD 00 5F 05 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BE [23:57:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:25]wFMCommunicate OK [23:57:25]wFMCommunicate request_size=4 [23:57:25]MH_SAM_APDU [23:57:25]CAPDU: 80 17 00 00 [23:57:25]Write to MH i2c: E2 08 00 60 05 80 17 00 00 00 00 00 00 E5 [23:57:25]Write i2c OK [23:57:25]MH_I2C_Read... [00:00:09] *** EcrCore started. Build 196 *** [00:00:09]/dev/ttyS4 opened [00:00:09]MH_InterfaceInit /dev/i2c-1 [00:00:09]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 1F [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 540000000057257A (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 7534739+1722625140=1730159879 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x20ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550623 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 7A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 20 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 41 00 40 00 FF FF 5F [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 07 25 20 67 74 2C AD 66 65 [23:57:59]Current date/time: 28.10.2024 23:57 [23:57:59]FM_Init [23:57:59]wFMConnect [23:57:59]MH_SAM_On [23:57:59]Write to MH i2c: E0 00 00 08 00 E7 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_init finished! [23:57:59]*** atr: [23:57:59]*** 0F 3B D5 18 FF 81 91 FE [23:57:59]*** 1F C3 80 73 C8 21 10 0A [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]*** 00 00 00 00 00 00 00 00 [23:57:59]Read from MH i2c: E0 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E0 10 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [23:57:59]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [23:57:59]wFMCommunicate request_size=10 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [23:57:59]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 11 00 00 [23:57:59]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D8 [23:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:57:59]wFMCommunicate OK [23:57:59]Detected FM SN is 0000000000874662 [23:57:59]Stored FM SN is 0000000000874662 [23:57:59]wFMCommunicate request_size=9 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 16 00 00 04 08 EB 00 00 [23:57:59]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 08 EB 00 00 00 00 85 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]FM PIN OK [23:57:59]wFMCommunicate request_size=8 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 14 04 00 03 02 00 01 [23:57:59]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=13 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [23:57:59]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [23:57:59]RAPDU: 90 00 [23:57:59]wFMCommunicate OK [23:57:59]wFMCommunicate request_size=4 [23:57:59]MH_SAM_APDU [23:57:59]CAPDU: 80 11 00 00 [23:57:59]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:59]Read from MH i2c: E2 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DC [23:57:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:57:59]wFMCommunicate OK [23:57:59]DocumentArchiveInit [23:57:59]Start Httpd... [23:57:59]Httpd thread 3067624804 created [23:57:59]Write to MH i2c: 01 00 00 0F 00 0F [23:57:59]Write i2c OK [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 [23:57:59]MH_I2C_Read... [23:57:59]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [23:57:59]MH Int Process started [23:57:59]Allocated Socket 8 [23:57:59]Bind OK [23:57:59]Listen OK [23:57:59]httpd running on port 8080 [23:57:59]Waiting for new connection... [23:57:59]OFD Sender: No OFD packet to send [23:58:00]accept exits with 9 [23:58:00]New connection [23:58:00]New thread 3067338084 created [23:58:00]Waiting for new connection... [23:58:00] Sock 9.Parse request [23:58:00]Sock 9.Check first char [23:58:00]Sock 9.First char is OK [23:58:00]request: POST /json_proto HTTP/1.0 [23:58:00]Method: POST [23:58:00]URL: /json_proto [23:58:00]Method is POST - this is cgi request [23:58:00]url: /json_proto [23:58:00]query_string will be loaded in cgi processing [23:58:00]execute_cgi json_proto POST (null) [23:58:00]execute_cgi path=json_proto method=POST [23:58:00]POST find Content-Length [23:58:00]Host: 172.17.43.195:8080 [23:58:00]Content-Length: 215 [23:58:00]Content-Type: application/json [23:58:00] [23:58:00]POST finish read [23:58:00]Found Content-Length = 215 [23:58:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:00]execute_script... [23:58:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:00]POST & json_proto [23:58:00]process_json_proto [23:58:00]json parsed OK: [23:58:00]protocol is kg_v1.0 [23:58:00]action value=get_value [23:58:00]process_action get_value [23:58:00]cmd_get_value [23:58:00]process_action get_value done [23:58:00]requested_data is exist [23:58:00]produce_requested_data [23:58:00]requested_item kkm.sn is exist - process it [23:58:00]requested_item kkm.ver is exist - process it [23:58:00]requested_item fm.sn is exist - process it [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 11 00 00 [23:58:00]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 17 00 [23:58:00]MH_I2C_Read... [23:58:00]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 34 36 36 32 90 00 DE [23:58:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:58:00]wFMCommunicate OK [23:58:00]requested_item fd.num is exist - process it [23:58:00]SAM_PROTO_GetFieldsCounters [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 13 00 00 [23:58:00]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 62 00 [23:58:00]MH_I2C_Read... [23:58:00]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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 B2 [23:58:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:58:00]wFMCommunicate OK [23:58:00]SAM_PROTO_GetFieldsCounters done [23:58:00]requested_item shift.num is exist - process it [23:58:00]requested_item shift.opened is exist - process it [23:58:00]req_shift_opened [23:58:00]FM_GetShiftState [23:58:00]SAM_PROTO_GetShiftState [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 13 01 00 [23:58:00]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:00]Read from MH i2c: E2 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 0E 00 [23:58:00]MH_I2C_Read... [23:58:00]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 F7 [23:58:00]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:58:00]wFMCommunicate OK [23:58:00]SAM_PROTO_GetShiftState done [23:58:00]FM_GetShiftState done [23:58:00]req_shift_opened done [23:58:00]requested_item shift.open_date is exist - process it [23:58:00]req_shift_open_date [23:58:00]req_shift_open_date done [23:58:00]produce_requested_data done [23:58:00]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:58:00]process_action_free get_value [23:58:00]json_value_free [23:58:00]json_value_free done [23:58:00]process_json_proto returns [23:58:00]Send response to host [23:58:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:58:00]free response buf [23:58:00]execute_script done [23:58:00]execute_script returns [23:58:00]free content buf [23:58:00]Sock 9.Close socket [23:58:00]Sock 9.Thread stoped [23:58:00]accept exits with 6 [23:58:00]New connection [23:58:00]New thread 3067194724 created [23:58:00]Thread 3067338084 joined [23:58:00]Waiting for new connection... [23:58:00] Sock 6.Parse request [23:58:00]Sock 6.Check first char [23:58:00]Sock 6.First char is OK [23:58:00]request: POST /json_proto HTTP/1.0 [23:58:00]Method: POST [23:58:00]URL: /json_proto [23:58:00]Method is POST - this is cgi request [23:58:00]url: /json_proto [23:58:00]query_string will be loaded in cgi processing [23:58:00]execute_cgi json_proto POST (null) [23:58:00]execute_cgi path=json_proto method=POST [23:58:00]POST find Content-Length [23:58:00]Host: 172.17.43.195:8080 [23:58:00]Content-Length: 331 [23:58:00]Content-Type: application/json [23:58:00] [23:58:00]POST finish read [23:58:00]Found Content-Length = 331 [23:58:00]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" ] } } [23:58:00]execute_script... [23:58:00]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" ] } } [23:58:00]POST & json_proto [23:58:00]process_json_proto [23:58:00]json parsed OK: [23:58:00]protocol is kg_v1.0 [23:58:00]action value=get_value [23:58:00]process_action get_value [23:58:00]cmd_get_value [23:58:00]process_action get_value done [23:58:00]requested_data is exist [23:58:00]produce_requested_data [23:58:00]requested_item fm.sale.total is exist - process it [23:58:00]SAM_PROTO_GetFMData [23:58:00]wFMCommunicate request_size=4 [23:58:00]MH_SAM_APDU [23:58:00]CAPDU: 80 13 03 00 [23:58:00]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [23:58:00]Write i2c OK [23:58:00]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 13 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 E3 [23:58:01]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 14 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 CA [23:58:01]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 15 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 AA [23:58:01]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:01]Read from MH i2c: E2 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 [23:58:01]MH_I2C_Read... [23:58:01]Read from MH i2c: E2 FD 00 16 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 0E [23:58:01]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:01]wFMCommunicate OK [23:58:01]wFMCommunicate request_size=4 [23:58:01]MH_SAM_APDU [23:58:01]CAPDU: 80 17 00 00 [23:58:01]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [23:58:01]Write i2c OK [23:58:01]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 E1 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 E1 00 17 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [23:58:02]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:02]wFMCommunicate OK [23:58:02]SAM_PROTO_GetFMData done [23:58:02]requested_item fm.sale_refund.total is exist - process it [23:58:02]requested_item fm.buy.total is exist - process it [23:58:02]requested_item shift.sale.total is exist - process it [23:58:02]SAM_PROTO_GetShiftData [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 13 02 00 [23:58:02]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [23:58:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:02]wFMCommunicate OK [23:58:02]wFMCommunicate request_size=4 [23:58:02]MH_SAM_APDU [23:58:02]CAPDU: 80 17 00 00 [23:58:02]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [23:58:02]Write i2c OK [23:58:02]MH_I2C_Read... [23:58:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:02]Read from MH i2c: E2 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 [23:58:02]MH_I2C_Read... [23:58:02]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BB [23:58:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:03]wFMCommunicate OK [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 17 00 00 [23:58:03]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 51 [23:58:03]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:03]wFMCommunicate OK [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 17 00 00 [23:58:03]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 FD 00 1B 00 00 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 90 00 0D [23:58:03]RAPDU: 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 90 00 [23:58:03]wFMCommunicate OK [23:58:03]wFMCommunicate request_size=4 [23:58:03]MH_SAM_APDU [23:58:03]CAPDU: 80 17 00 00 [23:58:03]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [23:58:03]Write i2c OK [23:58:03]MH_I2C_Read... [23:58:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:03]Read from MH i2c: E2 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 CB 00 [23:58:03]MH_I2C_Read... [23:58:03]Read from MH i2c: E2 CB 00 1C 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [23:58:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:03]wFMCommunicate OK [23:58:03]SAM_PROTO_GetShiftData done [23:58:03]requested_item shift.sale.total_cash is exist - process it [23:58:03]requested_item shift.sale_refund.total is exist - process it [23:58:03]requested_item shift.sale_refund.total_cash is exist - process it [23:58:03]requested_item shift.buy.total is exist - process it [23:58:03]requested_item shift.buy.total_cash is exist - process it [23:58:03]produce_requested_data done [23:58:03]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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} [23:58:03]process_action_free get_value [23:58:03]json_value_free [23:58:03]json_value_free done [23:58:03]process_json_proto returns [23:58:03]Send response to host [23:58:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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}}} [23:58:03]free response buf [23:58:03]execute_script done [23:58:03]execute_script returns [23:58:03]free content buf [23:58:03]Sock 6.Close socket [23:58:03]Sock 6.Thread stoped [23:58:04]accept exits with 9 [23:58:04]New connection [23:58:04]New thread 3067338084 created [23:58:04]Thread 3067194724 joined [23:58:04]Waiting for new connection... [23:58:04] Sock 9.Parse request [23:58:04]Sock 9.Check first char [23:58:04]Sock 9.First char is OK [23:58:04]request: POST /json_proto HTTP/1.0 [23:58:04]Method: POST [23:58:04]URL: /json_proto [23:58:04]Method is POST - this is cgi request [23:58:04]url: /json_proto [23:58:04]query_string will be loaded in cgi processing [23:58:04]execute_cgi json_proto POST (null) [23:58:04]execute_cgi path=json_proto method=POST [23:58:04]POST find Content-Length [23:58:04]Host: 172.17.43.195:8080 [23:58:04]Content-Length: 331 [23:58:04]Content-Type: application/json [23:58:04] [23:58:04]POST finish read [23:58:04]Found Content-Length = 331 [23:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:04]execute_script... [23:58:04]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:04]POST & json_proto [23:58:04]process_json_proto [23:58:04]json parsed OK: [23:58:04]protocol is kg_v1.0 [23:58:04]action value=get_value [23:58:04]process_action get_value [23:58:04]cmd_get_value [23:58:04]process_action get_value done [23:58:04]requested_data is exist [23:58:04]produce_requested_data [23:58:04]requested_item fm.sale.total is exist - process it [23:58:04]SAM_PROTO_GetFMData [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 13 03 00 [23:58:04]Write to MH i2c: E2 08 00 1D 00 80 13 03 00 00 00 00 00 9C [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 1D 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 ED [23:58:04]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 1E 00 80 17 00 00 00 00 00 00 9E [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:04]Read from MH i2c: E2 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 [23:58:04]MH_I2C_Read... [23:58:04]Read from MH i2c: E2 FD 00 1E 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D4 [23:58:04]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:04]wFMCommunicate OK [23:58:04]wFMCommunicate request_size=4 [23:58:04]MH_SAM_APDU [23:58:04]CAPDU: 80 17 00 00 [23:58:04]Write to MH i2c: E2 08 00 1F 00 80 17 00 00 00 00 00 00 9F [23:58:04]OFD Sender: No OFD packet to send [23:58:04]Write i2c OK [23:58:04]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 1F 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B4 [23:58:05]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 20 00 80 17 00 00 00 00 00 00 A0 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:05]Read from MH i2c: E2 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 [23:58:05]MH_I2C_Read... [23:58:05]Read from MH i2c: E2 FD 00 20 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 18 [23:58:05]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:05]wFMCommunicate OK [23:58:05]wFMCommunicate request_size=4 [23:58:05]MH_SAM_APDU [23:58:05]CAPDU: 80 17 00 00 [23:58:05]Write to MH i2c: E2 08 00 21 00 80 17 00 00 00 00 00 00 A1 [23:58:05]Write i2c OK [23:58:05]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 E1 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 E1 00 21 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 8F [23:58:06]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:06]wFMCommunicate OK [23:58:06]SAM_PROTO_GetFMData done [23:58:06]requested_item fm.sale_refund.total is exist - process it [23:58:06]requested_item fm.buy.total is exist - process it [23:58:06]requested_item shift.sale.total is exist - process it [23:58:06]SAM_PROTO_GetShiftData [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 13 02 00 [23:58:06]Write to MH i2c: E2 08 00 22 00 80 13 02 00 00 00 00 00 A0 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:06]Read from MH i2c: E2 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 [23:58:06]MH_I2C_Read... [23:58:06]Read from MH i2c: E2 FD 00 22 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [23:58:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:06]wFMCommunicate OK [23:58:06]wFMCommunicate request_size=4 [23:58:06]MH_SAM_APDU [23:58:06]CAPDU: 80 17 00 00 [23:58:06]Write to MH i2c: E2 08 00 23 00 80 17 00 00 00 00 00 00 A3 [23:58:06]Write i2c OK [23:58:06]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 23 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [23:58:07]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 24 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [23:58:07]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:07]wFMCommunicate OK [23:58:07]wFMCommunicate request_size=4 [23:58:07]MH_SAM_APDU [23:58:07]CAPDU: 80 17 00 00 [23:58:07]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [23:58:07]Write i2c OK [23:58:07]MH_I2C_Read... [23:58:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:07]Read from MH i2c: E2 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 [23:58:07]MH_I2C_Read... [23:58:07]Read from MH i2c: E2 FD 00 25 00 00 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 90 00 17 [23:58:08]RAPDU: 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 90 00 [23:58:08]wFMCommunicate OK [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 17 00 00 [23:58:08]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 CB 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 CB 00 26 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [23:58:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:08]wFMCommunicate OK [23:58:08]SAM_PROTO_GetShiftData done [23:58:08]requested_item shift.sale.total_cash is exist - process it [23:58:08]requested_item shift.sale_refund.total is exist - process it [23:58:08]requested_item shift.sale_refund.total_cash is exist - process it [23:58:08]requested_item shift.buy.total is exist - process it [23:58:08]requested_item shift.buy.total_cash is exist - process it [23:58:08]produce_requested_data done [23:58:08]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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} [23:58:08]process_action_free get_value [23:58:08]json_value_free [23:58:08]json_value_free done [23:58:08]process_json_proto returns [23:58:08]Send response to host [23:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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}}} [23:58:08]free response buf [23:58:08]execute_script done [23:58:08]execute_script returns [23:58:08]free content buf [23:58:08]Sock 9.Close socket [23:58:08]Sock 9.Thread stoped [23:58:08]accept exits with 6 [23:58:08]New connection [23:58:08]New thread 3067194724 created [23:58:08]Thread 3067338084 joined [23:58:08]Waiting for new connection... [23:58:08] Sock 6.Parse request [23:58:08]Sock 6.Check first char [23:58:08]Sock 6.First char is OK [23:58:08]request: POST /json_proto HTTP/1.0 [23:58:08]Method: POST [23:58:08]URL: /json_proto [23:58:08]Method is POST - this is cgi request [23:58:08]url: /json_proto [23:58:08]query_string will be loaded in cgi processing [23:58:08]execute_cgi json_proto POST (null) [23:58:08]execute_cgi path=json_proto method=POST [23:58:08]POST find Content-Length [23:58:08]Host: 172.17.43.195:8080 [23:58:08]Content-Length: 257 [23:58:08]Content-Type: application/json [23:58:08] [23:58:08]POST finish read [23:58:08]Found Content-Length = 257 [23:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:08]execute_script... [23:58:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:08]POST & json_proto [23:58:08]process_json_proto [23:58:08]json parsed OK: [23:58:08]protocol is kg_v1.0 [23:58:08]action value=x_report [23:58:08]process_action x_report [23:58:08]cmd_x_report [23:58:08]MH_GetDate [23:58:08]Write to MH i2c: F0 00 00 27 00 16 [23:58:08]recv_with_timeout no data received [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 09 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 09 00 27 00 00 11 25 20 67 74 2C AD 66 8F [23:58:08]GetLastDocTimeStamp 112 [23:58:08]current date 1730159889 [23:58:08]FM_GetShiftState [23:58:08]SAM_PROTO_GetShiftState [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 13 01 00 [23:58:08]Write to MH i2c: E2 08 00 28 00 80 13 01 00 00 00 00 00 A5 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 0E 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 0E 00 28 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 0D [23:58:08]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:58:08]wFMCommunicate OK [23:58:08]SAM_PROTO_GetShiftState done [23:58:08]FM_GetShiftState done [23:58:08]KKMCreateXReportDocument [23:58:08]Load OK [23:58:08]Malloc new data [23:58:08]MH_GetDate [23:58:08]Write to MH i2c: F0 00 00 29 00 18 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 09 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: F0 09 00 29 00 00 11 25 20 67 74 2C AD 66 91 [23:58:08]Malloc new data [23:58:08]Malloc new data [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 11 00 00 [23:58:08]Write to MH i2c: E2 08 00 2A 00 80 11 00 00 00 00 00 00 A4 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 17 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 17 00 2A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F8 [23:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:58:08]wFMCommunicate OK [23:58:08]SAM_PROTO_GetFieldsCounters [23:58:08]wFMCommunicate request_size=4 [23:58:08]MH_SAM_APDU [23:58:08]CAPDU: 80 13 00 00 [23:58:08]Write to MH i2c: E2 08 00 2B 00 80 13 00 00 00 00 00 00 A7 [23:58:08]Write i2c OK [23:58:08]MH_I2C_Read... [23:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:08]Read from MH i2c: E2 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 62 00 [23:58:08]MH_I2C_Read... [23:58:08]Read from MH i2c: E2 62 00 2B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 CC [23:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:58:09]wFMCommunicate OK [23:58:09]SAM_PROTO_GetFieldsCounters done [23:58:09]Malloc new data [23:58:09]Malloc new data [23:58:09]Malloc new data [23:58:09]KKMCreateXReportDocument OK [23:58:09]KKMSetXReportData OK [23:58:09]KKMPrepareXReportFMData [23:58:09]SAM_PROTO_GetShiftData [23:58:09]wFMCommunicate request_size=4 [23:58:09]MH_SAM_APDU [23:58:09]CAPDU: 80 13 02 00 [23:58:09]Write to MH i2c: E2 08 00 2C 00 80 13 02 00 00 00 00 00 AA [23:58:09]Write i2c OK [23:58:09]MH_I2C_Read... [23:58:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 2C 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [23:58:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:09]wFMCommunicate OK [23:58:09]wFMCommunicate request_size=4 [23:58:09]MH_SAM_APDU [23:58:09]CAPDU: 80 17 00 00 [23:58:09]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [23:58:09]Write i2c OK [23:58:09]MH_I2C_Read... [23:58:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:09]Read from MH i2c: E2 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 [23:58:09]MH_I2C_Read... [23:58:09]Read from MH i2c: E2 FD 00 2D 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CF [23:58:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:58:10]01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:10]wFMCommunicate OK [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 17 00 00 [23:58:10]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:10]Read from MH i2c: E2 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 [23:58:10]MH_I2C_Read... [23:58:10]Read from MH i2c: E2 FD 00 2E 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [23:58:10]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:10]wFMCommunicate OK [23:58:10]wFMCommunicate request_size=4 [23:58:10]MH_SAM_APDU [23:58:10]CAPDU: 80 17 00 00 [23:58:10]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [23:58:10]Write i2c OK [23:58:10]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 FD 00 2F 00 00 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 90 00 21 [23:58:11]RAPDU: 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 90 00 [23:58:11]wFMCommunicate OK [23:58:11]wFMCommunicate request_size=4 [23:58:11]MH_SAM_APDU [23:58:11]CAPDU: 80 17 00 00 [23:58:11]Write to MH i2c: E2 08 00 30 00 80 17 00 00 00 00 00 00 B0 [23:58:11]Write i2c OK [23:58:11]MH_I2C_Read... [23:58:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:11]Read from MH i2c: E2 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 CB 00 [23:58:11]MH_I2C_Read... [23:58:11]Read from MH i2c: E2 CB 00 30 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 [23:58:11]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:11]wFMCommunicate OK [23:58:11]SAM_PROTO_GetShiftData done [23:58:11]1194 (1194) - счетчики итогов смены [23:58:11] 1134 (4) - 169 - количество чеков со всеми признаками расчетов [23:58:11] 1129 (155) - счетчики операций «приход» [23:58:11] 1135 (4) - 169 - количество чеков по признаку расчетов [23:58:11] 1201 (3) - 72364.52 - общая итоговая сумма в чеках [23:58:11] 1136 (3) - 36007.00 - итоговая сумма в чеках наличными [23:58:11] 1138 (3) - 36357.52 - итоговая сумма в чеках безналичными [23:58:11] 1024 (122) - суммы налогов [23:58:11] 1006 (9) - суммы НДС [23:58:11] 1010 (1) - 0% - код ставки НДС [23:58:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:11] 1006 (12) - суммы НДС [23:58:11] 1010 (1) - 12% - код ставки НДС [23:58:11] 1011 (3) - 7686.08 - сумма НДС по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 0% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (11) - суммы НСП [23:58:11] 1014 (1) - 1% - код ставки НСП [23:58:11] 1015 (2) - 640.49 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 2% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 3% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 5% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 0,50% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 1,50% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1130 (141) - счетчики операций «возврат прихода» [23:58:11] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:11] 1024 (117) - суммы налогов [23:58:11] 1006 (9) - суммы НДС [23:58:11] 1010 (1) - 0% - код ставки НДС [23:58:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:11] 1006 (9) - суммы НДС [23:58:11] 1010 (1) - 12% - код ставки НДС [23:58:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 0% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 1% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 2% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 3% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 5% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 0,50% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 1,50% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1131 (141) - счетчики операций «расход» [23:58:11] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:11] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:11] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:11] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:11] 1024 (117) - суммы налогов [23:58:11] 1006 (9) - суммы НДС [23:58:11] 1010 (1) - 0% - код ставки НДС [23:58:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:11] 1006 (9) - суммы НДС [23:58:11] 1010 (1) - 12% - код ставки НДС [23:58:11] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 0% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 1% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:11] 1014 (1) - 2% - код ставки НСП [23:58:11] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:11] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 3% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 5% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 0,50% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 1,50% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1132 (141) - счетчики операций «возврат расхода» [23:58:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:12] 1024 (117) - суммы налогов [23:58:12] 1006 (9) - суммы НДС [23:58:12] 1010 (1) - 0% - код ставки НДС [23:58:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:12] 1006 (9) - суммы НДС [23:58:12] 1010 (1) - 12% - код ставки НДС [23:58:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 0% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 1% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 2% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 3% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 5% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 0,50% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1007 (9) - суммы НСП [23:58:12] 1014 (1) - 1,50% - код ставки НСП [23:58:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:12] 1133 (588) - - счетчики коррекции - не используются [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1194 (04AA) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1134 (046E) [23:58:12]Malloc new data [23:58:12]Processing tag 1129 (0469) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1135 (046F) [23:58:12]Malloc new data [23:58:12]Processing tag 1201 (04B1) [23:58:12]Malloc new data [23:58:12]Processing tag 1136 (0470) [23:58:12]Malloc new data [23:58:12]Processing tag 1138 (0472) [23:58:12]Malloc new data [23:58:12]Processing tag 1024 (0400) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1130 (046A) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1135 (046F) [23:58:12]Malloc new data [23:58:12]Processing tag 1201 (04B1) [23:58:12]Malloc new data [23:58:12]Processing tag 1136 (0470) [23:58:12]Malloc new data [23:58:12]Processing tag 1138 (0472) [23:58:12]Malloc new data [23:58:12]Processing tag 1024 (0400) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1131 (046B) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1135 (046F) [23:58:12]Malloc new data [23:58:12]Processing tag 1201 (04B1) [23:58:12]Malloc new data [23:58:12]Processing tag 1136 (0470) [23:58:12]Malloc new data [23:58:12]Processing tag 1138 (0472) [23:58:12]Malloc new data [23:58:12]Processing tag 1024 (0400) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1132 (046C) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1135 (046F) [23:58:12]Malloc new data [23:58:12]Processing tag 1201 (04B1) [23:58:12]Malloc new data [23:58:12]Processing tag 1136 (0470) [23:58:12]Malloc new data [23:58:12]Processing tag 1138 (0472) [23:58:12]Malloc new data [23:58:12]Processing tag 1024 (0400) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1006 (03EE) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1010 (03F2) [23:58:12]Malloc new data [23:58:12]Processing tag 1011 (03F3) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:12]Processing tag 1014 (03F6) [23:58:12]Malloc new data [23:58:12]Processing tag 1015 (03F7) [23:58:12]Malloc new data [23:58:12]SetTLVBufToDocument err=0 [23:58:12]Processing tag 1007 (03EF) [23:58:12]Load OK [23:58:12]SetTLVBufToDocument [23:58:13]Processing tag 1014 (03F6) [23:58:13]Malloc new data [23:58:13]Processing tag 1015 (03F7) [23:58:13]Malloc new data [23:58:13]SetTLVBufToDocument err=0 [23:58:13]SetTLVBufToDocument err=0 [23:58:13]SetTLVBufToDocument err=0 [23:58:13]Processing tag 1133 (046D) [23:58:13]Malloc new data [23:58:13]SetTLVBufToDocument err=0 [23:58:13]SetTLVBufToDocument err=0 [23:58:13]Malloc new data [23:58:13]SAM_PROTO_GetFMData [23:58:13]wFMCommunicate request_size=4 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 13 03 00 [23:58:13]Write to MH i2c: E2 08 00 31 00 80 13 03 00 00 00 00 00 B0 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:13]Read from MH i2c: E2 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 [23:58:13]MH_I2C_Read... [23:58:13]Read from MH i2c: E2 FD 00 31 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 01 [23:58:13]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:13]wFMCommunicate OK [23:58:13]wFMCommunicate request_size=4 [23:58:13]MH_SAM_APDU [23:58:13]CAPDU: 80 17 00 00 [23:58:13]Write to MH i2c: E2 08 00 32 00 80 17 00 00 00 00 00 00 B2 [23:58:13]Write i2c OK [23:58:13]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 32 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 E8 [23:58:14]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:14]wFMCommunicate OK [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 33 00 80 17 00 00 00 00 00 00 B3 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:14]Read from MH i2c: E2 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 [23:58:14]MH_I2C_Read... [23:58:14]Read from MH i2c: E2 FD 00 33 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 C8 [23:58:14]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:14]wFMCommunicate OK [23:58:14]wFMCommunicate request_size=4 [23:58:14]MH_SAM_APDU [23:58:14]CAPDU: 80 17 00 00 [23:58:14]Write to MH i2c: E2 08 00 34 00 80 17 00 00 00 00 00 00 B4 [23:58:14]Write i2c OK [23:58:14]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 FD 00 34 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 2C [23:58:15]OFD Sender: No OFD packet to send [23:58:15]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:15]wFMCommunicate OK [23:58:15]wFMCommunicate request_size=4 [23:58:15]MH_SAM_APDU [23:58:15]CAPDU: 80 17 00 00 [23:58:15]Write to MH i2c: E2 08 00 35 00 80 17 00 00 00 00 00 00 B5 [23:58:15]Write i2c OK [23:58:15]MH_I2C_Read... [23:58:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:15]Read from MH i2c: E2 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 E1 00 [23:58:15]MH_I2C_Read... [23:58:15]Read from MH i2c: E2 E1 00 35 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A3 [23:58:16]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_GetFMData done [23:58:16]FM_GetFMData:85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 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 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:58:17]oper:6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 [23:58:17]total:F6 82 04 A3 01 [23:58:17]Malloc new data [23:58:17]oper:6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 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 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:58:17]total:6C 1A FC 04 [23:58:17]Malloc new data [23:58:17]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:58:17]total: [23:58:17]Malloc new data [23:58:17]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:58:17]total: [23:58:17]Malloc new data [23:58:17]KKMPrepareXReportFMData err=0 [23:58:17]Х отчет ИНН: 02508201610067 Кассир: Эргешова З. 28.10.2024 23:58 Смена: 522 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 72364.52 Итого наличными: 36007.00 Итого безнал.: 36357.52 НДС 0% : 0.00 НДС 12% : 7686.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 640.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 36007.00 НС Приход: 70299491.74 НС Возвр.Прихода: 836307.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874662 [23:58:17]StoreToDocumentArchive [23:58:17]MH_GetDate [23:58:17]Write to MH i2c: F0 00 00 36 00 25 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: F0 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: F0 09 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: F0 09 00 36 00 00 1A 25 20 67 74 2C AD 66 A7 [23:58:17]shift 522 fd 1730159898 [23:58:17]save to /storage/0522/doc_1730159898 [23:58:17]save last doc name /storage/0522/doc_1730159898 to /storage/kkm_last_doc_name [23:58:17]save OK [23:58:17]Clear old archive folders... [23:58:17]NVStorageSaveData kkm_last_timestamp [23:58:17]File name is /storage/kkm_last_timestamp [23:58:17]Write 4 bytes [23:58:17]NVStorageSaveData done [23:58:17]ExternCall_PrintAddStr [23:58:17]wPrintStart [23:58:17]Write to MH i2c: 01 00 00 37 00 37 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 07 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: 01 07 00 37 00 00 00 00 00 00 FF 0F 4C [23:58:17]RasterBufferAndPrint [23:58:17]line Х отчет [23:58:17]line ИНН: 02508201610067 [23:58:17]line Кассир: Эргешова З. [23:58:17]line 28.10.2024 23:58 [23:58:17]line Смена: 522 [23:58:17]line РНМ: 0000000000091644 [23:58:17]line ЗНМ: 0300000087 [23:58:17]line СНО: Общий режим [23:58:17]line Всего чеков: 169 [23:58:17]line ИТОГИ ПРИХОД [23:58:17]line Чеков: 169 [23:58:17]line Общий итог: 72364.52 [23:58:17]line Итого наличными: 36007.00 [23:58:17]line Итого безнал.: 36357.52 [23:58:17]line НДС 0% : 0.00 [23:58:17]line НДС 12% : 7686.08 [23:58:17]line НСП 0% : 0.00 [23:58:17]line НСП 1,50% : 0.00 [23:58:17]line НСП 0,50% : 0.00 [23:58:17]line НСП 5% : 0.00 [23:58:17]line НСП 3% : 0.00 [23:58:17]line НСП 2% : 0.00 [23:58:17]line НСП 1% : 640.49 [23:58:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:58:17]line Чеков: 0 [23:58:17]line Общий итог: 0.00 [23:58:17]line Итого наличными: 0.00 [23:58:17]line Итого безнал.: 0.00 [23:58:17]line НДС 0% : 0.00 [23:58:17]line НДС 12% : 0.00 [23:58:17]line НСП 0% : 0.00 [23:58:17]line НСП 1,50% : 0.00 [23:58:17]line НСП 0,50% : 0.00 [23:58:17]line НСП 5% : 0.00 [23:58:17]line НСП 3% : 0.00 [23:58:17]line НСП 2% : 0.00 [23:58:17]line НСП 1% : 0.00 [23:58:17]line ИТОГИ РАСХОД [23:58:17]line Чеков: 0 [23:58:17]line Общий итог: 0.00 [23:58:17]line Итого наличными: 0.00 [23:58:17]line Итого безнал.: 0.00 [23:58:17]line НДС 0% : 0.00 [23:58:17]line НДС 12% : 0.00 [23:58:17]line НСП 0% : 0.00 [23:58:17]line НСП 1,50% : 0.00 [23:58:17]line НСП 0,50% : 0.00 [23:58:17]line НСП 5% : 0.00 [23:58:17]line НСП 3% : 0.00 [23:58:17]line НСП 2% : 0.00 [23:58:17]line НСП 1% : 0.00 [23:58:17]line ИТОГИ ВОЗВРАТ РАСХОДА [23:58:17]line Чеков: 0 [23:58:17]line Общий итог: 0.00 [23:58:17]line Итого наличными: 0.00 [23:58:17]line Итого безнал.: 0.00 [23:58:17]line НДС 0% : 0.00 [23:58:17]line НДС 12% : 0.00 [23:58:17]line НСП 0% : 0.00 [23:58:17]line НСП 1,50% : 0.00 [23:58:17]line НСП 0,50% : 0.00 [23:58:17]line НСП 5% : 0.00 [23:58:17]line НСП 3% : 0.00 [23:58:17]line НСП 2% : 0.00 [23:58:17]line НСП 1% : 0.00 [23:58:17]line Сумма внесений: 0.00 [23:58:17]line Сумма выплат: 0.00 [23:58:17]line Нал. в кассе: 36007.00 [23:58:17]line НС Приход: 70299491.74 [23:58:17]line НС Возвр.Прихода: 836307.00 [23:58:17]line НС Расход: 0.00 [23:58:17]line НС Возвр.Расхода: 0.00 [23:58:17]line ФМ: 0000000000874662 [23:58:17]written 0, free lines is 4095 [23:58:18]Write to MH i2c: 01 00 00 82 00 82 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: 01 07 00 82 00 00 00 00 00 00 D3 0A 66 [23:58:18]RasterBufferAndPrint [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]line [23:58:18]written 0, free lines is 2815 [23:58:18]MH_Cut [23:58:18]Write to MH i2c: D1 01 00 89 00 01 5B [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 01 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: D1 01 00 89 00 00 5A [23:58:18]Write to MH i2c: 01 00 00 8A 00 8A [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:19]*** Cut start [23:58:19]*** Partial cut [23:58:19]*** CUTSNS_PIN = 1 [23:58:19]*** CUTSNS_PIN = 0 [23:58:19]*** Brake cut motor [23:58:20]Read from MH i2c: 01 [23:58:20]MH_I2C_Read... [23:58:20]*** Stop cut motor [23:58:20]*** Cut end [23:58:20]Read from MH i2c: 01 07 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: 01 07 00 8A 00 00 00 00 00 00 FF 0F 9F [23:58:20]process_action x_report done [23:58:20]requested_data is exist [23:58:20]produce_requested_data [23:58:20]requested_item fd.num is exist - process it [23:58:20]SAM_PROTO_GetFieldsCounters [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 13 00 00 [23:58:20]Write to MH i2c: E2 08 00 8B 00 80 13 00 00 00 00 00 00 07 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 62 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 62 00 8B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 2C [23:58: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetFieldsCounters done [23:58:20]requested_item shift.num is exist - process it [23:58:20]requested_item shift.opened is exist - process it [23:58:20]req_shift_opened [23:58:20]FM_GetShiftState [23:58:20]SAM_PROTO_GetShiftState [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 13 01 00 [23:58:20]Write to MH i2c: E2 08 00 8C 00 80 13 01 00 00 00 00 00 09 [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 0E 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 0E 00 8C 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 71 [23:58:20]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetShiftState done [23:58:20]FM_GetShiftState done [23:58:20]req_shift_opened done [23:58:20]requested_item shift.open_date is exist - process it [23:58:20]req_shift_open_date [23:58:20]req_shift_open_date done [23:58:20]produce_requested_data done [23:58:20]produce_requested_data return {"fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:58:20]process_action_free x_report [23:58:20]json_value_free [23:58:20]json_value_free done [23:58:20]process_json_proto returns [23:58:20]Send response to host [23:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:58:20]free response buf [23:58:20]execute_script done [23:58:20]execute_script returns [23:58:20]free content buf [23:58:20]Sock 6.Close socket [23:58:20]Sock 6.Thread stoped [23:58:20]OFD Sender: No OFD packet to send [23:58:24]accept exits with 9 [23:58:24]New connection [23:58:24]New thread 3067338084 created [23:58:24]Thread 3067194724 joined [23:58:24]Waiting for new connection... [23:58:24] Sock 9.Parse request [23:58:24]Sock 9.Check first char [23:58:24]Sock 9.First char is OK [23:58:24]request: POST /json_proto HTTP/1.0 [23:58:24]Method: POST [23:58:24]URL: /json_proto [23:58:24]Method is POST - this is cgi request [23:58:24]url: /json_proto [23:58:24]query_string will be loaded in cgi processing [23:58:24]execute_cgi json_proto POST (null) [23:58:24]execute_cgi path=json_proto method=POST [23:58:24]POST find Content-Length [23:58:24]Host: 172.17.43.195:8080 [23:58:24]Content-Length: 215 [23:58:24]Content-Type: application/json [23:58:24] [23:58:24]POST finish read [23:58:24]Found Content-Length = 215 [23:58:24]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" ] } } [23:58:24]execute_script... [23:58:24]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" ] } } [23:58:24]POST & json_proto [23:58:24]process_json_proto [23:58:24]json parsed OK: [23:58:24]protocol is kg_v1.0 [23:58:24]action value=get_value [23:58:24]process_action get_value [23:58:24]cmd_get_value [23:58:24]process_action get_value done [23:58:24]requested_data is exist [23:58:24]produce_requested_data [23:58:24]requested_item kkm.sn is exist - process it [23:58:24]requested_item kkm.ver is exist - process it [23:58:24]requested_item fm.sn is exist - process it [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 11 00 00 [23:58:24]Write to MH i2c: E2 08 00 8D 00 80 11 00 00 00 00 00 00 07 [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 17 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 17 00 8D 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 5B [23:58:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:58:24]wFMCommunicate OK [23:58:24]requested_item fd.num is exist - process it [23:58:24]SAM_PROTO_GetFieldsCounters [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 13 00 00 [23:58:24]Write to MH i2c: E2 08 00 8E 00 80 13 00 00 00 00 00 00 0A [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 62 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 62 00 8E 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 2F [23:58: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C1 1B 01 00 0E 04 04 00 2A 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 [23:58:24]wFMCommunicate OK [23:58:24]SAM_PROTO_GetFieldsCounters done [23:58:24]requested_item shift.num is exist - process it [23:58:24]requested_item shift.opened is exist - process it [23:58:24]req_shift_opened [23:58:24]FM_GetShiftState [23:58:24]SAM_PROTO_GetShiftState [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 13 01 00 [23:58:24]Write to MH i2c: E2 08 00 8F 00 80 13 01 00 00 00 00 00 0C [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:24]Read from MH i2c: E2 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 0E 00 [23:58:24]MH_I2C_Read... [23:58:24]Read from MH i2c: E2 0E 00 8F 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 74 [23:58:24]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:58:24]wFMCommunicate OK [23:58:24]SAM_PROTO_GetShiftState done [23:58:24]FM_GetShiftState done [23:58:24]req_shift_opened done [23:58:24]requested_item shift.open_date is exist - process it [23:58:24]req_shift_open_date [23:58:24]req_shift_open_date done [23:58:24]produce_requested_data done [23:58:24]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113} [23:58:24]process_action_free get_value [23:58:24]json_value_free [23:58:24]json_value_free done [23:58:24]process_json_proto returns [23:58:24]Send response to host [23:58:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72641,"shift.num":554,"shift.opened":1,"shift.open_date":1730074113}}} [23:58:24]free response buf [23:58:24]execute_script done [23:58:24]execute_script returns [23:58:24]free content buf [23:58:24]Sock 9.Close socket [23:58:24]Sock 9.Thread stoped [23:58:24]accept exits with 10 [23:58:24]New connection [23:58:24]New thread 3067194724 created [23:58:24]Thread 3067338084 joined [23:58:24]Waiting for new connection... [23:58:24] Sock 10.Parse request [23:58:24]Sock 10.Check first char [23:58:24]Sock 10.First char is OK [23:58:24]request: POST /json_proto HTTP/1.0 [23:58:24]Method: POST [23:58:24]URL: /json_proto [23:58:24]Method is POST - this is cgi request [23:58:24]url: /json_proto [23:58:24]query_string will be loaded in cgi processing [23:58:24]execute_cgi json_proto POST (null) [23:58:24]execute_cgi path=json_proto method=POST [23:58:24]POST find Content-Length [23:58:24]Host: 172.17.43.195:8080 [23:58:24]Content-Length: 331 [23:58:24]Content-Type: application/json [23:58:24] [23:58:24]POST finish read [23:58:24]Found Content-Length = 331 [23:58:24]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" ] } } [23:58:24]execute_script... [23:58:24]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" ] } } [23:58:24]POST & json_proto [23:58:24]process_json_proto [23:58:24]json parsed OK: [23:58:24]protocol is kg_v1.0 [23:58:24]action value=get_value [23:58:24]process_action get_value [23:58:24]cmd_get_value [23:58:24]process_action get_value done [23:58:24]requested_data is exist [23:58:24]produce_requested_data [23:58:24]requested_item fm.sale.total is exist - process it [23:58:24]SAM_PROTO_GetFMData [23:58:24]wFMCommunicate request_size=4 [23:58:24]MH_SAM_APDU [23:58:24]CAPDU: 80 13 03 00 [23:58:24]Write to MH i2c: E2 08 00 90 00 80 13 03 00 00 00 00 00 0F [23:58:24]Write i2c OK [23:58:24]MH_I2C_Read... [23:58:25]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:25]Read from MH i2c: E2 [23:58:25]MH_I2C_Read... [23:58:25]Read from MH i2c: E2 FD 00 [23:58:25]MH_I2C_Read... [23:58:25]Read from MH i2c: E2 FD 00 90 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 60 [23:58:25]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C OFD Sender: No OFD packet to send [23:58:25]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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:25]wFMCommunicate OK [23:58:25]wFMCommunicate request_size=4 [23:58:25]MH_SAM_APDU [23:58:25]CAPDU: 80 17 00 00 [23:58:25]Write to MH i2c: E2 08 00 91 00 80 17 00 00 00 00 00 00 11 [23:58:25]Write i2c OK [23:58:25]MH_I2C_Read... [23:58:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:26]Read from MH i2c: E2 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 FD 00 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 FD 00 91 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 47 [23:58:26]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:26]wFMCommunicate OK [23:58:26]wFMCommunicate request_size=4 [23:58:26]MH_SAM_APDU [23:58:26]CAPDU: 80 17 00 00 [23:58:26]Write to MH i2c: E2 08 00 92 00 80 17 00 00 00 00 00 00 12 [23:58:26]Write i2c OK [23:58:26]MH_I2C_Read... [23:58:26]recv_with_timeout no data received [23:58:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:26]Read from MH i2c: E2 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 FD 00 [23:58:26]MH_I2C_Read... [23:58:26]Read from MH i2c: E2 FD 00 92 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 27 [23:58:27]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:27]wFMCommunicate OK [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 17 00 00 [23:58:27]Write to MH i2c: E2 08 00 93 00 80 17 00 00 00 00 00 00 13 [23:58:27]Write i2c OK [23:58:27]MH_I2C_Read... [23:58:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:27]Read from MH i2c: E2 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 FD 00 [23:58:27]MH_I2C_Read... [23:58:27]Read from MH i2c: E2 FD 00 93 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 8B [23:58:27]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:27]wFMCommunicate OK [23:58:27]wFMCommunicate request_size=4 [23:58:27]MH_SAM_APDU [23:58:27]CAPDU: 80 17 00 00 [23:58:27]Write to MH i2c: E2 08 00 94 00 80 17 00 00 00 00 00 00 14 [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:28]Read from MH i2c: E2 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 E1 00 [23:58:28]MH_I2C_Read... [23:58:28]Read from MH i2c: E2 E1 00 94 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 02 [23:58:28]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:28]wFMCommunicate OK [23:58:28]SAM_PROTO_GetFMData done [23:58:28]requested_item fm.sale_refund.total is exist - process it [23:58:28]requested_item fm.buy.total is exist - process it [23:58:28]requested_item shift.sale.total is exist - process it [23:58:28]SAM_PROTO_GetShiftData [23:58:28]wFMCommunicate request_size=4 [23:58:28]MH_SAM_APDU [23:58:28]CAPDU: 80 13 02 00 [23:58:28]Write to MH i2c: E2 08 00 95 00 80 13 02 00 00 00 00 00 13 [23:58:28]Write i2c OK [23:58:28]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 95 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:58:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:29]wFMCommunicate OK [23:58:29]wFMCommunicate request_size=4 [23:58:29]MH_SAM_APDU [23:58:29]CAPDU: 80 17 00 00 [23:58:29]Write to MH i2c: E2 08 00 96 00 80 17 00 00 00 00 00 00 16 [23:58:29]Write i2c OK [23:58:29]MH_I2C_Read... [23:58:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:29]Read from MH i2c: E2 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 [23:58:29]MH_I2C_Read... [23:58:29]Read from MH i2c: E2 FD 00 96 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 38 [23:58:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:30]wFMCommunicate OK [23:58:30]wFMCommunicate request_size=4 [23:58:30]MH_SAM_APDU [23:58:30]CAPDU: 80 17 00 00 [23:58:30]Write to MH i2c: E2 08 00 97 00 80 17 00 00 00 00 00 00 17 [23:58:30]Write i2c OK [23:58:30]MH_I2C_Read... [23:58:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:30]Read from MH i2c: E2 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 [23:58:30]MH_I2C_Read... [23:58:30]Read from MH i2c: E2 FD 00 97 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CE [23:58:30]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:31]wFMCommunicate OK [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 17 00 00 [23:58:31]Write to MH i2c: E2 08 00 98 00 80 17 00 00 00 00 00 00 18 [23:58:31]OFD Sender: No OFD packet to send [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:31]Read from MH i2c: E2 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 FD 00 [23:58:31]MH_I2C_Read... [23:58:31]Read from MH i2c: E2 FD 00 98 00 00 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 90 00 8A [23:58:31]RAPDU: 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 90 00 [23:58:31]wFMCommunicate OK [23:58:31]wFMCommunicate request_size=4 [23:58:31]MH_SAM_APDU [23:58:31]CAPDU: 80 17 00 00 [23:58:31]Write to MH i2c: E2 08 00 99 00 80 17 00 00 00 00 00 00 19 [23:58:31]Write i2c OK [23:58:31]MH_I2C_Read... [23:58:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:32]Read from MH i2c: E2 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 CB 00 [23:58:32]MH_I2C_Read... [23:58:32]Read from MH i2c: E2 CB 00 99 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 [23:58:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:32]wFMCommunicate OK [23:58:32]SAM_PROTO_GetShiftData done [23:58:32]requested_item shift.sale.total_cash is exist - process it [23:58:32]requested_item shift.sale_refund.total is exist - process it [23:58:32]requested_item shift.sale_refund.total_cash is exist - process it [23:58:32]requested_item shift.buy.total is exist - process it [23:58:32]requested_item shift.buy.total_cash is exist - process it [23:58:32]produce_requested_data done [23:58:32]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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} [23:58:32]process_action_free get_value [23:58:32]json_value_free [23:58:32]json_value_free done [23:58:32]process_json_proto returns [23:58:32]Send response to host [23:58:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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}}} [23:58:32]free response buf [23:58:32]execute_script done [23:58:32]execute_script returns [23:58:32]free content buf [23:58:32]Sock 10.Close socket [23:58:32]Sock 10.Thread stoped [23:58:32]accept exits with 9 [23:58:32]New connection [23:58:32]New thread 3067338084 created [23:58:32]Thread 3067194724 joined [23:58:32]Waiting for new connection... [23:58:32] Sock 9.Parse request [23:58:32]Sock 9.Check first char [23:58:32]Sock 9.First char is OK [23:58:32]request: POST /json_proto HTTP/1.0 [23:58:32]Method: POST [23:58:32]URL: /json_proto [23:58:32]Method is POST - this is cgi request [23:58:32]url: /json_proto [23:58:32]query_string will be loaded in cgi processing [23:58:32]execute_cgi json_proto POST (null) [23:58:32]execute_cgi path=json_proto method=POST [23:58:32]POST find Content-Length [23:58:32]Host: 172.17.43.195:8080 [23:58:32]Content-Length: 331 [23:58:32]Content-Type: application/json [23:58:32] [23:58:32]POST finish read [23:58:32]Found Content-Length = 331 [23:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:32]execute_script... [23:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:32]POST & json_proto [23:58:32]process_json_proto [23:58:32]json parsed OK: [23:58:32]protocol is kg_v1.0 [23:58:32]action value=get_value [23:58:32]process_action get_value [23:58:32]cmd_get_value [23:58:32]process_action get_value done [23:58:32]requested_data is exist [23:58:32]produce_requested_data [23:58:32]requested_item fm.sale.total is exist - process it [23:58:32]SAM_PROTO_GetFMData [23:58:32]wFMCommunicate request_size=4 [23:58:32]MH_SAM_APDU [23:58:32]CAPDU: 80 13 03 00 [23:58:32]Write to MH i2c: E2 08 00 9A 00 80 13 03 00 00 00 00 00 19 [23:58:32]Write i2c OK [23:58:32]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 9A 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 6A [23:58:33]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:33]wFMCommunicate OK [23:58:33]wFMCommunicate request_size=4 [23:58:33]MH_SAM_APDU [23:58:33]CAPDU: 80 17 00 00 [23:58:33]Write to MH i2c: E2 08 00 9B 00 80 17 00 00 00 00 00 00 1B [23:58:33]Write i2c OK [23:58:33]MH_I2C_Read... [23:58:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:33]Read from MH i2c: E2 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 [23:58:33]MH_I2C_Read... [23:58:33]Read from MH i2c: E2 FD 00 9B 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 51 [23:58:33]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:34]wFMCommunicate OK [23:58:34]wFMCommunicate request_size=4 [23:58:34]MH_SAM_APDU [23:58:34]CAPDU: 80 17 00 00 [23:58:34]Write to MH i2c: E2 08 00 9C 00 80 17 00 00 00 00 00 00 1C [23:58:34]Write i2c OK [23:58:34]MH_I2C_Read... [23:58:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:34]Read from MH i2c: E2 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 [23:58:34]MH_I2C_Read... [23:58:34]Read from MH i2c: E2 FD 00 9C 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 31 [23:58:34]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:34]wFMCommunicate OK [23:58:34]wFMCommunicate request_size=4 [23:58:34]MH_SAM_APDU [23:58:34]CAPDU: 80 17 00 00 [23:58:34]Write to MH i2c: E2 08 00 9D 00 80 17 00 00 00 00 00 00 1D [23:58:34]Write i2c OK [23:58:34]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 FD 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 FD 00 9D 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 95 [23:58:35]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:35]wFMCommunicate OK [23:58:35]wFMCommunicate request_size=4 [23:58:35]MH_SAM_APDU [23:58:35]CAPDU: 80 17 00 00 [23:58:35]Write to MH i2c: E2 08 00 9E 00 80 17 00 00 00 00 00 00 1E [23:58:35]Write i2c OK [23:58:35]MH_I2C_Read... [23:58:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:35]Read from MH i2c: E2 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 E1 00 [23:58:35]MH_I2C_Read... [23:58:35]Read from MH i2c: E2 E1 00 9E 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 0C [23:58:36]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 OFD Sender: No OFD packet to send [23:58:36]00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:36]wFMCommunicate OK [23:58:36]SAM_PROTO_GetFMData done [23:58:36]requested_item fm.sale_refund.total is exist - process it [23:58:36]requested_item fm.buy.total is exist - process it [23:58:36]requested_item shift.sale.total is exist - process it [23:58:36]SAM_PROTO_GetShiftData [23:58:36]wFMCommunicate request_size=4 [23:58:36]MH_SAM_APDU [23:58:36]CAPDU: 80 13 02 00 [23:58:36]Write to MH i2c: E2 08 00 9F 00 80 13 02 00 00 00 00 00 1D [23:58:36]Write i2c OK [23:58:36]MH_I2C_Read... [23:58:36]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:36]Read from MH i2c: E2 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 FD 00 [23:58:36]MH_I2C_Read... [23:58:36]Read from MH i2c: E2 FD 00 9F 00 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [23:58:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:37]wFMCommunicate OK [23:58:37]wFMCommunicate request_size=4 [23:58:37]MH_SAM_APDU [23:58:37]CAPDU: 80 17 00 00 [23:58:37]Write to MH i2c: E2 08 00 A0 00 80 17 00 00 00 00 00 00 20 [23:58:37]recv_with_timeout no data received [23:58:37]Write i2c OK [23:58:37]MH_I2C_Read... [23:58:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:37]Read from MH i2c: E2 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 [23:58:37]MH_I2C_Read... [23:58:37]Read from MH i2c: E2 FD 00 A0 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 42 [23:58:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:38]wFMCommunicate OK [23:58:38]wFMCommunicate request_size=4 [23:58:38]MH_SAM_APDU [23:58:38]CAPDU: 80 17 00 00 [23:58:38]Write to MH i2c: E2 08 00 A1 00 80 17 00 00 00 00 00 00 21 [23:58:38]Write i2c OK [23:58:38]MH_I2C_Read... [23:58:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:38]Read from MH i2c: E2 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 FD 00 [23:58:38]MH_I2C_Read... [23:58:38]Read from MH i2c: E2 FD 00 A1 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [23:58:38]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:38]wFMCommunicate OK [23:58:38]wFMCommunicate request_size=4 [23:58:38]MH_SAM_APDU [23:58:38]CAPDU: 80 17 00 00 [23:58:38]Write to MH i2c: E2 08 00 A2 00 80 17 00 00 00 00 00 00 22 [23:58:38]Write i2c OK [23:58:38]MH_I2C_Read... [23:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:39]Read from MH i2c: E2 [23:58:39]MH_I2C_Read... [23:58:39]Read from MH i2c: E2 FD 00 [23:58:39]MH_I2C_Read... [23:58:39]Read from MH i2c: E2 FD 00 A2 00 00 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 90 00 94 [23:58:39]RAPDU: 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 90 00 [23:58:39]wFMCommunicate OK [23:58:39]wFMCommunicate request_size=4 [23:58:39]MH_SAM_APDU [23:58:39]CAPDU: 80 17 00 00 [23:58:39]Write to MH i2c: E2 08 00 A3 00 80 17 00 00 00 00 00 00 23 [23:58:39]Write i2c OK [23:58:39]MH_I2C_Read... [23:58:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:39]Read from MH i2c: E2 [23:58:39]MH_I2C_Read... [23:58:39]Read from MH i2c: E2 CB 00 [23:58:39]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 CB 00 A3 00 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0C [23:58:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:40]wFMCommunicate OK [23:58:40]SAM_PROTO_GetShiftData done [23:58:40]requested_item shift.sale.total_cash is exist - process it [23:58:40]requested_item shift.sale_refund.total is exist - process it [23:58:40]requested_item shift.sale_refund.total_cash is exist - process it [23:58:40]requested_item shift.buy.total is exist - process it [23:58:40]requested_item shift.buy.total_cash is exist - process it [23:58:40]produce_requested_data done [23:58:40]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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} [23:58:40]process_action_free get_value [23:58:40]json_value_free [23:58:40]json_value_free done [23:58:40]process_json_proto returns [23:58:40]Send response to host [23:58:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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}}} [23:58:40]free response buf [23:58:40]execute_script done [23:58:40]execute_script returns [23:58:40]free content buf [23:58:40]Sock 9.Close socket [23:58:40]Sock 9.Thread stoped [23:58:40]accept exits with 10 [23:58:40]New connection [23:58:40]New thread 3067194724 created [23:58:40]Thread 3067338084 joined [23:58:40]Waiting for new connection... [23:58:40] Sock 10.Parse request [23:58:40]Sock 10.Check first char [23:58:40]Sock 10.First char is OK [23:58:40]request: POST /json_proto HTTP/1.0 [23:58:40]Method: POST [23:58:40]URL: /json_proto [23:58:40]Method is POST - this is cgi request [23:58:40]url: /json_proto [23:58:40]query_string will be loaded in cgi processing [23:58:40]execute_cgi json_proto POST (null) [23:58:40]execute_cgi path=json_proto method=POST [23:58:40]POST find Content-Length [23:58:40]Host: 172.17.43.195:8080 [23:58:40]Content-Length: 260 [23:58:40]Content-Type: application/json [23:58:40] [23:58:40]POST finish read [23:58:40]Found Content-Length = 260 [23:58:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:40]execute_script... [23:58:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u042D\u0440\u0433\u0435\u0448\u043E\u0432\u0430 \u0417. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:58:40]POST & json_proto [23:58:40]process_json_proto [23:58:40]json parsed OK: [23:58:40]protocol is kg_v1.0 [23:58:40]action value=close_shift [23:58:40]process_action close_shift [23:58:40]cmd_close_shift [23:58:40]MH_GetDate [23:58:40]Write to MH i2c: F0 00 00 A4 00 93 [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 09 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 09 00 A4 00 00 31 25 20 67 74 2C AD 66 2C [23:58:40]GetLastDocTimeStamp 1730159889 [23:58:40]current date 1730159921 [23:58:40]FM_GetShiftState [23:58:40]SAM_PROTO_GetShiftState [23:58:40]wFMCommunicate request_size=4 [23:58:40]MH_SAM_APDU [23:58:40]CAPDU: 80 13 01 00 [23:58:40]Write to MH i2c: E2 08 00 A5 00 80 13 01 00 00 00 00 00 22 [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:40]Read from MH i2c: E2 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 0E 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 0E 00 A5 00 00 09 00 01 01 D6 1E 67 00 00 00 00 90 00 8A [23:58:40]RAPDU: 09 00 01 01 D6 1E 67 00 00 00 00 90 00 [23:58:40]wFMCommunicate OK [23:58:40]SAM_PROTO_GetShiftState done [23:58:40]FM_GetShiftState done [23:58:40]KKMCreateCloseShiftDocument [23:58:40]Load OK [23:58:40]Malloc new data [23:58:40]MH_GetDate [23:58:40]Write to MH i2c: F0 00 00 A6 00 95 [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 09 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: F0 09 00 A6 00 00 31 25 20 67 74 2C AD 66 2E [23:58:40]Malloc new data [23:58:40]Malloc new data [23:58:40]Malloc new data [23:58:40]Malloc new data [23:58:40]KKMCreateCloseShiftDocument OK [23:58:40]KKMSetCloseShiftData OK [23:58:40]ProcessDocumentItem done err = 0, tmpTLVsize=71 [23:58:40]tlvbuf is 00C11300 [23:58:40]KKMLoadAndSignCloseShiftData [23:58:40]SAM_PROTO_ProcessDocument [23:58:40]wFMCommunicate request_size=9 [23:58:40]MH_SAM_APDU [23:58:40]CAPDU: 80 15 01 00 04 05 00 47 00 [23:58:40]Write to MH i2c: E2 0C 00 A7 00 80 15 01 00 04 00 05 00 47 00 00 00 7A [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:58:40]Read from MH i2c: E2 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 03 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 03 00 A7 00 00 90 00 1B [23:58:40]RAPDU: 90 00 [23:58:40]wFMCommunicate OK [23:58:40]wFMCommunicate request_size=23 [23:58:40]MH_SAM_APDU [23:58:40]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:58:40]Write to MH i2c: E2 1A 00 A8 00 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 1D [23:58:40]Write i2c OK [23:58:40]MH_I2C_Read... [23:58:40]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:40]Read from MH i2c: E2 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 03 00 [23:58:40]MH_I2C_Read... [23:58:40]Read from MH i2c: E2 03 00 A8 00 00 90 00 1C [23:58:41]RAPDU: 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=30 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 [23:58:41]Write to MH i2c: E2 21 00 A9 00 80 15 02 00 19 00 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 00 00 04 [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:41]Read from MH i2c: E2 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [23:58:41]RAPDU: 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=13 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 15 02 00 08 F4 03 04 00 31 25 20 67 [23:58:41]Write to MH i2c: E2 10 00 AA 00 80 15 02 00 08 00 F4 03 04 00 31 25 20 67 00 00 12 [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:41]Read from MH i2c: E2 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [23:58:41]RAPDU: 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=25 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [23:58:41]Write to MH i2c: E2 1C 00 AB 00 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 8C [23:58:41]OFD Sender: No OFD packet to send [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:58:41]Read from MH i2c: E2 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 [23:58:41]MH_I2C_Read... [23:58:41]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [23:58:41]RAPDU: 90 00 [23:58:41]wFMCommunicate OK [23:58:41]wFMCommunicate request_size=4 [23:58:41]MH_SAM_APDU [23:58:41]CAPDU: 80 15 03 00 [23:58:41]Write to MH i2c: E2 08 00 AC 00 80 15 03 00 00 00 00 00 2D [23:58:41]Write i2c OK [23:58:41]MH_I2C_Read... [23:58:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:58:42]Read from MH i2c: E2 [23:58:42]MH_I2C_Read... [23:58:42]Read from MH i2c: E2 FD 00 [23:58:42]MH_I2C_Read... [23:58:42]Read from MH i2c: E2 FD 00 AC 00 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [23:58:42]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:42]wFMCommunicate OK [23:58:42]SAM_PROTO_ProcessDocument answer len = 1265 [23:58:42]SAM_PROTO_ProcessDocument remain to read = 1017 [23:58:42]wFMCommunicate request_size=4 [23:58:42]MH_SAM_APDU [23:58:42]CAPDU: 80 17 00 00 [23:58:42]Write to MH i2c: E2 08 00 AD 00 80 17 00 00 00 00 00 00 2D [23:58:42]Write i2c OK [23:58:42]MH_I2C_Read... [23:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:43]Read from MH i2c: E2 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: E2 FD 00 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: E2 FD 00 AD 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [23:58:43]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:43]wFMCommunicate OK [23:58:43]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:43]SAM_PROTO_ProcessDocument remain to read = 767 [23:58:43]wFMCommunicate request_size=4 [23:58:43]MH_SAM_APDU [23:58:43]CAPDU: 80 17 00 00 [23:58:43]Write to MH i2c: E2 08 00 AE 00 80 17 00 00 00 00 00 00 2E [23:58:43]Write i2c OK [23:58:43]MH_I2C_Read... [23:58:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:43]Read from MH i2c: E2 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: E2 FD 00 [23:58:43]MH_I2C_Read... [23:58:43]Read from MH i2c: E2 FD 00 AE 00 00 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 90 00 90 [23:58:44]RAPDU: 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 90 00 [23:58:44]wFMCommunicate OK [23:58:44]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:44]SAM_PROTO_ProcessDocument remain to read = 517 [23:58:44]wFMCommunicate request_size=4 [23:58:44]MH_SAM_APDU [23:58:44]CAPDU: 80 17 00 00 [23:58:44]Write to MH i2c: E2 08 00 AF 00 80 17 00 00 00 00 00 00 2F [23:58:44]Write i2c OK [23:58:44]MH_I2C_Read... [23:58:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:44]Read from MH i2c: E2 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: E2 FD 00 [23:58:44]MH_I2C_Read... [23:58:44]Read from MH i2c: E2 FD 00 AF 00 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [23:58:44]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:45]wFMCommunicate OK [23:58:45]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:45]SAM_PROTO_ProcessDocument remain to read = 267 [23:58:45]wFMCommunicate request_size=4 [23:58:45]MH_SAM_APDU [23:58:45]CAPDU: 80 17 00 00 [23:58:45]Write to MH i2c: E2 08 00 B0 00 80 17 00 00 00 00 00 00 30 [23:58:45]Write i2c OK [23:58:45]MH_I2C_Read... [23:58:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:45]Read from MH i2c: E2 [23:58:45]MH_I2C_Read... [23:58:45]Read from MH i2c: E2 FD 00 [23:58:45]MH_I2C_Read... [23:58:45]Read from MH i2c: E2 FD 00 B0 00 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F8 [23:58:45]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:58:46]wFMCommunicate OK [23:58:46]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:58:46]SAM_PROTO_ProcessDocument remain to read = 17 [23:58:46]wFMCommunicate request_size=4 [23:58:46]MH_SAM_APDU [23:58:46]CAPDU: 80 17 00 00 [23:58:46]Write to MH i2c: E2 08 00 B1 00 80 17 00 00 00 00 00 00 31 [23:58:46]Write i2c OK [23:58:46]MH_I2C_Read... [23:58:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:58:46]Read from MH i2c: E2 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 14 00 [23:58:46]MH_I2C_Read... [23:58:46]Read from MH i2c: E2 14 00 B1 00 00 01 00 06 F7 03 00 00 35 04 06 00 39 58 B5 BF CE 08 90 00 51 [23:58:46]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 39 58 B5 BF CE 08 90 00 [23:58:46]wFMCommunicate OK [23:58:46]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:58:46]SAM_PROTO_ProcessDocument done [23:58:46]1209 (1) - 1.0 - номер версии ФФД [23:58:46]1041 (16) - 0000000000874662 - номер ФМ [23:58:46]1040 (4) - 72642 - номер ФД [23:58:46]1038 (4) - 554 - номер смены [23:58:46]1118 (4) - 169 - количество кассовых чеков за смену [23:58:46]1111 (4) - 171 - общее количество ФД за смену [23:58:46]1194 (1194) - счетчики итогов смены [23:58:46] 1134 (4) - 169 - количество чеков со всеми признаками расчетов [23:58:46] 1129 (155) - счетчики операций «приход» [23:58:46] 1135 (4) - 169 - количество чеков по признаку расчетов [23:58:46] 1201 (3) - 72364.52 - общая итоговая сумма в чеках [23:58:46] 1136 (3) - 36007.00 - итоговая сумма в чеках наличными [23:58:46] 1138 (3) - 36357.52 - итоговая сумма в чеках безналичными [23:58:46] 1024 (122) - суммы налогов [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 0% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1006 (12) - суммы НДС [23:58:46] 1010 (1) - 12% - код ставки НДС [23:58:46] 1011 (3) - 7686.08 - сумма НДС по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (11) - суммы НСП [23:58:46] 1014 (1) - 1% - код ставки НСП [23:58:46] 1015 (2) - 640.49 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 2% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 3% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 5% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1130 (141) - счетчики операций «возврат прихода» [23:58:46] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:46] 1024 (117) - суммы налогов [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 0% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 12% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1% - код ставки НСП [23:58:46] OFD Sender: No OFD packet to send [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 2% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 3% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 5% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1131 (141) - счетчики операций «расход» [23:58:46] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:46] 1024 (117) - суммы налогов [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 0% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 12% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 2% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 3% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 5% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1,50% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1132 (141) - счетчики операций «возврат расхода» [23:58:46] 1135 (4) - 0 - количество чеков по признаку расчетов [23:58:46] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:58:46] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:58:46] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:58:46] 1024 (117) - суммы налогов [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 0% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1006 (9) - суммы НДС [23:58:46] 1010 (1) - 12% - код ставки НДС [23:58:46] 1011 (0) - 0.00 - сумма НДС по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 0% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 1% - код ставки НСП [23:58:46] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:46] 1007 (9) - суммы НСП [23:58:46] 1014 (1) - 2% - код ставки НСП [23:58:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:47] 1007 (9) - суммы НСП [23:58:47] 1014 (1) - 3% - код ставки НСП [23:58:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:47] 1007 (9) - суммы НСП [23:58:47] 1014 (1) - 5% - код ставки НСП [23:58:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:47] 1007 (9) - суммы НСП [23:58:47] 1014 (1) - 0,50% - код ставки НСП [23:58:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:47] 1007 (9) - суммы НСП [23:58:47] 1014 (1) - 1,50% - код ставки НСП [23:58:47] 1015 (0) - 0.00 - сумма НСП по ставке [23:58:47] 1133 (588) - - счетчики коррекции - не используются [23:58:47]1077 (6) - 63053169151496 - ФПД [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1209 (04B9) [23:58:47]Malloc new data [23:58:47]Processing tag 1041 (0411) [23:58:47]Processing tag 1040 (0410) [23:58:47]Malloc new data [23:58:47]Processing tag 1038 (040E) [23:58:47]Malloc new data [23:58:47]Processing tag 1118 (045E) [23:58:47]Malloc new data [23:58:47]Processing tag 1111 (0457) [23:58:47]Malloc new data [23:58:47]Processing tag 1194 (04AA) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1134 (046E) [23:58:47]Malloc new data [23:58:47]Processing tag 1129 (0469) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1135 (046F) [23:58:47]Malloc new data [23:58:47]Processing tag 1201 (04B1) [23:58:47]Malloc new data [23:58:47]Processing tag 1136 (0470) [23:58:47]Malloc new data [23:58:47]Processing tag 1138 (0472) [23:58:47]Malloc new data [23:58:47]Processing tag 1024 (0400) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1130 (046A) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1135 (046F) [23:58:47]Malloc new data [23:58:47]Processing tag 1201 (04B1) [23:58:47]Malloc new data [23:58:47]Processing tag 1136 (0470) [23:58:47]Malloc new data [23:58:47]Processing tag 1138 (0472) [23:58:47]Malloc new data [23:58:47]Processing tag 1024 (0400) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1131 (046B) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1135 (046F) [23:58:47]Malloc new data [23:58:47]Processing tag 1201 (04B1) [23:58:47]Malloc new data [23:58:47]Processing tag 1136 (0470) [23:58:47]Malloc new data [23:58:47]Processing tag 1138 (0472) [23:58:47]Malloc new data [23:58:47]Processing tag 1024 (0400) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1132 (046C) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1135 (046F) [23:58:47]Malloc new data [23:58:47]Processing tag 1201 (04B1) [23:58:47]Malloc new data [23:58:47]Processing tag 1136 (0470) [23:58:47]Malloc new data [23:58:47]Processing tag 1138 (0472) [23:58:47]Malloc new data [23:58:47]Processing tag 1024 (0400) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1006 (03EE) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1010 (03F2) [23:58:47]Malloc new data [23:58:47]Processing tag 1011 (03F3) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1007 (03EF) [23:58:47]Load OK [23:58:47]SetTLVBufToDocument [23:58:47]Processing tag 1014 (03F6) [23:58:47]Malloc new data [23:58:47]Processing tag 1015 (03F7) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1133 (046D) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Processing tag 1077 (0435) [23:58:47]Malloc new data [23:58:47]SetTLVBufToDocument err=0 [23:58:47]Malloc new data [23:58:47]SAM_PROTO_GetFMData [23:58:47]wFMCommunicate request_size=4 [23:58:47]MH_SAM_APDU [23:58:47]CAPDU: 80 13 03 00 [23:58:47]Write to MH i2c: E2 08 00 B2 00 80 13 03 00 00 00 00 00 31 [23:58:47]Write i2c OK [23:58:47]MH_I2C_Read... [23:58:48]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:48]Read from MH i2c: E2 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: E2 FD 00 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: E2 FD 00 B2 00 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 82 [23:58:48]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [23:58:48]wFMCommunicate OK [23:58:48]wFMCommunicate request_size=4 [23:58:48]MH_SAM_APDU [23:58:48]CAPDU: 80 17 00 00 [23:58:48]Write to MH i2c: E2 08 00 B3 00 80 17 00 00 00 00 00 00 33 [23:58:48]Write i2c OK [23:58:48]MH_I2C_Read... [23:58:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:48]Read from MH i2c: E2 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: E2 FD 00 [23:58:48]MH_I2C_Read... [23:58:48]Read from MH i2c: E2 FD 00 B3 00 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 69 [23:58:49]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [23:58:49]wFMCommunicate OK [23:58:49]wFMCommunicate request_size=4 [23:58:49]MH_SAM_APDU [23:58:49]CAPDU: 80 17 00 00 [23:58:49]Write to MH i2c: E2 08 00 B4 00 80 17 00 00 00 00 00 00 34 [23:58:49]Write i2c OK [23:58:49]MH_I2C_Read... [23:58:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:49]Read from MH i2c: E2 [23:58:49]MH_I2C_Read... [23:58:49]Read from MH i2c: E2 FD 00 [23:58:49]MH_I2C_Read... [23:58:49]Read from MH i2c: E2 FD 00 B4 00 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 49 [23:58:50]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [23:58:50]wFMCommunicate OK [23:58:50]wFMCommunicate request_size=4 [23:58:50]MH_SAM_APDU [23:58:50]CAPDU: 80 17 00 00 [23:58:50]Write to MH i2c: E2 08 00 B5 00 80 17 00 00 00 00 00 00 35 [23:58:50]Write i2c OK [23:58:50]MH_I2C_Read... [23:58:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:50]Read from MH i2c: E2 [23:58:50]MH_I2C_Read... [23:58:50]Read from MH i2c: E2 FD 00 [23:58:50]MH_I2C_Read... [23:58:50]Read from MH i2c: E2 FD 00 B5 00 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 AD [23:58:51]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [23:58:51]wFMCommunicate OK [23:58:51]wFMCommunicate request_size=4 [23:58:51]MH_SAM_APDU [23:58:51]CAPDU: 80 17 00 00 [23:58:51]Write to MH i2c: E2 08 00 B6 00 80 17 00 00 00 00 00 00 36 [23:58:51]Write i2c OK [23:58:51]MH_I2C_Read... [23:58:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [23:58:51]OFD Sender: No OFD packet to send [23:58:51]Read from MH i2c: E2 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: E2 E1 00 [23:58:51]MH_I2C_Read... [23:58:51]Read from MH i2c: E2 E1 00 B6 00 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 recv_with_timeout no data received [23:58:52]00 90 00 24 [23:58:52]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:58:52]wFMCommunicate OK [23:58:52]SAM_PROTO_GetFMData done [23:58:52]Malloc new data [23:58:52]Malloc new data [23:58:52]Malloc new data [23:58:52]Malloc new data [23:58:52]KKMLoadAndSignCloseShiftData err=0 [23:58:52]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Эргешова З. 28.10.2024 23:58 Смена: 554 РНМ: 0000000000091644 ЗНМ: 0300000087 СНО: Общий режим Чеков за смену: 169 ФД за смену: 171 Всего чеков: 169 ИТОГИ ПРИХОД Чеков: 169 Общий итог: 72364.52 Итого наличными: 36007.00 Итого безнал.: 36357.52 НДС 0% : 0.00 НДС 12% : 7686.08 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 640.49 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 36007.00 НС Приход: 70299491.74 НС Возвр.Прихода: 836307.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 72642 ФМ: 0000000000874662 ФПД: 63053169151496 [23:58:52]StoreToDocumentArchive [23:58:52]shift 554 fd 72642 [23:58:52]save to /storage/0554/doc_00072642 [23:58:52]save last doc name /storage/0554/doc_00072642 to /storage/kkm_last_doc_name [23:58:52]save OK [23:58:52]Clear old archive folders... [23:58:52]Remove dir /storage/0522 [23:58:52]opendir ok [23:58:52]file . [23:58:52]file .. [23:58:52]file doc_1730159860 [23:58:52]remove file /storage/0522/doc_1730159860 [23:58:52]file doc_1730159898 [23:58:52]remove file /storage/0522/doc_1730159898 [23:58:52]remove dir /storage/0522 [23:58:52]NVStorageSaveData kkm_registers [23:58:52]File name is /storage/kkm_registers [23:58:52]Write 24 bytes [23:58:52]NVStorageSaveData done [23:58:52]NVStorageSaveData kkm_registers [23:58:52]File name is /storage/kkm_registers [23:58:52]Write 24 bytes [23:58:52]NVStorageSaveData done [23:58:52]ProcessDocumentItem done err = 0, tmpTLVsize=1379 [23:58:52]tlvbuf is 00C61FF0 [23:58:52]SAM_PROTO_ClearQueue [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 09 00 00 [23:58:52]Write to MH i2c: E2 08 00 B7 00 80 09 00 00 00 00 00 00 29 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 B7 00 00 90 00 2B [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]SAM_PROTO_ClearQueue done [23:58:52]KKMCreateOFDPacket [23:58:52]OFDProtocolAddRootSTLVToBuf [23:58:52]FM_MakeSignedData [23:58:52]FM_MakeSignedData [23:58:52]SAM_PROTO_SignData [23:58:52]wFMCommunicate request_size=4 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 0D 01 02 [23:58:52]Write to MH i2c: E2 08 00 B8 00 80 0D 01 02 00 00 00 00 31 [23:58:52]Write i2c OK [23:58:52]MH_I2C_Read... [23:58:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:58:52]Read from MH i2c: E2 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 [23:58:52]MH_I2C_Read... [23:58:52]Read from MH i2c: E2 03 00 B8 00 00 90 00 2C [23:58:52]RAPDU: 90 00 [23:58:52]wFMCommunicate OK [23:58:52]wFMCommunicate request_size=255 [23:58:52]MH_SAM_APDU [23:58:52]CAPDU: 80 0D 02 02 FA 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 31 25 20 67 0E 04 04 00 2A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 81 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 60 BA 0B 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 [23:58:52]Write to MH i2c: E2 02 01 B9 00 80 0D 02 02 FA 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 31 25 20 67 0E 04 04 00 2A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 81 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 60 BA 0B EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 00 00 75 [23:58:53]Write i2c OK [23:58:53]MH_I2C_Read... [23:58:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:53]Read from MH i2c: E2 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: E2 03 00 [23:58:53]MH_I2C_Read... [23:58:53]Read from MH i2c: E2 03 00 B9 00 00 90 00 2D [23:58:53]RAPDU: 90 00 [23:58:53]wFMCommunicate OK [23:58:53]wFMCommunicate request_size=255 [23:58:53]MH_SAM_APDU [23:58:53]CAPDU: 80 0D 02 02 FA 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA 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 [23:58:53]Write to MH i2c: E2 02 01 BA 00 80 0D 02 02 FA 00 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA 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 00 00 C1 [23:58:54]Write i2c OK [23:58:54]MH_I2C_Read... [23:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:54]Read from MH i2c: E2 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: E2 03 00 [23:58:54]MH_I2C_Read... [23:58:54]Read from MH i2c: E2 03 00 BA 00 00 90 00 2E [23:58:54]RAPDU: 90 00 [23:58:54]wFMCommunicate OK [23:58:54]wFMCommunicate request_size=255 [23:58:54]MH_SAM_APDU [23:58:54]CAPDU: 80 0D 02 02 FA 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 [23:58:54]Write to MH i2c: E2 02 01 BB 00 80 0D 02 02 FA 00 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 00 00 04 [23:58:55]Write i2c OK [23:58:55]MH_I2C_Read... [23:58:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:55]Read from MH i2c: E2 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 03 00 [23:58:55]MH_I2C_Read... [23:58:55]Read from MH i2c: E2 03 00 BB 00 00 90 00 2F [23:58:55]RAPDU: 90 00 [23:58:55]wFMCommunicate OK [23:58:55]wFMCommunicate request_size=255 [23:58:55]MH_SAM_APDU [23:58:55]CAPDU: 80 0D 02 02 FA 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 [23:58:55]Write to MH i2c: E2 02 01 BC 00 80 0D 02 02 FA 00 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 00 00 F9 [23:58:56]Write i2c OK [23:58:56]MH_I2C_Read... [23:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:56]Read from MH i2c: E2 [23:58:56]MH_I2C_Read... [23:58:56]Read from MH i2c: E2 03 00 [23:58:56]MH_I2C_Read... [23:58:56]Read from MH i2c: E2 03 00 BC 00 00 90 00 30 [23:58:56]RAPDU: 90 00 [23:58:56]wFMCommunicate OK [23:58:56]wFMCommunicate request_size=255 [23:58:56]MH_SAM_APDU [23:58:56]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 OFD Sender: No OFD packet to send [23:58:56]03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 [23:58:56]Write to MH i2c: E2 02 01 BD 00 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 CA [23:58:57]Write i2c OK [23:58:57]MH_I2C_Read... [23:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:57]Read from MH i2c: E2 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: E2 03 00 [23:58:57]MH_I2C_Read... [23:58:57]Read from MH i2c: E2 03 00 BD 00 00 90 00 31 [23:58:57]RAPDU: 90 00 [23:58:57]wFMCommunicate OK [23:58:57]wFMCommunicate request_size=138 [23:58:57]MH_SAM_APDU [23:58:57]CAPDU: 80 0D 02 02 85 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 39 58 B5 BF CE 08 [23:58:57]Write to MH i2c: E2 8D 00 BE 00 80 0D 02 02 85 00 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C2 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 39 58 B5 BF CE 08 00 00 2C [23:58:58]Write i2c OK [23:58:58]MH_I2C_Read... [23:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:58:58]Read from MH i2c: E2 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 03 00 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 03 00 BE 00 00 90 00 32 [23:58:58]RAPDU: 90 00 [23:58:58]wFMCommunicate OK [23:58:58]wFMCommunicate request_size=4 [23:58:58]MH_SAM_APDU [23:58:58]CAPDU: 80 0D 03 02 [23:58:58]Write to MH i2c: E2 08 00 BF 00 80 0D 03 02 00 00 00 00 3A [23:58:58]Write i2c OK [23:58:58]MH_I2C_Read... [23:58:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:58:58]Read from MH i2c: E2 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 0B 00 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 0B 00 BF 00 00 A6 25 94 51 75 A4 8C C0 90 00 50 [23:58:58]RAPDU: A6 25 94 51 75 A4 8C C0 90 00 [23:58:58]wFMCommunicate OK [23:58:58]SAM_PROTO_SignData done [23:58:58]FM_MakeSignedData done [23:58:58]CreateOFDProtocolMessage [23:58:58]wFMCommunicate request_size=4 [23:58:58]MH_SAM_APDU [23:58:58]CAPDU: 80 11 00 00 [23:58:58]Write to MH i2c: E2 08 00 C0 00 80 11 00 00 00 00 00 00 3A [23:58:58]Write i2c OK [23:58:58]MH_I2C_Read... [23:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:58]Read from MH i2c: E2 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 17 00 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: E2 17 00 C0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8E [23:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [23:58:58]wFMCommunicate OK [23:58:58]CreateOFDProtocolMessage done [23:58:58]OFDSenderStorePacket 72642 [23:58:58]StoreOFDPacket docnum=72642 [23:58:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 77 05 00 00 E9 03 6F 05 57 F9 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 31 25 20 67 0E 04 04 00 2A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 81 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 60 BA 0B 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 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA 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 C2 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 39 58 B5 BF CE 08 A6 25 94 51 75 A4 8C C0 [23:58:58]CheckFolder [23:58:58]dirname=/storage/ofd_packets [23:58:58]CheckFolder done [23:58:58]ProducePacketName [23:58:58]name=ofd_packets/00072642 [23:58:58]NVStorageSaveData ofd_packets/00072642 [23:58:58]File name is /storage/ofd_packets/00072642 [23:58:58]Write 1429 bytes [23:58:58]NVStorageSaveData done [23:58:58]OFDSenderStorePacket done [23:58:58]KKMCreateOFDPacket done [23:58:58]NVStorageSaveData kkm_last_timestamp [23:58:58]File name is /storage/kkm_last_timestamp [23:58:58]Write 4 bytes [23:58:58]NVStorageSaveData done [23:58:58]ExternCall_PrintAddStr [23:58:58]wPrintStart [23:58:58]Write to MH i2c: 01 00 00 C1 00 C1 [23:58:58]Write i2c OK [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 07 00 [23:58:58]MH_I2C_Read... [23:58:58]Read from MH i2c: 01 07 00 C1 00 00 00 00 00 00 FF 0F D6 [23:58:58]RasterBufferAndPrint [23:58:58]line Отчет о закрытии смены [23:58:58]line ФФД: 1.0 [23:58:58]line ИНН: 02508201610067 [23:58:58]line Кассир: Эргешова З. [23:58:58]line 28.10.2024 23:58 [23:58:58]line Смена: 554 [23:58:58]line РНМ: 0000000000091644 [23:58:58]line ЗНМ: 0300000087 [23:58:58]line СНО: Общий режим [23:58:58]line Чеков за смену: 169 [23:58:58]line ФД за смену: 171 [23:58:58]line Всего чеков: 169 [23:58:58]line ИТОГИ ПРИХОД [23:58:58]line Чеков: 169 [23:58:58]line Общий итог: 72364.52 [23:58:58]line Итого наличными: 36007.00 [23:58:58]line Итого безнал.: 36357.52 [23:58:58]line НДС 0% : 0.00 [23:58:59]line НДС 12% : 7686.08 [23:58:59]line НСП 0% : 0.00 [23:58:59]line НСП 1,50% : 0.00 [23:58:59]line НСП 0,50% : 0.00 [23:58:59]line НСП 5% : 0.00 [23:58:59]line НСП 3% : 0.00 [23:58:59]line НСП 2% : 0.00 [23:58:59]line НСП 1% : 640.49 [23:58:59]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:58:59]line Чеков: 0 [23:58:59]line Общий итог: 0.00 [23:58:59]line Итого наличными: 0.00 [23:58:59]line Итого безнал.: 0.00 [23:58:59]line НДС 0% : 0.00 [23:58:59]line НДС 12% : 0.00 [23:58:59]line НСП 0% : 0.00 [23:58:59]line НСП 1,50% : 0.00 [23:58:59]line НСП 0,50% : 0.00 [23:58:59]line НСП 5% : 0.00 [23:58:59]line НСП 3% : 0.00 [23:58:59]line НСП 2% : 0.00 [23:58:59]line НСП 1% : 0.00 [23:58:59]line ИТОГИ РАСХОД [23:58:59]line Чеков: 0 [23:58:59]line Общий итог: 0.00 [23:58:59]line Итого наличными: 0.00 [23:58:59]line Итого безнал.: 0.00 [23:58:59]line НДС 0% : 0.00 [23:58:59]line НДС 12% : 0.00 [23:58:59]line НСП 0% : 0.00 [23:58:59]line НСП 1,50% : 0.00 [23:58:59]line НСП 0,50% : 0.00 [23:58:59]line НСП 5% : 0.00 [23:58:59]line НСП 3% : 0.00 [23:58:59]line НСП 2% : 0.00 [23:58:59]line НСП 1% : 0.00 [23:58:59]line ИТОГИ ВОЗВРАТ РАСХОДА [23:58:59]line Чеков: 0 [23:58:59]line Общий итог: 0.00 [23:58:59]line Итого наличными: 0.00 [23:58:59]line Итого безнал.: 0.00 [23:58:59]line НДС 0% : 0.00 [23:58:59]line НДС 12% : 0.00 [23:58:59]line НСП 0% : 0.00 [23:58:59]line НСП 1,50% : 0.00 [23:58:59]line НСП 0,50% : 0.00 [23:58:59]line НСП 5% : 0.00 [23:58:59]line НСП 3% : 0.00 [23:58:59]line НСП 2% : 0.00 [23:58:59]line НСП 1% : 0.00 [23:58:59]line Сумма внесений: 0.00 [23:58:59]line Сумма выплат: 0.00 [23:58:59]line Нал. в кассе: 36007.00 [23:58:59]line НС Приход: 70299491.74 [23:58:59]line НС Возвр.Прихода: 836307.00 [23:58:59]line НС Расход: 0.00 [23:58:59]line НС Возвр.Расхода: 0.00 [23:58:59]line ФД: 72642 [23:58:59]line ФМ: 0000000000874662 [23:58:59]line ФПД: 63053169151496 [23:58:59]OFD Sender: Processing packet 72642 [packets to send 277, broken 276] [23:58:59]ProducePacketName [23:58:59]name=ofd_packets/00072642 [23:58:59]OFD Sender: To server: pG, [23:58:59]CommunicateWithHost lk.salyk.kg:30040 [23:58:59]ConnectInit lk.salyk.kg [23:58:59]written 0, free lines is 4095 [23:58:59]Write to MH i2c: 01 00 00 11 01 12 [23:59:00]Write i2c OK [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: 01 [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: 01 07 00 [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: 01 07 00 11 01 00 00 00 00 00 8E 0A B1 [23:59:00]RasterBufferAndPrint [23:59:00]line [23:59:00]line [23:59:00]line [23:59:00]line [23:59:00]line [23:59:00]written 0, free lines is 2777 [23:59:00]MH_Cut [23:59:00]Write to MH i2c: D1 01 00 18 01 01 EB [23:59:00]Write i2c OK [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: D1 [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: D1 01 00 [23:59:00]MH_I2C_Read... [23:59:00]Read from MH i2c: D1 01 00 18 01 00 EA [23:59:00]Write to MH i2c: 01 00 00 19 01 1A [23:59:00]Write i2c OK [23:59:00]MH_I2C_Read... [23:59:01]*** Cut start [23:59:01]*** Partial cut [23:59:01]*** CUTSNS_PIN = 1 [23:59:01]*** CUTSNS_PIN = 0 [23:59:01]*** Brake cut motor [23:59:01]Read from MH i2c: 01 [23:59:01]MH_I2C_Read... [23:59:01]*** Stop cut motor [23:59:01]*** Cut end [23:59:01]Read from MH i2c: 01 07 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: 01 07 00 19 01 00 00 00 00 00 FF 0F 2F [23:59:01]process_action close_shift done [23:59:01]requested_data is exist [23:59:01]produce_requested_data [23:59:01]requested_item fd.num is exist - process it [23:59:01]SAM_PROTO_GetFieldsCounters [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 00 00 [23:59:01]Write to MH i2c: E2 08 00 1A 01 80 13 00 00 00 00 00 00 97 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 1A 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 BE [23:59: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:02]wFMCommunicate OK [23:59:02]SAM_PROTO_GetFieldsCounters done [23:59:02]requested_item shift.num is exist - process it [23:59:02]requested_item shift.opened is exist - process it [23:59:02]req_shift_opened [23:59:02]FM_GetShiftState [23:59:02]SAM_PROTO_GetShiftState [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 13 01 00 [23:59:02]Write to MH i2c: E2 08 00 1B 01 80 13 01 00 00 00 00 00 99 [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 0E 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 0E 00 1B 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A4 [23:59:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:59:02]wFMCommunicate OK [23:59:02]SAM_PROTO_GetShiftState done [23:59:02]FM_GetShiftState done [23:59:02]req_shift_opened done [23:59:02]requested_item shift.open_date is exist - process it [23:59:02]req_shift_open_date [23:59:02]FM_GetShiftState [23:59:02]SAM_PROTO_GetShiftState [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 13 01 00 [23:59:02]Write to MH i2c: E2 08 00 1C 01 80 13 01 00 00 00 00 00 9A [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 0E 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 0E 00 1C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A5 [23:59:02]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:59:02]wFMCommunicate OK [23:59:02]SAM_PROTO_GetShiftState done [23:59:02]FM_GetShiftState done [23:59:02]req_shift_open_date done [23:59:02]produce_requested_data done [23:59:02]produce_requested_data return {"fd.num":72642,"shift.num":554,"shift.opened":0,"shift.open_date":0} [23:59:02]process_action_free close_shift [23:59:02]json_value_free [23:59:02]json_value_free done [23:59:02]process_json_proto returns [23:59:02]Send response to host [23:59:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72642,"shift.num":554,"shift.opened":0,"shift.open_date":0}}} [23:59:02]free response buf [23:59:02]execute_script done [23:59:02]execute_script returns [23:59:02]free content buf [23:59:02]Sock 10.Close socket [23:59:02]Sock 10.Thread stoped [23:59:05]recv_with_timeout no data received [23:59:13]Connected sock=11 [23:59:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 77 05 00 00 E9 03 6F 05 57 F9 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 31 25 20 67 0E 04 04 00 2A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 81 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 60 BA 0B 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 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA 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 C2 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 39 58 B5 BF CE 08 A6 25 94 51 75 A4 8C C0 [23:59:18]recv_with_timeout no data received [23:59:20]recv_with_timeout no data received [23:59:20]CommunicateWithHost answer receiving error [23:59:20]CommunicateWithHost err = -3 [23:59:20]OFD Sender: Server communicate error [23:59:25]OFD Sender: Processing packet 72642 [packets to send 277, broken 276] [23:59:25]ProducePacketName [23:59:25]name=ofd_packets/00072642 [23:59:25]OFD Sender: To server: pG, [23:59:25]CommunicateWithHost lk.salyk.kg:30040 [23:59:25]ConnectInit lk.salyk.kg [23:59:35]Connected sock=10 [23:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 77 05 00 00 E9 03 6F 05 57 F9 5A 05 01 00 05 00 63 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 97 2E 20 F4 03 04 00 31 25 20 67 0E 04 04 00 2A 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 AA 04 D5 04 6E 04 04 00 A9 00 00 00 69 04 A2 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 81 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 60 BA 0B 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 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA 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 C2 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 39 58 B5 BF CE 08 A6 25 94 51 75 A4 8C C0 [23:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 6B 5D 47 00 7B 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 34 36 36 32 10 04 04 00 C2 1B 01 00 F4 03 04 00 24 D0 1F 67 B6 04 01 00 00 84 D7 2F 3B 15 84 71 32 [23:59:37]CommunicateWithHost err = 0 [23:59:37]CheckOFDResponse [23:59:37]1017 (14) - 77093643461234 [23:59:37]1041 (16) - 0000000000874662 [23:59:37]1040 (4) - 72642 [23:59:37]1012 (4) - 28.10.2024 17:55 [23:59:37]1206 (1) - 0 [23:59:37]OFD Sender: Remove packet 72642 [23:59:37]ProducePacketName [23:59:37]name=ofd_packets/00072642 [23:59:37]NVStorageDeleteData [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:46]recv_with_timeout no data received [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:08]OFD Sender: No OFD packet to send [00:00:10]recv_with_timeout no data received [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:22]recv_with_timeout no data received [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:36]recv_with_timeout no data received [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:50]recv_with_timeout no data received [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:06]recv_with_timeout no data received [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:17]recv_with_timeout no data received [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:34]recv_with_timeout no data received [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:44]recv_with_timeout no data received [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:35]recv_with_timeout no data received [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:57]recv_with_timeout no data received [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:12]recv_with_timeout no data received [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:22]recv_with_timeout no data received [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:34]recv_with_timeout no data received [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:04]recv_with_timeout no data received [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:45]recv_with_timeout no data received [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]recv_with_timeout no data received [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:55]recv_with_timeout no data received [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]accept exits with 7 [00:06:23]New connection [00:06:23]New thread 3067338084 created [00:06:23]Thread 3067194724 joined [00:06:23]Waiting for new connection... [00:06:23] Sock 7.Parse request [00:06:23]Sock 7.Check first char [00:06:23]Sock 7.First char is OK [00:06:23]request: POST /json_proto HTTP/1.0 [00:06:23]Method: POST [00:06:23]URL: /json_proto [00:06:23]Method is POST - this is cgi request [00:06:23]url: /json_proto [00:06:23]query_string will be loaded in cgi processing [00:06:23]execute_cgi json_proto POST (null) [00:06:23]execute_cgi path=json_proto method=POST [00:06:23]POST find Content-Length [00:06:23]Host: 172.17.43.195:8080 [00:06:23]Content-Length: 215 [00:06:23]Content-Type: application/json [00:06:23] [00:06:23]POST finish read [00:06:23]Found Content-Length = 215 [00:06:23]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:06:23]execute_script... [00:06:23]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:06:23]POST & json_proto [00:06:23]process_json_proto [00:06:23]json parsed OK: [00:06:23]protocol is kg_v1.0 [00:06:23]action value=get_value [00:06:23]process_action get_value [00:06:23]cmd_get_value [00:06:23]process_action get_value done [00:06:23]requested_data is exist [00:06:23]produce_requested_data [00:06:23]requested_item kkm.sn is exist - process it [00:06:23]requested_item kkm.ver is exist - process it [00:06:23]requested_item fm.sn is exist - process it [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 11 00 00 [00:06:23]Write to MH i2c: E2 08 00 1D 01 80 11 00 00 00 00 00 00 98 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 17 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 17 00 1D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 EC [00:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:06:23]wFMCommunicate OK [00:06:23]requested_item fd.num is exist - process it [00:06:23]SAM_PROTO_GetFieldsCounters [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 13 00 00 [00:06:23]Write to MH i2c: E2 08 00 1E 01 80 13 00 00 00 00 00 00 9B [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 62 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 62 00 1E 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [00:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C2 1B 01 00 0E 04 04 00 2A 02 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetFieldsCounters done [00:06:23]requested_item shift.num is exist - process it [00:06:23]requested_item shift.opened is exist - process it [00:06:23]req_shift_opened [00:06:23]FM_GetShiftState [00:06:23]SAM_PROTO_GetShiftState [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 13 01 00 [00:06:23]Write to MH i2c: E2 08 00 1F 01 80 13 01 00 00 00 00 00 9D [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 0E 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 0E 00 1F 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A8 [00:06:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetShiftState done [00:06:23]FM_GetShiftState done [00:06:23]req_shift_opened done [00:06:23]requested_item shift.open_date is exist - process it [00:06:23]req_shift_open_date [00:06:23]FM_GetShiftState [00:06:23]SAM_PROTO_GetShiftState [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 13 01 00 [00:06:23]Write to MH i2c: E2 08 00 20 01 80 13 01 00 00 00 00 00 9E [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:23]Read from MH i2c: E2 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 0E 00 [00:06:23]MH_I2C_Read... [00:06:23]Read from MH i2c: E2 0E 00 20 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 A9 [00:06:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:23]wFMCommunicate OK [00:06:23]SAM_PROTO_GetShiftState done [00:06:23]FM_GetShiftState done [00:06:23]req_shift_open_date done [00:06:23]produce_requested_data done [00:06:23]produce_requested_data return {"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72642,"shift.num":554,"shift.opened":0,"shift.open_date":0} [00:06:23]process_action_free get_value [00:06:23]json_value_free [00:06:23]json_value_free done [00:06:23]process_json_proto returns [00:06:23]Send response to host [00:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000087","kkm.ver":"001","fm.sn":"0000000000874662","fd.num":72642,"shift.num":554,"shift.opened":0,"shift.open_date":0}}} [00:06:23]free response buf [00:06:23]execute_script done [00:06:23]execute_script returns [00:06:23]free content buf [00:06:23]Sock 7.Close socket [00:06:23]Sock 7.Thread stoped [00:06:23]accept exits with 10 [00:06:23]New connection [00:06:23]New thread 3067194724 created [00:06:23]Thread 3067338084 joined [00:06:23]Waiting for new connection... [00:06:23] Sock 10.Parse request [00:06:23]Sock 10.Check first char [00:06:23]Sock 10.First char is OK [00:06:23]request: POST /json_proto HTTP/1.0 [00:06:23]Method: POST [00:06:23]URL: /json_proto [00:06:23]Method is POST - this is cgi request [00:06:23]url: /json_proto [00:06:23]query_string will be loaded in cgi processing [00:06:23]execute_cgi json_proto POST (null) [00:06:23]execute_cgi path=json_proto method=POST [00:06:23]POST find Content-Length [00:06:23]Host: 172.17.43.195:8080 [00:06:23]Content-Length: 331 [00:06:23]Content-Type: application/json [00:06:23] [00:06:23]POST finish read [00:06:23]Found Content-Length = 331 [00:06:23]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:06:23]execute_script... [00:06:23]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:06:23]POST & json_proto [00:06:23]process_json_proto [00:06:23]json parsed OK: [00:06:23]protocol is kg_v1.0 [00:06:23]action value=get_value [00:06:23]process_action get_value [00:06:23]cmd_get_value [00:06:23]process_action get_value done [00:06:23]requested_data is exist [00:06:23]produce_requested_data [00:06:23]requested_item fm.sale.total is exist - process it [00:06:23]SAM_PROTO_GetFMData [00:06:23]wFMCommunicate request_size=4 [00:06:23]MH_SAM_APDU [00:06:23]CAPDU: 80 13 03 00 [00:06:23]Write to MH i2c: E2 08 00 21 01 80 13 03 00 00 00 00 00 A1 [00:06:23]Write i2c OK [00:06:23]MH_I2C_Read... [00:06:23]OFD Sender: No OFD packet to send [00:06:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 21 01 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 F2 [00:06:24]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 22 01 80 17 00 00 00 00 00 00 A3 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 22 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 D9 [00:06:24]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 23 01 80 17 00 00 00 00 00 00 A4 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 23 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 B9 [00:06:24]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 24 01 80 17 00 00 00 00 00 00 A5 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:24]Read from MH i2c: E2 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 [00:06:24]MH_I2C_Read... [00:06:24]Read from MH i2c: E2 FD 00 24 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 1D [00:06:24]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:24]wFMCommunicate OK [00:06:24]wFMCommunicate request_size=4 [00:06:24]MH_SAM_APDU [00:06:24]CAPDU: 80 17 00 00 [00:06:24]Write to MH i2c: E2 08 00 25 01 80 17 00 00 00 00 00 00 A6 [00:06:24]Write i2c OK [00:06:24]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 E1 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 E1 00 25 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [00:06:25]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:25]wFMCommunicate OK [00:06:25]SAM_PROTO_GetFMData done [00:06:25]requested_item fm.sale_refund.total is exist - process it [00:06:25]requested_item fm.buy.total is exist - process it [00:06:25]requested_item shift.sale.total is exist - process it [00:06:25]SAM_PROTO_GetShiftData [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 13 02 00 [00:06:25]Write to MH i2c: E2 08 00 26 01 80 13 02 00 00 00 00 00 A5 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 26 01 00 AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [00:06:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 A9 00 00 00 69 04 9B 00 6F 04 04 00 A9 00 00 00 B1 04 03 00 64 6B 6E 70 04 03 00 3C F1 36 72 04 03 00 28 7A 37 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 60 BA 0B EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 31 FA EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 27 01 80 17 00 00 00 00 00 00 A8 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:25]Read from MH i2c: E2 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 [00:06:25]MH_I2C_Read... [00:06:25]Read from MH i2c: E2 FD 00 27 01 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CA [00:06:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:25]wFMCommunicate OK [00:06:25]wFMCommunicate request_size=4 [00:06:25]MH_SAM_APDU [00:06:25]CAPDU: 80 17 00 00 [00:06:25]Write to MH i2c: E2 08 00 28 01 80 17 00 00 00 00 00 00 A9 [00:06:25]Write i2c OK [00:06:25]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 28 01 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 60 [00:06:26]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 29 01 80 17 00 00 00 00 00 00 AA [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 FD 00 29 01 00 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 90 00 1C [00:06:26]RAPDU: 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 90 00 [00:06:26]wFMCommunicate OK [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 17 00 00 [00:06:26]Write to MH i2c: E2 08 00 2A 01 80 17 00 00 00 00 00 00 AB [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 CB 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 CB 00 2A 01 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [00:06:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_GetShiftData done [00:06:26]requested_item shift.sale.total_cash is exist - process it [00:06:26]requested_item shift.sale_refund.total is exist - process it [00:06:26]requested_item shift.sale_refund.total_cash is exist - process it [00:06:26]requested_item shift.buy.total is exist - process it [00:06:26]requested_item shift.buy.total_cash is exist - process it [00:06:26]produce_requested_data done [00:06:26]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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:06:26]process_action_free get_value [00:06:26]json_value_free [00:06:26]json_value_free done [00:06:26]process_json_proto returns [00:06:26]Send response to host [00:06:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.00,"fm.buy.total":0.00,"shift.sale.total":72364.52,"shift.sale.total_cash":36007.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:06:26]free response buf [00:06:26]execute_script done [00:06:26]execute_script returns [00:06:26]free content buf [00:06:26]Sock 10.Close socket [00:06:26]Sock 10.Thread stoped [00:06:26]accept exits with 7 [00:06:26]New connection [00:06:26]New thread 3067338084 created [00:06:26]Thread 3067194724 joined [00:06:26]Waiting for new connection... [00:06:26] Sock 7.Parse request [00:06:26]Sock 7.Check first char [00:06:26]Sock 7.First char is OK [00:06:26]request: POST /json_proto HTTP/1.0 [00:06:26]Method: POST [00:06:26]URL: /json_proto [00:06:26]Method is POST - this is cgi request [00:06:26]url: /json_proto [00:06:26]query_string will be loaded in cgi processing [00:06:26]execute_cgi json_proto POST (null) [00:06:26]execute_cgi path=json_proto method=POST [00:06:26]POST find Content-Length [00:06:26]Host: 172.17.43.195:8080 [00:06:26]Content-Length: 283 [00:06:26]Content-Type: application/json [00:06:26] [00:06:26]POST finish read [00:06:26]Found Content-Length = 283 [00:06:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]execute_script... [00:06:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0443\u0442\u043C\u0430\u043D\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:26]POST & json_proto [00:06:26]process_json_proto [00:06:26]json parsed OK: [00:06:26]protocol is kg_v1.0 [00:06:26]action value=open_shift [00:06:26]process_action open_shift [00:06:26]cmd_open_shift [00:06:26]MH_GetDate [00:06:26]Write to MH i2c: F0 00 00 2B 01 1B [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 2B 01 00 03 27 20 67 74 2C AD 66 88 [00:06:26]GetLastDocTimeStamp 1730159921 [00:06:26]current date 1730160387 [00:06:26]FM_GetShiftState [00:06:26]SAM_PROTO_GetShiftState [00:06:26]wFMCommunicate request_size=4 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 13 01 00 [00:06:26]Write to MH i2c: E2 08 00 2C 01 80 13 01 00 00 00 00 00 AA [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:26]Read from MH i2c: E2 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0E 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: E2 0E 00 2C 01 00 09 00 00 00 00 00 00 00 00 00 00 90 00 B5 [00:06:26]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:06:26]wFMCommunicate OK [00:06:26]SAM_PROTO_GetShiftState done [00:06:26]FM_GetShiftState done [00:06:26]KKMCreateOpenShiftDocument [00:06:26]Load OK [00:06:26]Malloc new data [00:06:26]MH_GetDate [00:06:26]Write to MH i2c: F0 00 00 2D 01 1D [00:06:26]Write i2c OK [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 [00:06:26]MH_I2C_Read... [00:06:26]Read from MH i2c: F0 09 00 2D 01 00 03 27 20 67 74 2C AD 66 8A [00:06:26]Malloc new data [00:06:26]KKMCreateOpenShiftDocument OK [00:06:26]KKMSetOpenShiftData OK [00:06:26]ProcessDocumentItem done err = 0, tmpTLVsize=211 [00:06:26]tlvbuf is 00C1A110 [00:06:26]KKMLoadAndSignOpenShiftData [00:06:26]SAM_PROTO_ProcessDocument [00:06:26]wFMCommunicate request_size=9 [00:06:26]MH_SAM_APDU [00:06:26]CAPDU: 80 15 01 00 04 02 00 D3 00 [00:06:26]Write to MH i2c: E2 0C 00 2E 01 80 15 01 00 04 00 02 00 D3 00 00 00 8B [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 2E 01 00 90 00 A3 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=23 [00:06:27]MH_SAM_APDU [00:06:27]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:06:27]Write to MH i2c: E2 1A 00 2F 01 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 A5 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 2F 01 00 90 00 A4 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=38 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 21 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 [00:06:27]Write to MH i2c: E2 29 00 30 01 80 15 02 00 21 00 FD 03 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 00 00 AF [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 30 01 00 90 00 A5 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=91 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 56 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 [00:06:27]Write to MH i2c: E2 5E 00 31 01 80 15 02 00 56 00 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 00 00 B9 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 31 01 00 90 00 A6 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=51 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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:06:27]Write to MH i2c: E2 36 00 32 01 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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 5A [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 32 01 00 90 00 A7 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=13 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 08 F4 03 04 00 03 27 20 67 [00:06:27]Write to MH i2c: E2 10 00 33 01 80 15 02 00 08 00 F4 03 04 00 03 27 20 67 00 00 70 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 33 01 00 90 00 A8 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=25 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 [00:06:27]Write to MH i2c: E2 1C 00 34 01 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 00 00 16 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 03 00 34 01 00 90 00 A9 [00:06:27]RAPDU: 90 00 [00:06:27]wFMCommunicate OK [00:06:27]wFMCommunicate request_size=4 [00:06:27]MH_SAM_APDU [00:06:27]CAPDU: 80 15 03 00 [00:06:27]Write to MH i2c: E2 08 00 35 01 80 15 03 00 00 00 00 00 B7 [00:06:27]Write i2c OK [00:06:27]MH_I2C_Read... [00:06:27]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:06:27]Read from MH i2c: E2 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 38 00 [00:06:27]MH_I2C_Read... [00:06:27]Read from MH i2c: E2 38 00 35 01 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1B 01 00 0E 04 04 00 2B 02 00 00 35 04 06 00 42 A0 39 AC 64 7A 90 00 35 [00:06:27]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C3 1B 01 00 0E 04 04 00 2B 02 00 00 35 04 06 00 42 A0 39 AC 64 7A 90 00 [00:06:27]wFMCommunicate OK [00:06:27]SAM_PROTO_ProcessDocument answer len = 51 [00:06:27]SAM_PROTO_ProcessDocument done [00:06:27]SetTLVBufToDocument [00:06:27]Processing tag 1209 (04B9) [00:06:27]Malloc new data [00:06:27]Processing tag 1041 (0411) [00:06:27]Processing tag 1040 (0410) [00:06:27]Malloc new data [00:06:27]Processing tag 1038 (040E) [00:06:27]Malloc new data [00:06:27]Processing tag 1077 (0435) [00:06:27]Malloc new data [00:06:27]SetTLVBufToDocument err=0 [00:06:27]KKMLoadAndSignOpenShiftData store KKM data [00:06:27]KKMLoadAndSignOpenShiftData err=0 [00:06:27]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кутманалиева Н. Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 Место: АЗС № 113 "Партнер Нефть" 29.10.2024 00:06 Смена: 555 РНМ: 0000000000091644 ЗНМ: 0300000087 ФД: 72643 ФМ: 0000000000874662 ФПД: 73255929799802 [00:06:27]StoreToDocumentArchive [00:06:27]shift 555 fd 72643 [00:06:27]Create dir for shift 0555 [00:06:27]save to /storage/0555/doc_00072643 [00:06:27]save last doc name /storage/0555/doc_00072643 to /storage/kkm_last_doc_name [00:06:27]save OK [00:06:27]Clear old archive folders... [00:06:27]Remove dir /storage/0554 [00:06:27]opendir ok [00:06:27]file . [00:06:27]file .. [00:06:27]file doc_00072472 [00:06:27]remove file /storage/0554/doc_00072472 [00:06:27]file doc_00072473 [00:06:27]remove file /storage/0554/doc_00072473 [00:06:27]file doc_00072474 [00:06:27]remove file /storage/0554/doc_00072474 [00:06:27]file doc_00072475 [00:06:27]remove file /storage/0554/doc_00072475 [00:06:27]file doc_00072476 [00:06:27]remove file /storage/0554/doc_00072476 [00:06:27]file doc_00072477 [00:06:27]remove file /storage/0554/doc_00072477 [00:06:27]file doc_00072478 [00:06:27]remove file /storage/0554/doc_00072478 [00:06:27]file doc_00072479 [00:06:27]remove file /storage/0554/doc_00072479 [00:06:27]file doc_00072480 [00:06:27]remove file /storage/0554/doc_00072480 [00:06:27]file doc_00072481 [00:06:27]remove file /storage/0554/doc_00072481 [00:06:27]file doc_00072482 [00:06:27]remove file /storage/0554/doc_00072482 [00:06:27]file doc_00072483 [00:06:27]remove file /storage/0554/doc_00072483 [00:06:27]file doc_00072484 [00:06:27]remove file /storage/0554/doc_00072484 [00:06:27]file doc_00072485 [00:06:27]remove file /storage/0554/doc_00072485 [00:06:27]file doc_00072486 [00:06:27]remove file /storage/0554/doc_00072486 [00:06:27]file doc_00072487 [00:06:27]remove file /storage/0554/doc_00072487 [00:06:27]file doc_00072488 [00:06:27]remove file /storage/0554/doc_00072488 [00:06:27]file doc_00072489 [00:06:27]remove file /storage/0554/doc_00072489 [00:06:27]file doc_00072490 [00:06:27]remove file /storage/0554/doc_00072490 [00:06:27]file doc_00072491 [00:06:27]remove file /storage/0554/doc_00072491 [00:06:27]file doc_00072492 [00:06:27]remove file /storage/0554/doc_00072492 [00:06:27]file doc_00072493 [00:06:27]remove file /storage/0554/doc_00072493 [00:06:27]file doc_00072494 [00:06:28]remove file /storage/0554/doc_00072494 [00:06:28]file doc_00072495 [00:06:28]remove file /storage/0554/doc_00072495 [00:06:28]file doc_00072496 [00:06:28]remove file /storage/0554/doc_00072496 [00:06:28]file doc_00072497 [00:06:28]remove file /storage/0554/doc_00072497 [00:06:28]file doc_00072498 [00:06:28]remove file /storage/0554/doc_00072498 [00:06:28]file doc_00072499 [00:06:28]remove file /storage/0554/doc_00072499 [00:06:28]file doc_00072500 [00:06:28]remove file /storage/0554/doc_00072500 [00:06:28]file doc_00072501 [00:06:28]remove file /storage/0554/doc_00072501 [00:06:28]file doc_00072502 [00:06:28]remove file /storage/0554/doc_00072502 [00:06:28]file doc_00072503 [00:06:28]remove file /storage/0554/doc_00072503 [00:06:28]file doc_00072504 [00:06:28]remove file /storage/0554/doc_00072504 [00:06:28]file doc_00072505 [00:06:28]remove file /storage/0554/doc_00072505 [00:06:28]file doc_00072506 [00:06:28]remove file /storage/0554/doc_00072506 [00:06:28]file doc_00072507 [00:06:28]remove file /storage/0554/doc_00072507 [00:06:28]file doc_00072508 [00:06:28]remove file /storage/0554/doc_00072508 [00:06:28]file doc_00072509 [00:06:28]remove file /storage/0554/doc_00072509 [00:06:28]file doc_00072510 [00:06:28]remove file /storage/0554/doc_00072510 [00:06:28]file doc_00072511 [00:06:28]remove file /storage/0554/doc_00072511 [00:06:28]file doc_00072512 [00:06:28]remove file /storage/0554/doc_00072512 [00:06:28]file doc_00072513 [00:06:28]remove file /storage/0554/doc_00072513 [00:06:28]file doc_00072514 [00:06:28]remove file /storage/0554/doc_00072514 [00:06:28]file doc_00072515 [00:06:28]remove file /storage/0554/doc_00072515 [00:06:28]file doc_00072516 [00:06:28]remove file /storage/0554/doc_00072516 [00:06:28]file doc_00072517 [00:06:28]remove file /storage/0554/doc_00072517 [00:06:28]file doc_00072518 [00:06:28]remove file /storage/0554/doc_00072518 [00:06:28]file doc_00072519 [00:06:28]remove file /storage/0554/doc_00072519 [00:06:28]file doc_00072520 [00:06:28]remove file /storage/0554/doc_00072520 [00:06:28]file doc_00072521 [00:06:28]remove file /storage/0554/doc_00072521 [00:06:28]file doc_00072522 [00:06:28]remove file /storage/0554/doc_00072522 [00:06:28]file doc_00072523 [00:06:28]remove file /storage/0554/doc_00072523 [00:06:28]file doc_00072524 [00:06:28]remove file /storage/0554/doc_00072524 [00:06:28]file doc_00072525 [00:06:28]remove file /storage/0554/doc_00072525 [00:06:28]file doc_00072526 [00:06:28]remove file /storage/0554/doc_00072526 [00:06:28]file doc_00072527 [00:06:28]remove file /storage/0554/doc_00072527 [00:06:28]file doc_00072528 [00:06:28]remove file /storage/0554/doc_00072528 [00:06:28]file doc_00072529 [00:06:28]remove file /storage/0554/doc_00072529 [00:06:28]file doc_00072530 [00:06:28]remove file /storage/0554/doc_00072530 [00:06:28]file doc_00072531 [00:06:28]remove file /storage/0554/doc_00072531 [00:06:28]file doc_00072532 [00:06:28]remove file /storage/0554/doc_00072532 [00:06:28]file doc_00072533 [00:06:28]remove file /storage/0554/doc_00072533 [00:06:28]file doc_00072534 [00:06:28]remove file /storage/0554/doc_00072534 [00:06:28]file doc_00072535 [00:06:28]remove file /storage/0554/doc_00072535 [00:06:28]file doc_00072536 [00:06:28]remove file /storage/0554/doc_00072536 [00:06:28]file doc_00072537 [00:06:28]remove file /storage/0554/doc_00072537 [00:06:28]file doc_00072538 [00:06:28]remove file /storage/0554/doc_00072538 [00:06:28]file doc_00072539 [00:06:28]remove file /storage/0554/doc_00072539 [00:06:28]file doc_00072540 [00:06:28]remove file /storage/0554/doc_00072540 [00:06:28]file doc_00072541 [00:06:28]remove file /storage/0554/doc_00072541 [00:06:28]file doc_00072542 [00:06:28]remove file /storage/0554/doc_00072542 [00:06:28]file doc_00072543 [00:06:28]remove file /storage/0554/doc_00072543 [00:06:28]file doc_00072544 [00:06:28]remove file /storage/0554/doc_00072544 [00:06:28]file doc_00072545 [00:06:28]remove file /storage/0554/doc_00072545 [00:06:28]file doc_00072546 [00:06:28]remove file /storage/0554/doc_00072546 [00:06:28]file doc_00072547 [00:06:28]remove file /storage/0554/doc_00072547 [00:06:28]file doc_00072548 [00:06:28]remove file /storage/0554/doc_00072548 [00:06:28]file doc_00072549 [00:06:28]remove file /storage/0554/doc_00072549 [00:06:28]file doc_00072550 [00:06:28]remove file /storage/0554/doc_00072550 [00:06:28]file doc_00072551 [00:06:28]remove file /storage/0554/doc_00072551 [00:06:28]file doc_00072552 [00:06:28]remove file /storage/0554/doc_00072552 [00:06:28]file doc_00072553 [00:06:28]remove file /storage/0554/doc_00072553 [00:06:28]file doc_00072554 [00:06:28]remove file /storage/0554/doc_00072554 [00:06:28]file doc_00072555 [00:06:28]remove file /storage/0554/doc_00072555 [00:06:28]file doc_00072556 [00:06:28]remove file /storage/0554/doc_00072556 [00:06:28]file doc_00072557 [00:06:28]remove file /storage/0554/doc_00072557 [00:06:28]file doc_00072558 [00:06:28]remove file /storage/0554/doc_00072558 [00:06:28]file doc_00072559 [00:06:28]remove file /storage/0554/doc_00072559 [00:06:28]file doc_00072560 [00:06:28]remove file /storage/0554/doc_00072560 [00:06:28]file doc_00072561 [00:06:28]remove file /storage/0554/doc_00072561 [00:06:28]file doc_00072562 [00:06:28]remove file /storage/0554/doc_00072562 [00:06:28]file doc_00072563 [00:06:28]remove file /storage/0554/doc_00072563 [00:06:28]file doc_00072564 [00:06:28]remove file /storage/0554/doc_00072564 [00:06:28]file doc_00072565 [00:06:28]remove file /storage/0554/doc_00072565 [00:06:28]file doc_00072566 [00:06:28]remove file /storage/0554/doc_00072566 [00:06:28]file doc_00072567 [00:06:28]remove file /storage/0554/doc_00072567 [00:06:28]file doc_00072568 [00:06:28]remove file /storage/0554/doc_00072568 [00:06:28]file doc_00072569 [00:06:28]remove file /storage/0554/doc_00072569 [00:06:28]file doc_00072570 [00:06:28]remove file /storage/0554/doc_00072570 [00:06:28]file doc_00072571 [00:06:28]remove file /storage/0554/doc_00072571 [00:06:28]file doc_00072572 [00:06:28]remove file /storage/0554/doc_00072572 [00:06:28]file doc_00072573 [00:06:28]remove file /storage/0554/doc_00072573 [00:06:28]file doc_00072574 [00:06:28]remove file /storage/0554/doc_00072574 [00:06:28]file doc_00072575 [00:06:28]remove file /storage/0554/doc_00072575 [00:06:28]file doc_00072576 [00:06:28]remove file /storage/0554/doc_00072576 [00:06:28]file doc_00072577 [00:06:28]remove file /storage/0554/doc_00072577 [00:06:28]file doc_00072578 [00:06:28]remove file /storage/0554/doc_00072578 [00:06:28]file doc_00072579 [00:06:28]remove file /storage/0554/doc_00072579 [00:06:28]file doc_00072580 [00:06:28]remove file /storage/0554/doc_00072580 [00:06:28]file doc_00072581 [00:06:28]remove file /storage/0554/doc_00072581 [00:06:28]file doc_00072582 [00:06:28]remove file /storage/0554/doc_00072582 [00:06:28]file doc_00072583 [00:06:28]remove file /storage/0554/doc_00072583 [00:06:28]file doc_00072584 [00:06:28]remove file /storage/0554/doc_00072584 [00:06:28]file doc_00072585 [00:06:28]remove file /storage/0554/doc_00072585 [00:06:28]file doc_00072586 [00:06:28]remove file /storage/0554/doc_00072586 [00:06:28]file doc_00072587 [00:06:28]remove file /storage/0554/doc_00072587 [00:06:28]file doc_00072588 [00:06:28]remove file /storage/0554/doc_00072588 [00:06:28]file doc_00072589 [00:06:28]remove file /storage/0554/doc_00072589 [00:06:28]file doc_00072590 [00:06:28]remove file /storage/0554/doc_00072590 [00:06:28]file doc_00072591 [00:06:28]remove file /storage/0554/doc_00072591 [00:06:28]file doc_00072592 [00:06:28]remove file /storage/0554/doc_00072592 [00:06:28]file doc_00072593 [00:06:28]remove file /storage/0554/doc_00072593 [00:06:28]file doc_00072594 [00:06:28]remove file /storage/0554/doc_00072594 [00:06:28]file doc_00072595 [00:06:28]remove file /storage/0554/doc_00072595 [00:06:28]file doc_00072596 [00:06:28]remove file /storage/0554/doc_00072596 [00:06:28]file doc_00072597 [00:06:28]remove file /storage/0554/doc_00072597 [00:06:28]file doc_00072598 [00:06:28]remove file /storage/0554/doc_00072598 [00:06:28]file doc_00072599 [00:06:28]remove file /storage/0554/doc_00072599 [00:06:28]file doc_00072600 [00:06:28]remove file /storage/0554/doc_00072600 [00:06:28]file doc_00072601 [00:06:28]remove file /storage/0554/doc_00072601 [00:06:28]file doc_00072603 [00:06:28]remove file /storage/0554/doc_00072603 [00:06:28]file doc_00072604 [00:06:28]remove file /storage/0554/doc_00072604 [00:06:28]file doc_00072605 [00:06:28]remove file /storage/0554/doc_00072605 [00:06:28]file doc_00072606 [00:06:28]remove file /storage/0554/doc_00072606 [00:06:28]file doc_00072607 [00:06:28]remove file /storage/0554/doc_00072607 [00:06:28]file doc_00072608 [00:06:28]remove file /storage/0554/doc_00072608 [00:06:28]file doc_00072609 [00:06:28]remove file /storage/0554/doc_00072609 [00:06:28]file doc_00072610 [00:06:28]remove file /storage/0554/doc_00072610 [00:06:28]file doc_00072611 [00:06:28]remove file /storage/0554/doc_00072611 [00:06:28]file doc_00072612 [00:06:28]remove file /storage/0554/doc_00072612 [00:06:28]file doc_00072613 [00:06:28]remove file /storage/0554/doc_00072613 [00:06:28]file doc_00072614 [00:06:28]remove file /storage/0554/doc_00072614 [00:06:28]file doc_00072615 [00:06:28]remove file /storage/0554/doc_00072615 [00:06:28]file doc_00072616 [00:06:28]remove file /storage/0554/doc_00072616 [00:06:28]file doc_00072617 [00:06:28]remove file /storage/0554/doc_00072617 [00:06:28]file doc_00072618 [00:06:28]remove file /storage/0554/doc_00072618 [00:06:28]file doc_00072619 [00:06:28]remove file /storage/0554/doc_00072619 [00:06:28]file doc_00072620 [00:06:28]remove file /storage/0554/doc_00072620 [00:06:28]file doc_00072621 [00:06:28]remove file /storage/0554/doc_00072621 [00:06:28]file doc_00072622 [00:06:28]remove file /storage/0554/doc_00072622 [00:06:28]file doc_00072623 [00:06:28]remove file /storage/0554/doc_00072623 [00:06:28]file doc_00072624 [00:06:28]remove file /storage/0554/doc_00072624 [00:06:28]file doc_00072625 [00:06:28]remove file /storage/0554/doc_00072625 [00:06:28]file doc_00072626 [00:06:28]remove file /storage/0554/doc_00072626 [00:06:28]file doc_00072627 [00:06:28]remove file /storage/0554/doc_00072627 [00:06:28]file doc_00072628 [00:06:28]remove file /storage/0554/doc_00072628 [00:06:28]file doc_00072629 [00:06:28]remove file /storage/0554/doc_00072629 [00:06:28]file doc_00072630 [00:06:28]remove file /storage/0554/doc_00072630 [00:06:28]file doc_00072631 [00:06:28]remove file /storage/0554/doc_00072631 [00:06:28]file doc_00072632 [00:06:28]remove file /storage/0554/doc_00072632 [00:06:28]file doc_00072633 [00:06:28]remove file /storage/0554/doc_00072633 [00:06:28]OFD Sender: No OFD packet to send [00:06:28]file doc_00072634 [00:06:28]remove file /storage/0554/doc_00072634 [00:06:28]file doc_00072635 [00:06:28]remove file /storage/0554/doc_00072635 [00:06:28]file doc_00072636 [00:06:28]remove file /storage/0554/doc_00072636 [00:06:28]file doc_00072637 [00:06:28]remove file /storage/0554/doc_00072637 [00:06:28]file doc_00072638 [00:06:28]remove file /storage/0554/doc_00072638 [00:06:28]file doc_00072639 [00:06:28]remove file /storage/0554/doc_00072639 [00:06:28]file doc_00072640 [00:06:28]remove file /storage/0554/doc_00072640 [00:06:28]file doc_00072641 [00:06:28]remove file /storage/0554/doc_00072641 [00:06:28]file doc_00072642 [00:06:28]remove file /storage/0554/doc_00072642 [00:06:28]remove dir /storage/0554 [00:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=262 [00:06:28]tlvbuf is 00CA5900 [00:06:28]SAM_PROTO_ClearQueue [00:06:28]wFMCommunicate request_size=4 [00:06:28]MH_SAM_APDU [00:06:28]CAPDU: 80 09 00 00 [00:06:28]Write to MH i2c: E2 08 00 36 01 80 09 00 00 00 00 00 00 A9 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 36 01 00 90 00 AB [00:06:29]RAPDU: 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_ClearQueue done [00:06:29]KKMCreateOFDPacket [00:06:29]OFDProtocolAddRootSTLVToBuf [00:06:29]FM_MakeSignedData [00:06:29]FM_MakeSignedData [00:06:29]SAM_PROTO_SignData [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 0D 01 02 [00:06:29]Write to MH i2c: E2 08 00 37 01 80 0D 01 02 00 00 00 00 B1 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 37 01 00 90 00 AC [00:06:29]RAPDU: 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=255 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 0D 02 02 FA 02 00 06 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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 03 27 20 67 0E 04 04 00 2B 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [00:06:29]Write to MH i2c: E2 02 01 38 01 80 0D 02 02 FA 00 02 00 06 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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 03 27 20 67 0E 04 04 00 2B 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 C7 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 38 01 00 90 00 AD [00:06:29]RAPDU: 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=21 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 0D 02 02 10 38 37 34 36 36 32 35 04 06 00 42 A0 39 AC 64 7A [00:06:29]Write to MH i2c: E2 18 00 39 01 80 0D 02 02 10 00 38 37 34 36 36 32 35 04 06 00 42 A0 39 AC 64 7A 00 00 F9 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 03 00 39 01 00 90 00 AE [00:06:29]RAPDU: 90 00 [00:06:29]wFMCommunicate OK [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 0D 03 02 [00:06:29]Write to MH i2c: E2 08 00 3A 01 80 0D 03 02 00 00 00 00 B6 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 0B 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 0B 00 3A 01 00 87 3E BB 2C 1A 58 09 D8 90 00 B6 [00:06:29]RAPDU: 87 3E BB 2C 1A 58 09 D8 90 00 [00:06:29]wFMCommunicate OK [00:06:29]SAM_PROTO_SignData done [00:06:29]FM_MakeSignedData done [00:06:29]CreateOFDProtocolMessage [00:06:29]wFMCommunicate request_size=4 [00:06:29]MH_SAM_APDU [00:06:29]CAPDU: 80 11 00 00 [00:06:29]Write to MH i2c: E2 08 00 3B 01 80 11 00 00 00 00 00 00 B6 [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:29]Read from MH i2c: E2 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 17 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: E2 17 00 3B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0A [00:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:06:29]wFMCommunicate OK [00:06:29]CreateOFDProtocolMessage done [00:06:29]OFDSenderStorePacket 72643 [00:06:29]StoreOFDPacket docnum=72643 [00:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 1A 01 00 00 44 EF 12 01 71 D7 5A 02 01 00 02 00 06 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 D0 B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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 03 27 20 67 0E 04 04 00 2B 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 42 A0 39 AC 64 7A 87 3E BB 2C 1A 58 09 D8 [00:06:29]CheckFolder [00:06:29]dirname=/storage/ofd_packets [00:06:29]CheckFolder done [00:06:29]ProducePacketName [00:06:29]name=ofd_packets/00072643 [00:06:29]NVStorageSaveData ofd_packets/00072643 [00:06:29]File name is /storage/ofd_packets/00072643 [00:06:29]Write 312 bytes [00:06:29]NVStorageSaveData done [00:06:29]OFDSenderStorePacket done [00:06:29]KKMCreateOFDPacket done [00:06:29]NVStorageSaveData kkm_last_timestamp [00:06:29]File name is /storage/kkm_last_timestamp [00:06:29]Write 4 bytes [00:06:29]NVStorageSaveData done [00:06:29]ExternCall_PrintAddStr [00:06:29]wPrintStart [00:06:29]Write to MH i2c: 01 00 00 3C 01 3D [00:06:29]Write i2c OK [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 07 00 [00:06:29]MH_I2C_Read... [00:06:29]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 FF 0F 52 [00:06:29]RasterBufferAndPrint [00:06:29]line Отчет об открытии смены [00:06:29]line ФФД: 1.0 [00:06:29]line ИНН: 02508201610067 [00:06:29]line Кассир: Кутманалиева Н. [00:06:29]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:06:29]line Место: АЗС № 113 "Партнер Нефть" [00:06:29]line 29.10.2024 00:06 [00:06:29]line Смена: 555 [00:06:29]line РНМ: 0000000000091644 [00:06:29]line ЗНМ: 0300000087 [00:06:29]line ФД: 72643 [00:06:29]line ФМ: 0000000000874662 [00:06:29]line ФПД: 73255929799802 [00:06:29]OFD Sender: Processing packet 72643 [packets to send 277, broken 276] [00:06:29]ProducePacketName [00:06:29]name=ofd_packets/00072643 [00:06:29]OFD Sender: To server: pG, [00:06:29]CommunicateWithHost lk.salyk.kg:30040 [00:06:29]ConnectInit lk.salyk.kg [00:06:29]written 0, free lines is 4095 [00:06:30]Write to MH i2c: 01 00 00 4E 01 4F [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: 01 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: 01 07 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: 01 07 00 4E 01 00 00 00 00 00 55 0E B9 [00:06:30]RasterBufferAndPrint [00:06:30]line [00:06:30]line [00:06:30]line [00:06:30]line [00:06:30]line [00:06:30]written 0, free lines is 3681 [00:06:30]MH_Cut [00:06:30]Write to MH i2c: D1 01 00 55 01 01 28 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: D1 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: D1 01 00 [00:06:30]MH_I2C_Read... [00:06:30]Read from MH i2c: D1 01 00 55 01 00 27 [00:06:30]Write to MH i2c: 01 00 00 56 01 57 [00:06:30]Write i2c OK [00:06:30]MH_I2C_Read... [00:06:30]*** Cut start [00:06:30]*** Partial cut [00:06:30]*** CUTSNS_PIN = 1 [00:06:30]*** CUTSNS_PIN = 0 [00:06:30]*** Brake cut motor [00:06:31]Read from MH i2c: 01 [00:06:31]MH_I2C_Read... [00:06:31]*** Stop cut motor [00:06:31]*** Cut end [00:06:31]Read from MH i2c: 01 07 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: 01 07 00 56 01 00 00 00 00 00 FF 0F 6C [00:06:31]process_action open_shift done [00:06:31]requested_data is exist [00:06:31]produce_requested_data [00:06:31]requested_item fd.num is exist - process it [00:06:31]SAM_PROTO_GetFieldsCounters [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 13 00 00 [00:06:31]Write to MH i2c: E2 08 00 57 01 80 13 00 00 00 00 00 00 D4 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 62 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 62 00 57 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 0E 04 04 00 2B 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 01 [00:06: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 0E 04 04 00 2B 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:06:31]wFMCommunicate OK [00:06:31]SAM_PROTO_GetFieldsCounters done [00:06:31]requested_item shift.num is exist - process it [00:06:31]requested_item shift.opened is exist - process it [00:06:31]req_shift_opened [00:06:31]FM_GetShiftState [00:06:31]SAM_PROTO_GetShiftState [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 13 01 00 [00:06:31]Write to MH i2c: E2 08 00 58 01 80 13 01 00 00 00 00 00 D6 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 0E 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 0E 00 58 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 93 [00:06:31]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:06:31]wFMCommunicate OK [00:06:31]SAM_PROTO_GetShiftState done [00:06:31]FM_GetShiftState done [00:06:31]req_shift_opened done [00:06:31]requested_item shift.open_date is exist - process it [00:06:31]req_shift_open_date [00:06:31]req_shift_open_date done [00:06:31]produce_requested_data done [00:06:31]produce_requested_data return {"fd.num":72643,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [00:06:31]process_action_free open_shift [00:06:31]json_value_free [00:06:31]json_value_free done [00:06:31]process_json_proto returns [00:06:31]Send response to host [00:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":72643,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [00:06:31]free response buf [00:06:31]execute_script done [00:06:31]execute_script returns [00:06:31]free content buf [00:06:31]Sock 7.Close socket [00:06:31]Sock 7.Thread stoped [00:06:31]accept exits with 10 [00:06:31]New connection [00:06:31]New thread 3067194724 created [00:06:31]Thread 3067338084 joined [00:06:31]Waiting for new connection... [00:06:31] Sock 10.Parse request [00:06:31]Sock 10.Check first char [00:06:31]Sock 10.First char is OK [00:06:31]request: POST /json_proto HTTP/1.0 [00:06:31]Method: POST [00:06:31]URL: /json_proto [00:06:31]Method is POST - this is cgi request [00:06:31]url: /json_proto [00:06:31]query_string will be loaded in cgi processing [00:06:31]execute_cgi json_proto POST (null) [00:06:31]execute_cgi path=json_proto method=POST [00:06:31]POST find Content-Length [00:06:31]Host: 172.17.43.195:8080 [00:06:31]Content-Length: 331 [00:06:31]Content-Type: application/json [00:06:31] [00:06:31]POST finish read [00:06:31]Found Content-Length = 331 [00:06:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:06:31]execute_script... [00:06: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:06:31]POST & json_proto [00:06:31]process_json_proto [00:06:31]json parsed OK: [00:06:31]protocol is kg_v1.0 [00:06:31]action value=get_value [00:06:31]process_action get_value [00:06:31]cmd_get_value [00:06:31]process_action get_value done [00:06:31]requested_data is exist [00:06:31]produce_requested_data [00:06:31]requested_item fm.sale.total is exist - process it [00:06:31]SAM_PROTO_GetFMData [00:06:31]wFMCommunicate request_size=4 [00:06:31]MH_SAM_APDU [00:06:31]CAPDU: 80 13 03 00 [00:06:31]Write to MH i2c: E2 08 00 59 01 80 13 03 00 00 00 00 00 D9 [00:06:31]Write i2c OK [00:06:31]MH_I2C_Read... [00:06:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:06:31]Read from MH i2c: E2 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 [00:06:31]MH_I2C_Read... [00:06:31]Read from MH i2c: E2 FD 00 59 01 00 C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 2A [00:06:32]RAPDU: C4 04 85 04 C0 04 6E 04 04 00 6D 17 01 00 69 04 A3 00 6F 04 04 00 7E 16 01 00 B1 04 05 00 F6 82 04 A3 01 70 04 05 00 70 6C 01 58 01 72 04 04 00 86 16 03 4B 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 98 27 82 2C 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 62 71 B5 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 9B 00 6F 04 04 00 EF 00 00 00 B1 04 04 00 6C 1A FC 04 70 04 04 00 6C 1A FC 04 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 D9 86 87 EF 03 09 00 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 5A 01 80 17 00 00 00 00 00 00 DB [00:06:32]Connected sock=9 [00:06:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 1A 01 00 00 44 EF 12 01 71 D7 5A 02 01 00 02 00 06 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 1D 00 D0 9A D1 83 D1 82 D0 BC D0 B0 D0 BD D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F1 03 52 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9A D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 BB D1 8C 2C 20 D1 83 D0 BB 2E 20 D0 97 D0 B0 Write i2c OK [00:06:32]D0 MH_I2C_Read... [00:06:32]B2 D0 BE D0 B4 D1 81 D0 BA D0 B0 D1 8F 20 D0 B1 2F D0 BD 2C 20 34 31 2E 36 33 39 38 33 37 2C 20 37 32 2E 37 31 31 38 32 37 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 31 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 03 27 20 67 0E 04 04 00 2B 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C3 1B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 35 04 06 00 42 A0 39 AC 64 7A 87 3E BB 2C 1A 58 09 D8 [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 5A 01 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 11 [00:06:32]RAPDU: F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 2A 4B 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 90 00 [00:06:32]wFMCommunicate OK [00:06:32]wFMCommunicate request_size=4 [00:06:32]MH_SAM_APDU [00:06:32]CAPDU: 80 17 00 00 [00:06:32]Write to MH i2c: E2 08 00 5B 01 80 17 00 00 00 00 00 00 DC [00:06:32]Write i2c OK [00:06:32]MH_I2C_Read... [00:06:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:32]Read from MH i2c: E2 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 [00:06:32]MH_I2C_Read... [00:06:32]Read from MH i2c: E2 FD 00 5B 01 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 F1 [00:06:33]RAPDU: 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 5C 01 80 17 00 00 00 00 00 00 DD [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 FD 00 5C 01 00 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 55 [00:06:33]RAPDU: 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 90 00 [00:06:33]wFMCommunicate OK [00:06:33]wFMCommunicate request_size=4 [00:06:33]MH_SAM_APDU [00:06:33]CAPDU: 80 17 00 00 [00:06:33]Write to MH i2c: E2 08 00 5D 01 80 17 00 00 00 00 00 00 DE [00:06:33]Write i2c OK [00:06:33]MH_I2C_Read... [00:06:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 222! [00:06:33]Read from MH i2c: E2 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 E1 00 [00:06:33]MH_I2C_Read... [00:06:33]Read from MH i2c: E2 E1 00 5D 01 00 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CC [00:06:33]RAPDU: 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:06:34]wFMCommunicate OK [00:06:34]SAM_PROTO_GetFMData done [00:06:34]requested_item fm.sale_refund.total is exist - process it [00:06:34]requested_item fm.buy.total is exist - process it [00:06:34]requested_item shift.sale.total is exist - process it [00:06:34]SAM_PROTO_GetShiftData [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 13 02 00 [00:06:34]Write to MH i2c: E2 08 00 5E 01 80 13 02 00 00 00 00 00 DD [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 5E 01 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 50 [00:06:34]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:06:34]wFMCommunicate OK [00:06:34]wFMCommunicate request_size=4 [00:06:34]MH_SAM_APDU [00:06:34]CAPDU: 80 17 00 00 [00:06:34]Write to MH i2c: E2 08 00 5F 01 80 17 00 00 00 00 00 00 E0 [00:06:34]Write i2c OK [00:06:34]MH_I2C_Read... [00:06:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:34]Read from MH i2c: E2 [00:06:34]MH_I2C_Read... [00:06:34]Read from MH i2c: E2 FD 00 [00:06:34]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 5F 01 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 E8 [00:06:35]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:06:35]wFMCommunicate OK [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 17 00 00 [00:06:35]Write to MH i2c: E2 08 00 60 01 80 17 00 00 00 00 00 00 E1 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 60 01 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 B3 [00:06:35]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:06:35]wFMCommunicate OK [00:06:35]wFMCommunicate request_size=4 [00:06:35]MH_SAM_APDU [00:06:35]CAPDU: 80 17 00 00 [00:06:35]Write to MH i2c: E2 08 00 61 01 80 17 00 00 00 00 00 00 E2 [00:06:35]Write i2c OK [00:06:35]MH_I2C_Read... [00:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 31 61 47 00 36 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 34 36 36 32 10 04 04 00 C3 1B 01 00 F4 03 04 00 C4 D1 1F 67 B6 04 01 00 00 FF E7 A0 2B D6 55 93 B2 [00:06:35]CommunicateWithHost err = 0 [00:06:35]CheckOFDResponse [00:06:35]1017 (14) - 77093643461234 [00:06:35]1041 (16) - 0000000000874662 [00:06:35]1040 (4) - 72643 [00:06:35]1012 (4) - 28.10.2024 18:02 [00:06:35]1206 (1) - 0 [00:06:35]OFD Sender: Remove packet 72643 [00:06:35]ProducePacketName [00:06:35]name=ofd_packets/00072643 [00:06:35]NVStorageDeleteData [00:06:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:06:35]Read from MH i2c: E2 [00:06:35]MH_I2C_Read... [00:06:35]Read from MH i2c: E2 FD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 FD 00 61 01 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 54 [00:06:36]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:06:36]wFMCommunicate OK [00:06:36]wFMCommunicate request_size=4 [00:06:36]MH_SAM_APDU [00:06:36]CAPDU: 80 17 00 00 [00:06:36]Write to MH i2c: E2 08 00 62 01 80 17 00 00 00 00 00 00 E3 [00:06:36]Write i2c OK [00:06:36]MH_I2C_Read... [00:06:36]OFD Sender: No OFD packet to send [00:06:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:06:36]Read from MH i2c: E2 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 BD 00 [00:06:36]MH_I2C_Read... [00:06:36]Read from MH i2c: E2 BD 00 62 01 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C9 [00:06:36]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:06:36]wFMCommunicate OK [00:06:36]SAM_PROTO_GetShiftData done [00:06:36]requested_item shift.sale.total_cash is exist - process it [00:06:36]requested_item shift.sale_refund.total is exist - process it [00:06:36]requested_item shift.sale_refund.total_cash is exist - process it [00:06:36]requested_item shift.buy.total is exist - process it [00:06:36]requested_item shift.buy.total_cash is exist - process it [00:06:36]produce_requested_data done [00:06:36]produce_requested_data return {"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.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:06:36]process_action_free get_value [00:06:36]json_value_free [00:06:36]json_value_free done [00:06:36]process_json_proto returns [00:06:36]Send response to host [00:06:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":70299491.74,"fm.sale_refund.total":836307.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:06:36]free response buf [00:06:36]execute_script done [00:06:36]execute_script returns [00:06:36]free content buf [00:06:36]Sock 10.Close socket [00:06:36]Sock 10.Thread stoped [00:06:40]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:06]recv_with_timeout no data received [00:07:11]OFD Sender: No OFD packet to send [00:07:16]OFD Sender: No OFD packet to send [00:07:18]recv_with_timeout no data received [00:07:21]OFD Sender: No OFD packet to send [00:07:26]OFD Sender: No OFD packet to send [00:07:31]recv_with_timeout no data received [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:43]recv_with_timeout no data received [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:07:58]recv_with_timeout no data received [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:13]recv_with_timeout no data received [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]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:32]recv_with_timeout no data received [00:09:36]OFD Sender: No OFD packet to send [00:09:41]OFD Sender: No OFD packet to send [00:09:43]recv_with_timeout no data received [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]recv_with_timeout no data received [00:10:06]OFD Sender: No OFD packet to send [00:10:11]OFD Sender: No OFD packet to send [00:10:16]OFD Sender: No OFD packet to send [00:10:21]OFD Sender: No OFD packet to send [00:10:23]recv_with_timeout no data received [00:10:26]OFD Sender: No OFD packet to send [00:10:31]OFD Sender: No OFD packet to send [00:10:36]OFD Sender: No OFD packet to send [00:10:41]OFD Sender: No OFD packet to send [00:10:46]OFD Sender: No OFD packet to send [00:10:51]OFD Sender: No OFD packet to send [00:10:54]accept exits with 7 [00:10:54]New connection [00:10:54]New thread 3067338084 created [00:10:54]Thread 3067194724 joined [00:10:54]Waiting for new connection... [00:10:54] Sock 7.Parse request [00:10:54]Sock 7.Check first char [00:10:54]Sock 7.First char is OK [00:10:54]request: POST /json_proto HTTP/1.0 [00:10:54]Method: POST [00:10:54]URL: /json_proto [00:10:54]Method is POST - this is cgi request [00:10:54]url: /json_proto [00:10:54]query_string will be loaded in cgi processing [00:10:54]execute_cgi json_proto POST (null) [00:10:54]execute_cgi path=json_proto method=POST [00:10:54]POST find Content-Length [00:10:54]Host: 172.17.43.195:8080 [00:10:54]Content-Length: 681 [00:10:54]Content-Type: application/json [00:10:54] [00:10:54]POST finish read [00:10:54]Found Content-Length = 681 [00:10:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:54]execute_script... [00:10: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)952137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 15.430, "sum" : 600.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:10:54]POST & json_proto [00:10:54]process_json_proto [00:10:54]json parsed OK: [00:10:54]protocol is kg_v1.0 [00:10:54]action value=close_receipt [00:10:54]process_action close_receipt [00:10:54]cmd_close_receipt [00:10:54]MH_GetDate [00:10:54]Write to MH i2c: F0 00 00 63 01 53 [00:10:54]Write i2c OK [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: F0 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: F0 09 00 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: F0 09 00 63 01 00 0F 28 20 67 74 2C AD 66 CD [00:10:54]GetLastDocTimeStamp 1730160387 [00:10:54]current date 1730160655 [00:10:54]FM_GetShiftState [00:10:54]SAM_PROTO_GetShiftState [00:10:54]wFMCommunicate request_size=4 [00:10:54]MH_SAM_APDU [00:10:54]CAPDU: 80 13 01 00 [00:10:54]Write to MH i2c: E2 08 00 64 01 80 13 01 00 00 00 00 00 E2 [00:10:54]Write i2c OK [00:10:54]MH_I2C_Read... [00:10:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:54]Read from MH i2c: E2 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 0E 00 [00:10:54]MH_I2C_Read... [00:10:54]Read from MH i2c: E2 0E 00 64 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 9F [00:10:54]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:10:54]wFMCommunicate OK [00:10:54]SAM_PROTO_GetShiftState done [00:10:54]FM_GetShiftState done [00:10:54]opened in 1730160387 [00:10:54]opened+sec_in_day 1730246787 [00:10:54]quantity*price = 60022 [00:10:54]sum+1 = 60024 [00:10:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.74 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 1 29.10.2024 00:10 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72644 ФПД: 145119254808147 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T001055&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72644&fm=145119254808147&tin=02508201610067®Number=0000000000091644&sum=60000 [00:10:55]StoreToDocumentArchive [00:10:55]shift 555 fd 72644 [00:10:55]save to /storage/0555/doc_00072644 [00:10:55]save last doc name /storage/0555/doc_00072644 to /storage/kkm_last_doc_name [00:10:55]save OK [00:10:55]Clear old archive folders... [00:10:55]ProcessDocumentItem done err = 0, tmpTLVsize=250 [00:10:55]tlvbuf is 00ACA570 [00:10:55]SAM_PROTO_ClearQueue [00:10:55]wFMCommunicate request_size=4 [00:10:55]MH_SAM_APDU [00:10:55]CAPDU: 80 09 00 00 [00:10:55]Write to MH i2c: E2 08 00 71 01 80 09 00 00 00 00 00 00 E4 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 71 01 00 90 00 E6 [00:10:56]RAPDU: 90 00 [00:10:56]wFMCommunicate OK [00:10:56]SAM_PROTO_ClearQueue done [00:10:56]KKMCreateOFDPacket [00:10:56]OFDProtocolAddRootSTLVToBuf [00:10:56]FM_MakeSignedData [00:10:56]FM_MakeSignedData [00:10:56]SAM_PROTO_SignData [00:10:56]wFMCommunicate request_size=4 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 0D 01 02 [00:10:56]Write to MH i2c: E2 08 00 72 01 80 0D 01 02 00 00 00 00 EC [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 72 01 00 90 00 E7 [00:10:56]RAPDU: 90 00 [00:10:56]wFMCommunicate OK [00:10:56]wFMCommunicate request_size=255 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 28 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1B 01 00 35 04 06 00 83 FC [00:10:56]Write to MH i2c: E2 02 01 73 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 28 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1B 01 00 35 04 06 00 83 FC 00 00 B1 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 73 01 00 90 00 E8 [00:10:56]RAPDU: 90 00 [00:10:56]wFMCommunicate OK [00:10:56]wFMCommunicate request_size=9 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 0D 02 02 04 35 A2 06 53 [00:10:56]Write to MH i2c: E2 0C 00 74 01 80 0D 02 02 04 00 35 A2 06 53 00 00 27 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 03 00 74 01 00 90 00 E9 [00:10:56]RAPDU: 90 00 [00:10:56]wFMCommunicate OK [00:10:56]wFMCommunicate request_size=4 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 0D 03 02 [00:10:56]Write to MH i2c: E2 08 00 75 01 80 0D 03 02 00 00 00 00 F1 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 0B 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 0B 00 75 01 00 98 8E 16 94 BD B0 BB A8 90 00 92 [00:10:56]RAPDU: 98 8E 16 94 BD B0 BB A8 90 00 [00:10:56]wFMCommunicate OK [00:10:56]SAM_PROTO_SignData done [00:10:56]FM_MakeSignedData done [00:10:56]CreateOFDProtocolMessage [00:10:56]wFMCommunicate request_size=4 [00:10:56]MH_SAM_APDU [00:10:56]CAPDU: 80 11 00 00 [00:10:56]Write to MH i2c: E2 08 00 76 01 80 11 00 00 00 00 00 00 F1 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:56]Read from MH i2c: E2 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 17 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: E2 17 00 76 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 45 [00:10:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:10:56]wFMCommunicate OK [00:10:56]CreateOFDProtocolMessage done [00:10:56]OFDSenderStorePacket 72644 [00:10:56]StoreOFDPacket docnum=72644 [00:10:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E6 EB 06 01 5D AC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 28 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1B 01 00 35 04 06 00 83 FC 35 A2 06 53 98 8E 16 94 BD B0 BB A8 [00:10:56]CheckFolder [00:10:56]dirname=/storage/ofd_packets [00:10:56]CheckFolder done [00:10:56]ProducePacketName [00:10:56]name=ofd_packets/00072644 [00:10:56]NVStorageSaveData ofd_packets/00072644 [00:10:56]File name is /storage/ofd_packets/00072644 [00:10:56]Write 300 bytes [00:10:56]NVStorageSaveData done [00:10:56]OFDSenderStorePacket done [00:10:56]KKMCreateOFDPacket done [00:10:56]NVStorageSaveData kkm_last_timestamp [00:10:56]File name is /storage/kkm_last_timestamp [00:10:56]Write 4 bytes [00:10:56]NVStorageSaveData done [00:10:56]ExternCall_PrintAddStr [00:10:56]wPrintStart [00:10:56]Write to MH i2c: 01 00 00 77 01 78 [00:10:56]Write i2c OK [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: 01 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: 01 07 00 [00:10:56]MH_I2C_Read... [00:10:56]Read from MH i2c: 01 07 00 77 01 00 00 00 00 00 FF 0F 8D [00:10:56]RasterBufferAndPrint [00:10:56]line Счет N : (1)952137 [00:10:56]line ИНН: 02508201610067 [00:10:56]line Контрольно-Кассовый Чек [00:10:56]line ПРОДАЖА [00:10:56]line ТРК (МРК, ГНК) : 71 [00:10:56]line Товар: 2711190000 [00:10:56]line ГАЗ-К-3 [00:10:56]line 15.430 * 38.90 [00:10:56]line = 600.23 [00:10:56]line НДС 12% НСП 1% [00:10:56]line > о реализуемом товаре [00:10:56]line ОКРУГЛЕНИЕ: -0.23 [00:10:56]line ИТОГО: 600.00 [00:10:56]line Внесено: 600.00 [00:10:56]line СДАЧА: 0.00 [00:10:56]line НСП 1% : 5.31 [00:10:56]line НДС 12% : 63.74 [00:10:56]line Наличными: 600.00 [00:10:56]line Безнал.: 0.00 [00:10:56]line Место: АЗС № 113 "Партнер Нефть" [00:10:56]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:10:56]line СНО: Общий режим [00:10:56]line Чек 1 29.10.2024 00:10 [00:10:56]line Смена: 555 ФФД: 1.0 [00:10:56]line ЗНМ: 0300000087 [00:10:56]line РНМ: 0000000000091644 [00:10:56]line Версия ККМ: 001 [00:10:56]line ФМ: 0000000000874662 [00:10:56]line ФД: 72644 [00:10:56]line ФПД: 145119254808147 [00:10:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T001055&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72644&fm=145119254808147&tin=02508201610067®Number=0000000000091644&sum=60000 [00:10:56]written 0, free lines is 4095 [00:10:56]OFD Sender: Processing packet 72644 [packets to send 277, broken 276] [00:10:56]ProducePacketName [00:10:56]name=ofd_packets/00072644 [00:10:56]OFD Sender: To server: pG, [00:10:56]CommunicateWithHost lk.salyk.kg:30040 [00:10:56]ConnectInit lk.salyk.kg [00:10:56]Write to MH i2c: 01 00 00 A2 01 A3 [00:10:56]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: 01 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: 01 07 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 D4 0C 8A [00:10:57]RasterBufferAndPrint [00:10:57]line [00:10:57]line [00:10:57]line [00:10:57]line [00:10:57]line [00:10:57]written 0, free lines is 3292 [00:10:57]MH_Cut [00:10:57]Write to MH i2c: D1 01 00 A9 01 01 7C [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: D1 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: D1 01 00 [00:10:57]MH_I2C_Read... [00:10:57]Read from MH i2c: D1 01 00 A9 01 00 7B [00:10:57]Write to MH i2c: 01 00 00 AA 01 AB [00:10:57]Write i2c OK [00:10:57]MH_I2C_Read... [00:10:57]Connected sock=10 [00:10:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 E6 EB 06 01 5D AC 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 46 3C 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 77 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E6 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 0F 28 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1B 01 00 35 04 06 00 83 FC 35 A2 06 53 98 8E 16 94 BD B0 BB A8 [00:10:57]*** Cut start [00:10:57]*** Partial cut [00:10:57]*** CUTSNS_PIN = 1 [00:10:57]*** CUTSNS_PIN = 0 [00:10:58]*** Brake cut motor [00:10:58]Read from MH i2c: 01 [00:10:58]MH_I2C_Read... [00:10:58]*** Stop cut motor [00:10:58]*** Cut end [00:10:58]Read from MH i2c: 01 07 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: 01 07 00 AA 01 00 00 00 00 00 FF 0F C0 [00:10:58]process_action close_receipt done [00:10:58]requested_data is exist [00:10:58]produce_requested_data [00:10:58]requested_item fm.sn is exist - process it [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 11 00 00 [00:10:58]Write to MH i2c: E2 08 00 AB 01 80 11 00 00 00 00 00 00 26 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 17 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 17 00 AB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 7A [00:10:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:10:58]wFMCommunicate OK [00:10:58]requested_item fd.num is exist - process it [00:10:58]SAM_PROTO_GetFieldsCounters [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 00 00 [00:10:58]Write to MH i2c: E2 08 00 AC 01 80 13 00 00 00 00 00 00 29 [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 62 00 AC 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1B 01 00 0E 04 04 00 2B 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 5A [00:10: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C4 1B 01 00 0E 04 04 00 2B 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:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetFieldsCounters done [00:10:58]requested_item shift.num is exist - process it [00:10:58]requested_item shift.opened is exist - process it [00:10:58]req_shift_opened [00:10:58]FM_GetShiftState [00:10:58]SAM_PROTO_GetShiftState [00:10:58]wFMCommunicate request_size=4 [00:10:58]MH_SAM_APDU [00:10:58]CAPDU: 80 13 01 00 [00:10:58]Write to MH i2c: E2 08 00 AD 01 80 13 01 00 00 00 00 00 2B [00:10:58]Write i2c OK [00:10:58]MH_I2C_Read... [00:10:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:10:58]Read from MH i2c: E2 [00:10:58]MH_I2C_Read... [00:10:58]Read from MH i2c: E2 0E 00 [00:10:58]MH_I2C_Read... [00:10:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 7C 4C 47 00 F3 88 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C4 1B 01 00 F4 03 04 00 CD D2 1F 67 B6 04 01 00 00 E6 11 29 A2 19 2E 03 F7 [00:10:58]CommunicateWithHost err = 0 [00:10:58]CheckOFDResponse [00:10:58]1017 (14) - 77093643461234 [00:10:58]1041 (16) - 0000000000874662 [00:10:58]1040 (4) - 72644 [00:10:58]1012 (4) - 28.10.2024 18:07 [00:10:58]1206 (1) - 0 [00:10:58]OFD Sender: Remove packet 72644 [00:10:58]ProducePacketName [00:10:58]name=ofd_packets/00072644 [00:10:58]NVStorageDeleteData [00:10:58]Read from MH i2c: E2 0E 00 AD 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 E8 [00:10:58]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:10:58]wFMCommunicate OK [00:10:58]SAM_PROTO_GetShiftState done [00:10:58]FM_GetShiftState done [00:10:58]req_shift_opened done [00:10:58]requested_item shift.open_date is exist - process it [00:10:58]req_shift_open_date [00:10:58]req_shift_open_date done [00:10:58]produce_requested_data done [00:10:58]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72644,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [00:10:58]process_action_free close_receipt [00:10:58]json_value_free [00:10:58]json_value_free done [00:10:58]process_json_proto returns [00:10:58]Send response to host [00:10:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72644,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [00:10:58]free response buf [00:10:58]execute_script done [00:10:58]execute_script returns [00:10:58]free content buf [00:10:58]Sock 7.Close socket [00:10:58]Sock 7.Thread stoped [00:10:59]OFD Sender: No OFD packet to send [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:13]recv_with_timeout no data received [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:31]recv_with_timeout no data received [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:03]recv_with_timeout no data received [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:49]OFD Sender: No OFD packet to send [00:12:54]OFD Sender: No OFD packet to send [00:12:59]OFD Sender: No OFD packet to send [00:13:04]OFD Sender: No OFD packet to send [00:13:07]recv_with_timeout no data received [00:13:09]OFD Sender: No OFD packet to send [00:13:14]OFD Sender: No OFD packet to send [00:13:19]OFD Sender: No OFD packet to send [00:13:24]OFD Sender: No OFD packet to send [00:13:29]OFD Sender: No OFD packet to send [00:13:34]OFD Sender: No OFD packet to send [00:13:39]OFD Sender: No OFD packet to send [00:13:42]recv_with_timeout no data received [00:13:44]OFD Sender: No OFD packet to send [00:13:49]OFD Sender: No OFD packet to send [00:13:54]OFD Sender: No OFD packet to send [00:13:59]OFD Sender: No OFD packet to send [00:14:04]OFD Sender: No OFD packet to send [00:14:09]OFD Sender: No OFD packet to send [00:14:14]OFD Sender: No OFD packet to send [00:14:19]OFD Sender: No OFD packet to send [00:14:24]OFD Sender: No OFD packet to send [00:14:29]OFD Sender: No OFD packet to send [00:14:34]OFD Sender: No OFD packet to send [00:14:39]OFD Sender: No OFD packet to send [00:14:44]OFD Sender: No OFD packet to send [00:14:49]OFD Sender: No OFD packet to send [00:14:53]recv_with_timeout no data received [00:14:54]OFD Sender: No OFD packet to send [00:14:59]OFD Sender: No OFD packet to send [00:15:04]recv_with_timeout no data received [00:15:04]OFD Sender: No OFD packet to send [00:15:09]OFD Sender: No OFD packet to send [00:15:14]OFD Sender: No OFD packet to send [00:15:19]OFD Sender: No OFD packet to send [00:15:24]OFD Sender: No OFD packet to send [00:15:29]OFD Sender: No OFD packet to send [00:15:34]OFD Sender: No OFD packet to send [00:15:35]recv_with_timeout no data received [00:15:39]OFD Sender: No OFD packet to send [00:15:44]OFD Sender: No OFD packet to send [00:15:49]OFD Sender: No OFD packet to send [00:15:54]OFD Sender: No OFD packet to send [00:15:59]OFD Sender: No OFD packet to send [00:16:04]OFD Sender: No OFD packet to send [00:16:09]OFD Sender: No OFD packet to send [00:16:14]OFD Sender: No OFD packet to send [00:16:19]OFD Sender: No OFD packet to send [00:16:24]OFD Sender: No OFD packet to send [00:16:29]OFD Sender: No OFD packet to send [00:16:33]recv_with_timeout no data received [00:16:34]OFD Sender: No OFD packet to send [00:16:39]OFD Sender: No OFD packet to send [00:16:44]OFD Sender: No OFD packet to send [00:16:49]OFD Sender: No OFD packet to send [00:16:53]recv_with_timeout no data received [00:16:54]OFD Sender: No OFD packet to send [00:16:59]OFD Sender: No OFD packet to send [00:17:04]OFD Sender: No OFD packet to send [00:17:09]OFD Sender: No OFD packet to send [00:17:14]OFD Sender: No OFD packet to send [00:17:19]OFD Sender: No OFD packet to send [00:17:24]OFD Sender: No OFD packet to send [00:17:29]OFD Sender: No OFD packet to send [00:17:34]OFD Sender: No OFD packet to send [00:17:39]OFD Sender: No OFD packet to send [00:17:44]OFD Sender: No OFD packet to send [00:17:49]OFD Sender: No OFD packet to send [00:17:50]recv_with_timeout no data received [00:17:54]OFD Sender: No OFD packet to send [00:17:59]OFD Sender: No OFD packet to send [00:18:04]OFD Sender: No OFD packet to send [00:18:09]OFD Sender: No OFD packet to send [00:18:14]OFD Sender: No OFD packet to send [00:18:19]OFD Sender: No OFD packet to send [00:18:24]OFD Sender: No OFD packet to send [00:18:29]OFD Sender: No OFD packet to send [00:18:34]OFD Sender: No OFD packet to send [00:18:39]OFD Sender: No OFD packet to send [00:18:44]OFD Sender: No OFD packet to send [00:18:49]OFD Sender: No OFD packet to send [00:18:54]OFD Sender: No OFD packet to send [00:18:59]OFD Sender: No OFD packet to send [00:19:04]OFD Sender: No OFD packet to send [00:19:07]recv_with_timeout no data received [00:19:09]OFD Sender: No OFD packet to send [00:19:14]OFD Sender: No OFD packet to send [00:19:20]OFD Sender: No OFD packet to send [00:19:25]OFD Sender: No OFD packet to send [00:19:30]OFD Sender: No OFD packet to send [00:19:35]OFD Sender: No OFD packet to send [00:19:40]OFD Sender: No OFD packet to send [00:19:45]OFD Sender: No OFD packet to send [00:19:50]OFD Sender: No OFD packet to send [00:19:55]OFD Sender: No OFD packet to send [00:20:00]OFD Sender: No OFD packet to send [00:20:05]OFD Sender: No OFD packet to send [00:20:10]OFD Sender: No OFD packet to send [00:20:15]OFD Sender: No OFD packet to send [00:20:18]recv_with_timeout no data received [00:20:20]OFD Sender: No OFD packet to send [00:20:25]OFD Sender: No OFD packet to send [00:20:30]OFD Sender: No OFD packet to send [00:20:35]OFD Sender: No OFD packet to send [00:20:36]recv_with_timeout no data received [00:20:40]OFD Sender: No OFD packet to send [00:20:45]OFD Sender: No OFD packet to send [00:20:50]OFD Sender: No OFD packet to send [00:20:55]OFD Sender: No OFD packet to send [00:21:00]OFD Sender: No OFD packet to send [00:21:05]OFD Sender: No OFD packet to send [00:21:08]recv_with_timeout no data received [00:21:10]OFD Sender: No OFD packet to send [00:21:15]OFD Sender: No OFD packet to send [00:21:19]recv_with_timeout no data received [00:21:20]OFD Sender: No OFD packet to send [00:21:25]OFD Sender: No OFD packet to send [00:21:30]OFD Sender: No OFD packet to send [00:21:33]recv_with_timeout no data received [00:21:35]OFD Sender: No OFD packet to send [00:21:40]OFD Sender: No OFD packet to send [00:21:45]OFD Sender: No OFD packet to send [00:21:50]OFD Sender: No OFD packet to send [00:21:55]OFD Sender: No OFD packet to send [00:22:00]OFD Sender: No OFD packet to send [00:22:05]OFD Sender: No OFD packet to send [00:22:10]OFD Sender: No OFD packet to send [00:22:15]OFD Sender: No OFD packet to send [00:22:20]OFD Sender: No OFD packet to send [00:22:25]OFD Sender: No OFD packet to send [00:22:30]OFD Sender: No OFD packet to send [00:22:35]OFD Sender: No OFD packet to send [00:22:40]OFD Sender: No OFD packet to send [00:22:45]OFD Sender: No OFD packet to send [00:22:50]OFD Sender: No OFD packet to send [00:22:55]OFD Sender: No OFD packet to send [00:23:00]OFD Sender: No OFD packet to send [00:23:05]OFD Sender: No OFD packet to send [00:23:10]OFD Sender: No OFD packet to send [00:23:15]OFD Sender: No OFD packet to send [00:23:20]OFD Sender: No OFD packet to send [00:23:25]OFD Sender: No OFD packet to send [00:23:30]OFD Sender: No OFD packet to send [00:23:35]OFD Sender: No OFD packet to send [00:23:40]OFD Sender: No OFD packet to send [00:23:45]OFD Sender: No OFD packet to send [00:23:50]OFD Sender: No OFD packet to send [00:23:55]OFD Sender: No OFD packet to send [00:24:00]OFD Sender: No OFD packet to send [00:24:04]recv_with_timeout no data received [00:24:05]OFD Sender: No OFD packet to send [00:24:10]OFD Sender: No OFD packet to send [00:24:15]OFD Sender: No OFD packet to send [00:24:20]OFD Sender: No OFD packet to send [00:24:25]OFD Sender: No OFD packet to send [00:24:30]OFD Sender: No OFD packet to send [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]recv_with_timeout no data received [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:53]recv_with_timeout no data received [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:29]recv_with_timeout no data received [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:39]recv_with_timeout no data received [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:49]recv_with_timeout no data received [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:16]OFD Sender: No OFD packet to send [00:29:21]OFD Sender: No OFD packet to send [00:29:26]OFD Sender: No OFD packet to send [00:29:31]OFD Sender: No OFD packet to send [00:29:36]OFD Sender: No OFD packet to send [00:29:41]OFD Sender: No OFD packet to send [00:29:46]OFD Sender: No OFD packet to send [00:29:51]OFD Sender: No OFD packet to send [00:29:56]OFD Sender: No OFD packet to send [00:30:01]OFD Sender: No OFD packet to send [00:30:06]OFD Sender: No OFD packet to send [00:30:11]OFD Sender: No OFD packet to send [00:30:16]OFD Sender: No OFD packet to send [00:30:21]OFD Sender: No OFD packet to send [00:30:26]OFD Sender: No OFD packet to send [00:30:31]OFD Sender: No OFD packet to send [00:30:36]OFD Sender: No OFD packet to send [00:30:41]OFD Sender: No OFD packet to send [00:30:45]recv_with_timeout no data received [00:30:46]OFD Sender: No OFD packet to send [00:30:51]OFD Sender: No OFD packet to send [00:30:56]OFD Sender: No OFD packet to send [00:31:01]OFD Sender: No OFD packet to send [00:31:06]OFD Sender: No OFD packet to send [00:31:11]OFD Sender: No OFD packet to send [00:31:12]recv_with_timeout no data received [00:31:16]OFD Sender: No OFD packet to send [00:31:21]OFD Sender: No OFD packet to send [00:31:23]recv_with_timeout no data received [00:31:26]OFD Sender: No OFD packet to send [00:31:31]OFD Sender: No OFD packet to send [00:31:36]OFD Sender: No OFD packet to send [00:31:41]OFD Sender: No OFD packet to send [00:31:46]OFD Sender: No OFD packet to send [00:31:47]recv_with_timeout no data received [00:31:51]OFD Sender: No OFD packet to send [00:31:56]OFD Sender: No OFD packet to send [00:32:01]OFD Sender: No OFD packet to send [00:32:06]OFD Sender: No OFD packet to send [00:32:11]OFD Sender: No OFD packet to send [00:32:16]OFD Sender: No OFD packet to send [00:32:17]recv_with_timeout no data received [00:32:21]OFD Sender: No OFD packet to send [00:32:26]OFD Sender: No OFD packet to send [00:32:31]OFD Sender: No OFD packet to send [00:32:36]OFD Sender: No OFD packet to send [00:32:41]OFD Sender: No OFD packet to send [00:32:42]recv_with_timeout no data received [00:32:46]OFD Sender: No OFD packet to send [00:32:51]OFD Sender: No OFD packet to send [00:32:56]OFD Sender: No OFD packet to send [00:33:01]OFD Sender: No OFD packet to send [00:33:06]OFD Sender: No OFD packet to send [00:33:11]OFD Sender: No OFD packet to send [00:33:16]OFD Sender: No OFD packet to send [00:33:21]OFD Sender: No OFD packet to send [00:33:26]OFD Sender: No OFD packet to send [00:33:31]OFD Sender: No OFD packet to send [00:33:36]OFD Sender: No OFD packet to send [00:33:41]OFD Sender: No OFD packet to send [00:33:46]OFD Sender: No OFD packet to send [00:33:51]OFD Sender: No OFD packet to send [00:33:56]OFD Sender: No OFD packet to send [00:34:01]OFD Sender: No OFD packet to send [00:34:06]OFD Sender: No OFD packet to send [00:34:11]OFD Sender: No OFD packet to send [00:34:16]OFD Sender: No OFD packet to send [00:34:19]recv_with_timeout no data received [00:34:21]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:24]recv_with_timeout no data received [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]recv_with_timeout no data received [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:02]recv_with_timeout no data received [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:12]accept exits with 9 [00:40:12]New connection [00:40:12]New thread 3067194724 created [00:40:12]Thread 3067338084 joined [00:40:12]Waiting for new connection... [00:40:12] Sock 9.Parse request [00:40:12]Sock 9.Check first char [00:40:12]Sock 9.First char is OK [00:40:12]request: POST /json_proto HTTP/1.0 [00:40:12]Method: POST [00:40:12]URL: /json_proto [00:40:12]Method is POST - this is cgi request [00:40:12]url: /json_proto [00:40:12]query_string will be loaded in cgi processing [00:40:12]execute_cgi json_proto POST (null) [00:40:12]execute_cgi path=json_proto method=POST [00:40:12]POST find Content-Length [00:40:12]Host: 172.17.43.195:8080 [00:40:12]Content-Length: 663 [00:40:12]Content-Type: application/json [00:40:12] [00:40:12]POST finish read [00:40:12]Found Content-Length = 663 [00:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:12]execute_script... [00:40: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)952138", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 29.240, "sum" : 2000.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:40:12]POST & json_proto [00:40:12]process_json_proto [00:40:12]json parsed OK: [00:40:12]protocol is kg_v1.0 [00:40:12]action value=close_receipt [00:40:12]process_action close_receipt [00:40:12]cmd_close_receipt [00:40:12]MH_GetDate [00:40:12]Write to MH i2c: F0 00 00 AE 01 9E [00:40:12]Write i2c OK [00:40:12]MH_I2C_Read... [00:40:12]Read from MH i2c: F0 [00:40:12]MH_I2C_Read... [00:40:12]Read from MH i2c: F0 09 00 [00:40:12]MH_I2C_Read... [00:40:12]Read from MH i2c: F0 09 00 AE 01 00 ED 2E 20 67 74 2C AD 66 FC [00:40:12]GetLastDocTimeStamp 1730160655 [00:40:12]current date 1730162413 [00:40:12]FM_GetShiftState [00:40:12]SAM_PROTO_GetShiftState [00:40:12]wFMCommunicate request_size=4 [00:40:12]MH_SAM_APDU [00:40:12]CAPDU: 80 13 01 00 [00:40:12]Write to MH i2c: E2 08 00 AF 01 80 13 01 00 00 00 00 00 2D [00:40:12]Write i2c OK [00:40:12]MH_I2C_Read... [00:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:12]Read from MH i2c: E2 [00:40:12]MH_I2C_Read... [00:40:12]Read from MH i2c: E2 0E 00 [00:40:12]MH_I2C_Read... [00:40:12]Read from MH i2c: E2 0E 00 AF 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 EA [00:40:12]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:40:12]wFMCommunicate OK [00:40:12]SAM_PROTO_GetShiftState done [00:40:12]FM_GetShiftState done [00:40:12]opened in 1730160387 [00:40:12]opened+sec_in_day 1730246787 [00:40:12]quantity*price = 200001 [00:40:12]sum+1 = 200003 [00:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.39 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 2 29.10.2024 00:40 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72645 ФПД: 21797109167987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T004013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72645&fm=21797109167987&tin=02508201610067®Number=0000000000091644&sum=200000 [00:40:13]StoreToDocumentArchive [00:40:13]shift 555 fd 72645 [00:40:13]save to /storage/0555/doc_00072645 [00:40:13]save last doc name /storage/0555/doc_00072645 to /storage/kkm_last_doc_name [00:40:13]save OK [00:40:13]Clear old archive folders... [00:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:40:13]tlvbuf is 00C34D20 [00:40:13]SAM_PROTO_ClearQueue [00:40:13]wFMCommunicate request_size=4 [00:40:13]MH_SAM_APDU [00:40:13]CAPDU: 80 09 00 00 [00:40:13]Write to MH i2c: E2 08 00 BC 01 80 09 00 00 00 00 00 00 2F [00:40:13]Write i2c OK [00:40:13]MH_I2C_Read... [00:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:40:13]Read from MH i2c: E2 [00:40:13]MH_I2C_Read... [00:40:13]Read from MH i2c: E2 03 00 [00:40:13]MH_I2C_Read... [00:40:13]Read from MH i2c: E2 03 00 BC 01 00 90 00 31 [00:40:13]RAPDU: 90 00 [00:40:13]wFMCommunicate OK [00:40:13]SAM_PROTO_ClearQueue done [00:40:13]KKMCreateOFDPacket [00:40:13]OFDProtocolAddRootSTLVToBuf [00:40:13]FM_MakeSignedData [00:40:13]FM_MakeSignedData [00:40:13]SAM_PROTO_SignData [00:40:13]wFMCommunicate request_size=4 [00:40:13]MH_SAM_APDU [00:40:13]CAPDU: 80 0D 01 02 [00:40:13]Write to MH i2c: E2 08 00 BD 01 80 0D 01 02 00 00 00 00 37 [00:40:13]Write i2c OK [00:40:13]MH_I2C_Read... [00:40:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:40:14]Read from MH i2c: E2 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 03 00 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 03 00 BD 01 00 90 00 32 [00:40:14]RAPDU: 90 00 [00:40:14]wFMCommunicate OK [00:40:14]wFMCommunicate request_size=253 [00:40:14]MH_SAM_APDU [00:40:14]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 ED 2E 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1B 01 00 35 04 06 00 13 D3 08 F2 F7 73 [00:40:14]Write to MH i2c: E2 00 01 BE 01 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 ED 2E 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1B 01 00 35 04 06 00 13 D3 08 F2 F7 73 00 00 4D [00:40:14]Write i2c OK [00:40:14]MH_I2C_Read... [00:40:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:40:14]Read from MH i2c: E2 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 03 00 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 03 00 BE 01 00 90 00 33 [00:40:14]RAPDU: 90 00 [00:40:14]wFMCommunicate OK [00:40:14]wFMCommunicate request_size=4 [00:40:14]MH_SAM_APDU [00:40:14]CAPDU: 80 0D 03 02 [00:40:14]Write to MH i2c: E2 08 00 BF 01 80 0D 03 02 00 00 00 00 3B [00:40:14]Write i2c OK [00:40:14]MH_I2C_Read... [00:40:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:40:14]Read from MH i2c: E2 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 0B 00 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 0B 00 BF 01 00 BD A9 3B 67 D4 41 05 30 90 00 8E [00:40:14]RAPDU: BD A9 3B 67 D4 41 05 30 90 00 [00:40:14]wFMCommunicate OK [00:40:14]SAM_PROTO_SignData done [00:40:14]FM_MakeSignedData done [00:40:14]CreateOFDProtocolMessage [00:40:14]wFMCommunicate request_size=4 [00:40:14]MH_SAM_APDU [00:40:14]CAPDU: 80 11 00 00 [00:40:14]Write to MH i2c: E2 08 00 C0 01 80 11 00 00 00 00 00 00 3B [00:40:14]Write i2c OK [00:40:14]MH_I2C_Read... [00:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:14]Read from MH i2c: E2 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 17 00 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: E2 17 00 C0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 8F [00:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:40:14]wFMCommunicate OK [00:40:14]CreateOFDProtocolMessage done [00:40:14]OFDSenderStorePacket 72645 [00:40:14]StoreOFDPacket docnum=72645 [00:40:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 7E CD 00 01 07 11 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 ED 2E 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1B 01 00 35 04 06 00 13 D3 08 F2 F7 73 BD A9 3B 67 D4 41 05 30 [00:40:14]CheckFolder [00:40:14]dirname=/storage/ofd_packets [00:40:14]CheckFolder done [00:40:14]ProducePacketName [00:40:14]name=ofd_packets/00072645 [00:40:14]NVStorageSaveData ofd_packets/00072645 [00:40:14]File name is /storage/ofd_packets/00072645 [00:40:14]Write 294 bytes [00:40:14]NVStorageSaveData done [00:40:14]OFDSenderStorePacket done [00:40:14]KKMCreateOFDPacket done [00:40:14]NVStorageSaveData kkm_last_timestamp [00:40:14]File name is /storage/kkm_last_timestamp [00:40:14]Write 4 bytes [00:40:14]NVStorageSaveData done [00:40:14]ExternCall_PrintAddStr [00:40:14]wPrintStart [00:40:14]Write to MH i2c: 01 00 00 C1 01 C2 [00:40:14]Write i2c OK [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: 01 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: 01 07 00 [00:40:14]MH_I2C_Read... [00:40:14]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [00:40:14]RasterBufferAndPrint [00:40:14]line Счет N : (1)952138 [00:40:14]line ИНН: 02508201610067 [00:40:14]line Контрольно-Кассовый Чек [00:40:14]line ПРОДАЖА [00:40:14]line ТРК (МРК, ГНК) : 61 [00:40:14]line Товар: 50.50.0 [00:40:14]line Super 92 [00:40:14]line 29.240 * 68.40 [00:40:14]line = 2000.02 [00:40:14]line НДС 12% НСП 1% [00:40:14]line > о реализуемом товаре [00:40:14]line ОКРУГЛЕНИЕ: -0.02 [00:40:14]line ИТОГО: 2000.00 [00:40:14]line Внесено: 2000.00 [00:40:14]line СДАЧА: 0.00 [00:40:14]line НСП 1% : 17.70 [00:40:14]line НДС 12% : 212.39 [00:40:14]line Наличными: 2000.00 [00:40:14]line Безнал.: 0.00 [00:40:14]line Место: АЗС № 113 "Партнер Нефть" [00:40:14]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:40:14]line СНО: Общий режим [00:40:14]line Чек 2 29.10.2024 00:40 [00:40:14]line Смена: 555 ФФД: 1.0 [00:40:14]line ЗНМ: 0300000087 [00:40:14]line РНМ: 0000000000091644 [00:40:14]line Версия ККМ: 001 [00:40:14]line ФМ: 0000000000874662 [00:40:14]line ФД: 72645 [00:40:14]line ФПД: 21797109167987 [00:40:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T004013&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72645&fm=21797109167987&tin=02508201610067®Number=0000000000091644&sum=200000 [00:40:14]OFD Sender: Processing packet 72645 [packets to send 277, broken 276] [00:40:14]ProducePacketName [00:40:14]name=ofd_packets/00072645 [00:40:14]OFD Sender: To server: pG, [00:40:14]CommunicateWithHost lk.salyk.kg:30040 [00:40:14]ConnectInit lk.salyk.kg [00:40:14]written 0, free lines is 4095 [00:40:15]Write to MH i2c: 01 00 00 EC 01 ED [00:40:15]Write i2c OK [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: 01 [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: 01 07 00 [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: 01 07 00 EC 01 00 00 00 00 00 E4 0C E4 [00:40:15]RasterBufferAndPrint [00:40:15]line [00:40:15]line [00:40:15]line [00:40:15]line [00:40:15]line [00:40:15]written 0, free lines is 3306 [00:40:15]MH_Cut [00:40:15]Write to MH i2c: D1 01 00 F3 01 01 C6 [00:40:15]Write i2c OK [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: D1 [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: D1 01 00 [00:40:15]MH_I2C_Read... [00:40:15]Read from MH i2c: D1 01 00 F3 01 00 C5 [00:40:15]Write to MH i2c: 01 00 00 F4 01 F5 [00:40:15]Write i2c OK [00:40:15]MH_I2C_Read... [00:40:15]*** Cut start [00:40:15]*** Partial cut [00:40:15]*** CUTSNS_PIN = 1 [00:40:15]*** CUTSNS_PIN = 0 [00:40:16]*** Brake cut motor [00:40:16]Read from MH i2c: 01 [00:40:16]MH_I2C_Read... [00:40:16]*** Stop cut motor [00:40:16]*** Cut end [00:40:16]Read from MH i2c: 01 07 00 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: 01 07 00 F4 01 00 00 00 00 00 FF 0F 0A [00:40:16]process_action close_receipt done [00:40:16]requested_data is exist [00:40:16]produce_requested_data [00:40:16]requested_item fm.sn is exist - process it [00:40:16]wFMCommunicate request_size=4 [00:40:16]MH_SAM_APDU [00:40:16]CAPDU: 80 11 00 00 [00:40:16]Write to MH i2c: E2 08 00 F5 01 80 11 00 00 00 00 00 00 70 [00:40:16]Write i2c OK [00:40:16]MH_I2C_Read... [00:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:40:16]Read from MH i2c: E2 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 17 00 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 17 00 F5 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 C4 [00:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:40:16]wFMCommunicate OK [00:40:16]requested_item fd.num is exist - process it [00:40:16]SAM_PROTO_GetFieldsCounters [00:40:16]wFMCommunicate request_size=4 [00:40:16]MH_SAM_APDU [00:40:16]CAPDU: 80 13 00 00 [00:40:16]Write to MH i2c: E2 08 00 F6 01 80 13 00 00 00 00 00 00 73 [00:40:16]Write i2c OK [00:40:16]MH_I2C_Read... [00:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:40:16]Read from MH i2c: E2 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 62 00 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 62 00 F6 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1B 01 00 0E 04 04 00 2B 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 A8 [00:40: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C5 1B 01 00 0E 04 04 00 2B 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:40:16]wFMCommunicate OK [00:40:16]SAM_PROTO_GetFieldsCounters done [00:40:16]requested_item shift.num is exist - process it [00:40:16]requested_item shift.opened is exist - process it [00:40:16]req_shift_opened [00:40:16]FM_GetShiftState [00:40:16]SAM_PROTO_GetShiftState [00:40:16]wFMCommunicate request_size=4 [00:40:16]MH_SAM_APDU [00:40:16]CAPDU: 80 13 01 00 [00:40:16]Write to MH i2c: E2 08 00 F7 01 80 13 01 00 00 00 00 00 75 [00:40:16]Write i2c OK [00:40:16]MH_I2C_Read... [00:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:40:16]Read from MH i2c: E2 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 0E 00 [00:40:16]MH_I2C_Read... [00:40:16]Read from MH i2c: E2 0E 00 F7 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 32 [00:40:16]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:40:16]wFMCommunicate OK [00:40:16]SAM_PROTO_GetShiftState done [00:40:16]FM_GetShiftState done [00:40:16]req_shift_opened done [00:40:16]requested_item shift.open_date is exist - process it [00:40:16]req_shift_open_date [00:40:16]req_shift_open_date done [00:40:16]produce_requested_data done [00:40:16]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72645,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [00:40:16]process_action_free close_receipt [00:40:16]json_value_free [00:40:16]json_value_free done [00:40:16]process_json_proto returns [00:40:16]Send response to host [00:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72645,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [00:40:16]free response buf [00:40:16]execute_script done [00:40:16]execute_script returns [00:40:16]free content buf [00:40:16]Sock 9.Close socket [00:40:16]Sock 9.Thread stoped [00:40:16]recv_with_timeout no data received [00:40:39]Connected sock=11 [00:40:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 7E CD 00 01 07 11 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 42 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F7 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 ED 2E 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C5 1B 01 00 35 04 06 00 13 D3 08 F2 F7 73 BD A9 3B 67 D4 41 05 30 [00:40:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 48 EB 47 00 F1 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 34 36 36 32 10 04 04 00 C5 1B 01 00 F4 03 04 00 C3 D9 1F 67 B6 04 01 00 00 5C 79 5E ED 0E E3 14 C4 [00:40:40]CommunicateWithHost err = 0 [00:40:40]CheckOFDResponse [00:40:40]1017 (14) - 77093643461234 [00:40:40]1041 (16) - 0000000000874662 [00:40:40]1040 (4) - 72645 [00:40:40]1012 (4) - 28.10.2024 18:36 [00:40:40]1206 (1) - 0 [00:40:40]OFD Sender: Remove packet 72645 [00:40:40]ProducePacketName [00:40:40]name=ofd_packets/00072645 [00:40:40]NVStorageDeleteData [00:40:40]OFD Sender: No OFD packet to send [00:40:44]recv_with_timeout no data received [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]recv_with_timeout no data received [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:36]recv_with_timeout no data received [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:53]recv_with_timeout no data received [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42: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:00]recv_with_timeout no data received [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:05]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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]recv_with_timeout no data received [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:31]recv_with_timeout no data received [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:54]recv_with_timeout no data received [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:44]recv_with_timeout no data received [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:55]recv_with_timeout no data received [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:07]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:21]OFD Sender: No OFD packet to send [00:51:23]recv_with_timeout no data received [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:33]recv_with_timeout no data received [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:49]recv_with_timeout no data received [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]accept exits with 10 [00:52:11]New connection [00:52:11]New thread 3067338084 created [00:52:11]Thread 3067194724 joined [00:52:11]Waiting for new connection... [00:52:11] Sock 10.Parse request [00:52:11]Sock 10.Check first char [00:52:11]Sock 10.First char is OK [00:52:11]request: POST /json_proto HTTP/1.0 [00:52:11]Method: POST [00:52:11]URL: /json_proto [00:52:11]Method is POST - this is cgi request [00:52:11]url: /json_proto [00:52:11]query_string will be loaded in cgi processing [00:52:11]execute_cgi json_proto POST (null) [00:52:11]execute_cgi path=json_proto method=POST [00:52:11]POST find Content-Length [00:52:11]Host: 172.17.43.195:8080 [00:52:11]Content-Length: 659 [00:52:11]Content-Type: application/json [00:52:11] [00:52:11]POST finish read [00:52:11]Found Content-Length = 659 [00:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:11]execute_script... [00:52:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "50.50.0", "name": "Super 92", "price" : 68.40, "quantity" : 10.240, "sum" : 700.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:52:11]POST & json_proto [00:52:11]process_json_proto [00:52:11]json parsed OK: [00:52:11]protocol is kg_v1.0 [00:52:11]action value=close_receipt [00:52:11]process_action close_receipt [00:52:11]cmd_close_receipt [00:52:11]MH_GetDate [00:52:11]Write to MH i2c: F0 00 00 F8 01 E8 [00:52:11]Write i2c OK [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 09 00 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: F0 09 00 F8 01 00 BC 31 20 67 74 2C AD 66 18 [00:52:11]GetLastDocTimeStamp 1730162413 [00:52:11]current date 1730163132 [00:52:11]FM_GetShiftState [00:52:11]SAM_PROTO_GetShiftState [00:52:11]wFMCommunicate request_size=4 [00:52:11]MH_SAM_APDU [00:52:11]CAPDU: 80 13 01 00 [00:52:11]Write to MH i2c: E2 08 00 F9 01 80 13 01 00 00 00 00 00 77 [00:52:11]Write i2c OK [00:52:11]MH_I2C_Read... [00:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:11]Read from MH i2c: E2 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: E2 0E 00 [00:52:11]MH_I2C_Read... [00:52:11]Read from MH i2c: E2 0E 00 F9 01 00 09 00 01 03 27 20 67 00 00 00 00 90 00 34 [00:52:11]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:52:11]wFMCommunicate OK [00:52:11]SAM_PROTO_GetShiftState done [00:52:11]FM_GetShiftState done [00:52:11]opened in 1730160387 [00:52:11]opened+sec_in_day 1730246787 [00:52:11]quantity*price = 70041 [00:52:11]sum+1 = 70043 [00:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.42 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 3 29.10.2024 00:52 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72646 ФПД: 105026931287790 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T005212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72646&fm=105026931287790&tin=02508201610067®Number=0000000000091644&sum=70000 [00:52:12]StoreToDocumentArchive [00:52:12]shift 555 fd 72646 [00:52:12]save to /storage/0555/doc_00072646 [00:52:12]save last doc name /storage/0555/doc_00072646 to /storage/kkm_last_doc_name [00:52:12]save OK [00:52:12]Clear old archive folders... [00:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:52:12]tlvbuf is 00ABA070 [00:52:12]SAM_PROTO_ClearQueue [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 09 00 00 [00:52:12]Write to MH i2c: E2 08 00 06 02 80 09 00 00 00 00 00 00 7A [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 06 02 00 90 00 7C [00:52:12]RAPDU: 90 00 [00:52:12]wFMCommunicate OK [00:52:12]SAM_PROTO_ClearQueue done [00:52:12]KKMCreateOFDPacket [00:52:12]OFDProtocolAddRootSTLVToBuf [00:52:12]FM_MakeSignedData [00:52:12]FM_MakeSignedData [00:52:12]SAM_PROTO_SignData [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 0D 01 02 [00:52:12]Write to MH i2c: E2 08 00 07 02 80 0D 01 02 00 00 00 00 82 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 07 02 00 90 00 7D [00:52:12]RAPDU: 90 00 [00:52:12]wFMCommunicate OK [00:52:12]wFMCommunicate request_size=253 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BC 31 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1B 01 00 35 04 06 00 5F 85 7C EE 66 EE [00:52:12]Write to MH i2c: E2 00 01 08 02 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BC 31 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1B 01 00 35 04 06 00 5F 85 7C EE 66 EE 00 00 60 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 03 00 08 02 00 90 00 7E [00:52:12]RAPDU: 90 00 [00:52:12]wFMCommunicate OK [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 0D 03 02 [00:52:12]Write to MH i2c: E2 08 00 09 02 80 0D 03 02 00 00 00 00 86 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 0B 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 0B 00 09 02 00 E2 72 F2 02 C4 B8 D1 2A 90 00 46 [00:52:12]RAPDU: E2 72 F2 02 C4 B8 D1 2A 90 00 [00:52:12]wFMCommunicate OK [00:52:12]SAM_PROTO_SignData done [00:52:12]FM_MakeSignedData done [00:52:12]CreateOFDProtocolMessage [00:52:12]wFMCommunicate request_size=4 [00:52:12]MH_SAM_APDU [00:52:12]CAPDU: 80 11 00 00 [00:52:12]Write to MH i2c: E2 08 00 0A 02 80 11 00 00 00 00 00 00 86 [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:12]Read from MH i2c: E2 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 17 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: E2 17 00 0A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 DA [00:52:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:52:12]wFMCommunicate OK [00:52:12]CreateOFDProtocolMessage done [00:52:12]OFDSenderStorePacket 72646 [00:52:12]StoreOFDPacket docnum=72646 [00:52:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 3C 4A 00 01 73 D0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BC 31 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1B 01 00 35 04 06 00 5F 85 7C EE 66 EE E2 72 F2 02 C4 B8 D1 2A [00:52:12]CheckFolder [00:52:12]dirname=/storage/ofd_packets [00:52:12]CheckFolder done [00:52:12]ProducePacketName [00:52:12]name=ofd_packets/00072646 [00:52:12]NVStorageSaveData ofd_packets/00072646 [00:52:12]File name is /storage/ofd_packets/00072646 [00:52:12]Write 294 bytes [00:52:12]NVStorageSaveData done [00:52:12]OFDSenderStorePacket done [00:52:12]KKMCreateOFDPacket done [00:52:12]NVStorageSaveData kkm_last_timestamp [00:52:12]File name is /storage/kkm_last_timestamp [00:52:12]Write 4 bytes [00:52:12]NVStorageSaveData done [00:52:12]ExternCall_PrintAddStr [00:52:12]wPrintStart [00:52:12]Write to MH i2c: 01 00 00 0B 02 0D [00:52:12]Write i2c OK [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: 01 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: 01 07 00 [00:52:12]MH_I2C_Read... [00:52:12]Read from MH i2c: 01 07 00 0B 02 00 00 00 00 00 FF 0F 22 [00:52:12]RasterBufferAndPrint [00:52:12]line Счет N : (1)952139 [00:52:12]line ИНН: 02508201610067 [00:52:12]line Контрольно-Кассовый Чек [00:52:12]line ПРОДАЖА [00:52:12]line ТРК (МРК, ГНК) : 61 [00:52:12]line Товар: 50.50.0 [00:52:12]line Super 92 [00:52:12]line 10.240 * 68.40 [00:52:12]line = 700.42 [00:52:12]line НДС 12% НСП 1% [00:52:12]line > о реализуемом товаре [00:52:12]line ОКРУГЛЕНИЕ: -0.42 [00:52:12]line ИТОГО: 700.00 [00:52:12]line Внесено: 700.00 [00:52:12]line СДАЧА: 0.00 [00:52:12]line НСП 1% : 6.20 [00:52:12]line НДС 12% : 74.38 [00:52:12]line Наличными: 700.00 [00:52:12]line Безнал.: 0.00 [00:52:12]line Место: АЗС № 113 "Партнер Нефть" [00:52:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:52:12]line СНО: Общий режим [00:52:12]line Чек 3 29.10.2024 00:52 [00:52:12]line Смена: 555 ФФД: 1.0 [00:52:12]line ЗНМ: 0300000087 [00:52:12]line РНМ: 0000000000091644 [00:52:12]line Версия ККМ: 001 [00:52:12]line ФМ: 0000000000874662 [00:52:12]line ФД: 72646 [00:52:12]line ФПД: 105026931287790 [00:52:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T005212&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72646&fm=105026931287790&tin=02508201610067®Number=0000000000091644&sum=70000 [00:52:13]OFD Sender: Processing packet 72646 [packets to send 277, broken 276] [00:52:13]ProducePacketName [00:52:13]name=ofd_packets/00072646 [00:52:13]OFD Sender: To server: pG, [00:52:13]CommunicateWithHost lk.salyk.kg:30040 [00:52:13]ConnectInit lk.salyk.kg [00:52:13]written 0, free lines is 4095 [00:52:13]recv_with_timeout no data received [00:52:13]Write to MH i2c: 01 00 00 36 02 38 [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 07 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 E1 0C 2C [00:52:13]RasterBufferAndPrint [00:52:13]line [00:52:13]line [00:52:13]line [00:52:13]line [00:52:13]line [00:52:13]written 0, free lines is 3303 [00:52:13]MH_Cut [00:52:13]Write to MH i2c: D1 01 00 3D 02 01 11 [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: D1 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: D1 01 00 [00:52:13]MH_I2C_Read... [00:52:13]Read from MH i2c: D1 01 00 3D 02 00 10 [00:52:13]Write to MH i2c: 01 00 00 3E 02 40 [00:52:13]Write i2c OK [00:52:13]MH_I2C_Read... [00:52:14]*** Cut start [00:52:14]*** Partial cut [00:52:14]*** CUTSNS_PIN = 1 [00:52:14]*** CUTSNS_PIN = 0 [00:52:14]*** Brake cut motor [00:52:15]Connected sock=11 [00:52:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 08 01 00 00 3C 4A 00 01 73 D0 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 07 00 35 30 2E 35 30 2E 30 06 04 08 00 53 75 70 65 72 20 39 32 FF 03 08 00 03 00 28 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 9A 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 BC 31 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C6 1B 01 00 35 04 06 00 5F 85 7C EE 66 EE E2 72 F2 02 C4 B8 D1 2A [00:52:15]Read from MH i2c: 01 [00:52:15]MH_I2C_Read... [00:52:15]*** Stop cut motor [00:52:15]*** Cut end [00:52:15]Read from MH i2c: 01 07 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: 01 07 00 3E 02 00 00 00 00 00 FF 0F 55 [00:52:15]process_action close_receipt done [00:52:15]requested_data is exist [00:52:15]produce_requested_data [00:52:15]requested_item fm.sn is exist - process it [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 11 00 00 [00:52:15]Write to MH i2c: E2 08 00 3F 02 80 11 00 00 00 00 00 00 BB [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 17 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 17 00 3F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 0F [00:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:52:15]wFMCommunicate OK [00:52:15]requested_item fd.num is exist - process it [00:52:15]SAM_PROTO_GetFieldsCounters [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 13 00 00 [00:52:15]Write to MH i2c: E2 08 00 40 02 80 13 00 00 00 00 00 00 BE [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 62 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 62 00 40 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1B 01 00 0E 04 04 00 2B 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 F7 [00:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C6 1B 01 00 0E 04 04 00 2B 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 [00:52:15]wFMCommunicate OK [00:52:15]SAM_PROTO_GetFieldsCounters done [00:52:15]requested_item shift.num is exist - process it [00:52:15]requested_item shift.opened is exist - process it [00:52:15]req_shift_opened [00:52:15]FM_GetShiftState [00:52:15]SAM_PROTO_GetShiftState [00:52:15]wFMCommunicate request_size=4 [00:52:15]MH_SAM_APDU [00:52:15]CAPDU: 80 13 01 00 [00:52:15]Write to MH i2c: E2 08 00 41 02 80 13 01 00 00 00 00 00 C0 [00:52:15]Write i2c OK [00:52:15]MH_I2C_Read... [00:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:52:15]Read from MH i2c: E2 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 0E 00 [00:52:15]MH_I2C_Read... [00:52:15]Read from MH i2c: E2 0E 00 41 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 7D [00:52:15]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:52:15]wFMCommunicate OK [00:52:15]SAM_PROTO_GetShiftState done [00:52:15]FM_GetShiftState done [00:52:15]req_shift_opened done [00:52:15]requested_item shift.open_date is exist - process it [00:52:15]req_shift_open_date [00:52:15]req_shift_open_date done [00:52:15]produce_requested_data done [00:52:15]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72646,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [00:52:15]process_action_free close_receipt [00:52:15]json_value_free [00:52:15]json_value_free done [00:52:15]process_json_proto returns [00:52:15]Send response to host [00:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72646,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [00:52:15]free response buf [00:52:15]execute_script done [00:52:15]execute_script returns [00:52:15]free content buf [00:52:15]Sock 10.Close socket [00:52:15]Sock 10.Thread stoped [00:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 87 EE 47 00 A3 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 34 36 36 32 10 04 04 00 C6 1B 01 00 F4 03 04 00 7B DC 1F 67 B6 04 01 00 00 AD 2A 06 E0 2A F8 9F 65 [00:52:15]CommunicateWithHost err = 0 [00:52:15]CheckOFDResponse [00:52:15]1017 (14) - 77093643461234 [00:52:15]1041 (16) - 0000000000874662 [00:52:15]1040 (4) - 72646 [00:52:15]1012 (4) - 28.10.2024 18:48 [00:52:15]1206 (1) - 0 [00:52:15]OFD Sender: Remove packet 72646 [00:52:15]ProducePacketName [00:52:15]name=ofd_packets/00072646 [00:52:15]NVStorageDeleteData [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:25]recv_with_timeout no data received [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:36]recv_with_timeout no data received [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:05]recv_with_timeout no data received [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:23]recv_with_timeout no data received [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:47]accept exits with 9 [00:55:47]New connection [00:55:47]New thread 3067194724 created [00:55:47]Thread 3067338084 joined [00:55:47]Waiting for new connection... [00:55:47] Sock 9.Parse request [00:55:47]Sock 9.Check first char [00:55:47]Sock 9.First char is OK [00:55:47]request: POST /json_proto HTTP/1.0 [00:55:47]Method: POST [00:55:47]URL: /json_proto [00:55:47]Method is POST - this is cgi request [00:55:47]url: /json_proto [00:55:47]query_string will be loaded in cgi processing [00:55:47]execute_cgi json_proto POST (null) [00:55:47]execute_cgi path=json_proto method=POST [00:55:47]POST find Content-Length [00:55:47]Host: 172.17.43.195:8080 [00:55:47]Content-Length: 792 [00:55:47]Content-Type: application/json [00:55:47] [00:55:47]POST finish read [00:55:47]Found Content-Length = 792 [00:55:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:47]execute_script... [00:55:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53911", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:55:47]POST & json_proto [00:55:47]process_json_proto [00:55:47]json parsed OK: [00:55:47]protocol is kg_v1.0 [00:55:47]action value=close_receipt [00:55:47]process_action close_receipt [00:55:47]cmd_close_receipt [00:55:47]MH_GetDate [00:55:47]Write to MH i2c: F0 00 00 42 02 33 [00:55:47]Write i2c OK [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: F0 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: F0 09 00 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: F0 09 00 42 02 00 94 32 20 67 74 2C AD 66 3C [00:55:47]GetLastDocTimeStamp 1730163132 [00:55:47]current date 1730163348 [00:55:47]FM_GetShiftState [00:55:47]SAM_PROTO_GetShiftState [00:55:47]wFMCommunicate request_size=4 [00:55:47]MH_SAM_APDU [00:55:47]CAPDU: 80 13 01 00 [00:55:47]Write to MH i2c: E2 08 00 43 02 80 13 01 00 00 00 00 00 C2 [00:55:47]Write i2c OK [00:55:47]MH_I2C_Read... [00:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:47]Read from MH i2c: E2 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 0E 00 [00:55:47]MH_I2C_Read... [00:55:47]Read from MH i2c: E2 0E 00 43 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 7F [00:55:47]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:55:47]wFMCommunicate OK [00:55:47]SAM_PROTO_GetShiftState done [00:55:47]FM_GetShiftState done [00:55:47]opened in 1730160387 [00:55:47]opened+sec_in_day 1730246787 [00:55:47]quantity*price = 0 [00:55:47]sum+1 = 1 [00:55:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 4 29.10.2024 00:55 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: Топливная Карта 53911 ФМ: 0000000000874662 ФД: 72647 ФПД: 216043164072810 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T005548&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72647&fm=216043164072810&tin=02508201610067®Number=0000000000091644&sum=0 [00:55:48]StoreToDocumentArchive [00:55:48]shift 555 fd 72647 [00:55:48]save to /storage/0555/doc_00072647 [00:55:48]save last doc name /storage/0555/doc_00072647 to /storage/kkm_last_doc_name [00:55:48]save OK [00:55:48]Clear old archive folders... [00:55:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:55:48]tlvbuf is 00ABFB00 [00:55:48]SAM_PROTO_ClearQueue [00:55:48]wFMCommunicate request_size=4 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 09 00 00 [00:55:48]Write to MH i2c: E2 08 00 50 02 80 09 00 00 00 00 00 00 C4 [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 50 02 00 90 00 C6 [00:55:48]RAPDU: 90 00 [00:55:48]wFMCommunicate OK [00:55:48]SAM_PROTO_ClearQueue done [00:55:48]KKMCreateOFDPacket [00:55:48]OFDProtocolAddRootSTLVToBuf [00:55:48]FM_MakeSignedData [00:55:48]FM_MakeSignedData [00:55:48]SAM_PROTO_SignData [00:55:48]wFMCommunicate request_size=4 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 0D 01 02 [00:55:48]Write to MH i2c: E2 08 00 51 02 80 0D 01 02 00 00 00 00 CC [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:55:48]Read from MH i2c: E2 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 [00:55:48]MH_I2C_Read... [00:55:48]Read from MH i2c: E2 03 00 51 02 00 90 00 C7 [00:55:48]RAPDU: 90 00 [00:55:48]wFMCommunicate OK [00:55:48]wFMCommunicate request_size=255 [00:55:48]MH_SAM_APDU [00:55:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 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 04 00 00 00 F4 03 04 00 94 32 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1B 01 00 35 04 06 00 C4 [00:55:48]Write to MH i2c: E2 02 01 52 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 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 04 00 00 00 F4 03 04 00 94 32 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1B 01 00 35 04 06 00 C4 00 00 32 [00:55:48]Write i2c OK [00:55:48]MH_I2C_Read... [00:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:49]Read from MH i2c: E2 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 03 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 03 00 52 02 00 90 00 C8 [00:55:49]RAPDU: 90 00 [00:55:49]wFMCommunicate OK [00:55:49]wFMCommunicate request_size=10 [00:55:49]MH_SAM_APDU [00:55:49]CAPDU: 80 0D 02 02 05 7D 78 0C FB 6A [00:55:49]Write to MH i2c: E2 0D 00 53 02 80 0D 02 02 05 00 7D 78 0C FB 6A 00 00 3F [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:55:49]Read from MH i2c: E2 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 03 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 03 00 53 02 00 90 00 C9 [00:55:49]RAPDU: 90 00 [00:55:49]wFMCommunicate OK [00:55:49]wFMCommunicate request_size=4 [00:55:49]MH_SAM_APDU [00:55:49]CAPDU: 80 0D 03 02 [00:55:49]Write to MH i2c: E2 08 00 54 02 80 0D 03 02 00 00 00 00 D1 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:55:49]Read from MH i2c: E2 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 0B 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 0B 00 54 02 00 F5 4C 0A 35 60 8E D7 AA 90 00 C1 [00:55:49]RAPDU: F5 4C 0A 35 60 8E D7 AA 90 00 [00:55:49]wFMCommunicate OK [00:55:49]SAM_PROTO_SignData done [00:55:49]FM_MakeSignedData done [00:55:49]CreateOFDProtocolMessage [00:55:49]wFMCommunicate request_size=4 [00:55:49]MH_SAM_APDU [00:55:49]CAPDU: 80 11 00 00 [00:55:49]Write to MH i2c: E2 08 00 55 02 80 11 00 00 00 00 00 00 D1 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:49]Read from MH i2c: E2 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 17 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: E2 17 00 55 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 25 [00:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:55:49]wFMCommunicate OK [00:55:49]CreateOFDProtocolMessage done [00:55:49]OFDSenderStorePacket 72647 [00:55:49]StoreOFDPacket docnum=72647 [00:55:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 36 07 01 B5 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 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 04 00 00 00 F4 03 04 00 94 32 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1B 01 00 35 04 06 00 C4 7D 78 0C FB 6A F5 4C 0A 35 60 8E D7 AA [00:55:49]CheckFolder [00:55:49]dirname=/storage/ofd_packets [00:55:49]CheckFolder done [00:55:49]ProducePacketName [00:55:49]name=ofd_packets/00072647 [00:55:49]NVStorageSaveData ofd_packets/00072647 [00:55:49]File name is /storage/ofd_packets/00072647 [00:55:49]Write 301 bytes [00:55:49]NVStorageSaveData done [00:55:49]OFDSenderStorePacket done [00:55:49]KKMCreateOFDPacket done [00:55:49]NVStorageSaveData kkm_last_timestamp [00:55:49]File name is /storage/kkm_last_timestamp [00:55:49]Write 4 bytes [00:55:49]NVStorageSaveData done [00:55:49]ExternCall_PrintAddStr [00:55:49]wPrintStart [00:55:49]Write to MH i2c: 01 00 00 56 02 58 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 56 02 00 00 00 00 00 FF 0F 6D [00:55:49]RasterBufferAndPrint [00:55:49]line Счет N : (1)952140 [00:55:49]line ИНН: 02508201610067 [00:55:49]line Контрольно-Кассовый Чек [00:55:49]line ПРОДАЖА [00:55:49]line ТРК (МРК, ГНК) : 53 [00:55:49]line Товар: 2710124130 [00:55:49]line Аи-92-К-5 [00:55:49]line 10.000 * 0.00 [00:55:49]line = 0.00 [00:55:49]line НДС 12% НСП 1% [00:55:49]line > о реализуемом товаре [00:55:49]line ИТОГО: 0.00 [00:55:49]line НСП 1% : 0.00 [00:55:49]line НДС 12% : 0.00 [00:55:49]line Наличными: 0.00 [00:55:49]line Безнал.: 0.00 [00:55:49]line Место: АЗС № 113 "Партнер Нефть" [00:55:49]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [00:55:49]line СНО: Общий режим [00:55:49]line Чек 4 29.10.2024 00:55 [00:55:49]line Смена: 555 ФФД: 1.0 [00:55:49]line ЗНМ: 0300000087 [00:55:49]line РНМ: 0000000000091644 [00:55:49]line Версия ККМ: 001 [00:55:49]line Талоны: Топливная Карта [00:55:49]line 53911 [00:55:49]line ФМ: 0000000000874662 [00:55:49]line ФД: 72647 [00:55:49]line ФПД: 216043164072810 [00:55:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T005548&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72647&fm=216043164072810&tin=02508201610067®Number=0000000000091644&sum=0 [00:55:49]written 0, free lines is 4095 [00:55:49]OFD Sender: Processing packet 72647 [packets to send 277, broken 276] [00:55:49]ProducePacketName [00:55:49]name=ofd_packets/00072647 [00:55:49]OFD Sender: To server: pG, [00:55:49]CommunicateWithHost lk.salyk.kg:30040 [00:55:49]ConnectInit lk.salyk.kg [00:55:49]Write to MH i2c: 01 00 00 80 02 82 [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: 01 07 00 80 02 00 00 00 00 00 E6 0C 7B [00:55:49]RasterBufferAndPrint [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]line [00:55:49]written 0, free lines is 3310 [00:55:49]MH_Cut [00:55:49]Write to MH i2c: D1 01 00 87 02 01 5B [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 01 00 [00:55:49]MH_I2C_Read... [00:55:49]Read from MH i2c: D1 01 00 87 02 00 5A [00:55:49]Write to MH i2c: 01 00 00 88 02 8A [00:55:49]Write i2c OK [00:55:49]MH_I2C_Read... [00:55:50]*** Cut start [00:55:50]*** Partial cut [00:55:50]*** CUTSNS_PIN = 1 [00:55:50]*** CUTSNS_PIN = 0 [00:55:50]*** Brake cut motor [00:55:51]Read from MH i2c: 01 [00:55:51]MH_I2C_Read... [00:55:51]*** Stop cut motor [00:55:51]*** Cut end [00:55:51]Read from MH i2c: 01 07 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [00:55:51]process_action close_receipt done [00:55:51]requested_data is exist [00:55:51]produce_requested_data [00:55:51]requested_item fm.sn is exist - process it [00:55:51]wFMCommunicate request_size=4 [00:55:51]MH_SAM_APDU [00:55:51]CAPDU: 80 11 00 00 [00:55:51]Write to MH i2c: E2 08 00 89 02 80 11 00 00 00 00 00 00 05 [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:55:51]Read from MH i2c: E2 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 17 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 17 00 89 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 59 [00:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [00:55:51]wFMCommunicate OK [00:55:51]requested_item fd.num is exist - process it [00:55:51]SAM_PROTO_GetFieldsCounters [00:55:51]wFMCommunicate request_size=4 [00:55:51]MH_SAM_APDU [00:55:51]CAPDU: 80 13 00 00 [00:55:51]Write to MH i2c: E2 08 00 8A 02 80 13 00 00 00 00 00 00 08 [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:55:51]Read from MH i2c: E2 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 62 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 62 00 8A 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1B 01 00 0E 04 04 00 2B 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 45 [00:55:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C7 1B 01 00 0E 04 04 00 2B 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 [00:55:51]wFMCommunicate OK [00:55:51]SAM_PROTO_GetFieldsCounters done [00:55:51]requested_item shift.num is exist - process it [00:55:51]requested_item shift.opened is exist - process it [00:55:51]req_shift_opened [00:55:51]FM_GetShiftState [00:55:51]SAM_PROTO_GetShiftState [00:55:51]wFMCommunicate request_size=4 [00:55:51]MH_SAM_APDU [00:55:51]CAPDU: 80 13 01 00 [00:55:51]Write to MH i2c: E2 08 00 8B 02 80 13 01 00 00 00 00 00 0A [00:55:51]Write i2c OK [00:55:51]MH_I2C_Read... [00:55:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:55:51]Read from MH i2c: E2 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 0E 00 [00:55:51]MH_I2C_Read... [00:55:51]Read from MH i2c: E2 0E 00 8B 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 C7 [00:55:51]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [00:55:51]wFMCommunicate OK [00:55:51]SAM_PROTO_GetShiftState done [00:55:51]FM_GetShiftState done [00:55:51]req_shift_opened done [00:55:51]requested_item shift.open_date is exist - process it [00:55:51]req_shift_open_date [00:55:51]req_shift_open_date done [00:55:51]produce_requested_data done [00:55:51]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72647,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [00:55:51]process_action_free close_receipt [00:55:51]json_value_free [00:55:51]json_value_free done [00:55:51]process_json_proto returns [00:55:51]Send response to host [00:55:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72647,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [00:55:51]free response buf [00:55:51]execute_script done [00:55:51]execute_script returns [00:55:51]free content buf [00:55:51]Sock 9.Close socket [00:55:51]Sock 9.Thread stoped [00:56:00]recv_with_timeout no data received [00:56:16]recv_with_timeout no data received [00:56:29]recv_with_timeout no data received [00:58:03]ConnectInit Can't connect to host [00:58:03]CommunicateWithHost connect error [00:58:03]CommunicateWithHost err = -1 [00:58:03]OFD Sender: Server communicate error [00:58:08]OFD Sender: Processing packet 72647 [packets to send 277, broken 276] [00:58:08]ProducePacketName [00:58:08]name=ofd_packets/00072647 [00:58:08]OFD Sender: To server: pG, [00:58:08]CommunicateWithHost lk.salyk.kg:30040 [00:58:08]ConnectInit lk.salyk.kg [00:58:09]Connected sock=6 [00:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0F 01 00 00 96 36 07 01 B5 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 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 04 00 00 00 F4 03 04 00 94 32 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1B 01 00 35 04 06 00 C4 7D 78 0C FB 6A F5 4C 0A 35 60 8E D7 AA [00:58:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 79 DF 47 00 CC 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C7 1B 01 00 F4 03 04 00 DD DD 1F 67 B6 04 01 00 00 8D 9A 5B 43 2B 18 78 8F [00:58:10]CommunicateWithHost err = 0 [00:58:10]CheckOFDResponse [00:58:10]1017 (14) - 77093643461234 [00:58:10]1041 (16) - 0000000000874662 [00:58:10]1040 (4) - 72647 [00:58:10]1012 (4) - 28.10.2024 18:54 [00:58:10]1206 (1) - 0 [00:58:10]OFD Sender: Remove packet 72647 [00:58:10]ProducePacketName [00:58:10]name=ofd_packets/00072647 [00:58:10]NVStorageDeleteData [00:58:10]OFD Sender: No OFD packet to send [00:58:15]OFD Sender: No OFD packet to send [00:58:20]OFD Sender: No OFD packet to send [00:58:25]OFD Sender: No OFD packet to send [00:58:30]OFD Sender: No OFD packet to send [00:58:35]OFD Sender: No OFD packet to send [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:14]recv_with_timeout no data received [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:37]recv_with_timeout no data received [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:54]recv_with_timeout no data received [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:33]recv_with_timeout no data received [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:00:58]recv_with_timeout no data received [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:46]recv_with_timeout no data received [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:05]recv_with_timeout no data received [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:32]recv_with_timeout no data received [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:24]recv_with_timeout no data received [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:37]recv_with_timeout no data received [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:55]recv_with_timeout no data received [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:13]recv_with_timeout no data received [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:45]recv_with_timeout no data received [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:01]OFD Sender: No OFD packet to send [01:05:06]OFD Sender: No OFD packet to send [01:05:11]OFD Sender: No OFD packet to send [01:05:16]OFD Sender: No OFD packet to send [01:05:21]OFD Sender: No OFD packet to send [01:05:26]OFD Sender: No OFD packet to send [01:05:31]OFD Sender: No OFD packet to send [01:05:36]OFD Sender: No OFD packet to send [01:05:41]OFD Sender: No OFD packet to send [01:05:46]OFD Sender: No OFD packet to send [01:05:51]OFD Sender: No OFD packet to send [01:05:56]OFD Sender: No OFD packet to send [01:06:01]OFD Sender: No OFD packet to send [01:06:06]OFD Sender: No OFD packet to send [01:06:11]OFD Sender: No OFD packet to send [01:06:12]recv_with_timeout no data received [01:06:16]OFD Sender: No OFD packet to send [01:06:21]OFD Sender: No OFD packet to send [01:06:26]OFD Sender: No OFD packet to send [01:06:31]OFD Sender: No OFD packet to send [01:06:36]OFD Sender: No OFD packet to send [01:06:41]OFD Sender: No OFD packet to send [01:06:46]OFD Sender: No OFD packet to send [01:06:51]OFD Sender: No OFD packet to send [01:06:56]OFD Sender: No OFD packet to send [01:07:01]OFD Sender: No OFD packet to send [01:07:06]OFD Sender: No OFD packet to send [01:07:11]OFD Sender: No OFD packet to send [01:07:14]recv_with_timeout no data received [01:07:16]OFD Sender: No OFD packet to send [01:07:21]OFD Sender: No OFD packet to send [01:07:26]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:32]recv_with_timeout no data received [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:42]recv_with_timeout no data received [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:22]accept exits with 7 [01:09:22]New connection [01:09:22]New thread 3067338084 created [01:09:22]Thread 3067194724 joined [01:09:22]Waiting for new connection... [01:09:22] Sock 7.Parse request [01:09:22]Sock 7.Check first char [01:09:22]Sock 7.First char is OK [01:09:22]request: POST /json_proto HTTP/1.0 [01:09:22]Method: POST [01:09:22]URL: /json_proto [01:09:22]Method is POST - this is cgi request [01:09:22]url: /json_proto [01:09:22]query_string will be loaded in cgi processing [01:09:22]execute_cgi json_proto POST (null) [01:09:22]execute_cgi path=json_proto method=POST [01:09:22]POST find Content-Length [01:09:22]Host: 172.17.43.195:8080 [01:09:22]Content-Length: 685 [01:09:22]Content-Type: application/json [01:09:22] [01:09:22]POST finish read [01:09:22]Found Content-Length = 685 [01:09:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [01:09:22]execute_script... [01:09: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)952141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 38.570, "sum" : 1500.37, "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" ] } } [01:09:22]POST & json_proto [01:09:22]process_json_proto [01:09:22]json parsed OK: [01:09:22]protocol is kg_v1.0 [01:09:22]action value=close_receipt [01:09:22]process_action close_receipt [01:09:22]cmd_close_receipt [01:09:22]MH_GetDate [01:09:22]Write to MH i2c: F0 00 00 8C 02 7D [01:09:22]Write i2c OK [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: F0 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: F0 09 00 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: F0 09 00 8C 02 00 C3 35 20 67 74 2C AD 66 B8 [01:09:22]GetLastDocTimeStamp 1730163348 [01:09:22]current date 1730164163 [01:09:22]FM_GetShiftState [01:09:22]SAM_PROTO_GetShiftState [01:09:22]wFMCommunicate request_size=4 [01:09:22]MH_SAM_APDU [01:09:22]CAPDU: 80 13 01 00 [01:09:22]Write to MH i2c: E2 08 00 8D 02 80 13 01 00 00 00 00 00 0C [01:09:22]Write i2c OK [01:09:22]MH_I2C_Read... [01:09:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:22]Read from MH i2c: E2 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: E2 0E 00 [01:09:22]MH_I2C_Read... [01:09:22]Read from MH i2c: E2 0E 00 8D 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 C9 [01:09:22]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:09:22]wFMCommunicate OK [01:09:22]SAM_PROTO_GetShiftState done [01:09:22]FM_GetShiftState done [01:09:22]opened in 1730160387 [01:09:22]opened+sec_in_day 1730246787 [01:09:22]quantity*price = 150037 [01:09:22]sum+1 = 150038 [01:09:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 5 29.10.2024 01:09 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72648 ФПД: 199704618284263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T010923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72648&fm=199704618284263&tin=02508201610067®Number=0000000000091644&sum=150000 [01:09:23]StoreToDocumentArchive [01:09:23]shift 555 fd 72648 [01:09:23]save to /storage/0555/doc_00072648 [01:09:23]save last doc name /storage/0555/doc_00072648 to /storage/kkm_last_doc_name [01:09:23]save OK [01:09:23]Clear old archive folders... [01:09:23]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:09:23]tlvbuf is 00AC1410 [01:09:23]SAM_PROTO_ClearQueue [01:09:23]wFMCommunicate request_size=4 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 09 00 00 [01:09:23]Write to MH i2c: E2 08 00 9A 02 80 09 00 00 00 00 00 00 0E [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 9A 02 00 90 00 10 [01:09:23]RAPDU: 90 00 [01:09:23]wFMCommunicate OK [01:09:23]SAM_PROTO_ClearQueue done [01:09:23]KKMCreateOFDPacket [01:09:23]OFDProtocolAddRootSTLVToBuf [01:09:23]FM_MakeSignedData [01:09:23]FM_MakeSignedData [01:09:23]SAM_PROTO_SignData [01:09:23]wFMCommunicate request_size=4 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 0D 01 02 [01:09:23]Write to MH i2c: E2 08 00 9B 02 80 0D 01 02 00 00 00 00 16 [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 9B 02 00 90 00 11 [01:09:23]RAPDU: 90 00 [01:09:23]wFMCommunicate OK [01:09:23]wFMCommunicate request_size=255 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C3 35 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1B 01 00 35 04 06 00 B5 A1 [01:09:23]Write to MH i2c: E2 02 01 9C 02 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C3 35 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1B 01 00 35 04 06 00 B5 A1 00 00 B8 [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 9C 02 00 90 00 12 [01:09:23]RAPDU: 90 00 [01:09:23]wFMCommunicate OK [01:09:23]wFMCommunicate request_size=9 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 0D 02 02 04 5A D5 34 E7 [01:09:23]Write to MH i2c: E2 0C 00 9D 02 80 0D 02 02 04 00 5A D5 34 E7 00 00 6B [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 03 00 9D 02 00 90 00 13 [01:09:23]RAPDU: 90 00 [01:09:23]wFMCommunicate OK [01:09:23]wFMCommunicate request_size=4 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 0D 03 02 [01:09:23]Write to MH i2c: E2 08 00 9E 02 80 0D 03 02 00 00 00 00 1B [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 0B 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 0B 00 9E 02 00 15 B6 6B 4E D4 1B 97 70 90 00 96 [01:09:23]RAPDU: 15 B6 6B 4E D4 1B 97 70 90 00 [01:09:23]wFMCommunicate OK [01:09:23]SAM_PROTO_SignData done [01:09:23]FM_MakeSignedData done [01:09:23]CreateOFDProtocolMessage [01:09:23]wFMCommunicate request_size=4 [01:09:23]MH_SAM_APDU [01:09:23]CAPDU: 80 11 00 00 [01:09:23]Write to MH i2c: E2 08 00 9F 02 80 11 00 00 00 00 00 00 1B [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:23]Read from MH i2c: E2 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 17 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: E2 17 00 9F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 6F [01:09:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:09:23]wFMCommunicate OK [01:09:23]CreateOFDProtocolMessage done [01:09:23]OFDSenderStorePacket 72648 [01:09:23]StoreOFDPacket docnum=72648 [01:09:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 42 AD 06 01 7C 1F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C3 35 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1B 01 00 35 04 06 00 B5 A1 5A D5 34 E7 15 B6 6B 4E D4 1B 97 70 [01:09:23]CheckFolder [01:09:23]dirname=/storage/ofd_packets [01:09:23]CheckFolder done [01:09:23]ProducePacketName [01:09:23]name=ofd_packets/00072648 [01:09:23]NVStorageSaveData ofd_packets/00072648 [01:09:23]File name is /storage/ofd_packets/00072648 [01:09:23]Write 300 bytes [01:09:23]NVStorageSaveData done [01:09:23]OFDSenderStorePacket done [01:09:23]KKMCreateOFDPacket done [01:09:23]NVStorageSaveData kkm_last_timestamp [01:09:23]File name is /storage/kkm_last_timestamp [01:09:23]Write 4 bytes [01:09:23]NVStorageSaveData done [01:09:23]ExternCall_PrintAddStr [01:09:23]wPrintStart [01:09:23]Write to MH i2c: 01 00 00 A0 02 A2 [01:09:23]Write i2c OK [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: 01 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: 01 07 00 [01:09:23]MH_I2C_Read... [01:09:23]Read from MH i2c: 01 07 00 A0 02 00 00 00 00 00 FF 0F B7 [01:09:23]RasterBufferAndPrint [01:09:23]line Счет N : (1)952141 [01:09:23]line ИНН: 02508201610067 [01:09:23]line Контрольно-Кассовый Чек [01:09:23]line ПРОДАЖА [01:09:23]line ТРК (МРК, ГНК) : 71 [01:09:23]line Товар: 2711190000 [01:09:23]line ГАЗ-К-3 [01:09:23]line 38.570 * 38.90 [01:09:23]line = 1500.37 [01:09:23]line НДС 12% НСП 1% [01:09:23]line > о реализуемом товаре [01:09:23]line ОКРУГЛЕНИЕ: -0.37 [01:09:23]line ИТОГО: 1500.00 [01:09:23]line Внесено: 1500.00 [01:09:23]line СДАЧА: 0.00 [01:09:23]line НСП 1% : 13.28 [01:09:23]line НДС 12% : 159.33 [01:09:23]line Наличными: 1500.00 [01:09:23]line Безнал.: 0.00 [01:09:23]line Место: АЗС № 113 "Партнер Нефть" [01:09:23]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:09:23]line СНО: Общий режим [01:09:23]line Чек 5 29.10.2024 01:09 [01:09:23]line Смена: 555 ФФД: 1.0 [01:09:23]line ЗНМ: 0300000087 [01:09:23]line РНМ: 0000000000091644 [01:09:23]line Версия ККМ: 001 [01:09:23]line ФМ: 0000000000874662 [01:09:23]line ФД: 72648 [01:09:23]line ФПД: 199704618284263 [01:09:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T010923&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72648&fm=199704618284263&tin=02508201610067®Number=0000000000091644&sum=150000 [01:09:24]OFD Sender: Processing packet 72648 [packets to send 277, broken 276] [01:09:24]ProducePacketName [01:09:24]name=ofd_packets/00072648 [01:09:24]OFD Sender: To server: pG, [01:09:24]CommunicateWithHost lk.salyk.kg:30040 [01:09:24]ConnectInit lk.salyk.kg [01:09:24]written 0, free lines is 4095 [01:09:24]Write to MH i2c: 01 00 00 CB 02 CD [01:09:24]Write i2c OK [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: 01 [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: 01 07 00 [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: 01 07 00 CB 02 00 00 00 00 00 E0 0C C0 [01:09:24]RasterBufferAndPrint [01:09:24]line [01:09:24]line [01:09:24]line [01:09:24]line [01:09:24]line [01:09:24]written 0, free lines is 3301 [01:09:24]MH_Cut [01:09:24]Write to MH i2c: D1 01 00 D2 02 01 A6 [01:09:24]Write i2c OK [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: D1 [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: D1 01 00 [01:09:24]MH_I2C_Read... [01:09:24]Read from MH i2c: D1 01 00 D2 02 00 A5 [01:09:24]Write to MH i2c: 01 00 00 D3 02 D5 [01:09:24]Write i2c OK [01:09:24]MH_I2C_Read... [01:09:24]Connected sock=10 [01:09:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 42 AD 06 01 7C 1F 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 AA 96 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 15 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 C3 35 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1B 01 00 35 04 06 00 B5 A1 5A D5 34 E7 15 B6 6B 4E D4 1B 97 70 [01:09:25]*** Cut start [01:09:25]*** Partial cut [01:09:25]*** CUTSNS_PIN = 1 [01:09:25]*** CUTSNS_PIN = 0 [01:09:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 EF 92 47 00 E7 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C8 1B 01 00 F4 03 04 00 81 E0 1F 67 B6 04 01 00 00 FC 20 BD 72 6C F5 06 9E [01:09:25]CommunicateWithHost err = 0 [01:09:25]CheckOFDResponse [01:09:25]1017 (14) - 77093643461234 [01:09:25]1041 (16) - 0000000000874662 [01:09:25]1040 (4) - 72648 [01:09:25]1012 (4) - 28.10.2024 19:05 [01:09:25]1206 (1) - 0 [01:09:25]OFD Sender: Remove packet 72648 [01:09:25]ProducePacketName [01:09:25]name=ofd_packets/00072648 [01:09:25]NVStorageDeleteData [01:09:25]*** Brake cut motor [01:09:25]Read from MH i2c: 01 [01:09:25]MH_I2C_Read... [01:09:25]*** Stop cut motor [01:09:25]*** Cut end [01:09:25]Read from MH i2c: 01 07 00 [01:09:25]MH_I2C_Read... [01:09:25]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [01:09:25]process_action close_receipt done [01:09:25]requested_data is exist [01:09:25]produce_requested_data [01:09:25]requested_item fm.sn is exist - process it [01:09:25]wFMCommunicate request_size=4 [01:09:25]MH_SAM_APDU [01:09:25]CAPDU: 80 11 00 00 [01:09:25]Write to MH i2c: E2 08 00 D4 02 80 11 00 00 00 00 00 00 50 [01:09:25]Write i2c OK [01:09:25]MH_I2C_Read... [01:09:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:26]Read from MH i2c: E2 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 17 00 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 17 00 D4 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 A4 [01:09:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:09:26]wFMCommunicate OK [01:09:26]requested_item fd.num is exist - process it [01:09:26]SAM_PROTO_GetFieldsCounters [01:09:26]wFMCommunicate request_size=4 [01:09:26]MH_SAM_APDU [01:09:26]CAPDU: 80 13 00 00 [01:09:26]Write to MH i2c: E2 08 00 D5 02 80 13 00 00 00 00 00 00 53 [01:09:26]Write i2c OK [01:09:26]MH_I2C_Read... [01:09:26]OFD Sender: No OFD packet to send [01:09:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:26]Read from MH i2c: E2 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 62 00 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 62 00 D5 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1B 01 00 0E 04 04 00 2B 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:09: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C8 1B 01 00 0E 04 04 00 2B 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:09:26]wFMCommunicate OK [01:09:26]SAM_PROTO_GetFieldsCounters done [01:09:26]requested_item shift.num is exist - process it [01:09:26]requested_item shift.opened is exist - process it [01:09:26]req_shift_opened [01:09:26]FM_GetShiftState [01:09:26]SAM_PROTO_GetShiftState [01:09:26]wFMCommunicate request_size=4 [01:09:26]MH_SAM_APDU [01:09:26]CAPDU: 80 13 01 00 [01:09:26]Write to MH i2c: E2 08 00 D6 02 80 13 01 00 00 00 00 00 55 [01:09:26]Write i2c OK [01:09:26]MH_I2C_Read... [01:09:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:26]Read from MH i2c: E2 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 0E 00 [01:09:26]MH_I2C_Read... [01:09:26]Read from MH i2c: E2 0E 00 D6 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 12 [01:09:26]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:09:26]wFMCommunicate OK [01:09:26]SAM_PROTO_GetShiftState done [01:09:26]FM_GetShiftState done [01:09:26]req_shift_opened done [01:09:26]requested_item shift.open_date is exist - process it [01:09:26]req_shift_open_date [01:09:26]req_shift_open_date done [01:09:26]produce_requested_data done [01:09:26]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72648,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:09:26]process_action_free close_receipt [01:09:26]json_value_free [01:09:26]json_value_free done [01:09:26]process_json_proto returns [01:09:26]Send response to host [01:09:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72648,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:09:26]free response buf [01:09:26]execute_script done [01:09:26]execute_script returns [01:09:26]free content buf [01:09:26]Sock 7.Close socket [01:09:26]Sock 7.Thread stoped [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:43]recv_with_timeout no data received [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:01]OFD Sender: No OFD packet to send [01:11:06]OFD Sender: No OFD packet to send [01:11:11]OFD Sender: No OFD packet to send [01:11:16]OFD Sender: No OFD packet to send [01:11:21]OFD Sender: No OFD packet to send [01:11:26]OFD Sender: No OFD packet to send [01:11:31]OFD Sender: No OFD packet to send [01:11:36]OFD Sender: No OFD packet to send [01:11:41]OFD Sender: No OFD packet to send [01:11:46]OFD Sender: No OFD packet to send [01:11:51]OFD Sender: No OFD packet to send [01:11:56]OFD Sender: No OFD packet to send [01:12:01]OFD Sender: No OFD packet to send [01:12:06]OFD Sender: No OFD packet to send [01:12:11]OFD Sender: No OFD packet to send [01:12:16]OFD Sender: No OFD packet to send [01:12:21]OFD Sender: No OFD packet to send [01:12:26]OFD Sender: No OFD packet to send [01:12:31]OFD Sender: No OFD packet to send [01:12:36]OFD Sender: No OFD packet to send [01:12:41]OFD Sender: No OFD packet to send [01:12:46]OFD Sender: No OFD packet to send [01:12:46]recv_with_timeout no data received [01:12:51]OFD Sender: No OFD packet to send [01:12:56]OFD Sender: No OFD packet to send [01:12:57]recv_with_timeout no data received [01:13:01]OFD Sender: No OFD packet to send [01:13:06]OFD Sender: No OFD packet to send [01:13:07]recv_with_timeout no data received [01:13:11]OFD Sender: No OFD packet to send [01:13:16]OFD Sender: No OFD packet to send [01:13:21]OFD Sender: No OFD packet to send [01:13:26]OFD Sender: No OFD packet to send [01:13:30]recv_with_timeout no data received [01:13:31]OFD Sender: No OFD packet to send [01:13:36]OFD Sender: No OFD packet to send [01:13:40]recv_with_timeout no data received [01:13:41]OFD Sender: No OFD packet to send [01:13:46]OFD Sender: No OFD packet to send [01:13:51]OFD Sender: No OFD packet to send [01:13:56]OFD Sender: No OFD packet to send [01:14:01]OFD Sender: No OFD packet to send [01:14:06]OFD Sender: No OFD packet to send [01:14:11]OFD Sender: No OFD packet to send [01:14:16]OFD Sender: No OFD packet to send [01:14:21]OFD Sender: No OFD packet to send [01:14:26]OFD Sender: No OFD packet to send [01:14:31]OFD Sender: No OFD packet to send [01:14:36]OFD Sender: No OFD packet to send [01:14:40]recv_with_timeout no data received [01:14:41]OFD Sender: No OFD packet to send [01:14:46]OFD Sender: No OFD packet to send [01:14:50]recv_with_timeout no data received [01:14:51]OFD Sender: No OFD packet to send [01:14:56]OFD Sender: No OFD packet to send [01:14:56]accept exits with 9 [01:14:56]New connection [01:14:56]New thread 3067194724 created [01:14:56]Thread 3067338084 joined [01:14:56]Waiting for new connection... [01:14:56] Sock 9.Parse request [01:14:56]Sock 9.Check first char [01:14:56]Sock 9.First char is OK [01:14:56]request: POST /json_proto HTTP/1.0 [01:14:56]Method: POST [01:14:56]URL: /json_proto [01:14:56]Method is POST - this is cgi request [01:14:56]url: /json_proto [01:14:56]query_string will be loaded in cgi processing [01:14:56]execute_cgi json_proto POST (null) [01:14:56]execute_cgi path=json_proto method=POST [01:14:56]POST find Content-Length [01:14:56]Host: 172.17.43.195:8080 [01:14:56]Content-Length: 687 [01:14:56]Content-Type: application/json [01:14:56] [01:14:56]POST finish read [01:14:56]Found Content-Length = 687 [01:14:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 38.730, "sum" : 2951.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2951.00, "payments": [ { "type": 0, "sum" : 2951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:56]execute_script... [01:14:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 38.730, "sum" : 2951.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2951.00, "payments": [ { "type": 0, "sum" : 2951.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:14:56]POST & json_proto [01:14:56]process_json_proto [01:14:56]json parsed OK: [01:14:56]protocol is kg_v1.0 [01:14:56]action value=close_receipt [01:14:56]process_action close_receipt [01:14:56]cmd_close_receipt [01:14:56]MH_GetDate [01:14:56]Write to MH i2c: F0 00 00 D7 02 C8 [01:14:56]Write i2c OK [01:14:56]MH_I2C_Read... [01:14:56]Read from MH i2c: F0 [01:14:56]MH_I2C_Read... [01:14:56]Read from MH i2c: F0 09 00 [01:14:56]MH_I2C_Read... [01:14:56]Read from MH i2c: F0 09 00 D7 02 00 12 37 20 67 74 2C AD 66 54 [01:14:56]GetLastDocTimeStamp 1730164163 [01:14:56]current date 1730164498 [01:14:56]FM_GetShiftState [01:14:56]SAM_PROTO_GetShiftState [01:14:56]wFMCommunicate request_size=4 [01:14:56]MH_SAM_APDU [01:14:56]CAPDU: 80 13 01 00 [01:14:56]Write to MH i2c: E2 08 00 D8 02 80 13 01 00 00 00 00 00 57 [01:14:56]Write i2c OK [01:14:56]MH_I2C_Read... [01:14:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:14:56]Read from MH i2c: E2 [01:14:56]MH_I2C_Read... [01:14:56]Read from MH i2c: E2 0E 00 [01:14:56]MH_I2C_Read... [01:14:56]Read from MH i2c: E2 0E 00 D8 02 00 09 00 01 03 27 20 67 00 00 00 00 90 00 14 [01:14:56]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:14:56]wFMCommunicate OK [01:14:56]SAM_PROTO_GetShiftState done [01:14:56]FM_GetShiftState done [01:14:56]opened in 1730160387 [01:14:56]opened+sec_in_day 1730246787 [01:14:56]quantity*price = 295122 [01:14:56]sum+1 = 295124 [01:14:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 2951.00 Внесено: 3000.00 СДАЧА: 49.00 НСП 1% : 26.12 НДС 12% : 313.40 Наличными: 2951.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 6 29.10.2024 01:14 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72649 ФПД: 64622646892670 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T011458&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72649&fm=64622646892670&tin=02508201610067®Number=0000000000091644&sum=295100 [01:14:57]StoreToDocumentArchive [01:14:57]shift 555 fd 72649 [01:14:57]save to /storage/0555/doc_00072649 [01:14:57]save last doc name /storage/0555/doc_00072649 to /storage/kkm_last_doc_name [01:14:57]save OK [01:14:57]Clear old archive folders... [01:14:57]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:14:57]tlvbuf is 00AC0A80 [01:14:57]SAM_PROTO_ClearQueue [01:14:57]wFMCommunicate request_size=4 [01:14:57]MH_SAM_APDU [01:14:57]CAPDU: 80 09 00 00 [01:14:57]Write to MH i2c: E2 08 00 E5 02 80 09 00 00 00 00 00 00 59 [01:14:57]Write i2c OK [01:14:57]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 E5 02 00 90 00 5B [01:14:58]RAPDU: 90 00 [01:14:58]wFMCommunicate OK [01:14:58]SAM_PROTO_ClearQueue done [01:14:58]KKMCreateOFDPacket [01:14:58]OFDProtocolAddRootSTLVToBuf [01:14:58]FM_MakeSignedData [01:14:58]FM_MakeSignedData [01:14:58]SAM_PROTO_SignData [01:14:58]wFMCommunicate request_size=4 [01:14:58]MH_SAM_APDU [01:14:58]CAPDU: 80 0D 01 02 [01:14:58]Write to MH i2c: E2 08 00 E6 02 80 0D 01 02 00 00 00 00 61 [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 E6 02 00 90 00 5C [01:14:58]RAPDU: 90 00 [01:14:58]wFMCommunicate OK [01:14:58]wFMCommunicate request_size=255 [01:14:58]MH_SAM_APDU [01:14:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7A 00 00 00 00 07 04 06 00 BC 80 04 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 12 37 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1B 01 00 35 04 06 00 [01:14:58]Write to MH i2c: E2 02 01 E7 02 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7A 00 00 00 00 07 04 06 00 BC 80 04 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 12 37 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1B 01 00 35 04 06 00 00 00 4B [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 E7 02 00 90 00 5D [01:14:58]RAPDU: 90 00 [01:14:58]wFMCommunicate OK [01:14:58]wFMCommunicate request_size=11 [01:14:58]MH_SAM_APDU [01:14:58]CAPDU: 80 0D 02 02 06 3A C6 21 E9 98 7E [01:14:58]Write to MH i2c: E2 0E 00 E8 02 80 0D 02 02 06 00 3A C6 21 E9 98 7E 00 00 90 [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 03 00 E8 02 00 90 00 5E [01:14:58]RAPDU: 90 00 [01:14:58]wFMCommunicate OK [01:14:58]wFMCommunicate request_size=4 [01:14:58]MH_SAM_APDU [01:14:58]CAPDU: 80 0D 03 02 [01:14:58]Write to MH i2c: E2 08 00 E9 02 80 0D 03 02 00 00 00 00 66 [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 0B 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 0B 00 E9 02 00 38 28 BB DD 99 FE 39 56 90 00 85 [01:14:58]RAPDU: 38 28 BB DD 99 FE 39 56 90 00 [01:14:58]wFMCommunicate OK [01:14:58]SAM_PROTO_SignData done [01:14:58]FM_MakeSignedData done [01:14:58]CreateOFDProtocolMessage [01:14:58]wFMCommunicate request_size=4 [01:14:58]MH_SAM_APDU [01:14:58]CAPDU: 80 11 00 00 [01:14:58]Write to MH i2c: E2 08 00 EA 02 80 11 00 00 00 00 00 00 66 [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:14:58]Read from MH i2c: E2 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 17 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: E2 17 00 EA 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 BA [01:14:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:14:58]wFMCommunicate OK [01:14:58]CreateOFDProtocolMessage done [01:14:58]OFDSenderStorePacket 72649 [01:14:58]StoreOFDPacket docnum=72649 [01:14:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C6 86 08 01 61 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7A 00 00 00 00 07 04 06 00 BC 80 04 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 12 37 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1B 01 00 35 04 06 00 3A C6 21 E9 98 7E 38 28 BB DD 99 FE 39 56 [01:14:58]CheckFolder [01:14:58]dirname=/storage/ofd_packets [01:14:58]CheckFolder done [01:14:58]ProducePacketName [01:14:58]name=ofd_packets/00072649 [01:14:58]NVStorageSaveData ofd_packets/00072649 [01:14:58]File name is /storage/ofd_packets/00072649 [01:14:58]Write 302 bytes [01:14:58]NVStorageSaveData done [01:14:58]OFDSenderStorePacket done [01:14:58]KKMCreateOFDPacket done [01:14:58]NVStorageSaveData kkm_last_timestamp [01:14:58]File name is /storage/kkm_last_timestamp [01:14:58]Write 4 bytes [01:14:58]NVStorageSaveData done [01:14:58]ExternCall_PrintAddStr [01:14:58]wPrintStart [01:14:58]Write to MH i2c: 01 00 00 EB 02 ED [01:14:58]Write i2c OK [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: 01 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: 01 07 00 [01:14:58]MH_I2C_Read... [01:14:58]Read from MH i2c: 01 07 00 EB 02 00 00 00 00 00 FF 0F 02 [01:14:58]RasterBufferAndPrint [01:14:58]line Счет N : (1)952142 [01:14:58]line ИНН: 02508201610067 [01:14:58]line Контрольно-Кассовый Чек [01:14:58]line ПРОДАЖА [01:14:58]line ТРК (МРК, ГНК) : 43 [01:14:58]line Товар: 2710194210 [01:14:58]line ДТ(л)-К-5 [01:14:58]line 38.730 * 76.20 [01:14:58]line = 2951.23 [01:14:58]line НДС 12% НСП 1% [01:14:58]line > о реализуемом товаре [01:14:58]line ОКРУГЛЕНИЕ: -0.23 [01:14:58]line ИТОГО: 2951.00 [01:14:58]line Внесено: 3000.00 [01:14:58]line СДАЧА: 49.00 [01:14:58]line НСП 1% : 26.12 [01:14:58]line НДС 12% : 313.40 [01:14:58]line Наличными: 2951.00 [01:14:58]line Безнал.: 0.00 [01:14:58]line Место: АЗС № 113 "Партнер Нефть" [01:14:58]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:14:58]line СНО: Общий режим [01:14:58]line Чек 6 29.10.2024 01:14 [01:14:58]line Смена: 555 ФФД: 1.0 [01:14:58]line ЗНМ: 0300000087 [01:14:58]line РНМ: 0000000000091644 [01:14:58]line Версия ККМ: 001 [01:14:58]line ФМ: 0000000000874662 [01:14:58]line ФД: 72649 [01:14:58]line ФПД: 64622646892670 [01:14:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T011458&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72649&fm=64622646892670&tin=02508201610067®Number=0000000000091644&sum=295100 [01:14:58]OFD Sender: Processing packet 72649 [packets to send 277, broken 276] [01:14:58]ProducePacketName [01:14:58]name=ofd_packets/00072649 [01:14:58]OFD Sender: To server: pG, [01:14:58]CommunicateWithHost lk.salyk.kg:30040 [01:14:58]ConnectInit lk.salyk.kg [01:14:58]written 0, free lines is 4095 [01:14:59]Write to MH i2c: 01 00 00 16 03 19 [01:14:59]Write i2c OK [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: 01 [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: 01 07 00 [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 E2 0C 0E [01:14:59]RasterBufferAndPrint [01:14:59]line [01:14:59]line [01:14:59]line [01:14:59]line [01:14:59]line [01:14:59]written 0, free lines is 3304 [01:14:59]MH_Cut [01:14:59]Write to MH i2c: D1 01 00 1D 03 01 F2 [01:14:59]Write i2c OK [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: D1 [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: D1 01 00 [01:14:59]MH_I2C_Read... [01:14:59]Read from MH i2c: D1 01 00 1D 03 00 F1 [01:14:59]Write to MH i2c: 01 00 00 1E 03 21 [01:14:59]Write i2c OK [01:14:59]MH_I2C_Read... [01:15:00]*** Cut start [01:15:00]*** Partial cut [01:15:00]*** CUTSNS_PIN = 1 [01:15:00]*** CUTSNS_PIN = 0 [01:15:00]*** Brake cut motor [01:15:00]Read from MH i2c: 01 [01:15:00]MH_I2C_Read... [01:15:00]*** Stop cut motor [01:15:00]*** Cut end [01:15:00]Read from MH i2c: 01 07 00 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [01:15:00]process_action close_receipt done [01:15:00]requested_data is exist [01:15:00]produce_requested_data [01:15:00]requested_item fm.sn is exist - process it [01:15:00]wFMCommunicate request_size=4 [01:15:00]MH_SAM_APDU [01:15:00]CAPDU: 80 11 00 00 [01:15:00]Write to MH i2c: E2 08 00 1F 03 80 11 00 00 00 00 00 00 9C [01:15:00]Write i2c OK [01:15:00]MH_I2C_Read... [01:15:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:00]Read from MH i2c: E2 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 17 00 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 17 00 1F 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 F0 [01:15:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:15:00]wFMCommunicate OK [01:15:00]requested_item fd.num is exist - process it [01:15:00]SAM_PROTO_GetFieldsCounters [01:15:00]wFMCommunicate request_size=4 [01:15:00]MH_SAM_APDU [01:15:00]CAPDU: 80 13 00 00 [01:15:00]Write to MH i2c: E2 08 00 20 03 80 13 00 00 00 00 00 00 9F [01:15:00]Write i2c OK [01:15:00]MH_I2C_Read... [01:15:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:00]Read from MH i2c: E2 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 62 00 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 62 00 20 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1B 01 00 0E 04 04 00 2B 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 E4 [01:15:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 C9 1B 01 00 0E 04 04 00 2B 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:15:00]wFMCommunicate OK [01:15:00]SAM_PROTO_GetFieldsCounters done [01:15:00]requested_item shift.num is exist - process it [01:15:00]requested_item shift.opened is exist - process it [01:15:00]req_shift_opened [01:15:00]FM_GetShiftState [01:15:00]SAM_PROTO_GetShiftState [01:15:00]wFMCommunicate request_size=4 [01:15:00]MH_SAM_APDU [01:15:00]CAPDU: 80 13 01 00 [01:15:00]Write to MH i2c: E2 08 00 21 03 80 13 01 00 00 00 00 00 A1 [01:15:00]Write i2c OK [01:15:00]MH_I2C_Read... [01:15:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:00]Read from MH i2c: E2 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 0E 00 [01:15:00]MH_I2C_Read... [01:15:00]Read from MH i2c: E2 0E 00 21 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 5E [01:15:00]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:15:00]wFMCommunicate OK [01:15:00]SAM_PROTO_GetShiftState done [01:15:00]FM_GetShiftState done [01:15:00]req_shift_opened done [01:15:00]requested_item shift.open_date is exist - process it [01:15:00]req_shift_open_date [01:15:00]req_shift_open_date done [01:15:00]produce_requested_data done [01:15:00]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72649,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:15:00]process_action_free close_receipt [01:15:00]json_value_free [01:15:00]json_value_free done [01:15:00]process_json_proto returns [01:15:00]Send response to host [01:15:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72649,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:15:00]free response buf [01:15:00]execute_script done [01:15:00]execute_script returns [01:15:00]free content buf [01:15:00]Sock 9.Close socket [01:15:00]Sock 9.Thread stoped [01:15:02]Connected sock=6 [01:15:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 C6 86 08 01 61 3A 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 97 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 80 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 80 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 7A 00 00 00 00 07 04 06 00 BC 80 04 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 12 37 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1B 01 00 35 04 06 00 3A C6 21 E9 98 7E 38 28 BB DD 99 FE 39 56 [01:15:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 4A 64 47 00 DA 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 C9 1B 01 00 F4 03 04 00 D3 E1 1F 67 B6 04 01 00 00 78 BE A9 7A C6 01 C6 2C [01:15:03]CommunicateWithHost err = 0 [01:15:03]CheckOFDResponse [01:15:03]1017 (14) - 77093643461234 [01:15:03]1041 (16) - 0000000000874662 [01:15:03]1040 (4) - 72649 [01:15:03]1012 (4) - 28.10.2024 19:11 [01:15:03]1206 (1) - 0 [01:15:03]OFD Sender: Remove packet 72649 [01:15:03]ProducePacketName [01:15:03]name=ofd_packets/00072649 [01:15:03]NVStorageDeleteData [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15: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:52]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:36]recv_with_timeout no data received [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:51]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:22]recv_with_timeout no data received [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:39]recv_with_timeout no data received [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:26]recv_with_timeout no data received [01:20:29]OFD Sender: No OFD packet to send [01:20:34]OFD Sender: No OFD packet to send [01:20:37]recv_with_timeout no data received [01:20:39]OFD Sender: No OFD packet to send [01:20:44]OFD Sender: No OFD packet to send [01:20:47]recv_with_timeout no data received [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:46]recv_with_timeout no data received [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:58]recv_with_timeout no data received [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:15]recv_with_timeout no data received [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:24]accept exits with 10 [01:23:24]New connection [01:23:24]New thread 3067338084 created [01:23:24]Thread 3067194724 joined [01:23:24]Waiting for new connection... [01:23:24] Sock 10.Parse request [01:23:24]Sock 10.Check first char [01:23:24]Sock 10.First char is OK [01:23:24]request: POST /json_proto HTTP/1.0 [01:23:24]Method: POST [01:23:24]URL: /json_proto [01:23:24]Method is POST - this is cgi request [01:23:24]url: /json_proto [01:23:24]query_string will be loaded in cgi processing [01:23:24]execute_cgi json_proto POST (null) [01:23:24]execute_cgi path=json_proto method=POST [01:23:24]POST find Content-Length [01:23:24]Host: 172.17.43.195:8080 [01:23:24]Content-Length: 687 [01:23:24]Content-Type: application/json [01:23:24] [01:23:24]POST finish read [01:23:24]Found Content-Length = 687 [01:23:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:24]execute_script... [01: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)952143", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:24]POST & json_proto [01:23:24]process_json_proto [01:23:24]json parsed OK: [01:23:24]protocol is kg_v1.0 [01:23:24]action value=close_receipt [01:23:24]process_action close_receipt [01:23:24]cmd_close_receipt [01:23:24]MH_GetDate [01:23:24]Write to MH i2c: F0 00 00 22 03 14 [01:23:24]Write i2c OK [01:23:24]MH_I2C_Read... [01:23:24]Read from MH i2c: F0 [01:23:24]MH_I2C_Read... [01:23:24]Read from MH i2c: F0 09 00 [01:23:24]MH_I2C_Read... [01:23:24]Read from MH i2c: F0 09 00 22 03 00 0E 39 20 67 74 2C AD 66 9E [01:23:24]GetLastDocTimeStamp 1730164498 [01:23:24]current date 1730165006 [01:23:24]FM_GetShiftState [01:23:24]SAM_PROTO_GetShiftState [01:23:24]wFMCommunicate request_size=4 [01:23:24]MH_SAM_APDU [01:23:24]CAPDU: 80 13 01 00 [01:23:24]Write to MH i2c: E2 08 00 23 03 80 13 01 00 00 00 00 00 A3 [01:23:24]Write i2c OK [01:23:24]MH_I2C_Read... [01:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:24]Read from MH i2c: E2 [01:23:24]MH_I2C_Read... [01:23:24]Read from MH i2c: E2 0E 00 [01:23:24]MH_I2C_Read... [01:23:24]Read from MH i2c: E2 0E 00 23 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 60 [01:23:24]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:23:24]wFMCommunicate OK [01:23:24]SAM_PROTO_GetShiftState done [01:23:24]FM_GetShiftState done [01:23:24]opened in 1730160387 [01:23:24]opened+sec_in_day 1730246787 [01:23:24]quantity*price = 300075 [01:23:24]sum+1 = 300077 [01:23:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 7 29.10.2024 01:23 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72650 ФПД: 130734980607905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012326&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72650&fm=130734980607905&tin=02508201610067®Number=0000000000091644&sum=300000 [01:23:26]StoreToDocumentArchive [01:23:26]shift 555 fd 72650 [01:23:26]save to /storage/0555/doc_00072650 [01:23:26]save last doc name /storage/0555/doc_00072650 to /storage/kkm_last_doc_name [01:23:26]save OK [01:23:26]Clear old archive folders... [01:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:23:26]tlvbuf is 00AB89B0 [01:23:26]SAM_PROTO_ClearQueue [01:23:26]wFMCommunicate request_size=4 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 09 00 00 [01:23:26]Write to MH i2c: E2 08 00 30 03 80 09 00 00 00 00 00 00 A5 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 30 03 00 90 00 A7 [01:23:26]RAPDU: 90 00 [01:23:26]wFMCommunicate OK [01:23:26]SAM_PROTO_ClearQueue done [01:23:26]KKMCreateOFDPacket [01:23:26]OFDProtocolAddRootSTLVToBuf [01:23:26]FM_MakeSignedData [01:23:26]FM_MakeSignedData [01:23:26]SAM_PROTO_SignData [01:23:26]wFMCommunicate request_size=4 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 0D 01 02 [01:23:26]Write to MH i2c: E2 08 00 31 03 80 0D 01 02 00 00 00 00 AD [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 31 03 00 90 00 A8 [01:23:26]RAPDU: 90 00 [01:23:26]wFMCommunicate OK [01:23:26]wFMCommunicate request_size=255 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 0E 39 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1B 01 00 35 04 06 00 [01:23:26]Write to MH i2c: E2 02 01 32 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 0E 39 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1B 01 00 35 04 06 00 00 00 39 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 32 03 00 90 00 A9 [01:23:26]RAPDU: 90 00 [01:23:26]wFMCommunicate OK [01:23:26]wFMCommunicate request_size=11 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 0D 02 02 06 76 E7 1C 14 2F A1 [01:23:26]Write to MH i2c: E2 0E 00 33 03 80 0D 02 02 06 00 76 E7 1C 14 2F A1 00 00 19 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 03 00 33 03 00 90 00 AA [01:23:26]RAPDU: 90 00 [01:23:26]wFMCommunicate OK [01:23:26]wFMCommunicate request_size=4 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 0D 03 02 [01:23:26]Write to MH i2c: E2 08 00 34 03 80 0D 03 02 00 00 00 00 B2 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 0B 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 0B 00 34 03 00 91 93 94 C6 D9 57 33 49 90 00 DD [01:23:26]RAPDU: 91 93 94 C6 D9 57 33 49 90 00 [01:23:26]wFMCommunicate OK [01:23:26]SAM_PROTO_SignData done [01:23:26]FM_MakeSignedData done [01:23:26]CreateOFDProtocolMessage [01:23:26]wFMCommunicate request_size=4 [01:23:26]MH_SAM_APDU [01:23:26]CAPDU: 80 11 00 00 [01:23:26]Write to MH i2c: E2 08 00 35 03 80 11 00 00 00 00 00 00 B2 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:26]Read from MH i2c: E2 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 17 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: E2 17 00 35 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 06 [01:23:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:23:26]wFMCommunicate OK [01:23:26]CreateOFDProtocolMessage done [01:23:26]OFDSenderStorePacket 72650 [01:23:26]StoreOFDPacket docnum=72650 [01:23:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 73 A9 08 01 C2 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 0E 39 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1B 01 00 35 04 06 00 76 E7 1C 14 2F A1 91 93 94 C6 D9 57 33 49 [01:23:26]CheckFolder [01:23:26]dirname=/storage/ofd_packets [01:23:26]CheckFolder done [01:23:26]ProducePacketName [01:23:26]name=ofd_packets/00072650 [01:23:26]NVStorageSaveData ofd_packets/00072650 [01:23:26]File name is /storage/ofd_packets/00072650 [01:23:26]Write 302 bytes [01:23:26]NVStorageSaveData done [01:23:26]OFDSenderStorePacket done [01:23:26]KKMCreateOFDPacket done [01:23:26]NVStorageSaveData kkm_last_timestamp [01:23:26]File name is /storage/kkm_last_timestamp [01:23:26]Write 4 bytes [01:23:26]NVStorageSaveData done [01:23:26]ExternCall_PrintAddStr [01:23:26]wPrintStart [01:23:26]Write to MH i2c: 01 00 00 36 03 39 [01:23:26]Write i2c OK [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: 01 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: 01 07 00 [01:23:26]MH_I2C_Read... [01:23:26]Read from MH i2c: 01 07 00 36 03 00 00 00 00 00 FF 0F 4E [01:23:26]RasterBufferAndPrint [01:23:26]line Счет N : (1)952143 [01:23:26]line ИНН: 02508201610067 [01:23:26]line Контрольно-Кассовый Чек [01:23:26]line ПРОДАЖА [01:23:26]line ТРК (МРК, ГНК) : 22 [01:23:26]line Товар: 2710194210 [01:23:26]line ДТ(л)-К-5 [01:23:26]line 39.380 * 76.20 [01:23:26]line = 3000.76 [01:23:26]line НДС 12% НСП 1% [01:23:26]line > о реализуемом товаре [01:23:26]line ОКРУГЛЕНИЕ: -0.76 [01:23:26]line ИТОГО: 3000.00 [01:23:26]line Внесено: 3000.00 [01:23:26]line СДАЧА: 0.00 [01:23:26]line НСП 1% : 26.55 [01:23:26]line НДС 12% : 318.66 [01:23:26]line Наличными: 3000.00 [01:23:26]line Безнал.: 0.00 [01:23:26]line Место: АЗС № 113 "Партнер Нефть" [01:23:26]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:23:26]line СНО: Общий режим [01:23:26]line Чек 7 29.10.2024 01:23 [01:23:26]line Смена: 555 ФФД: 1.0 [01:23:26]line ЗНМ: 0300000087 [01:23:26]line РНМ: 0000000000091644 [01:23:26]line Версия ККМ: 001 [01:23:26]line ФМ: 0000000000874662 [01:23:26]line ФД: 72650 [01:23:26]line ФПД: 130734980607905 [01:23:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T012326&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72650&fm=130734980607905&tin=02508201610067®Number=0000000000091644&sum=300000 [01:23:26]OFD Sender: Processing packet 72650 [packets to send 277, broken 276] [01:23:26]ProducePacketName [01:23:26]name=ofd_packets/00072650 [01:23:26]OFD Sender: To server: pG, [01:23:26]CommunicateWithHost lk.salyk.kg:30040 [01:23:27]ConnectInit lk.salyk.kg [01:23:27]written 0, free lines is 4095 [01:23:27]Write to MH i2c: 01 00 00 61 03 64 [01:23:27]Write i2c OK [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: 01 [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: 01 07 00 [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 E4 0C 5B [01:23:27]RasterBufferAndPrint [01:23:27]line [01:23:27]line [01:23:27]line [01:23:27]line [01:23:27]line [01:23:27]written 0, free lines is 3306 [01:23:27]MH_Cut [01:23:27]Write to MH i2c: D1 01 00 68 03 01 3D [01:23:27]Write i2c OK [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: D1 [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: D1 01 00 [01:23:27]MH_I2C_Read... [01:23:27]Read from MH i2c: D1 01 00 68 03 00 3C [01:23:27]Write to MH i2c: 01 00 00 69 03 6C [01:23:27]Write i2c OK [01:23:27]MH_I2C_Read... [01:23:27]Connected sock=9 [01:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 73 A9 08 01 C2 74 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 07 00 00 00 F4 03 04 00 0E 39 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CA 1B 01 00 35 04 06 00 76 E7 1C 14 2F A1 91 93 94 C6 D9 57 33 49 [01:23:28]*** Cut start [01:23:28]*** Partial cut [01:23:28]*** CUTSNS_PIN = 1 [01:23:28]*** CUTSNS_PIN = 0 [01:23:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 2F CE 47 00 10 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 34 36 36 32 10 04 04 00 CA 1B 01 00 F4 03 04 00 CB E3 1F 67 B6 04 01 00 00 C5 9C E3 1F 96 88 39 7D [01:23:28]CommunicateWithHost err = 0 [01:23:28]CheckOFDResponse [01:23:28]1017 (14) - 77093643461234 [01:23:28]1041 (16) - 0000000000874662 [01:23:28]1040 (4) - 72650 [01:23:28]1012 (4) - 28.10.2024 19:19 [01:23:28]1206 (1) - 0 [01:23:28]OFD Sender: Remove packet 72650 [01:23:28]ProducePacketName [01:23:28]name=ofd_packets/00072650 [01:23:28]NVStorageDeleteData [01:23:28]*** Brake cut motor [01:23:28]Read from MH i2c: 01 [01:23:28]MH_I2C_Read... [01:23:28]OFD Sender: No OFD packet to send [01:23:28]*** Stop cut motor [01:23:28]*** Cut end [01:23:28]Read from MH i2c: 01 07 00 [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [01:23:28]process_action close_receipt done [01:23:28]requested_data is exist [01:23:28]produce_requested_data [01:23:28]requested_item fm.sn is exist - process it [01:23:28]wFMCommunicate request_size=4 [01:23:28]MH_SAM_APDU [01:23:28]CAPDU: 80 11 00 00 [01:23:28]Write to MH i2c: E2 08 00 6A 03 80 11 00 00 00 00 00 00 E7 [01:23:28]Write i2c OK [01:23:28]MH_I2C_Read... [01:23:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:28]Read from MH i2c: E2 [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: E2 17 00 [01:23:28]MH_I2C_Read... [01:23:28]Read from MH i2c: E2 17 00 6A 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 3B [01:23:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:23:28]wFMCommunicate OK [01:23:28]requested_item fd.num is exist - process it [01:23:28]SAM_PROTO_GetFieldsCounters [01:23:28]wFMCommunicate request_size=4 [01:23:28]MH_SAM_APDU [01:23:28]CAPDU: 80 13 00 00 [01:23:28]Write to MH i2c: E2 08 00 6B 03 80 13 00 00 00 00 00 00 EA [01:23:28]Write i2c OK [01:23:28]MH_I2C_Read... [01:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:29]Read from MH i2c: E2 [01:23:29]MH_I2C_Read... [01:23:29]Read from MH i2c: E2 62 00 [01:23:29]MH_I2C_Read... [01:23:29]Read from MH i2c: E2 62 00 6B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1B 01 00 0E 04 04 00 2B 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 33 [01:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CA 1B 01 00 0E 04 04 00 2B 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 [01:23:29]wFMCommunicate OK [01:23:29]SAM_PROTO_GetFieldsCounters done [01:23:29]requested_item shift.num is exist - process it [01:23:29]requested_item shift.opened is exist - process it [01:23:29]req_shift_opened [01:23:29]FM_GetShiftState [01:23:29]SAM_PROTO_GetShiftState [01:23:29]wFMCommunicate request_size=4 [01:23:29]MH_SAM_APDU [01:23:29]CAPDU: 80 13 01 00 [01:23:29]Write to MH i2c: E2 08 00 6C 03 80 13 01 00 00 00 00 00 EC [01:23:29]Write i2c OK [01:23:29]MH_I2C_Read... [01:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:29]Read from MH i2c: E2 [01:23:29]MH_I2C_Read... [01:23:29]Read from MH i2c: E2 0E 00 [01:23:29]MH_I2C_Read... [01:23:29]Read from MH i2c: E2 0E 00 6C 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 A9 [01:23:29]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:23:29]wFMCommunicate OK [01:23:29]SAM_PROTO_GetShiftState done [01:23:29]FM_GetShiftState done [01:23:29]req_shift_opened done [01:23:29]requested_item shift.open_date is exist - process it [01:23:29]req_shift_open_date [01:23:29]req_shift_open_date done [01:23:29]produce_requested_data done [01:23:29]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72650,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:23:29]process_action_free close_receipt [01:23:29]json_value_free [01:23:29]json_value_free done [01:23:29]process_json_proto returns [01:23:29]Send response to host [01:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72650,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:23:29]free response buf [01:23:29]execute_script done [01:23:29]execute_script returns [01:23:29]free content buf [01:23:29]Sock 10.Close socket [01:23:29]Sock 10.Thread stoped [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:54]OFD Sender: No OFD packet to send [01:24:59]OFD Sender: No OFD packet to send [01:25:04]OFD Sender: No OFD packet to send [01:25:09]OFD Sender: No OFD packet to send [01:25:14]OFD Sender: No OFD packet to send [01:25:19]OFD Sender: No OFD packet to send [01:25:24]OFD Sender: No OFD packet to send [01:25:29]OFD Sender: No OFD packet to send [01:25:34]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:10]recv_with_timeout no data received [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:40]recv_with_timeout no data received [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]recv_with_timeout no data received [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:34]recv_with_timeout no data received [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:47]recv_with_timeout no data received [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:08]recv_with_timeout no data received [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:26]recv_with_timeout no data received [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:36]recv_with_timeout no data received [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:09]recv_with_timeout no data received [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:44]recv_with_timeout no data received [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:01]recv_with_timeout no data received [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:43]recv_with_timeout no data received [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:07]recv_with_timeout no data received [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:26]recv_with_timeout no data received [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:21]recv_with_timeout no data received [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:34]OFD Sender: No OFD packet to send [01:33:39]OFD Sender: No OFD packet to send [01:33:44]OFD Sender: No OFD packet to send [01:33:49]OFD Sender: No OFD packet to send [01:33:54]OFD Sender: No OFD packet to send [01:33:59]OFD Sender: No OFD packet to send [01:34:04]OFD Sender: No OFD packet to send [01:34:09]OFD Sender: No OFD packet to send [01:34:14]OFD Sender: No OFD packet to send [01:34:19]OFD Sender: No OFD packet to send [01:34:24]OFD Sender: No OFD packet to send [01:34:29]OFD Sender: No OFD packet to send [01:34:34]OFD Sender: No OFD packet to send [01:34:39]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:12]recv_with_timeout no data received [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:43]recv_with_timeout no data received [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:15]recv_with_timeout no data received [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:25]recv_with_timeout no data received [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:36:57]recv_with_timeout no data received [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:24]recv_with_timeout no data received [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:35]recv_with_timeout no data received [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:28]recv_with_timeout no data received [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:11]recv_with_timeout no data received [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:32]accept exits with 7 [01:41:32]New connection [01:41:32]New thread 3067194724 created [01:41:32]Thread 3067338084 joined [01:41:32]Waiting for new connection... [01:41:32] Sock 7.Parse request [01:41:32]Sock 7.Check first char [01:41:32]Sock 7.First char is OK [01:41:32]request: POST /json_proto HTTP/1.0 [01:41:32]Method: POST [01:41:32]URL: /json_proto [01:41:32]Method is POST - this is cgi request [01:41:32]url: /json_proto [01:41:32]query_string will be loaded in cgi processing [01:41:32]execute_cgi json_proto POST (null) [01:41:32]execute_cgi path=json_proto method=POST [01:41:32]POST find Content-Length [01:41:32]Host: 172.17.43.195:8080 [01:41:32]Content-Length: 757 [01:41:32]Content-Type: application/json [01:41:32] [01:41:32]POST finish read [01:41:32]Found Content-Length = 757 [01:41:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161063", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:32]execute_script... [01:41:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30161063", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:32]POST & json_proto [01:41:32]process_json_proto [01:41:32]json parsed OK: [01:41:32]protocol is kg_v1.0 [01:41:32]action value=close_receipt [01:41:32]process_action close_receipt [01:41:32]cmd_close_receipt [01:41:32]MH_GetDate [01:41:32]Write to MH i2c: F0 00 00 6D 03 5F [01:41:32]Write i2c OK [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: F0 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: F0 09 00 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: F0 09 00 6D 03 00 4D 3D 20 67 74 2C AD 66 2C [01:41:32]GetLastDocTimeStamp 1730165006 [01:41:32]current date 1730166093 [01:41:32]FM_GetShiftState [01:41:32]SAM_PROTO_GetShiftState [01:41:32]wFMCommunicate request_size=4 [01:41:32]MH_SAM_APDU [01:41:32]CAPDU: 80 13 01 00 [01:41:32]Write to MH i2c: E2 08 00 6E 03 80 13 01 00 00 00 00 00 EE [01:41:32]Write i2c OK [01:41:32]MH_I2C_Read... [01:41:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:32]Read from MH i2c: E2 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: E2 0E 00 [01:41:32]MH_I2C_Read... [01:41:32]Read from MH i2c: E2 0E 00 6E 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 AB [01:41:32]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:41:32]wFMCommunicate OK [01:41:32]SAM_PROTO_GetShiftState done [01:41:32]FM_GetShiftState done [01:41:32]opened in 1730160387 [01:41:32]opened+sec_in_day 1730246787 [01:41:32]quantity*price = 0 [01:41:32]sum+1 = 1 [01:41:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 8 29.10.2024 01:41 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 Талоны: ТК ГПНА Online 30161063 ФМ: 0000000000874662 ФД: 72651 ФПД: 142278182769616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014133&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72651&fm=142278182769616&tin=02508201610067®Number=0000000000091644&sum=0 [01:41:33]StoreToDocumentArchive [01:41:33]shift 555 fd 72651 [01:41:33]save to /storage/0555/doc_00072651 [01:41:33]save last doc name /storage/0555/doc_00072651 to /storage/kkm_last_doc_name [01:41:33]save OK [01:41:33]Clear old archive folders... [01:41:33]ProcessDocumentItem done err = 0, tmpTLVsize=250 [01:41:33]tlvbuf is 00AC0930 [01:41:33]SAM_PROTO_ClearQueue [01:41:33]wFMCommunicate request_size=4 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 09 00 00 [01:41:33]Write to MH i2c: E2 08 00 7B 03 80 09 00 00 00 00 00 00 F0 [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:33]Read from MH i2c: E2 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 03 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 03 00 7B 03 00 90 00 F2 [01:41:33]RAPDU: 90 00 [01:41:33]wFMCommunicate OK [01:41:33]SAM_PROTO_ClearQueue done [01:41:33]KKMCreateOFDPacket [01:41:33]OFDProtocolAddRootSTLVToBuf [01:41:33]FM_MakeSignedData [01:41:33]FM_MakeSignedData [01:41:33]SAM_PROTO_SignData [01:41:33]wFMCommunicate request_size=4 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 0D 01 02 [01:41:33]Write to MH i2c: E2 08 00 7C 03 80 0D 01 02 00 00 00 00 F8 [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:33]Read from MH i2c: E2 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 03 00 [01:41:33]MH_I2C_Read... [01:41:33]Read from MH i2c: E2 03 00 7C 03 00 90 00 F3 [01:41:33]RAPDU: 90 00 [01:41:33]wFMCommunicate OK [01:41:33]wFMCommunicate request_size=255 [01:41:33]MH_SAM_APDU [01:41:33]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1B 01 00 35 04 06 00 81 66 [01:41:33]Write to MH i2c: E2 02 01 7D 03 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1B 01 00 35 04 06 00 81 66 00 00 05 [01:41:33]Write i2c OK [01:41:33]MH_I2C_Read... [01:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:34]Read from MH i2c: E2 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 03 00 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 03 00 7D 03 00 90 00 F4 [01:41:34]RAPDU: 90 00 [01:41:34]wFMCommunicate OK [01:41:34]wFMCommunicate request_size=9 [01:41:34]MH_SAM_APDU [01:41:34]CAPDU: 80 0D 02 02 04 B8 8B 13 D0 [01:41:34]Write to MH i2c: E2 0C 00 7E 03 80 0D 02 02 04 00 B8 8B 13 D0 00 00 29 [01:41:34]Write i2c OK [01:41:34]MH_I2C_Read... [01:41:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:34]Read from MH i2c: E2 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 03 00 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 03 00 7E 03 00 90 00 F5 [01:41:34]RAPDU: 90 00 [01:41:34]wFMCommunicate OK [01:41:34]wFMCommunicate request_size=4 [01:41:34]MH_SAM_APDU [01:41:34]CAPDU: 80 0D 03 02 [01:41:34]Write to MH i2c: E2 08 00 7F 03 80 0D 03 02 00 00 00 00 FD [01:41:34]Write i2c OK [01:41:34]MH_I2C_Read... [01:41:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:34]Read from MH i2c: E2 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 0B 00 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 0B 00 7F 03 00 A5 21 50 A3 A2 82 9E 8B 90 00 04 [01:41:34]RAPDU: A5 21 50 A3 A2 82 9E 8B 90 00 [01:41:34]wFMCommunicate OK [01:41:34]SAM_PROTO_SignData done [01:41:34]FM_MakeSignedData done [01:41:34]CreateOFDProtocolMessage [01:41:34]wFMCommunicate request_size=4 [01:41:34]MH_SAM_APDU [01:41:34]CAPDU: 80 11 00 00 [01:41:34]Write to MH i2c: E2 08 00 80 03 80 11 00 00 00 00 00 00 FD [01:41:34]Write i2c OK [01:41:34]MH_I2C_Read... [01:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:34]Read from MH i2c: E2 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 17 00 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: E2 17 00 80 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 51 [01:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:41:34]wFMCommunicate OK [01:41:34]CreateOFDProtocolMessage done [01:41:34]OFDSenderStorePacket 72651 [01:41:34]StoreOFDPacket docnum=72651 [01:41:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 EF BB 06 01 14 99 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1B 01 00 35 04 06 00 81 66 B8 8B 13 D0 A5 21 50 A3 A2 82 9E 8B [01:41:34]CheckFolder [01:41:34]dirname=/storage/ofd_packets [01:41:34]CheckFolder done [01:41:34]ProducePacketName [01:41:34]name=ofd_packets/00072651 [01:41:34]NVStorageSaveData ofd_packets/00072651 [01:41:34]File name is /storage/ofd_packets/00072651 [01:41:34]Write 300 bytes [01:41:34]NVStorageSaveData done [01:41:34]OFDSenderStorePacket done [01:41:34]KKMCreateOFDPacket done [01:41:34]NVStorageSaveData kkm_last_timestamp [01:41:34]File name is /storage/kkm_last_timestamp [01:41:34]Write 4 bytes [01:41:34]NVStorageSaveData done [01:41:34]OFD Sender: Processing packet 72651 [packets to send 277, broken 276] [01:41:34]ProducePacketName [01:41:34]name=ofd_packets/00072651 [01:41:34]OFD Sender: To server: pG, [01:41:34]CommunicateWithHost lk.salyk.kg:30040 [01:41:34]ConnectInit lk.salyk.kg [01:41:34]ExternCall_PrintAddStr [01:41:34]wPrintStart [01:41:34]Write to MH i2c: 01 00 00 81 03 84 [01:41:34]Write i2c OK [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: 01 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: 01 07 00 [01:41:34]MH_I2C_Read... [01:41:34]Read from MH i2c: 01 07 00 81 03 00 00 00 00 00 FF 0F 99 [01:41:34]RasterBufferAndPrint [01:41:34]line Счет N : (1)952144 [01:41:34]line ИНН: 02508201610067 [01:41:34]line Контрольно-Кассовый Чек [01:41:34]line ПРОДАЖА [01:41:34]line ТРК (МРК, ГНК) : 71 [01:41:34]line Товар: 2711190000 [01:41:34]line ГАЗ-К-3 [01:41:34]line 60.000 * 0.00 [01:41:34]line = 0.00 [01:41:34]line НДС 12% НСП 1% [01:41:34]line > о реализуемом товаре [01:41:34]line ИТОГО: 0.00 [01:41:34]line НСП 1% : 0.00 [01:41:34]line НДС 12% : 0.00 [01:41:34]line Наличными: 0.00 [01:41:34]line Безнал.: 0.00 [01:41:34]line Место: АЗС № 113 "Партнер Нефть" [01:41:34]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:41:34]line СНО: Общий режим [01:41:34]line Чек 8 29.10.2024 01:41 [01:41:34]line Смена: 555 ФФД: 1.0 [01:41:34]line ЗНМ: 0300000087 [01:41:34]line РНМ: 0000000000091644 [01:41:34]line Версия ККМ: 001 [01:41:34]line Талоны: ТК ГПНА Online [01:41:34]line 30161063 [01:41:34]line ФМ: 0000000000874662 [01:41:34]line ФД: 72651 [01:41:34]line ФПД: 142278182769616 [01:41:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014133&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72651&fm=142278182769616&tin=02508201610067®Number=0000000000091644&sum=0 [01:41:34]written 0, free lines is 4095 [01:41:35]Connected sock=11 [01:41:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 EF BB 06 01 14 99 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 4D 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CB 1B 01 00 35 04 06 00 81 66 B8 8B 13 D0 A5 21 50 A3 A2 82 9E 8B [01:41:35]Write to MH i2c: 01 00 00 AB 03 AE [01:41:35]Write i2c OK [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: 01 [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: 01 07 00 [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: 01 07 00 AB 03 00 00 00 00 00 F0 0C B1 [01:41:35]RasterBufferAndPrint [01:41:35]line [01:41:35]line [01:41:35]line [01:41:35]line [01:41:35]line [01:41:35]written 0, free lines is 3318 [01:41:35]MH_Cut [01:41:35]Write to MH i2c: D1 01 00 B2 03 01 87 [01:41:35]Write i2c OK [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: D1 [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: D1 01 00 [01:41:35]MH_I2C_Read... [01:41:35]Read from MH i2c: D1 01 00 B2 03 00 86 [01:41:35]Write to MH i2c: 01 00 00 B3 03 B6 [01:41:35]Write i2c OK [01:41:35]MH_I2C_Read... [01:41:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 28 D1 47 00 D3 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 34 36 36 32 10 04 04 00 CB 1B 01 00 F4 03 04 00 0B E8 1F 67 B6 04 01 00 00 B2 76 F1 F6 FE 74 EF CB [01:41:35]CommunicateWithHost err = 0 [01:41:35]CheckOFDResponse [01:41:35]1017 (14) - 77093643461234 [01:41:35]1041 (16) - 0000000000874662 [01:41:35]1040 (4) - 72651 [01:41:35]1012 (4) - 28.10.2024 19:37 [01:41:35]1206 (1) - 0 [01:41:35]OFD Sender: Remove packet 72651 [01:41:35]ProducePacketName [01:41:35]name=ofd_packets/00072651 [01:41:35]NVStorageDeleteData [01:41:35]*** Cut start [01:41:35]*** Partial cut [01:41:35]*** CUTSNS_PIN = 1 [01:41:35]*** CUTSNS_PIN = 0 [01:41:36]OFD Sender: No OFD packet to send [01:41:36]*** Brake cut motor [01:41:36]Read from MH i2c: 01 [01:41:36]MH_I2C_Read... [01:41:36]*** Stop cut motor [01:41:36]*** Cut end [01:41:36]Read from MH i2c: 01 07 00 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [01:41:36]process_action close_receipt done [01:41:36]requested_data is exist [01:41:36]produce_requested_data [01:41:36]requested_item fm.sn is exist - process it [01:41:36]wFMCommunicate request_size=4 [01:41:36]MH_SAM_APDU [01:41:36]CAPDU: 80 11 00 00 [01:41:36]Write to MH i2c: E2 08 00 B4 03 80 11 00 00 00 00 00 00 31 [01:41:36]Write i2c OK [01:41:36]MH_I2C_Read... [01:41:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:36]Read from MH i2c: E2 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 17 00 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 17 00 B4 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 85 [01:41:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:41:36]wFMCommunicate OK [01:41:36]requested_item fd.num is exist - process it [01:41:36]SAM_PROTO_GetFieldsCounters [01:41:36]wFMCommunicate request_size=4 [01:41:36]MH_SAM_APDU [01:41:36]CAPDU: 80 13 00 00 [01:41:36]Write to MH i2c: E2 08 00 B5 03 80 13 00 00 00 00 00 00 34 [01:41:36]Write i2c OK [01:41:36]MH_I2C_Read... [01:41:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:36]Read from MH i2c: E2 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 62 00 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 62 00 B5 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [01:41:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CB 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:41:36]wFMCommunicate OK [01:41:36]SAM_PROTO_GetFieldsCounters done [01:41:36]requested_item shift.num is exist - process it [01:41:36]requested_item shift.opened is exist - process it [01:41:36]req_shift_opened [01:41:36]FM_GetShiftState [01:41:36]SAM_PROTO_GetShiftState [01:41:36]wFMCommunicate request_size=4 [01:41:36]MH_SAM_APDU [01:41:36]CAPDU: 80 13 01 00 [01:41:36]Write to MH i2c: E2 08 00 B6 03 80 13 01 00 00 00 00 00 36 [01:41:36]Write i2c OK [01:41:36]MH_I2C_Read... [01:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:36]Read from MH i2c: E2 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 0E 00 [01:41:36]MH_I2C_Read... [01:41:36]Read from MH i2c: E2 0E 00 B6 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 F3 [01:41:36]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:41:36]wFMCommunicate OK [01:41:36]SAM_PROTO_GetShiftState done [01:41:36]FM_GetShiftState done [01:41:36]req_shift_opened done [01:41:36]requested_item shift.open_date is exist - process it [01:41:36]req_shift_open_date [01:41:36]req_shift_open_date done [01:41:36]produce_requested_data done [01:41:36]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72651,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:41:36]process_action_free close_receipt [01:41:36]json_value_free [01:41:36]json_value_free done [01:41:36]process_json_proto returns [01:41:36]Send response to host [01:41:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72651,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:41:36]free response buf [01:41:36]execute_script done [01:41:36]execute_script returns [01:41:36]free content buf [01:41:36]Sock 7.Close socket [01:41:36]Sock 7.Thread stoped [01:41:41]OFD Sender: No OFD packet to send [01:41:46]OFD Sender: No OFD packet to send [01:41:51]OFD Sender: No OFD packet to send [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:36]accept exits with 9 [01:42:36]New connection [01:42:36]New thread 3067338084 created [01:42:36]Thread 3067194724 joined [01:42:36]Waiting for new connection... [01:42:36] Sock 9.Parse request [01:42:36]Sock 9.Check first char [01:42:36]Sock 9.First char is OK [01:42:36]request: POST /json_proto HTTP/1.0 [01:42:36]Method: POST [01:42:36]URL: /json_proto [01:42:36]Method is POST - this is cgi request [01:42:36]url: /json_proto [01:42:36]query_string will be loaded in cgi processing [01:42:36]execute_cgi json_proto POST (null) [01:42:36]execute_cgi path=json_proto method=POST [01:42:36]POST find Content-Length [01:42:36]Host: 172.17.43.195:8080 [01:42:36]Content-Length: 687 [01:42:36]Content-Type: application/json [01:42:36] [01:42:36]POST finish read [01:42:36]Found Content-Length = 687 [01:42:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:36]execute_script... [01:42:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 39.380, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:42:36]POST & json_proto [01:42:36]process_json_proto [01:42:36]json parsed OK: [01:42:36]protocol is kg_v1.0 [01:42:36]action value=close_receipt [01:42:36]process_action close_receipt [01:42:36]cmd_close_receipt [01:42:36]MH_GetDate [01:42:36]Write to MH i2c: F0 00 00 B7 03 A9 [01:42:36]Write i2c OK [01:42:36]MH_I2C_Read... [01:42:36]Read from MH i2c: F0 [01:42:36]MH_I2C_Read... [01:42:36]Read from MH i2c: F0 09 00 [01:42:36]MH_I2C_Read... [01:42:36]Read from MH i2c: F0 09 00 B7 03 00 8E 3D 20 67 74 2C AD 66 B7 [01:42:36]GetLastDocTimeStamp 1730166093 [01:42:36]current date 1730166158 [01:42:36]FM_GetShiftState [01:42:36]SAM_PROTO_GetShiftState [01:42:36]wFMCommunicate request_size=4 [01:42:36]MH_SAM_APDU [01:42:36]CAPDU: 80 13 01 00 [01:42:36]Write to MH i2c: E2 08 00 B8 03 80 13 01 00 00 00 00 00 38 [01:42:36]Write i2c OK [01:42:36]MH_I2C_Read... [01:42:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:36]Read from MH i2c: E2 [01:42:36]MH_I2C_Read... [01:42:36]Read from MH i2c: E2 0E 00 [01:42:36]MH_I2C_Read... [01:42:36]Read from MH i2c: E2 0E 00 B8 03 00 09 00 01 03 27 20 67 00 00 00 00 90 00 F5 [01:42:36]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:42:36]wFMCommunicate OK [01:42:36]SAM_PROTO_GetShiftState done [01:42:36]FM_GetShiftState done [01:42:36]opened in 1730160387 [01:42:36]opened+sec_in_day 1730246787 [01:42:36]quantity*price = 300075 [01:42:36]sum+1 = 300077 [01:42:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 9 29.10.2024 01:42 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72652 ФПД: 193658057291730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014238&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72652&fm=193658057291730&tin=02508201610067®Number=0000000000091644&sum=300000 [01:42:38]StoreToDocumentArchive [01:42:38]shift 555 fd 72652 [01:42:38]save to /storage/0555/doc_00072652 [01:42:38]save last doc name /storage/0555/doc_00072652 to /storage/kkm_last_doc_name [01:42:38]save OK [01:42:38]Clear old archive folders... [01:42:38]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:42:38]tlvbuf is 00ABA2E0 [01:42:38]SAM_PROTO_ClearQueue [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 09 00 00 [01:42:38]Write to MH i2c: E2 08 00 C5 03 80 09 00 00 00 00 00 00 3A [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 C5 03 00 90 00 3C [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]SAM_PROTO_ClearQueue done [01:42:38]KKMCreateOFDPacket [01:42:38]OFDProtocolAddRootSTLVToBuf [01:42:38]FM_MakeSignedData [01:42:38]FM_MakeSignedData [01:42:38]SAM_PROTO_SignData [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 0D 01 02 [01:42:38]Write to MH i2c: E2 08 00 C6 03 80 0D 01 02 00 00 00 00 42 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 C6 03 00 90 00 3D [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]wFMCommunicate request_size=255 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 8E 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1B 01 00 35 04 06 00 [01:42:38]Write to MH i2c: E2 02 01 C7 03 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 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 09 00 00 00 F4 03 04 00 8E 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1B 01 00 35 04 06 00 00 00 56 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 C7 03 00 90 00 3E [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]wFMCommunicate request_size=11 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 0D 02 02 06 B0 21 87 B6 77 D2 [01:42:38]Write to MH i2c: E2 0E 00 C8 03 80 0D 02 02 06 00 B0 21 87 B6 77 D2 00 00 A8 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 03 00 C8 03 00 90 00 3F [01:42:38]RAPDU: 90 00 [01:42:38]wFMCommunicate OK [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 0D 03 02 [01:42:38]Write to MH i2c: E2 08 00 C9 03 80 0D 03 02 00 00 00 00 47 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 0B 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 0B 00 C9 03 00 BD EB CA 2F 08 51 96 48 90 00 20 [01:42:38]RAPDU: BD EB CA 2F 08 51 96 48 90 00 [01:42:38]wFMCommunicate OK [01:42:38]SAM_PROTO_SignData done [01:42:38]FM_MakeSignedData done [01:42:38]CreateOFDProtocolMessage [01:42:38]wFMCommunicate request_size=4 [01:42:38]MH_SAM_APDU [01:42:38]CAPDU: 80 11 00 00 [01:42:38]Write to MH i2c: E2 08 00 CA 03 80 11 00 00 00 00 00 00 47 [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:38]Read from MH i2c: E2 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 17 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: E2 17 00 CA 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 9B [01:42:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:42:38]wFMCommunicate OK [01:42:38]CreateOFDProtocolMessage done [01:42:38]OFDSenderStorePacket 72652 [01:42:38]StoreOFDPacket docnum=72652 [01:42:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 37 7E 08 01 F2 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 8E 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1B 01 00 35 04 06 00 B0 21 87 B6 77 D2 BD EB CA 2F 08 51 96 48 [01:42:38]CheckFolder [01:42:38]dirname=/storage/ofd_packets [01:42:38]CheckFolder done [01:42:38]ProducePacketName [01:42:38]name=ofd_packets/00072652 [01:42:38]NVStorageSaveData ofd_packets/00072652 [01:42:38]File name is /storage/ofd_packets/00072652 [01:42:38]Write 302 bytes [01:42:38]NVStorageSaveData done [01:42:38]OFDSenderStorePacket done [01:42:38]KKMCreateOFDPacket done [01:42:38]NVStorageSaveData kkm_last_timestamp [01:42:38]File name is /storage/kkm_last_timestamp [01:42:38]Write 4 bytes [01:42:38]NVStorageSaveData done [01:42:38]ExternCall_PrintAddStr [01:42:38]wPrintStart [01:42:38]Write to MH i2c: 01 00 00 CB 03 CE [01:42:38]Write i2c OK [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: 01 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: 01 07 00 [01:42:38]MH_I2C_Read... [01:42:38]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [01:42:38]RasterBufferAndPrint [01:42:38]line Счет N : (1)952145 [01:42:38]line ИНН: 02508201610067 [01:42:38]line Контрольно-Кассовый Чек [01:42:38]line ПРОДАЖА [01:42:38]line ТРК (МРК, ГНК) : 22 [01:42:38]line Товар: 2710194210 [01:42:38]line ДТ(л)-К-5 [01:42:38]line 39.380 * 76.20 [01:42:38]line = 3000.76 [01:42:38]line НДС 12% НСП 1% [01:42:38]line > о реализуемом товаре [01:42:38]line ОКРУГЛЕНИЕ: -0.76 [01:42:38]line ИТОГО: 3000.00 [01:42:38]line Внесено: 3000.00 [01:42:38]line СДАЧА: 0.00 [01:42:38]line НСП 1% : 26.55 [01:42:38]line НДС 12% : 318.66 [01:42:38]line Наличными: 3000.00 [01:42:38]line Безнал.: 0.00 [01:42:38]line Место: АЗС № 113 "Партнер Нефть" [01:42:38]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:42:38]line СНО: Общий режим [01:42:38]line Чек 9 29.10.2024 01:42 [01:42:38]line Смена: 555 ФФД: 1.0 [01:42:38]line ЗНМ: 0300000087 [01:42:38]line РНМ: 0000000000091644 [01:42:38]line Версия ККМ: 001 [01:42:38]line ФМ: 0000000000874662 [01:42:38]line ФД: 72652 [01:42:38]line ФПД: 193658057291730 [01:42:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T014238&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72652&fm=193658057291730&tin=02508201610067®Number=0000000000091644&sum=300000 [01:42:38]written 0, free lines is 4095 [01:42:38]OFD Sender: Processing packet 72652 [packets to send 277, broken 276] [01:42:38]ProducePacketName [01:42:38]name=ofd_packets/00072652 [01:42:38]OFD Sender: To server: pG, [01:42:38]CommunicateWithHost lk.salyk.kg:30040 [01:42:38]ConnectInit lk.salyk.kg [01:42:39]Write to MH i2c: 01 00 00 F6 03 F9 [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 07 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: 01 07 00 F6 03 00 00 00 00 00 E2 0C EE [01:42:39]RasterBufferAndPrint [01:42:39]line [01:42:39]line [01:42:39]line [01:42:39]line [01:42:39]line [01:42:39]written 0, free lines is 3304 [01:42:39]MH_Cut [01:42:39]Write to MH i2c: D1 01 00 FD 03 01 D2 [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: D1 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: D1 01 00 [01:42:39]MH_I2C_Read... [01:42:39]Read from MH i2c: D1 01 00 FD 03 00 D1 [01:42:39]Write to MH i2c: 01 00 00 FE 03 01 [01:42:39]Write i2c OK [01:42:39]MH_I2C_Read... [01:42:39]*** Cut start [01:42:39]*** Partial cut [01:42:39]*** CUTSNS_PIN = 1 [01:42:39]*** CUTSNS_PIN = 0 [01:42:40]*** Brake cut motor [01:42:40]Read from MH i2c: 01 [01:42:40]MH_I2C_Read... [01:42:40]*** Stop cut motor [01:42:40]*** Cut end [01:42:40]Read from MH i2c: 01 07 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [01:42:40]process_action close_receipt done [01:42:40]requested_data is exist [01:42:40]produce_requested_data [01:42:40]requested_item fm.sn is exist - process it [01:42:40]wFMCommunicate request_size=4 [01:42:40]MH_SAM_APDU [01:42:40]CAPDU: 80 11 00 00 [01:42:40]Write to MH i2c: E2 08 00 FF 03 80 11 00 00 00 00 00 00 7C [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:42:40]Read from MH i2c: E2 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 17 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 17 00 FF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 D0 [01:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:42:40]wFMCommunicate OK [01:42:40]requested_item fd.num is exist - process it [01:42:40]SAM_PROTO_GetFieldsCounters [01:42:40]wFMCommunicate request_size=4 [01:42:40]MH_SAM_APDU [01:42:40]CAPDU: 80 13 00 00 [01:42:40]Write to MH i2c: E2 08 00 00 04 80 13 00 00 00 00 00 00 80 [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]Connected sock=11 [01:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 37 7E 08 01 F2 01 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 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 09 00 00 00 F4 03 04 00 8E 3D 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1B 01 00 35 04 06 00 B0 21 87 B6 77 D2 BD EB CA 2F 08 51 96 48 [01:42:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:42:40]Read from MH i2c: E2 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 62 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 62 00 00 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [01:42:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CC 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:42:40]wFMCommunicate OK [01:42:40]SAM_PROTO_GetFieldsCounters done [01:42:40]requested_item shift.num is exist - process it [01:42:40]requested_item shift.opened is exist - process it [01:42:40]req_shift_opened [01:42:40]FM_GetShiftState [01:42:40]SAM_PROTO_GetShiftState [01:42:40]wFMCommunicate request_size=4 [01:42:40]MH_SAM_APDU [01:42:40]CAPDU: 80 13 01 00 [01:42:40]Write to MH i2c: E2 08 00 01 04 80 13 01 00 00 00 00 00 82 [01:42:40]Write i2c OK [01:42:40]MH_I2C_Read... [01:42:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:42:40]Read from MH i2c: E2 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 0E 00 [01:42:40]MH_I2C_Read... [01:42:40]Read from MH i2c: E2 0E 00 01 04 00 09 00 01 03 27 20 67 00 00 00 00 90 00 3F [01:42:40]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:42:40]wFMCommunicate OK [01:42:40]SAM_PROTO_GetShiftState done [01:42:40]FM_GetShiftState done [01:42:40]req_shift_opened done [01:42:40]requested_item shift.open_date is exist - process it [01:42:40]req_shift_open_date [01:42:40]req_shift_open_date done [01:42:40]produce_requested_data done [01:42:40]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72652,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:42:40]process_action_free close_receipt [01:42:40]json_value_free [01:42:40]json_value_free done [01:42:40]process_json_proto returns [01:42:40]Send response to host [01:42:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72652,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:42:40]free response buf [01:42:40]execute_script done [01:42:40]execute_script returns [01:42:40]free content buf [01:42:40]Sock 9.Close socket [01:42:40]Sock 9.Thread stoped [01:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 B2 F5 47 00 B6 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CC 1B 01 00 F4 03 04 00 4D E8 1F 67 B6 04 01 00 00 62 AB BC 7F A0 56 E9 3B [01:42:41]CommunicateWithHost err = 0 [01:42:41]CheckOFDResponse [01:42:41]1017 (14) - 77093643461234 [01:42:41]1041 (16) - 0000000000874662 [01:42:41]1040 (4) - 72652 [01:42:41]1012 (4) - 28.10.2024 19:38 [01:42:41]1206 (1) - 0 [01:42:41]OFD Sender: Remove packet 72652 [01:42:41]ProducePacketName [01:42:41]name=ofd_packets/00072652 [01:42:41]NVStorageDeleteData [01:42:42]OFD Sender: No OFD packet to send [01:42:47]OFD Sender: No OFD packet to send [01:42:50]recv_with_timeout no data received [01:42:52]OFD Sender: No OFD packet to send [01:42:57]OFD Sender: No OFD packet to send [01:43:01]recv_with_timeout no data received [01:43:02]OFD Sender: No OFD packet to send [01:43:07]OFD Sender: No OFD packet to send [01:43:12]OFD Sender: No OFD packet to send [01:43:14]recv_with_timeout no data received [01:43:17]OFD Sender: No OFD packet to send [01:43:22]OFD Sender: No OFD packet to send [01:43:27]OFD Sender: No OFD packet to send [01:43:32]OFD Sender: No OFD packet to send [01:43:37]OFD Sender: No OFD packet to send [01:43:42]OFD Sender: No OFD packet to send [01:43:47]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:56]recv_with_timeout no data received [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:54]recv_with_timeout no data received [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:41]recv_with_timeout no data received [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:51]recv_with_timeout no data received [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:26]recv_with_timeout no data received [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]recv_with_timeout no data received [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]OFD Sender: No OFD packet to send [01:48:14]recv_with_timeout no data received [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:33]recv_with_timeout no data received [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:03]recv_with_timeout no data received [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:42]OFD Sender: No OFD packet to send [01:49:47]OFD Sender: No OFD packet to send [01:49:48]recv_with_timeout no data received [01:49:52]OFD Sender: No OFD packet to send [01:49:57]OFD Sender: No OFD packet to send [01:50:00]recv_with_timeout no data received [01:50:02]OFD Sender: No OFD packet to send [01:50:07]OFD Sender: No OFD packet to send [01:50:12]OFD Sender: No OFD packet to send [01:50:17]OFD Sender: No OFD packet to send [01:50:22]OFD Sender: No OFD packet to send [01:50:27]OFD Sender: No OFD packet to send [01:50:32]OFD Sender: No OFD packet to send [01:50:37]OFD Sender: No OFD packet to send [01:50:42]OFD Sender: No OFD packet to send [01:50:47]OFD Sender: No OFD packet to send [01:50:52]OFD Sender: No OFD packet to send [01:50:57]OFD Sender: No OFD packet to send [01:51:02]OFD Sender: No OFD packet to send [01:51:06]recv_with_timeout no data received [01:51:07]OFD Sender: No OFD packet to send [01:51:12]OFD Sender: No OFD packet to send [01:51:17]OFD Sender: No OFD packet to send [01:51:22]OFD Sender: No OFD packet to send [01:51:27]OFD Sender: No OFD packet to send [01:51:32]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:03]OFD Sender: No OFD packet to send [01:53:08]OFD Sender: No OFD packet to send [01:53:12]recv_with_timeout no data received [01:53:13]OFD Sender: No OFD packet to send [01:53:18]OFD Sender: No OFD packet to send [01:53:23]OFD Sender: No OFD packet to send [01:53:28]OFD Sender: No OFD packet to send [01:53:32]recv_with_timeout no data received [01:53:33]OFD Sender: No OFD packet to send [01:53:38]OFD Sender: No OFD packet to send [01:53:43]OFD Sender: No OFD packet to send [01:53:48]OFD Sender: No OFD packet to send [01:53:53]OFD Sender: No OFD packet to send [01:53:57]recv_with_timeout no data received [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:22]recv_with_timeout no data received [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:41]recv_with_timeout no data received [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:52]recv_with_timeout no data received [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:02]recv_with_timeout no data received [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:46]recv_with_timeout no data received [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:55:58]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:05]accept exits with 10 [01:56:05]New connection [01:56:05]New thread 3067194724 created [01:56:05]Thread 3067338084 joined [01:56:05]Waiting for new connection... [01:56:05] Sock 10.Parse request [01:56:05]Sock 10.Check first char [01:56:05]Sock 10.First char is OK [01:56:05]request: POST /json_proto HTTP/1.0 [01:56:05]Method: POST [01:56:05]URL: /json_proto [01:56:05]Method is POST - this is cgi request [01:56:05]url: /json_proto [01:56:05]query_string will be loaded in cgi processing [01:56:05]execute_cgi json_proto POST (null) [01:56:05]execute_cgi path=json_proto method=POST [01:56:05]POST find Content-Length [01:56:05]Host: 172.17.43.195:8080 [01:56:05]Content-Length: 687 [01:56:05]Content-Type: application/json [01:56:05] [01:56:05]POST finish read [01:56:05]Found Content-Length = 687 [01:56:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:05]execute_script... [01:56: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)952146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:56:05]POST & json_proto [01:56:05]process_json_proto [01:56:05]json parsed OK: [01:56:05]protocol is kg_v1.0 [01:56:05]action value=close_receipt [01:56:05]process_action close_receipt [01:56:05]cmd_close_receipt [01:56:05]MH_GetDate [01:56:05]Write to MH i2c: F0 00 00 02 04 F5 [01:56:05]Write i2c OK [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: F0 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: F0 09 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: F0 09 00 02 04 00 B6 40 20 67 74 2C AD 66 2E [01:56:05]GetLastDocTimeStamp 1730166158 [01:56:05]current date 1730166966 [01:56:05]FM_GetShiftState [01:56:05]SAM_PROTO_GetShiftState [01:56:05]wFMCommunicate request_size=4 [01:56:05]MH_SAM_APDU [01:56:05]CAPDU: 80 13 01 00 [01:56:05]Write to MH i2c: E2 08 00 03 04 80 13 01 00 00 00 00 00 84 [01:56:05]Write i2c OK [01:56:05]MH_I2C_Read... [01:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:05]Read from MH i2c: E2 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 0E 00 [01:56:05]MH_I2C_Read... [01:56:05]Read from MH i2c: E2 0E 00 03 04 00 09 00 01 03 27 20 67 00 00 00 00 90 00 41 [01:56:05]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:56:05]wFMCommunicate OK [01:56:05]SAM_PROTO_GetShiftState done [01:56:05]FM_GetShiftState done [01:56:05]opened in 1730160387 [01:56:05]opened+sec_in_day 1730246787 [01:56:05]quantity*price = 100050 [01:56:05]sum+1 = 100052 [01:56:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 10 29.10.2024 01:56 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72653 ФПД: 23190327897960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T015606&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72653&fm=23190327897960&tin=02508201610067®Number=0000000000091644&sum=100000 [01:56:06]StoreToDocumentArchive [01:56:06]shift 555 fd 72653 [01:56:06]save to /storage/0555/doc_00072653 [01:56:06]save last doc name /storage/0555/doc_00072653 to /storage/kkm_last_doc_name [01:56:06]save OK [01:56:06]Clear old archive folders... [01:56:06]ProcessDocumentItem done err = 0, tmpTLVsize=252 [01:56:06]tlvbuf is 00AC36D0 [01:56:06]SAM_PROTO_ClearQueue [01:56:06]wFMCommunicate request_size=4 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 09 00 00 [01:56:06]Write to MH i2c: E2 08 00 10 04 80 09 00 00 00 00 00 00 86 [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 10 04 00 90 00 88 [01:56:06]RAPDU: 90 00 [01:56:06]wFMCommunicate OK [01:56:06]SAM_PROTO_ClearQueue done [01:56:06]KKMCreateOFDPacket [01:56:06]OFDProtocolAddRootSTLVToBuf [01:56:06]FM_MakeSignedData [01:56:06]FM_MakeSignedData [01:56:06]SAM_PROTO_SignData [01:56:06]wFMCommunicate request_size=4 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 0D 01 02 [01:56:06]Write to MH i2c: E2 08 00 11 04 80 0D 01 02 00 00 00 00 8E [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 11 04 00 90 00 89 [01:56:06]RAPDU: 90 00 [01:56:06]wFMCommunicate OK [01:56:06]wFMCommunicate request_size=255 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 B6 40 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1B 01 00 35 04 06 00 [01:56:06]Write to MH i2c: E2 02 01 12 04 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 B6 40 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1B 01 00 35 04 06 00 00 00 98 [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 12 04 00 90 00 8A [01:56:06]RAPDU: 90 00 [01:56:06]wFMCommunicate OK [01:56:06]wFMCommunicate request_size=11 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 0D 02 02 06 15 17 6B 41 AF 68 [01:56:06]Write to MH i2c: E2 0E 00 13 04 80 0D 02 02 06 00 15 17 6B 41 AF 68 00 00 8C [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 03 00 13 04 00 90 00 8B [01:56:06]RAPDU: 90 00 [01:56:06]wFMCommunicate OK [01:56:06]wFMCommunicate request_size=4 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 0D 03 02 [01:56:06]Write to MH i2c: E2 08 00 14 04 80 0D 03 02 00 00 00 00 93 [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 0B 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 0B 00 14 04 00 36 5C 92 AF CE 8E 6F 6F 90 00 A1 [01:56:06]RAPDU: 36 5C 92 AF CE 8E 6F 6F 90 00 [01:56:06]wFMCommunicate OK [01:56:06]SAM_PROTO_SignData done [01:56:06]FM_MakeSignedData done [01:56:06]CreateOFDProtocolMessage [01:56:06]wFMCommunicate request_size=4 [01:56:06]MH_SAM_APDU [01:56:06]CAPDU: 80 11 00 00 [01:56:06]Write to MH i2c: E2 08 00 15 04 80 11 00 00 00 00 00 00 93 [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:06]Read from MH i2c: E2 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 17 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: E2 17 00 15 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 E7 [01:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:56:06]wFMCommunicate OK [01:56:06]CreateOFDProtocolMessage done [01:56:06]OFDSenderStorePacket 72653 [01:56:06]StoreOFDPacket docnum=72653 [01:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 3A 2F 08 01 37 AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 B6 40 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1B 01 00 35 04 06 00 15 17 6B 41 AF 68 36 5C 92 AF CE 8E 6F 6F [01:56:06]CheckFolder [01:56:06]dirname=/storage/ofd_packets [01:56:06]CheckFolder done [01:56:06]ProducePacketName [01:56:06]name=ofd_packets/00072653 [01:56:06]NVStorageSaveData ofd_packets/00072653 [01:56:06]File name is /storage/ofd_packets/00072653 [01:56:06]Write 302 bytes [01:56:06]NVStorageSaveData done [01:56:06]OFDSenderStorePacket done [01:56:06]KKMCreateOFDPacket done [01:56:06]NVStorageSaveData kkm_last_timestamp [01:56:06]File name is /storage/kkm_last_timestamp [01:56:06]Write 4 bytes [01:56:06]NVStorageSaveData done [01:56:06]ExternCall_PrintAddStr [01:56:06]wPrintStart [01:56:06]Write to MH i2c: 01 00 00 16 04 1A [01:56:06]Write i2c OK [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: 01 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: 01 07 00 [01:56:06]MH_I2C_Read... [01:56:06]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 FF 0F 2F [01:56:06]RasterBufferAndPrint [01:56:06]line Счет N : (1)952146 [01:56:06]line ИНН: 02508201610067 [01:56:06]line Контрольно-Кассовый Чек [01:56:06]line ПРОДАЖА [01:56:06]line ТРК (МРК, ГНК) : 43 [01:56:06]line Товар: 2710194210 [01:56:06]line ДТ(л)-К-5 [01:56:06]line 13.130 * 76.20 [01:56:06]line = 1000.51 [01:56:06]line НДС 12% НСП 1% [01:56:06]line > о реализуемом товаре [01:56:06]line ОКРУГЛЕНИЕ: -0.51 [01:56:06]line ИТОГО: 1000.00 [01:56:06]line Внесено: 1000.00 [01:56:06]line СДАЧА: 0.00 [01:56:06]line НСП 1% : 8.85 [01:56:06]line НДС 12% : 106.25 [01:56:06]line Наличными: 1000.00 [01:56:06]line Безнал.: 0.00 [01:56:06]line Место: АЗС № 113 "Партнер Нефть" [01:56:06]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [01:56:06]line СНО: Общий режим [01:56:06]line Чек 10 29.10.2024 01:56 [01:56:06]line Смена: 555 ФФД: 1.0 [01:56:06]line ЗНМ: 0300000087 [01:56:06]line РНМ: 0000000000091644 [01:56:06]line Версия ККМ: 001 [01:56:06]line ФМ: 0000000000874662 [01:56:07]line ФД: 72653 [01:56:07]line ФПД: 23190327897960 [01:56:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T015606&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72653&fm=23190327897960&tin=02508201610067®Number=0000000000091644&sum=100000 [01:56:07]OFD Sender: Processing packet 72653 [packets to send 277, broken 276] [01:56:07]ProducePacketName [01:56:07]name=ofd_packets/00072653 [01:56:07]OFD Sender: To server: pG, [01:56:07]CommunicateWithHost lk.salyk.kg:30040 [01:56:07]ConnectInit lk.salyk.kg [01:56:07]written 0, free lines is 4095 [01:56:07]Write to MH i2c: 01 00 00 41 04 45 [01:56:07]Write i2c OK [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: 01 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: 01 07 00 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: 01 07 00 41 04 00 00 00 00 00 D6 0C 2E [01:56:07]RasterBufferAndPrint [01:56:07]line [01:56:07]line [01:56:07]line [01:56:07]line [01:56:07]line [01:56:07]written 0, free lines is 3290 [01:56:07]MH_Cut [01:56:07]Write to MH i2c: D1 01 00 48 04 01 1E [01:56:07]Write i2c OK [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: D1 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: D1 01 00 [01:56:07]MH_I2C_Read... [01:56:07]Read from MH i2c: D1 01 00 48 04 00 1D [01:56:07]Write to MH i2c: 01 00 00 49 04 4D [01:56:07]Write i2c OK [01:56:07]MH_I2C_Read... [01:56:08]*** Cut start [01:56:08]*** Partial cut [01:56:08]*** CUTSNS_PIN = 1 [01:56:08]*** CUTSNS_PIN = 0 [01:56:08]*** Brake cut motor [01:56:09]Read from MH i2c: 01 [01:56:09]MH_I2C_Read... [01:56:09]*** Stop cut motor [01:56:09]*** Cut end [01:56:09]Read from MH i2c: 01 07 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [01:56:09]process_action close_receipt done [01:56:09]requested_data is exist [01:56:09]produce_requested_data [01:56:09]requested_item fm.sn is exist - process it [01:56:09]wFMCommunicate request_size=4 [01:56:09]MH_SAM_APDU [01:56:09]CAPDU: 80 11 00 00 [01:56:09]Write to MH i2c: E2 08 00 4A 04 80 11 00 00 00 00 00 00 C8 [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:56:09]Read from MH i2c: E2 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 17 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 17 00 4A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 1C [01:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [01:56:09]wFMCommunicate OK [01:56:09]requested_item fd.num is exist - process it [01:56:09]SAM_PROTO_GetFieldsCounters [01:56:09]wFMCommunicate request_size=4 [01:56:09]MH_SAM_APDU [01:56:09]CAPDU: 80 13 00 00 [01:56:09]Write to MH i2c: E2 08 00 4B 04 80 13 00 00 00 00 00 00 CB [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:56:09]Read from MH i2c: E2 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 62 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 62 00 4B 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [01:56: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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CD 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:56:09]wFMCommunicate OK [01:56:09]SAM_PROTO_GetFieldsCounters done [01:56:09]requested_item shift.num is exist - process it [01:56:09]requested_item shift.opened is exist - process it [01:56:09]req_shift_opened [01:56:09]FM_GetShiftState [01:56:09]SAM_PROTO_GetShiftState [01:56:09]wFMCommunicate request_size=4 [01:56:09]MH_SAM_APDU [01:56:09]CAPDU: 80 13 01 00 [01:56:09]Write to MH i2c: E2 08 00 4C 04 80 13 01 00 00 00 00 00 CD [01:56:09]Write i2c OK [01:56:09]MH_I2C_Read... [01:56:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:56:09]Read from MH i2c: E2 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 0E 00 [01:56:09]MH_I2C_Read... [01:56:09]Read from MH i2c: E2 0E 00 4C 04 00 09 00 01 03 27 20 67 00 00 00 00 90 00 8A [01:56:09]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [01:56:09]wFMCommunicate OK [01:56:09]SAM_PROTO_GetShiftState done [01:56:09]FM_GetShiftState done [01:56:09]req_shift_opened done [01:56:09]requested_item shift.open_date is exist - process it [01:56:09]req_shift_open_date [01:56:09]req_shift_open_date done [01:56:09]produce_requested_data done [01:56:09]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72653,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [01:56:09]process_action_free close_receipt [01:56:09]json_value_free [01:56:09]json_value_free done [01:56:09]process_json_proto returns [01:56:09]Send response to host [01:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72653,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [01:56:09]free response buf [01:56:09]execute_script done [01:56:09]execute_script returns [01:56:09]free content buf [01:56:09]Sock 10.Close socket [01:56:09]Sock 10.Thread stoped [01:56:11]Connected sock=11 [01:56:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 01 00 00 3A 2F 08 01 37 AC 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 B6 40 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CD 1B 01 00 35 04 06 00 15 17 6B 41 AF 68 36 5C 92 AF CE 8E 6F 6F [01:56:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 68 AB 47 00 C8 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 34 36 36 32 10 04 04 00 CD 1B 01 00 F4 03 04 00 77 EB 1F 67 B6 04 01 00 00 7D 9A 4F 97 67 EF 59 C9 [01:56:11]CommunicateWithHost err = 0 [01:56:11]CheckOFDResponse [01:56:11]1017 (14) - 77093643461234 [01:56:11]1041 (16) - 0000000000874662 [01:56:11]1040 (4) - 72653 [01:56:11]1012 (4) - 28.10.2024 19:52 [01:56:11]1206 (1) - 0 [01:56:11]OFD Sender: Remove packet 72653 [01:56:11]ProducePacketName [01:56:11]name=ofd_packets/00072653 [01:56:11]NVStorageDeleteData [01:56:12]OFD Sender: No OFD packet to send [01:56:17]OFD Sender: No OFD packet to send [01:56:22]OFD Sender: No OFD packet to send [01:56:27]OFD Sender: No OFD packet to send [01:56:32]OFD Sender: No OFD packet to send [01:56:37]OFD Sender: No OFD packet to send [01:56:42]OFD Sender: No OFD packet to send [01:56:47]OFD Sender: No OFD packet to send [01:56:52]OFD Sender: No OFD packet to send [01:56:57]OFD Sender: No OFD packet to send [01:57:02]OFD Sender: No OFD packet to send [01:57:07]OFD Sender: No OFD packet to send [01:57:12]OFD Sender: No OFD packet to send [01:57:17]OFD Sender: No OFD packet to send [01:57:22]OFD Sender: No OFD packet to send [01:57:27]OFD Sender: No OFD packet to send [01:57:32]OFD Sender: No OFD packet to send [01:57:37]OFD Sender: No OFD packet to send [01:57:42]OFD Sender: No OFD packet to send [01:57:47]OFD Sender: No OFD packet to send [01:57:52]OFD Sender: No OFD packet to send [01:57:57]OFD Sender: No OFD packet to send [01:58:02]OFD Sender: No OFD packet to send [01:58:02]recv_with_timeout no data received [01:58:07]OFD Sender: No OFD packet to send [01:58:12]OFD Sender: No OFD packet to send [01:58:13]recv_with_timeout no data received [01:58:17]OFD Sender: No OFD packet to send [01:58:22]OFD Sender: No OFD packet to send [01:58:27]OFD Sender: No OFD packet to send [01:58:30]recv_with_timeout no data received [01:58:32]OFD Sender: No OFD packet to send [01:58:37]OFD Sender: No OFD packet to send [01:58:42]OFD Sender: No OFD packet to send [01:58:47]OFD Sender: No OFD packet to send [01:58:52]OFD Sender: No OFD packet to send [01:58:57]OFD Sender: No OFD packet to send [01:59:02]OFD Sender: No OFD packet to send [01:59:07]OFD Sender: No OFD packet to send [01:59:12]OFD Sender: No OFD packet to send [01:59:17]OFD Sender: No OFD packet to send [01:59:22]OFD Sender: No OFD packet to send [01:59:27]OFD Sender: No OFD packet to send [01:59:32]OFD Sender: No OFD packet to send [01:59:33]recv_with_timeout no data received [01:59:37]OFD Sender: No OFD packet to send [01:59:42]OFD Sender: No OFD packet to send [01:59:47]OFD Sender: No OFD packet to send [01:59:52]OFD Sender: No OFD packet to send [01:59:57]recv_with_timeout no data received [01:59:57]OFD Sender: No OFD packet to send [02:00:02]OFD Sender: No OFD packet to send [02:00:07]OFD Sender: No OFD packet to send [02:00:12]OFD Sender: No OFD packet to send [02:00:17]OFD Sender: No OFD packet to send [02:00:22]OFD Sender: No OFD packet to send [02:00:27]OFD Sender: No OFD packet to send [02:00:32]OFD Sender: No OFD packet to send [02:00:37]OFD Sender: No OFD packet to send [02:00:42]OFD Sender: No OFD packet to send [02:00:47]OFD Sender: No OFD packet to send [02:00:52]OFD Sender: No OFD packet to send [02:00:57]OFD Sender: No OFD packet to send [02:01:02]OFD Sender: No OFD packet to send [02:01:07]OFD Sender: No OFD packet to send [02:01:12]OFD Sender: No OFD packet to send [02:01:17]OFD Sender: No OFD packet to send [02:01:22]OFD Sender: No OFD packet to send [02:01:27]OFD Sender: No OFD packet to send [02:01:32]OFD Sender: No OFD packet to send [02:01:37]OFD Sender: No OFD packet to send [02:01:42]OFD Sender: No OFD packet to send [02:01:47]OFD Sender: No OFD packet to send [02:01:52]OFD Sender: No OFD packet to send [02:01:53]recv_with_timeout no data received [02:01:57]OFD Sender: No OFD packet to send [02:02:02]OFD Sender: No OFD packet to send [02:02:07]OFD Sender: No OFD packet to send [02:02:12]OFD Sender: No OFD packet to send [02:02:15]recv_with_timeout no data received [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:33]recv_with_timeout no data received [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:44]recv_with_timeout no data received [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:56]recv_with_timeout no data received [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:38]recv_with_timeout no data received [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:02]recv_with_timeout no data received [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:55]recv_with_timeout no data received [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:24]recv_with_timeout no data received [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:42]recv_with_timeout no data received [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:52]recv_with_timeout no data received [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:01]recv_with_timeout no data received [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:44]recv_with_timeout no data received [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]recv_with_timeout no data received [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:50]recv_with_timeout no data received [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:16]recv_with_timeout no data received [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:35]recv_with_timeout no data received [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:25]recv_with_timeout no data received [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:35]recv_with_timeout no data received [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:15:59]OFD Sender: No OFD packet to send [02:16:04]OFD Sender: No OFD packet to send [02:16:07]recv_with_timeout no data received [02:16:09]OFD Sender: No OFD packet to send [02:16:14]OFD Sender: No OFD packet to send [02:16:19]OFD Sender: No OFD packet to send [02:16:24]OFD Sender: No OFD packet to send [02:16:29]OFD Sender: No OFD packet to send [02:16:34]OFD Sender: No OFD packet to send [02:16:37]recv_with_timeout no data received [02:16:39]OFD Sender: No OFD packet to send [02:16:44]OFD Sender: No OFD packet to send [02:16:49]OFD Sender: No OFD packet to send [02:16:54]OFD Sender: No OFD packet to send [02:16:59]OFD Sender: No OFD packet to send [02:17:01]recv_with_timeout no data received [02:17:04]OFD Sender: No OFD packet to send [02:17:09]OFD Sender: No OFD packet to send [02:17:14]OFD Sender: No OFD packet to send [02:17:19]OFD Sender: No OFD packet to send [02:17:24]OFD Sender: No OFD packet to send [02:17:24]recv_with_timeout no data received [02:17:29]OFD Sender: No OFD packet to send [02:17:34]OFD Sender: No OFD packet to send [02:17:35]recv_with_timeout no data received [02:17:39]OFD Sender: No OFD packet to send [02:17:44]OFD Sender: No OFD packet to send [02:17:49]OFD Sender: No OFD packet to send [02:17:52]recv_with_timeout no data received [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:52]recv_with_timeout no data received [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:38]recv_with_timeout no data received [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:20]recv_with_timeout no data received [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:13]recv_with_timeout no data received [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:44]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:26]recv_with_timeout no data received [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:33]recv_with_timeout no data received [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:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:33]recv_with_timeout no data received [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:54]recv_with_timeout no data received [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:20]recv_with_timeout no data received [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:29:57]recv_with_timeout no data received [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:41]recv_with_timeout no data received [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:37]recv_with_timeout no data received [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]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:21]recv_with_timeout no data received [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:32]recv_with_timeout no data received [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:27]recv_with_timeout no data received [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:04]recv_with_timeout no data received [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:16]recv_with_timeout no data received [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:42]recv_with_timeout no data received [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:21]recv_with_timeout no data received [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:45]recv_with_timeout no data received [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:02]recv_with_timeout no data received [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:23]recv_with_timeout no data received [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]recv_with_timeout no data received [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:10]accept exits with 7 [02:40:10]New connection [02:40:10]New thread 3067338084 created [02:40:10]Thread 3067194724 joined [02:40:10]Waiting for new connection... [02:40:10] Sock 7.Parse request [02:40:10]Sock 7.Check first char [02:40:10]Sock 7.First char is OK [02:40:10]request: POST /json_proto HTTP/1.0 [02:40:10]Method: POST [02:40:10]URL: /json_proto [02:40:10]Method is POST - this is cgi request [02:40:10]url: /json_proto [02:40:10]query_string will be loaded in cgi processing [02:40:10]execute_cgi json_proto POST (null) [02:40:10]execute_cgi path=json_proto method=POST [02:40:10]POST find Content-Length [02:40:10]Host: 172.17.43.195:8080 [02:40:10]Content-Length: 685 [02:40:10]Content-Type: application/json [02:40:10] [02:40:10]POST finish read [02:40:10]Found Content-Length = 685 [02:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:10]execute_script... [02:40:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)952148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-3", "price" : 38.90, "quantity" : 51.420, "sum" : 2000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:40:10]POST & json_proto [02:40:10]process_json_proto [02:40:10]json parsed OK: [02:40:10]protocol is kg_v1.0 [02:40:10]action value=close_receipt [02:40:10]process_action close_receipt [02:40:10]cmd_close_receipt [02:40:10]MH_GetDate [02:40:10]Write to MH i2c: F0 00 00 4D 04 40 [02:40:10]Write i2c OK [02:40:10]MH_I2C_Read... [02:40:10]Read from MH i2c: F0 [02:40:10]MH_I2C_Read... [02:40:10]Read from MH i2c: F0 09 00 [02:40:10]MH_I2C_Read... [02:40:10]Read from MH i2c: F0 09 00 4D 04 00 0C 4B 20 67 74 2C AD 66 DA [02:40:10]GetLastDocTimeStamp 1730166966 [02:40:10]current date 1730169612 [02:40:10]FM_GetShiftState [02:40:10]SAM_PROTO_GetShiftState [02:40:10]wFMCommunicate request_size=4 [02:40:10]MH_SAM_APDU [02:40:10]CAPDU: 80 13 01 00 [02:40:10]Write to MH i2c: E2 08 00 4E 04 80 13 01 00 00 00 00 00 CF [02:40:10]Write i2c OK [02:40:10]MH_I2C_Read... [02:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:40:10]Read from MH i2c: E2 [02:40:10]MH_I2C_Read... [02:40:10]Read from MH i2c: E2 0E 00 [02:40:10]MH_I2C_Read... [02:40:10]Read from MH i2c: E2 0E 00 4E 04 00 09 00 01 03 27 20 67 00 00 00 00 90 00 8C [02:40:10]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [02:40:10]wFMCommunicate OK [02:40:10]SAM_PROTO_GetShiftState done [02:40:10]FM_GetShiftState done [02:40:10]opened in 1730160387 [02:40:10]opened+sec_in_day 1730246787 [02:40:10]quantity*price = 200023 [02:40:10]sum+1 = 200025 [02:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.41 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 113 "Партнер Нефть" Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 СНО: Общий режим Чек 11 29.10.2024 02:40 Смена: 555 ФФД: 1.0 ЗНМ: 0300000087 РНМ: 0000000000091644 Версия ККМ: 001 ФМ: 0000000000874662 ФД: 72654 ФПД: 9203039414450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T024012&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72654&fm=9203039414450&tin=02508201610067®Number=0000000000091644&sum=200000 [02:40:11]StoreToDocumentArchive [02:40:11]shift 555 fd 72654 [02:40:11]save to /storage/0555/doc_00072654 [02:40:11]save last doc name /storage/0555/doc_00072654 to /storage/kkm_last_doc_name [02:40:11]save OK [02:40:11]Clear old archive folders... [02:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=250 [02:40:11]tlvbuf is 00AB5890 [02:40:11]SAM_PROTO_ClearQueue [02:40:11]wFMCommunicate request_size=4 [02:40:11]MH_SAM_APDU [02:40:11]CAPDU: 80 09 00 00 [02:40:11]Write to MH i2c: E2 08 00 5B 04 80 09 00 00 00 00 00 00 D1 [02:40:11]Write i2c OK [02:40:11]MH_I2C_Read... [02:40:11]OFD Sender: No OFD packet to send [02:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:40:11]Read from MH i2c: E2 [02:40:11]MH_I2C_Read... [02:40:11]Read from MH i2c: E2 03 00 [02:40:11]MH_I2C_Read... [02:40:11]Read from MH i2c: E2 03 00 5B 04 00 90 00 D3 [02:40:11]RAPDU: 90 00 [02:40:11]wFMCommunicate OK [02:40:11]SAM_PROTO_ClearQueue done [02:40:11]KKMCreateOFDPacket [02:40:11]OFDProtocolAddRootSTLVToBuf [02:40:11]FM_MakeSignedData [02:40:11]FM_MakeSignedData [02:40:11]SAM_PROTO_SignData [02:40:11]wFMCommunicate request_size=4 [02:40:11]MH_SAM_APDU [02:40:11]CAPDU: 80 0D 01 02 [02:40:11]Write to MH i2c: E2 08 00 5C 04 80 0D 01 02 00 00 00 00 D9 [02:40:11]Write i2c OK [02:40:11]MH_I2C_Read... [02:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:40:11]Read from MH i2c: E2 [02:40:11]MH_I2C_Read... [02:40:11]Read from MH i2c: E2 03 00 [02:40:11]MH_I2C_Read... [02:40:11]Read from MH i2c: E2 03 00 5C 04 00 90 00 D4 [02:40:11]RAPDU: 90 00 [02:40:11]wFMCommunicate OK [02:40:11]wFMCommunicate request_size=255 [02:40:11]MH_SAM_APDU [02:40:11]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0C 4B 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1B 01 00 35 04 06 00 08 5E [02:40:11]Write to MH i2c: E2 02 01 5D 04 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0C 4B 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1B 01 00 35 04 06 00 08 5E 00 00 16 [02:40:11]Write i2c OK [02:40:11]MH_I2C_Read... [02:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:40:12]Read from MH i2c: E2 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 03 00 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 03 00 5D 04 00 90 00 D5 [02:40:12]RAPDU: 90 00 [02:40:12]wFMCommunicate OK [02:40:12]wFMCommunicate request_size=9 [02:40:12]MH_SAM_APDU [02:40:12]CAPDU: 80 0D 02 02 04 BF E5 28 B2 [02:40:12]Write to MH i2c: E2 0C 00 5E 04 80 0D 02 02 04 00 BF E5 28 B2 00 00 62 [02:40:12]Write i2c OK [02:40:12]MH_I2C_Read... [02:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:40:12]Read from MH i2c: E2 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 03 00 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 03 00 5E 04 00 90 00 D6 [02:40:12]RAPDU: 90 00 [02:40:12]wFMCommunicate OK [02:40:12]wFMCommunicate request_size=4 [02:40:12]MH_SAM_APDU [02:40:12]CAPDU: 80 0D 03 02 [02:40:12]Write to MH i2c: E2 08 00 5F 04 80 0D 03 02 00 00 00 00 DE [02:40:12]Write i2c OK [02:40:12]MH_I2C_Read... [02:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:40:12]Read from MH i2c: E2 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 0B 00 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 0B 00 5F 04 00 82 AE D1 8E 8A C4 AE 7A 90 00 E4 [02:40:12]RAPDU: 82 AE D1 8E 8A C4 AE 7A 90 00 [02:40:12]wFMCommunicate OK [02:40:12]SAM_PROTO_SignData done [02:40:12]FM_MakeSignedData done [02:40:12]CreateOFDProtocolMessage [02:40:12]wFMCommunicate request_size=4 [02:40:12]MH_SAM_APDU [02:40:12]CAPDU: 80 11 00 00 [02:40:12]Write to MH i2c: E2 08 00 60 04 80 11 00 00 00 00 00 00 DE [02:40:12]Write i2c OK [02:40:12]MH_I2C_Read... [02:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:40:12]Read from MH i2c: E2 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 17 00 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: E2 17 00 60 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 32 [02:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:40:12]wFMCommunicate OK [02:40:12]CreateOFDProtocolMessage done [02:40:12]OFDSenderStorePacket 72654 [02:40:12]StoreOFDPacket docnum=72654 [02:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 A2 17 06 01 AF 47 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0C 4B 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1B 01 00 35 04 06 00 08 5E BF E5 28 B2 82 AE D1 8E 8A C4 AE 7A [02:40:12]CheckFolder [02:40:12]dirname=/storage/ofd_packets [02:40:12]CheckFolder done [02:40:12]ProducePacketName [02:40:12]name=ofd_packets/00072654 [02:40:12]NVStorageSaveData ofd_packets/00072654 [02:40:12]File name is /storage/ofd_packets/00072654 [02:40:12]Write 300 bytes [02:40:12]NVStorageSaveData done [02:40:12]OFDSenderStorePacket done [02:40:12]KKMCreateOFDPacket done [02:40:12]NVStorageSaveData kkm_last_timestamp [02:40:12]File name is /storage/kkm_last_timestamp [02:40:12]Write 4 bytes [02:40:12]NVStorageSaveData done [02:40:12]ExternCall_PrintAddStr [02:40:12]wPrintStart [02:40:12]Write to MH i2c: 01 00 00 61 04 65 [02:40:12]Write i2c OK [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: 01 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: 01 07 00 [02:40:12]MH_I2C_Read... [02:40:12]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 FF 0F 7A [02:40:12]RasterBufferAndPrint [02:40:12]line Счет N : (1)952148 [02:40:12]line ИНН: 02508201610067 [02:40:12]line Контрольно-Кассовый Чек [02:40:12]line ПРОДАЖА [02:40:12]line ТРК (МРК, ГНК) : 71 [02:40:12]line Товар: 2711190000 [02:40:12]line ГАЗ-К-3 [02:40:12]line 51.420 * 38.90 [02:40:12]line = 2000.24 [02:40:12]line НДС 12% НСП 1% [02:40:12]line > о реализуемом товаре [02:40:12]line ОКРУГЛЕНИЕ: -0.24 [02:40:12]line ИТОГО: 2000.00 [02:40:12]line Внесено: 2000.00 [02:40:12]line СДАЧА: 0.00 [02:40:12]line НСП 1% : 17.70 [02:40:12]line НДС 12% : 212.41 [02:40:12]line Наличными: 2000.00 [02:40:12]line Безнал.: 0.00 [02:40:12]line Место: АЗС № 113 "Партнер Нефть" [02:40:12]line Адрес: 720001, г. Каракуль, ул. Заводская б/н, 41.639837, 72.711827 [02:40:12]line СНО: Общий режим [02:40:12]line Чек 11 29.10.2024 02:40 [02:40:12]line Смена: 555 ФФД: 1.0 [02:40:12]line ЗНМ: 0300000087 [02:40:12]line РНМ: 0000000000091644 [02:40:12]line Версия ККМ: 001 [02:40:12]line ФМ: 0000000000874662 [02:40:12]line ФД: 72654 [02:40:12]line ФПД: 9203039414450 [02:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241029T024012&type=1&operation_type=1&fn_number=0000000000874662&fd_number=72654&fm=9203039414450&tin=02508201610067®Number=0000000000091644&sum=200000 [02:40:12]OFD Sender: Processing packet 72654 [packets to send 277, broken 276] [02:40:12]ProducePacketName [02:40:12]name=ofd_packets/00072654 [02:40:12]OFD Sender: To server: pG, [02:40:12]CommunicateWithHost lk.salyk.kg:30040 [02:40:12]ConnectInit lk.salyk.kg [02:40:12]written 0, free lines is 4095 [02:40:13]Write to MH i2c: 01 00 00 8C 04 90 [02:40:13]Write i2c OK [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: 01 [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: 01 07 00 [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: 01 07 00 8C 04 00 00 00 00 00 D4 0C 77 [02:40:13]RasterBufferAndPrint [02:40:13]line [02:40:13]line [02:40:13]line [02:40:13]line [02:40:13]line [02:40:13]written 0, free lines is 3290 [02:40:13]MH_Cut [02:40:13]Write to MH i2c: D1 01 00 93 04 01 69 [02:40:13]Write i2c OK [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: D1 [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: D1 01 00 [02:40:13]MH_I2C_Read... [02:40:13]Read from MH i2c: D1 01 00 93 04 00 68 [02:40:13]Write to MH i2c: 01 00 00 94 04 98 [02:40:13]Write i2c OK [02:40:13]MH_I2C_Read... [02:40:13]Connected sock=9 [02:40:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0E 01 00 00 A2 17 06 01 AF 47 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 33 FF 03 08 00 03 DC C8 00 00 00 00 00 37 04 06 00 32 0F 00 00 00 00 13 04 06 00 58 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 F9 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 0C 4B 20 67 0E 04 04 00 2B 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1B 01 00 35 04 06 00 08 5E BF E5 28 B2 82 AE D1 8E 8A C4 AE 7A [02:40:13]*** Cut start [02:40:13]*** Partial cut [02:40:13]*** CUTSNS_PIN = 1 [02:40:13]*** CUTSNS_PIN = 0 [02:40:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 4F 00 00 00 90 1E 47 00 C6 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 10 04 04 00 CE 1B 01 00 F4 03 04 00 C9 F5 1F 67 B6 04 01 00 00 44 FF 00 98 F0 59 EB 51 [02:40:13]CommunicateWithHost err = 0 [02:40:13]CheckOFDResponse [02:40:13]1017 (14) - 77093643461234 [02:40:13]1041 (16) - 0000000000874662 [02:40:13]1040 (4) - 72654 [02:40:13]1012 (4) - 28.10.2024 20:36 [02:40:13]1206 (1) - 0 [02:40:13]OFD Sender: Remove packet 72654 [02:40:13]ProducePacketName [02:40:13]name=ofd_packets/00072654 [02:40:13]NVStorageDeleteData [02:40:14]*** Brake cut motor [02:40:14]Read from MH i2c: 01 [02:40:14]MH_I2C_Read... [02:40:14]OFD Sender: No OFD packet to send [02:40:14]Read from MH i2c: 01 07 00 [02:40:14]MH_I2C_Read... [02:40:14]*** Stop cut motor [02:40:14]*** Cut end [02:40:14]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [02:40:14]process_action close_receipt done [02:40:14]requested_data is exist [02:40:14]produce_requested_data [02:40:14]requested_item fm.sn is exist - process it [02:40:14]wFMCommunicate request_size=4 [02:40:14]MH_SAM_APDU [02:40:14]CAPDU: 80 11 00 00 [02:40:14]Write to MH i2c: E2 08 00 95 04 80 11 00 00 00 00 00 00 13 [02:40:14]Write i2c OK [02:40:14]MH_I2C_Read... [02:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:40:14]Read from MH i2c: E2 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 17 00 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 17 00 95 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 67 [02:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 90 00 [02:40:14]wFMCommunicate OK [02:40:14]requested_item fd.num is exist - process it [02:40:14]SAM_PROTO_GetFieldsCounters [02:40:14]wFMCommunicate request_size=4 [02:40:14]MH_SAM_APDU [02:40:14]CAPDU: 80 13 00 00 [02:40:14]Write to MH i2c: E2 08 00 96 04 80 13 00 00 00 00 00 00 16 [02:40:14]Write i2c OK [02:40:14]MH_I2C_Read... [02:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:40:14]Read from MH i2c: E2 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 62 00 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 62 00 96 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 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [02:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 32 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 34 34 10 04 04 00 CE 1B 01 00 0E 04 04 00 2B 02 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:40:14]wFMCommunicate OK [02:40:14]SAM_PROTO_GetFieldsCounters done [02:40:14]requested_item shift.num is exist - process it [02:40:14]requested_item shift.opened is exist - process it [02:40:14]req_shift_opened [02:40:14]FM_GetShiftState [02:40:14]SAM_PROTO_GetShiftState [02:40:14]wFMCommunicate request_size=4 [02:40:14]MH_SAM_APDU [02:40:14]CAPDU: 80 13 01 00 [02:40:14]Write to MH i2c: E2 08 00 97 04 80 13 01 00 00 00 00 00 18 [02:40:14]Write i2c OK [02:40:14]MH_I2C_Read... [02:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:40:14]Read from MH i2c: E2 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 0E 00 [02:40:14]MH_I2C_Read... [02:40:14]Read from MH i2c: E2 0E 00 97 04 00 09 00 01 03 27 20 67 00 00 00 00 90 00 D5 [02:40:14]RAPDU: 09 00 01 03 27 20 67 00 00 00 00 90 00 [02:40:14]wFMCommunicate OK [02:40:14]SAM_PROTO_GetShiftState done [02:40:14]FM_GetShiftState done [02:40:14]req_shift_opened done [02:40:14]requested_item shift.open_date is exist - process it [02:40:14]req_shift_open_date [02:40:14]req_shift_open_date done [02:40:14]produce_requested_data done [02:40:14]produce_requested_data return {"fm.sn":"0000000000874662","fd.num":72654,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387} [02:40:14]process_action_free close_receipt [02:40:14]json_value_free [02:40:14]json_value_free done [02:40:14]process_json_proto returns [02:40:14]Send response to host [02:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874662","fd.num":72654,"shift.num":555,"shift.opened":1,"shift.open_date":1730160387}}} [02:40:14]free response buf [02:40:14]execute_script done [02:40:14]execute_script returns [02:40:14]free content buf [02:40:14]Sock 7.Close socket [02:40:14]Sock 7.Thread stoped [02:40:19]OFD Sender: No OFD packet to send [02:40:24]OFD Sender: No OFD packet to send [02:40:29]OFD Sender: No OFD packet to send [02:40:32]recv_with_timeout no data received [02:40:34]OFD Sender: No OFD packet to send [02:40:39]OFD Sender: No OFD packet to send [02:40:44]OFD Sender: No OFD packet to send [02:40:47]recv_with_timeout no data received [02:40:49]OFD Sender: No OFD packet to send [02:40:54]OFD Sender: No OFD packet to send [02:40:59]OFD Sender: No OFD packet to send [02:41:04]OFD Sender: No OFD packet to send [02:41:09]OFD Sender: No OFD packet to send [02:41:14]OFD Sender: No OFD packet to send [02:41:19]OFD Sender: No OFD packet to send [02:41:24]OFD Sender: No OFD packet to send [02:41:29]OFD Sender: No OFD packet to send [02:41:34]OFD Sender: No OFD packet to send [02:41:39]OFD Sender: No OFD packet to send [02:41:44]OFD Sender: No OFD packet to send [02:41:49]OFD Sender: No OFD packet to send [02:41:54]OFD Sender: No OFD packet to send [02:41:59]OFD Sender: No OFD packet to send [02:42:04]OFD Sender: No OFD packet to send [02:42:09]OFD Sender: No OFD packet to send [02:42:14]OFD Sender: No OFD packet to send [02:42:19]OFD Sender: No OFD packet to send [02:42:24]OFD Sender: No OFD packet to send [02:42:29]OFD Sender: No OFD packet to send [02:42:34]OFD Sender: No OFD packet to send [02:42:39]OFD Sender: No OFD packet to send [02:42:44]OFD Sender: No OFD packet to send [02:42:44]recv_with_timeout no data received [02:42:49]OFD Sender: No OFD packet to send [02:42:54]OFD Sender: No OFD packet to send [02:42:59]OFD Sender: No OFD packet to send [02:43:03]recv_with_timeout no data received [02:43:04]OFD Sender: No OFD packet to send [02:43:09]OFD Sender: No OFD packet to send [02:43:14]OFD Sender: No OFD packet to send [02:43:19]OFD Sender: No OFD packet to send [02:43:24]OFD Sender: No OFD packet to send [02:43:29]OFD Sender: No OFD packet to send [02:43:31]recv_with_timeout no data received [02:43:34]OFD Sender: No OFD packet to send [02:43:39]OFD Sender: No OFD packet to send [02:43:44]OFD Sender: No OFD packet to send [02:43:49]OFD Sender: No OFD packet to send [02:43:54]OFD Sender: No OFD packet to send [02:43:59]OFD Sender: No OFD packet to send [02:44:04]OFD Sender: No OFD packet to send [02:44:09]OFD Sender: No OFD packet to send [02:44:12]recv_with_timeout no data received [02:44:14]OFD Sender: No OFD packet to send [02:44:19]OFD Sender: No OFD packet to send [02:44:24]OFD Sender: No OFD packet to send [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]recv_with_timeout no data received [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:15]recv_with_timeout no data received [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:52]recv_with_timeout no data received [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:02]recv_with_timeout no data received [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]recv_with_timeout no data received [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:54]recv_with_timeout no data received [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:28]recv_with_timeout no data received [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:31]recv_with_timeout no data received [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:50]OFD Sender: No OFD packet to send [02:50:55]OFD Sender: No OFD packet to send [02:50:57]recv_with_timeout no data received [02:51:00]OFD Sender: No OFD packet to send [02:51:05]OFD Sender: No OFD packet to send [02:51:10]OFD Sender: No OFD packet to send [02:51:15]OFD Sender: No OFD packet to send [02:51:20]OFD Sender: No OFD packet to send [02:51:21]recv_with_timeout no data received [02:51:25]OFD Sender: No OFD packet to send [02:51:30]OFD Sender: No OFD packet to send [02:51:35]OFD Sender: No OFD packet to send [02:51:40]OFD Sender: No OFD packet to send [02:51:45]OFD Sender: No OFD packet to send [02:51:50]OFD Sender: No OFD packet to send [02:51:55]OFD Sender: No OFD packet to send [02:52:00]OFD Sender: No OFD packet to send [02:52:05]OFD Sender: No OFD packet to send [02:52:10]OFD Sender: No OFD packet to send [02:52:15]OFD Sender: No OFD packet to send [02:52:20]OFD Sender: No OFD packet to send [02:52:25]OFD Sender: No OFD packet to send [02:52:30]OFD Sender: No OFD packet to send [02:52:33]recv_with_timeout no data received [02:52:35]OFD Sender: No OFD packet to send [02:52:40]OFD Sender: No OFD packet to send [02:52:45]OFD Sender: No OFD packet to send [02:52:50]OFD Sender: No OFD packet to send [02:52:53]recv_with_timeout no data received [02:52:55]OFD Sender: No OFD packet to send [02:53:00]OFD Sender: No OFD packet to send [02:53:05]OFD Sender: No OFD packet to send [02:53:10]OFD Sender: No OFD packet to send [02:53:15]OFD Sender: No OFD packet to send [02:53:20]OFD Sender: No OFD packet to send [02:53:25]OFD Sender: No OFD packet to send [02:53:30]OFD Sender: No OFD packet to send [02:53:35]OFD Sender: No OFD packet to send [02:53:40]OFD Sender: No OFD packet to send [02:53:45]OFD Sender: No OFD packet to send [02:53:50]OFD Sender: No OFD packet to send [02:53:55]OFD Sender: No OFD packet to send [02:54:00]OFD Sender: No OFD packet to send [02:54:05]OFD Sender: No OFD packet to send [02:54:10]OFD Sender: No OFD packet to send [02:54:15]OFD Sender: No OFD packet to send [02:54:20]OFD Sender: No OFD packet to send [02:54:25]OFD Sender: No OFD packet to send [02:54:30]OFD Sender: No OFD packet to send [02:54:35]OFD Sender: No OFD packet to send [02:54:40]OFD Sender: No OFD packet to send [02:54:45]OFD Sender: No OFD packet to send [02:54:50]OFD Sender: No OFD packet to send [02:54:55]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:40]recv_with_timeout no data received [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56:01]OFD Sender: No OFD packet to send [02:56:06]OFD Sender: No OFD packet to send [02:56:11]OFD Sender: No OFD packet to send [02:56:13]recv_with_timeout no data received [02:56:16]OFD Sender: No OFD packet to send [02:56:21]OFD Sender: No OFD packet to send [02:56:26]OFD Sender: No OFD packet to send [02:56:31]OFD Sender: No OFD packet to send [02:56:36]OFD Sender: No OFD packet to send [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:54]recv_with_timeout no data received [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:18]recv_with_timeout no data received [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:43]recv_with_timeout no data received [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:33]recv_with_timeout no data received [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:30]recv_with_timeout no data received [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]recv_with_timeout no data received [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:29]recv_with_timeout no data received [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:33]recv_with_timeout no data received [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:52]recv_with_timeout no data received [03:02:56]OFD Sender: No OFD packet to send [03:03:01]OFD Sender: No OFD packet to send [03:03:06]OFD Sender: No OFD packet to send [03:03:11]OFD Sender: No OFD packet to send [03:03:16]OFD Sender: No OFD packet to send [03:03:21]OFD Sender: No OFD packet to send [03:03:26]OFD Sender: No OFD packet to send [03:03:31]OFD Sender: No OFD packet to send